diff --git a/data/sqlite/index/random/10/slt_good_1.slt b/data/sqlite/index/random/10/slt_good_1.slt index 7c4d597..3ccc793 100644 --- a/data/sqlite/index/random/10/slt_good_1.slt +++ b/data/sqlite/index/random/10/slt_good_1.slt @@ -27106,31 +27106,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\(\*\) \- count\(\*\) AS col0" at position 1 have the 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\(\*\) \- count\(\*\) AS col0" at position 1 have the 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\(\*\) \- count\(\*\) AS col0" at position 1 have the 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\(\*\) \- count\(\*\) AS col0" at position 1 have the 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\(\*\) \- count\(\*\) AS col0" at position 1 have the 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: @@ -44761,31 +44761,31 @@ SELECT * FROM tab4 AS cor0 WHERE 85 * - col1 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab0 WHERE NULL 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab1 WHERE NULL 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab2 WHERE NULL 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab3 WHERE NULL 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab4 WHERE NULL IS NOT NULL # 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 a5f5c32..84a2839 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\(\*\) 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\(\*\) 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\(\*\) 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\(\*\) 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\(\*\) 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 d9b8722..1427baf 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\(\*\) 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\(\*\) 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\(\*\) 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\(\*\) 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\(\*\) 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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/10/slt_good_4.slt b/data/sqlite/index/random/10/slt_good_4.slt index 6b58c65..befe696 100644 --- a/data/sqlite/index/random/10/slt_good_4.slt +++ b/data/sqlite/index/random/10/slt_good_4.slt @@ -42597,31 +42597,31 @@ SELECT * FROM tab4 WHERE - + col3 IN ( col3, col4, + 94 * - - col0 * + 33 * col1 # 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\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) > NULL # 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\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) > NULL # 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\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) > NULL # 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\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab3 WHERE - CAST ( NULL AS INTEGER ) > NULL # 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\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab4 WHERE - CAST ( NULL AS INTEGER ) > 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 e8123b8..f173a99 100644 --- a/data/sqlite/index/random/1000/slt_good_6.slt +++ b/data/sqlite/index/random/1000/slt_good_6.slt @@ -42214,31 +42214,31 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(\*\) \- Int64\(\-73\) \+ 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\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(\*\) \- Int64\(\-73\) \+ 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\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(\*\) \- Int64\(\-73\) \+ 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\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(\*\) \- Int64\(\-73\) \+ 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\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab3 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(\*\) \- Int64\(\-73\) \+ 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\(48\) \+ Int64\(\-67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab4 WHERE NOT NULL IS NULL query I rowsort label-6475 @@ -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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col0" at position 1 have the 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 bc94e6c..9c4744e 100644 --- a/data/sqlite/index/random/1000/slt_good_7.slt +++ b/data/sqlite/index/random/1000/slt_good_7.slt @@ -41243,31 +41243,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 e04cf3a..879c92c 100644 --- a/data/sqlite/random/aggregates/slt_good_0.slt +++ b/data/sqlite/random/aggregates/slt_good_0.slt @@ -11351,7 +11351,7 @@ SELECT DISTINCT + - 24 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # 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 "\(\- 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 DISTINCT - COUNT ( * ) AS col0, 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query III rowsort label-1876 @@ -11792,7 +11792,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\(\*\) 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 @@ -17631,7 +17631,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\(\*\)\) AS Int32\) \+ Int64\(\-5\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -22595,7 +22595,7 @@ SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(49\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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 "Int64\(49\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 AS col2, 49 * - ( - + COUNT ( * ) ) AS col2 FROM tab0 query III rowsort @@ -24335,7 +24335,7 @@ SELECT ALL col0 + 2 FROM tab2 # 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\(\-69\)\) \- count\(\(\- tab0\.col0\)\) AS col2" at position 0 and "\(\- count\(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\(\*\) \+ \(\- Int64\(\-69\)\) \- count\(\(\- tab0\.col0\)\) AS col2" at position 0 and "\(\- count\(tab0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - - 69 - + COUNT ( - col0 ) AS col2, - COUNT ( ALL + col2 ) col2 FROM tab0 query I rowsort label-4015 @@ -26054,7 +26054,7 @@ SELECT + 77 + - + 94 AS col0 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\(\*\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("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 ALL COUNT ( * ) * - - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -27647,7 +27647,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\(\*\) AS col0" at position 1 have the 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 @@ -33441,7 +33441,7 @@ SELECT ALL - - COUNT ( ALL - col0 ) 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\(\*\)\) AS col2" at position 0 and "\(\- count\(DISTINCT cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(DISTINCT cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, - COUNT ( DISTINCT + col0 ) col2 FROM tab1 cor0 query II rowsort @@ -36127,7 +36127,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\(\*\)\) \+ \(\- max\(cor0\.col1\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -36419,7 +36419,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\(\*\) \+ count\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -37808,7 +37808,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\(\*\) AS col2" at position 1 have 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 @@ -40569,7 +40569,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\(\*\) 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 @@ -41248,7 +41248,7 @@ SELECT ALL + col2, - col2 + - col2 / 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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 cor0 query IIIIII rowsort @@ -41275,7 +41275,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -43889,7 +43889,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\(\*\) 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 @@ -47482,7 +47482,7 @@ SELECT 56 AS col1, 71 + col0 + + - col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(24\) / \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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 "Int64\(24\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 58 AS col2, + 24 / - - COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort @@ -48524,7 +48524,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\(\*\) AS col2" at position 1 have 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 @@ -50474,7 +50474,7 @@ SELECT * FROM tab0 WHERE + + col2 / 38 >= NULL # 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\(\-33\) 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\(\*\) / Int64\(\-33\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / - 33 AS col1, 84 col1 FROM tab0 AS cor0 query I rowsort @@ -54152,7 +54152,7 @@ SELECT COUNT ( * ) / - + 87 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL query I rowsort label-8968 @@ -58056,7 +58056,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\(\*\) AS col1" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -60363,7 +60363,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - + col1 > + 41 # 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\(24\)\) \+ \(\- count\(\*\)\) \- \(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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\(24\)\) \+ \(\- 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 FLOAT8 ) AS col0, COUNT ( ALL + 24 ) + - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 query I rowsort label-9981 diff --git a/data/sqlite/random/aggregates/slt_good_1.slt b/data/sqlite/random/aggregates/slt_good_1.slt index 526435c..87722f4 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\(\*\) AS col0" at position 1 have the 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 @@ -6524,7 +6524,7 @@ SELECT ALL - MAX ( col0 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-5\)\)\) \* \(\- count\(\*\)\) \+ Int64\(79\) 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 "\(\- sum\(DISTINCT Int64\(\-5\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(79\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + SUM ( DISTINCT - 5 ) * - COUNT ( * ) + 79 AS col2, + 49 AS col2 FROM tab1 AS cor0 query III rowsort @@ -8012,7 +8012,7 @@ SELECT - col1 * col2 * + + ( 99 ) AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. 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\(\*\) \* count\(\*\) AS col0" at position 1 have the 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\(\*\) AS col1" at position 1 have 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\(33\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -22936,7 +22936,7 @@ SELECT - col0 * col0 * + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-17\)\) \+ Int64\(79\) AS col0" at position 0 and "\(\- 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\(\*\) \* \(\- Int64\(\-17\)\) \+ Int64\(79\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - - 17 + + 79 AS col0, - COUNT ( * ) + 21 col0 FROM tab1 AS cor0 query I rowsort label-3883 @@ -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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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\(\*\) \* count\(\*\) AS col1" at position 1 have 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\(\*\) 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 @@ -38878,7 +38878,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\(\-30\) \+ \(\- count\(\*\)\) \- Int64\(18\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(\*\)\) \- 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 - 30 + - COUNT ( * ) - 18 AS col1, - COUNT ( * ) AS col1 FROM tab0 query I rowsort label-6541 @@ -42635,7 +42635,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -44695,7 +44695,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\(\*\) AS col1" at position 1 have the 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 @@ -45617,7 +45617,7 @@ SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) # 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\(\*\)\) 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 tab0 AS cor0 query I rowsort @@ -46466,7 +46466,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -47282,7 +47282,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\(\*\) 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 @@ -48648,7 +48648,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\(\*\) 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 @@ -48780,7 +48780,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\(\*\) 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 @@ -52291,7 +52291,7 @@ SELECT DISTINCT col0 + + - ( col0 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ \(\- \(\- 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 "Int64\(\-27\) \+ \(\- \(\- 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 - 27 + - - COUNT ( * ) AS col1, 84 AS col1 FROM tab1 WHERE + + ( col2 ) IS NOT NULL query I rowsort @@ -53723,7 +53723,7 @@ SELECT ALL - - col0 / + + col1 AS col1, - col0 FROM tab2 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -54376,7 +54376,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -58094,7 +58094,7 @@ NULL # 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\(33\) AS col1" at position 0 and "count\(DISTINCT \(\- Int64\(\-65\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(33\) AS col1" at position 0 and "count\(DISTINCT \(\- Int64\(\-65\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + + + 33 col1, + COUNT ( DISTINCT - - 65 ) AS col1 FROM tab2 query I rowsort label-9796 diff --git a/data/sqlite/random/aggregates/slt_good_10.slt b/data/sqlite/random/aggregates/slt_good_10.slt index 55a1125..8c6f97d 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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\) 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 @@ -3528,7 +3528,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - 47 / - col2 BETWEEN NULL AND + col2 + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col0" at position 0 and "count\(\*\) \+ \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( - ( + col2 ) ) AS col0, COUNT ( * ) + - CAST ( - 47 AS INTEGER ) + - 99 AS col0 FROM tab1 AS cor0 query II rowsort label-573 @@ -3590,7 +3590,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\(\*\) AS col2" at position 0 and "Int64\(\-47\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 - Datafusion expected results: @@ -3805,7 +3805,7 @@ SELECT COUNT ( * ) + 88 * + 92 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 query I rowsort @@ -7060,7 +7060,7 @@ SELECT - 72 - - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) \+ \(\- sum\(DISTINCT Int64\(\-91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- sum\(DISTINCT Int64\(\-91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 AS col1, COUNT ( * ) * - COUNT ( * ) + - SUM ( DISTINCT - 91 ) AS col1 FROM tab0 query I rowsort label-1153 @@ -13944,7 +13944,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\(\*\) 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 @@ -22239,7 +22239,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\(\*\) 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 @@ -22598,7 +22598,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\(\*\) 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 @@ -26350,7 +26350,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\(\*\) AS col1" at position 1 have the 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 @@ -26551,7 +26551,7 @@ SELECT ALL - col1 / col1 / col0 AS 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\(\*\)\) AS col1" at position 0 and "max\(\(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(\(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, MAX ( - + col0 ) AS col1 FROM tab1 AS cor0 query I rowsort label-4342 @@ -26772,7 +26772,7 @@ SELECT - + col0 * - col0 - - 43 * - - col2 FROM tab1 AS cor0 # 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\(\*\)\) AS col1" at position 1 have the 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 tab2 AS cor0 query I rowsort label-4374 @@ -28253,7 +28253,7 @@ SELECT + COUNT ( col2 ) + - MIN ( - 31 ), - COUNT ( * ) AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(17\) 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\(\*\) \+ Int64\(17\) 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 ( * ) + + 17 AS col2, 49 col2 FROM tab1 cor0 query I rowsort label-4624 @@ -31483,7 +31483,7 @@ SELECT ALL * FROM tab2, tab0 AS cor0 WHERE - + 4 <> NULL # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col0, 68 AS col0 FROM tab1 WHERE NULL > NULL query I rowsort label-5138 @@ -36582,7 +36582,7 @@ SELECT - col0 FROM tab2 AS cor0 WHERE + col2 > 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 "\(\- max\(tab0\.col0\)\) \+ max\(tab0\.col1\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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\(tab0\.col0\)\) \+ max\(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 - MAX ( col0 ) + MAX ( ALL col1 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -38596,7 +38596,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\(\*\) 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 @@ -39553,7 +39553,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\(\*\) 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 @@ -40735,7 +40735,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\(\*\) AS col2" at position 1 have the 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 @@ -43720,7 +43720,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\(\*\) AS col1" at position 1 have the 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 @@ -45242,7 +45242,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\(\*\) AS col1" at position 1 have the 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 @@ -54514,7 +54514,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\(\*\) \* 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 @@ -56136,7 +56136,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\(\*\) 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 @@ -56147,7 +56147,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\(\*\) 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 @@ -59482,7 +59482,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\(\*\) 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 ea3d833..884ace1 100644 --- a/data/sqlite/random/aggregates/slt_good_100.slt +++ b/data/sqlite/random/aggregates/slt_good_100.slt @@ -759,7 +759,7 @@ SELECT * FROM tab0 WHERE - ( col1 ) * - 6 + - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 query I rowsort @@ -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\(99\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -7823,7 +7823,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\(\*\) \* count\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -8433,7 +8433,7 @@ SELECT ALL COUNT ( ALL col0 ) / - 30 AS col0 FROM tab0 AS cor0 # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 38 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-1384 @@ -9666,7 +9666,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\(\*\) 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 @@ -16082,7 +16082,7 @@ 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\(\*\)\) 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 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -19967,7 +19967,7 @@ SELECT DISTINCT + 34 AS col2, col0 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 258 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(61\) \+ max\(\(\- \(\- tab2\.col0\)\)\) 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\(\*\) \* Int64\(61\) \+ max\(\(\- \(\- tab2\.col0\)\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + 61 + + MAX ( - ( - col0 ) ) col0, 66 AS col0 FROM tab2 query I rowsort @@ -24697,7 +24697,7 @@ SELECT 75 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) / 91 AS col0 FROM tab1 cor0 query I rowsort @@ -26277,7 +26277,7 @@ SELECT - MIN ( DISTINCT - 50 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 54 -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\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 64 AS col0, - COUNT ( * ) * - 18 AS col0 FROM tab1 cor0 query I rowsort @@ -27818,7 +27818,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\(\*\) AS col1" at position 1 have the 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 @@ -29342,7 +29342,7 @@ SELECT * FROM tab2 WHERE NULL IN ( - 47, - col0 - + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab1 query II rowsort @@ -29537,7 +29537,7 @@ SELECT DISTINCT + - 92 / + col2 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 * + 58 * + + col1 NOT IN ( - 73, + col1 + - col1 ) query I rowsort @@ -35312,7 +35312,7 @@ SELECT ALL - col1 + - + col2 AS col1 FROM tab2 AS cor0 # 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\(\*\)\)\) 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 AS cor0 query II rowsort label-5810 @@ -38152,7 +38152,7 @@ SELECT ALL - - ( - - COUNT ( * ) ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) \* \(\- 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\(4\)\) \* \(\- 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 - + 4 * - COUNT ( * ) AS col1, + 75 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL query I rowsort @@ -44991,7 +44991,7 @@ SELECT + 46 / col2 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 252 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(84\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(84\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 9 AS col2, 84 * - - COUNT ( * ) AS col2 FROM tab0 query II rowsort @@ -49948,7 +49948,7 @@ SELECT ALL COUNT ( * ) * - + 68 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 264 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- Int64\(\-22\)\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-11\) \+ \(\- Int64\(53\)\) \* \(\- count\(DISTINCT 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\(12\) \* \(\- Int64\(\-22\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-11\) \+ \(\- Int64\(53\)\) \* \(\- count\(DISTINCT Int64\(8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + 12 ) * - - 22 AS col0, + COUNT ( * ) + - 11 + - + 53 * - COUNT ( DISTINCT + ( + 8 ) ) AS col0 FROM tab0 AS cor0 query I rowsort label-8210 @@ -52402,7 +52402,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\(\*\) AS col1" at position 1 have the 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 e96b99d..b63ed25 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\(\*\) 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 - Datafusion expected results: @@ -5162,7 +5162,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\(\*\) 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 @@ -6223,7 +6223,7 @@ SELECT DISTINCT - 3, + 15 + COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- 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\(\*\)\) \+ \(\- 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 DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col0, - 91 AS col0 FROM tab0 cor0 query I rowsort @@ -11841,7 +11841,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -14797,7 +14797,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\(95\)\) \* \(\- Int64\(\-46\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -16964,7 +16964,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\(\*\) AS col0" at position 1 have the 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 @@ -17385,7 +17385,7 @@ SELECT ALL - COUNT ( DISTINCT col2 ) AS col0, COUNT ( 27 ) AS col1 FROM tab0 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \* max\(DISTINCT 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(DISTINCT Int64\(58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( * ) * + MAX ( DISTINCT + + 58 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: @@ -18157,7 +18157,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\(\*\) AS col1" at position 1 have the 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 @@ -18849,7 +18849,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\(\*\) 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 @@ -20971,7 +20971,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -21988,7 +21988,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -22402,7 +22402,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\(\*\) AS col0" at position 1 have the 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 @@ -24738,7 +24738,7 @@ SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ count\(tab0\.col1\) AS col1" at position 0 and "Int64\(61\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(tab0\.col1\) 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 24 + COUNT ( ALL col1 ) AS col1, 61 * + - COUNT ( * ) AS col1 FROM tab0 query I rowsort label-4054 @@ -28142,7 +28142,7 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= 62 # 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\(\*\)\) AS col1" at position 0 and "count\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( + col1 ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -32533,7 +32533,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\(\*\) 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 @@ -33510,7 +33510,7 @@ SELECT + + 26 * - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col2" at position 0 and "count\(DISTINCT cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 0 and "count\(DISTINCT cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, COUNT ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -33530,7 +33530,7 @@ SELECT ALL * FROM tab1 WHERE + - col2 * - col1 + - - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "CAST\(Int64\(74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(Int64\(74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, ( + + ( CAST ( + 74 AS INTEGER ) ) ) AS col0 FROM tab1 query I rowsort @@ -33607,7 +33607,7 @@ SELECT + 32 FROM tab0 cor0 WHERE 52 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\(\*\)\) AS col0" at position 0 and "count\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col0, + COUNT ( + col0 ) AS col0 FROM tab0 AS cor0 query II rowsort @@ -33726,7 +33726,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\(\*\) 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 @@ -33951,7 +33951,7 @@ SELECT + + MAX ( DISTINCT + col0 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 855 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- sum\(Int64\(\-95\)\)\) 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\(\*\) \* \(\- sum\(Int64\(\-95\)\)\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - SUM ( ALL - 95 ) AS col0, + 85 AS col0 FROM tab0 AS cor0 query III rowsort @@ -36837,7 +36837,7 @@ 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\(\*\)\) AS col2" at position 1 have the 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 tab2 AS cor0 query I rowsort label-6046 @@ -38829,7 +38829,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\(\*\) 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 @@ -49319,7 +49319,7 @@ SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 1 AND + + col0 * + 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ), - COUNT ( * ) FROM tab0 WHERE 73 BETWEEN - 44 + - col1 AND NULL query I rowsort @@ -51149,7 +51149,7 @@ SELECT + - 88 * + COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -228 -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\(\-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\(\-84\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 84 AS col2, COUNT ( * ) * - 76 AS col2 FROM tab2 AS cor0 query II rowsort label-8370 @@ -52319,7 +52319,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\(\*\) 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 @@ -53104,7 +53104,7 @@ SELECT ALL 1 / + COUNT ( ALL col0 ) FROM tab0 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\(\*\) / \(\- count\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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 AS cor0 query I rowsort @@ -53127,7 +53127,7 @@ SELECT + col0 col1, 55 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 query III rowsort @@ -54067,7 +54067,7 @@ SELECT DISTINCT - 97 AS col0 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 "min\(tab0\.col2\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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 I rowsort label-8861 diff --git a/data/sqlite/random/aggregates/slt_good_102.slt b/data/sqlite/random/aggregates/slt_good_102.slt index e56ddb5..a971806 100644 --- a/data/sqlite/random/aggregates/slt_good_102.slt +++ b/data/sqlite/random/aggregates/slt_good_102.slt @@ -2690,7 +2690,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\(\*\) AS col0" at position 1 have the same 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 @@ -6087,7 +6087,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -6765,7 +6765,7 @@ SELECT * FROM tab2 WHERE NOT - 35 / + col0 * col1 * + col2 - - col2 * 36 IS NOT # 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\(\*\)\) AS col2" at position 1 have the 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 tab0 query I rowsort @@ -10866,7 +10866,7 @@ SELECT col0, + col2 + - 80 FROM tab0 # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 + 0 AS col0, - COUNT ( * ) col0 FROM tab1 query II rowsort label-1776 @@ -13600,7 +13600,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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(93\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -18262,7 +18262,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\(\*\) AS col0" at position 1 have the 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 @@ -19547,7 +19547,7 @@ SELECT - COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) # 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 col0" at position 0 and "count\(\*\) \- Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 30 ) col0, COUNT ( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-3196 @@ -23226,7 +23226,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\(\*\) AS col2" at position 1 have the 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 @@ -23869,7 +23869,7 @@ SELECT * FROM tab0 WHERE 53 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \+ \(\- count\(\*\)\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ Int64\(28\) \+ 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\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ Int64\(28\) \+ Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 37 + - COUNT ( * ) + + - COUNT ( * ) AS col2, + 51 + 28 + - 96 AS col2 FROM tab2 AS cor0 query I rowsort @@ -23889,7 +23889,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -23910,7 +23910,7 @@ SELECT ALL 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NU # 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\(\*\)\)\)\) 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 ALL - ( - - COUNT ( * ) ) AS col0, + 51 AS col0 FROM tab2 query I rowsort @@ -26112,7 +26112,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -35197,7 +35197,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -36608,7 +36608,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\(\*\) 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 @@ -40842,7 +40842,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\(\*\) 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 @@ -41398,7 +41398,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\(\*\) AS col0" at position 1 have the 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 @@ -54955,7 +54955,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\(\*\) \* 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 @@ -56095,7 +56095,7 @@ SELECT DISTINCT - - col0, 31 AS col0 FROM tab1 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 82 AS col1, - COUNT ( * ) col1 FROM tab0 AS cor0 query I rowsort label-9203 @@ -57101,7 +57101,7 @@ SELECT ALL 76 + + col0 + + + 36 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + ( + + COUNT ( * ) ) FROM tab0 query I rowsort label-9366 @@ -60662,7 +60662,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\(\*\) AS col1" at position 1 have the 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 cf07726..b134298 100644 --- a/data/sqlite/random/aggregates/slt_good_103.slt +++ b/data/sqlite/random/aggregates/slt_good_103.slt @@ -901,7 +901,7 @@ SELECT DISTINCT + 95, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 86 * - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(53\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 DISTINCT - + 53 AS col1, - COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 cor1 query I rowsort label-146 @@ -6411,7 +6411,7 @@ SELECT ALL - col0 * + 53 * 17 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\(\*\)\) AS col0" at position 0 and "\(\- count\(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 "\(\- count\(Int64\(93\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( COUNT ( * ) ) AS col0, - COUNT ( ALL + 93 ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -7471,7 +7471,7 @@ SELECT ALL - col0 * + + 17 FROM tab0 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 79 IS NOT NULL query II rowsort @@ -12137,7 +12137,7 @@ SELECT ALL - col2 / - 27 * - 82 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 ALL + ( + - COUNT ( * ) ) AS col1, 66 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL = + + col0 ) query III rowsort @@ -13260,7 +13260,7 @@ SELECT ALL col0 FROM tab0 AS cor0 WHERE - 34 + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-19\)\) \* count\(CAST\(Int64\(93\) AS Int32\)\) \+ max\(\(\- tab2\.col0\)\) \+ Int64\(\-51\) / count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-19\)\) \* count\(CAST\(Int64\(93\) AS Int32\)\) \+ max\(\(\- tab2\.col0\)\) \+ Int64\(\-51\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 98 AS col1, ( + MAX ( DISTINCT + - 19 ) ) * COUNT ( + CAST ( 93 AS INTEGER ) ) + MAX ( ALL - col0 ) + - 51 / COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort label-2186 @@ -15330,7 +15330,7 @@ SELECT ALL - - 62 * - col0 * - ( + 99 ) * + 51 AS col2 FROM tab1 WHERE col0 IS N # 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\(0\) \+ \(\- Int64\(18\)\) 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\(\*\) \+ Int64\(0\) \+ \(\- Int64\(18\)\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + ( + + 0 ) + - + 18 AS col0, + 9 AS col0 FROM tab2, tab2 AS cor0 query I rowsort label-2532 @@ -16306,7 +16306,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -21941,7 +21941,7 @@ SELECT DISTINCT 22 FROM tab0 AS cor0 WHERE col0 >= NULL AND NOT NULL BETWEEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 184 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- sum\(\(\- Int64\(63\)\)\)\) \+ Int64\(\-8\) AS col0" at position 0 and "\(\- sum\(\(\- cor0\.col0\)\)\) / \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\(63\)\)\)\) \+ Int64\(\-8\) AS col0" at position 0 and "\(\- sum\(\(\- cor0\.col0\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( COUNT ( * ) ) + - SUM ( ALL - + ( + 63 ) ) + - 8 AS col0, - SUM ( + - col0 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-3611 @@ -33065,7 +33065,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\(\*\) AS col0" at position 1 have the 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 @@ -42449,7 +42449,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\(\*\) AS col2" at position 1 have the 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 @@ -43799,7 +43799,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\(\*\) 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 @@ -48665,7 +48665,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(tab2\.col0\) \* CAST\(min\(tab2\.col2\) AS Int32\) \- count\(\*\) / Int64\(73\) AS col1" at position 0 and "Int64\(99\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(tab2\.col0\) \* CAST\(min\(tab2\.col2\) AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(73\) AS col1" at position 0 and "Int64\(99\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + AVG ( col0 ) * CAST ( MIN ( + + col2 ) AS INTEGER ) - + COUNT ( * ) / 73 AS col1, + 99 * - 56 AS col1 FROM tab2 WHERE NOT NULL > NULL query II rowsort @@ -52641,7 +52641,7 @@ SELECT DISTINCT - col0 * - col1 + + 0 * + col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "CAST\(avg\(DISTINCT Int64\(82\)\) AS Int32\) \* \(\- count\(\*\)\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "CAST\(avg\(DISTINCT Int64\(82\)\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 AS col1, + CAST ( + AVG ( DISTINCT 82 ) AS INTEGER ) * - COUNT ( * ) + 96 AS col1 FROM tab2 query I rowsort @@ -53591,7 +53591,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -55139,7 +55139,7 @@ SELECT DISTINCT ( - + col1 ) / col0 * - col2 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "count\(\*\) / 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\(1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 1 AS col0, + COUNT ( * ) / + 46 AS col0 FROM tab1 query III rowsort @@ -55345,7 +55345,7 @@ SELECT * FROM tab0 WHERE NOT - + col0 * - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- tab0\.col0\)\) AS col0" at position 0 and "count\(\*\) \+ count\(\*\) \* 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 "max\(\(\- tab0\.col0\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + MAX ( + - col0 ) ) col0, COUNT ( * ) + + COUNT ( * ) * + - 93 AS col0 FROM tab0 query I rowsort label-9124 @@ -55370,7 +55370,7 @@ SELECT ALL - - col0 col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL ) # 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 "Int64\(3\) AS col2" at position 0 and "Int64\(98\) \* \(\- \(\- count\(\*\)\)\) \+ \(\- 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\(3\) AS col2" at position 0 and "Int64\(98\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 AS col2, 98 * - - COUNT ( * ) + - - 15 AS col2 FROM tab1 query I rowsort @@ -59757,7 +59757,7 @@ SELECT DISTINCT col1 * + 16 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -270 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- min\(DISTINCT Int64\(90\)\)\) 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\(\*\) \* \(\- min\(DISTINCT Int64\(90\)\)\) 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 ( * ) * - MIN ( DISTINCT + 90 ) AS col1, - 2 AS col1 FROM tab2 query I rowsort label-9859 @@ -60204,7 +60204,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\(\*\) 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 e512635..88c34f2 100644 --- a/data/sqlite/random/aggregates/slt_good_104.slt +++ b/data/sqlite/random/aggregates/slt_good_104.slt @@ -4821,7 +4821,7 @@ SELECT + + COUNT ( * ) + + 15 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- Int64\(20\)\) AS col1" at position 0 and "min\(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\(\*\)\) \+ \(\- Int64\(20\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + + COUNT ( * ) ) + - + 20 AS col1, + MIN ( DISTINCT + 52 ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -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\(\*\) AS col0" at position 1 have the 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 @@ -13407,7 +13407,7 @@ SELECT DISTINCT - 9 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 10 # Datafusion - Expected - -3 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col2\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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 col1" at 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 ( + col2 ) AS col1, + ( + - COUNT ( * ) ) AS col1, + 96 FROM tab0 query I rowsort @@ -21855,7 +21855,7 @@ SELECT col0 + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(47\) AS col1" at position 0 and "Int64\(76\) \+ 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\(\*\)\) \- Int64\(47\) AS col1" at position 0 and "Int64\(76\) \+ Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - 47 AS col1, 76 + - 95 AS col1 FROM tab2 AS cor0 query III rowsort @@ -25038,7 +25038,7 @@ SELECT - + 2, col2 FROM 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\(\*\)\) 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 - COUNT ( * ) AS col1, + 67 AS col1 FROM tab0 AS cor0 query I rowsort label-4139 @@ -27250,7 +27250,7 @@ SELECT ALL col0 * col2 + - col0 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\(\*\)\) 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 FROM tab2 AS cor0 query I rowsort label-4507 @@ -31819,7 +31819,7 @@ SELECT 99 col2, - col0 * + 51 * col1 FROM tab2 WHERE NOT + 65 * - - col1 IS NOT # Datafusion - Expected - 75 # Datafusion - Expected - 6 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 and "\(\- Int64\(54\)\) 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 1 and "\(\- Int64\(54\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - 75 AS INTEGER ), COUNT ( * ) + + - ( - COUNT ( * ) ) AS col0, ( - + 54 ) AS col0 FROM tab2 query II rowsort label-5259 @@ -37093,7 +37093,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\(\*\) 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 @@ -41476,7 +41476,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\(\*\) 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 @@ -47471,7 +47471,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\(\*\) 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 @@ -50062,7 +50062,7 @@ SELECT DISTINCT + COUNT ( * ) * COUNT ( col0 ) AS col1 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\(8\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(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 + COUNT ( + ( + 8 ) ) col0, - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Types were automatically converted from: @@ -51186,7 +51186,7 @@ SELECT ALL - col2 AS col0, 30 * col1 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -63 -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\(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\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 40 AS col0, COUNT ( * ) - + + 65 AS col0 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - 14 + + col2 query I rowsort @@ -58649,7 +58649,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\(\*\) AS col2" at position 1 have the 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 c9655e2..0adc046 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\(\*\) AS col2" at position 1 have the 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 @@ -5369,7 +5369,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\(\*\) AS col2" at position 1 have the 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 @@ -6213,7 +6213,7 @@ SELECT DISTINCT + - MAX ( col0 ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 FROM tab1 cor0 WHERE NULL IS NOT NULL query I rowsort @@ -19165,7 +19165,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\(\*\) 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 @@ -26044,7 +26044,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\(\*\) AS col1" at position 1 have 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 @@ -26803,7 +26803,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\(\*\) AS col0" at position 1 have 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 @@ -28464,7 +28464,7 @@ SELECT col0 / col2 * + - col1 AS col0 FROM tab2 cor0 # 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\(\*\)\)\) 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 "\(\- \(\- 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 - - COUNT ( * ) AS col1, 47 AS col1 FROM tab0 AS cor0 query I rowsort label-4669 @@ -29980,7 +29980,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\(\*\) 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 @@ -33604,7 +33604,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\(\*\) 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 @@ -35206,7 +35206,7 @@ SELECT + MAX ( - - 4 ) col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT cor0\.col0\) AS col2" at position 0 and "Int64\(77\) / \(\- count\(\*\)\) AS col2" at position 1 have 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 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 + ( + MIN ( DISTINCT col0 ) ) AS col2, 77 / - COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -36798,7 +36798,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\(\*\) AS col2" at position 0 and "\(\- avg\(Int64\(61\)\)\) \* 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 @@ -39485,7 +39485,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\(\*\) AS col0" at position 0 and "Int64\(\-61\) \+ Int64\(\-33\) \* \(\- Int64\(46\)\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -39623,7 +39623,7 @@ SELECT ALL + col1 - - + col2 * + - col0 AS col2, 98 col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(20\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \* 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 "min\(Int64\(20\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(\(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( + MIN ( + 20 ) ) AS col1, - COUNT ( * ) * + + MIN ( + - col2 ) AS col1 FROM tab1 AS cor0 query I rowsort label-6497 @@ -44855,7 +44855,7 @@ SELECT DISTINCT SUM ( + - 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\(\*\)\) AS col1" at position 0 and "count\(\(\- 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 "count\(\(\- tab0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( + - col2 ) AS col1 FROM tab0 query III rowsort @@ -50191,7 +50191,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\(\*\) AS col2" at position 1 have the 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 @@ -56224,7 +56224,7 @@ SELECT 31 + - col0 * - 11 * + - 24 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 225 -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\(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\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 40 AS col1, - COUNT ( * ) * - + 75 AS col1 FROM tab2 query II rowsort label-9234 @@ -59436,7 +59436,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -75 -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\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - - 91 ) AS col0, COUNT ( * ) * ( - 25 ) AS col0 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 159ec6b..2ae31b7 100644 --- a/data/sqlite/random/aggregates/slt_good_106.slt +++ b/data/sqlite/random/aggregates/slt_good_106.slt @@ -1909,7 +1909,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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: @@ -4165,7 +4165,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -6112,7 +6112,7 @@ SELECT ALL col2 + 55 FROM tab1 # 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\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col1, 45 AS col1 FROM tab1 query I rowsort label-1009 @@ -12087,7 +12087,7 @@ SELECT + col1 AS col1, - 99 AS col1 FROM tab0 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\(\*\)\) 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 AS col1 FROM tab0 AS cor0 query I rowsort label-2002 @@ -14920,7 +14920,7 @@ SELECT ALL + + COUNT ( * ) / 4, - ( + 72 ) AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \+ Int64\(76\) 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\(\*\)\)\) \+ Int64\(76\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) + + 76 AS col0, 69 AS col0 FROM tab2 AS cor0 query I rowsort @@ -25584,7 +25584,7 @@ SELECT DISTINCT 19 + 72 AS col0, col0 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(9\) AS col0" at position 0 and "count\(\*\) / 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\(\*\) \- Int64\(9\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) - 9 AS col0, COUNT ( * ) / + 84 AS col0 FROM tab0 query I rowsort @@ -29015,7 +29015,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\(\*\) 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 @@ -31785,7 +31785,7 @@ SELECT DISTINCT 40 * - col1 - + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -171 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-57\) AS col2" at position 0 and "Int64\(7\) / 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\(\*\) \* Int64\(\-57\) AS col2" at position 0 and "Int64\(7\) / Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 57 AS col2, 7 / + 51 AS col2 FROM tab1 AS cor0 query I rowsort label-5248 @@ -34310,7 +34310,7 @@ SELECT col0 * - + col0 - 1 + - + 8 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 ( ALL + col0 ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -37548,7 +37548,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\(\*\) 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 @@ -51880,7 +51880,7 @@ SELECT COUNT ( * ) / - ( + ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 query III rowsort @@ -53215,7 +53215,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\(\*\) 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 e360e1f..22e112c 100644 --- a/data/sqlite/random/aggregates/slt_good_107.slt +++ b/data/sqlite/random/aggregates/slt_good_107.slt @@ -3753,7 +3753,7 @@ SELECT MAX ( ALL + - 8 ) 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 DISTINCT 1 AS col1, - COUNT ( * ) AS col1 FROM tab2 cor0 query I rowsort @@ -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\(\*\) AS col0" at position 1 have the 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\(\*\)\) \+ count\(\*\) AS col2" at position 1 have the same 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\(\*\) 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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -13826,7 +13826,7 @@ SELECT ALL + col0 + - 8 + + + col1 + 65 * + + 76 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "count\(\*\) \+ 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\(11\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 AS col2, + COUNT ( * ) + + 76 AS col2 FROM tab0 AS cor0 query III rowsort label-2299 @@ -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\(\*\) AS col0" at position 1 have the 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 @@ -16018,7 +16018,7 @@ SELECT 56 * + COUNT ( * ) + - 81 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(50\) \* max\(DISTINCT 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 "Int64\(50\) \* max\(DISTINCT cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col1, + 50 * ( MAX ( DISTINCT + + col2 ) ) AS col1 FROM tab0 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\(\*\) AS col1" at position 1 have the 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 @@ -23309,7 +23309,7 @@ SELECT * FROM tab1 WHERE NOT NULL < - col0 / 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. 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 tab0 AS cor0 query I rowsort label-3885 @@ -28157,7 +28157,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\(\*\) AS col2" at position 1 have the 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 @@ -32518,7 +32518,7 @@ SELECT DISTINCT - CAST ( CAST ( - ( + col2 ) AS INTEGER ) AS INTEGER ) FROM tab2 # 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 "Int64\(\-1\) AS col1" at position 0 and "count\(\*\) \* Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 1 AS col1, COUNT ( * ) * + 16 AS col1 FROM tab2 AS cor0 query I rowsort @@ -33516,7 +33516,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\(\*\) 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 @@ -44482,7 +44482,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\(\*\) AS col2" at position 1 have the 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 @@ -44548,7 +44548,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ( * ) col2 FROM tab0 AS cor0 query II rowsort label-7425 @@ -46904,7 +46904,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 @@ -50697,7 +50697,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\(\*\) AS col0" at position 1 have the 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 @@ -53035,7 +53035,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\(\*\) 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 @@ -55924,7 +55924,7 @@ SELECT - 79 * + CAST ( - - ( - ( + + 13 ) ) AS INTEGER ) * - - col0 AS col2 FROM # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 FROM tab2 AS cor0 query I rowsort label-9316 diff --git a/data/sqlite/random/aggregates/slt_good_108.slt b/data/sqlite/random/aggregates/slt_good_108.slt index 3d0b021..82f45ba 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\(\*\) \* \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -1609,7 +1609,7 @@ SELECT col0 AS col0, 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) FROM tab0 query I rowsort label-265 @@ -2259,7 +2259,7 @@ SELECT DISTINCT * FROM tab2 WHERE + - col0 * col0 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - -85 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col1\) AS col1" at position 0 and "\(\- \(\- 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 "max\(cor0\.col1\) 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 + MAX ( ALL + + col1 ) AS col1, - 85 col0, - - COUNT ( * ) AS col1 FROM tab1 AS cor0 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\(\-23\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ Int64\(\-14\) \* \(\- count\(\*\)\) \- \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -10152,7 +10152,7 @@ SELECT 78 / + 28 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab1 query I rowsort label-1658 @@ -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\(\*\) 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 @@ -18246,7 +18246,7 @@ SELECT - - 11 * col1 FROM tab0 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\(\*\)\) 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 ALL - COUNT ( * ) AS col0, + 2 AS col0 FROM tab2 query I rowsort @@ -20042,7 +20042,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(3\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(3\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 AS col2, 3 + - + COUNT ( * ) col2 FROM tab2 query III rowsort @@ -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\(\*\) AS col2" at position 1 have the same name\. 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 @@ -26649,7 +26649,7 @@ SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "min\(DISTINCT 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\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "min\(DISTINCT Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - + COUNT ( * ) AS col2, MIN ( DISTINCT + ( 93 ) ) AS col2 FROM tab1 query III rowsort @@ -27243,7 +27243,7 @@ SELECT + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 # 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\(\*\)\) 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 FROM tab0 AS cor0 WHERE NOT + 65 IS NULL query I rowsort label-4461 @@ -30454,7 +30454,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\(\*\) 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 @@ -32213,7 +32213,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\(\*\) AS col0" at position 1 have the 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 @@ -36698,7 +36698,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\(\*\) 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 @@ -41747,7 +41747,7 @@ SELECT DISTINCT - col0 + col2 * + col0 + 86 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(6\) \+ Int64\(15\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(6\) \+ Int64\(15\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, 6 + + + 15 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-6855 @@ -42744,7 +42744,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 68 col2, CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 query I rowsort @@ -43397,7 +43397,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\(\*\) AS col0" at position 1 have the 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 @@ -47615,7 +47615,7 @@ SELECT DISTINCT + ( - 69 ) * COUNT ( * ) + + 29 AS col1 FROM tab2, tab0 AS cor0 # 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\(\*\)\) AS col1" at position 1 have the 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 FROM tab0 query I rowsort label-7822 @@ -48266,7 +48266,7 @@ SELECT ALL * FROM tab2 WHERE NOT + + 1 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "\(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\*\)\) \* \(\- 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 ( * ) * + - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: @@ -51195,7 +51195,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\(\*\) AS col1" at position 1 have the 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 0545667..f3dc56d 100644 --- a/data/sqlite/random/aggregates/slt_good_109.slt +++ b/data/sqlite/random/aggregates/slt_good_109.slt @@ -3254,7 +3254,7 @@ SELECT + SUM ( ALL + - col1 ) * + COUNT ( DISTINCT - 73 ) FROM tab1 AS cor0 # Datafusion - Expected - 199 # Datafusion - Expected - -3 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 1 and "Int64\(39\) 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\(39\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( DISTINCT + col0 ), - COUNT ( * ) AS col0, 39 col0 FROM tab0 AS cor0 query I rowsort label-531 @@ -7457,7 +7457,7 @@ SELECT - 29 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) # 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\(\-37\) \+ Int64\(\-30\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-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 - 37 + - 30 col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -7503,7 +7503,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\(\*\) AS col2" at position 1 have 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 @@ -14354,7 +14354,7 @@ SELECT DISTINCT - - 62 / - col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- tab0\.col1\)\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- tab0\.col1\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( ALL - + col1 ) AS col1, COUNT ( * ) * - 60 AS col1 FROM tab0 query I rowsort label-2365 @@ -14497,7 +14497,7 @@ SELECT DISTINCT col1 * ( - 4 ), + 49 * - ( col1 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(1\)\)\) \* Int64\(\-26\) AS col2" at position 0 and "count\(\*\) \* 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 "sum\(\(\- Int64\(1\)\)\) \* Int64\(\-26\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + SUM ( - + 1 ) * - 26 AS col2, COUNT ( * ) * - 69 col2 FROM tab0 query III rowsort @@ -14943,7 +14943,7 @@ SELECT * FROM tab2 WHERE NOT ( NOT col0 + col0 - - + ( + 5 ) IS NOT 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\(\*\)\) 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 FROM tab1 query I rowsort @@ -17378,7 +17378,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\(\*\) AS col2" at position 1 have the 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 @@ -18732,7 +18732,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "CAST\(Int64\(\-14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(Int64\(\-14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, + CAST ( - 14 AS INTEGER ) AS col2 FROM tab0 WHERE NOT col2 BETWEEN - 14 / + col1 + col2 AND NULL query I rowsort label-3091 @@ -22575,7 +22575,7 @@ SELECT - COUNT ( * ), 25 + + 64 AS col1 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\(\*\)\) AS col2" at position 1 have the 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 query I rowsort @@ -26447,7 +26447,7 @@ SELECT + ( - 49 ) + - - col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 688 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-8\) \* 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\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-8\) \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0, - 8 * - 86 AS col0 FROM tab1 query III rowsort @@ -28489,7 +28489,7 @@ SELECT col0 * + 48 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 3 # Datafusion - Expected - -9317 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\)" at position 0 and "count\(\*\)" at position 2 have the same name\. Consider aliasing \("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 "count\(Int64\(1\)\) AS count\(\*\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), SUM ( ALL - + col2 ) * + 77 AS col0, COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL query II rowsort @@ -32624,7 +32624,7 @@ SELECT DISTINCT + - ( - - 42 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 153 -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\(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\(16\) 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 + 16 AS col1, COUNT ( * ) * 51 AS col1 FROM tab1 AS cor0 query II rowsort label-5409 @@ -33243,7 +33243,7 @@ SELECT - 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-31\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-31\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MIN ( DISTINCT - 31 ) AS col1, COUNT ( * ) * + - 36 AS col1 FROM tab1 AS cor0 query III rowsort @@ -34030,7 +34030,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\(\*\) AS col2" at position 0 and "Int64\(41\) \+ count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -40129,7 +40129,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\(\*\) 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 @@ -42326,7 +42326,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\(\*\) 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 @@ -46136,7 +46136,7 @@ SELECT + COUNT ( - 83 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col2" at position 0 and "count\(\*\) / Int64\(\-13\) \- Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-13\) \- Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( ( + + 60 ) ) AS col2, COUNT ( * ) / - 13 - 81 AS col2 FROM tab1 AS cor0 query I rowsort @@ -50081,7 +50081,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\(\*\)\) \* min\(DISTINCT Int64\(56\)\) \* count\(\*\) \- count\(\*\) AS col1" at position 0 and "Int64\(\-35\) / count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -54318,7 +54318,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\(\*\) AS col2" at position 1 have the 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 95e3341..b9dd3ff 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\(\*\) 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\(\*\) AS Int32\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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\(\*\) AS col0" at position 1 have the 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 @@ -6023,7 +6023,7 @@ SELECT DISTINCT col2, - 66 FROM tab1 # 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\(\*\)\) AS col0" at position 1 have the 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 ( * ) col0 FROM tab1 query I rowsort @@ -9058,7 +9058,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\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 @@ -11731,7 +11731,7 @@ SELECT + MAX ( - 23 ) FROM tab2 # Datafusion - Expected - -3 # Datafusion - Expected - -1593 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \* Int64\(\-81\) / \(\- count\(\*\)\) AS col1" at position 1 and "\(\- \(\- 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\(\-59\) \* Int64\(\-81\) / \(\- 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 - COUNT ( * ) AS col0, - 59 * - 81 / - + COUNT ( * ) AS col1, - - COUNT ( * ) col1 FROM tab1 query II rowsort label-1922 @@ -13439,7 +13439,7 @@ SELECT 58 - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 243 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* Int64\(81\) 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\(\*\)\)\) \* Int64\(81\) AS col2" at position 0 and "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) * + 81 AS col2, - 1 AS col2 FROM tab2 AS cor0 query I rowsort label-2206 @@ -16869,7 +16869,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\(\*\) AS col2" at position 1 have the 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 @@ -18607,7 +18607,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\(\*\) AS col2" at position 1 have the 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 @@ -18997,7 +18997,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -261 -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\(\-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\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 82 AS col0, + COUNT ( * ) * - 87 col0 FROM tab2 AS cor0 query I rowsort @@ -19692,7 +19692,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\(\*\) AS col1" at position 1 have the 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 @@ -20344,7 +20344,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\(\*\) AS col1" at position 0 and "CAST\(\(\- 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 @@ -24811,7 +24811,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\(\*\) AS col0" at position 1 have the 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 @@ -28513,7 +28513,7 @@ SELECT ALL col1 / - - 24 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -113 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(97\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(97\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) - + 97 + - 19 AS col0, + 70 col0 FROM tab2 AS cor0 query I rowsort @@ -32995,7 +32995,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -33101,7 +33101,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -35472,7 +35472,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\(\*\)\) AS col0" at position 0 and "\(\- CAST\(count\(\*\) AS Int32\)\) \+ count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -35602,7 +35602,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\(\*\) AS col1" at position 1 have the 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 @@ -39883,7 +39883,7 @@ SELECT ALL + - SUM ( + + col1 ) AS col0 FROM tab2 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\(\*\)\) 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 - COUNT ( * ) AS col0, + MIN ( col0 ) AS col0 FROM tab0 cor0 query I rowsort @@ -41147,7 +41147,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\(\*\) 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 @@ -48029,7 +48029,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\(\*\)\) AS col1" at position 0 and "sum\(DISTINCT cor0\.col0\) \* Int64\(\-13\) \* Int64\(11\) \* Int64\(95\) \- count\(\*\) \+ Int64\(37\) / count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -48351,7 +48351,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -48375,7 +48375,7 @@ SELECT + + col2 - + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col # Datafusion - Datafusion expected results: # Datafusion - Expected - 2016 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(cor0\.col2\)\) \* Int64\(\-21\) AS col0" at position 0 and "count\(\*\) \+ count\(DISTINCT \(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(cor0\.col2\)\) \* Int64\(\-21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(DISTINCT \(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MAX ( col2 ) * - 21 AS col0, + COUNT ( * ) + + ( COUNT ( DISTINCT - ( 20 ) ) ) col0 FROM tab1 AS cor0 query I rowsort label-7955 @@ -48988,7 +48988,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\(\*\) AS col1" at position 1 have the 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 @@ -54446,7 +54446,7 @@ SELECT ALL + + col2, col2 * - col1 AS col0 FROM tab0 cor0 # 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\(\*\)\) AS col2" at position 0 and "max\(DISTINCT cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(DISTINCT cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col2, MAX ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -54875,7 +54875,7 @@ SELECT + 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 FROM tab1 query I rowsort label-9026 @@ -55573,7 +55573,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\(\*\) 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: @@ -55946,7 +55946,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col1 + + - 21 + - - col1 = - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 query I rowsort @@ -59076,7 +59076,7 @@ SELECT ALL COUNT ( * ), + 79 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -243 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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 "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 - ( - 27 ) * - COUNT ( * ) AS col2, COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0 query III rowsort @@ -60488,7 +60488,7 @@ SELECT * FROM tab2 WHERE NOT - 0 > col2 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col2, + 0 AS col2 FROM tab1 query I rowsort label-9947 diff --git a/data/sqlite/random/aggregates/slt_good_110.slt b/data/sqlite/random/aggregates/slt_good_110.slt index c33ca49..48367b0 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\(\*\) AS col1" at position 1 have the 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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -7836,7 +7836,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\(\*\) 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 @@ -8062,7 +8062,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\(\*\) 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 @@ -16177,7 +16177,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -20520,7 +20520,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\(\*\) AS col2" at position 1 have the 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 @@ -26251,7 +26251,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\(\*\) 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 @@ -27597,7 +27597,7 @@ SELECT + + MIN ( + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 query I rowsort label-4568 @@ -31658,7 +31658,7 @@ SELECT col1 * - col2 + - + ( - 3 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "count\(\*\) \* \(\- min\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\) / Int64\(29\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\) / Int64\(29\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col0, COUNT ( * ) * - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) / + + ( + 29 ) * - 45 AS col0 FROM tab2 AS cor0 query I rowsort label-5251 @@ -32028,7 +32028,7 @@ SELECT - ( 8 ) col2, SUM ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE + col0 IS N # 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 "count\(\*\) \* max\(\(\- cor0\.col0\)\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* max\(\(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + + ( MAX ( - col0 ) ) AS col2, + 64 col2 FROM tab1 AS cor0 WHERE + col2 + - + col0 IS NULL query I rowsort @@ -43646,7 +43646,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\(\*\) AS col2" at position 1 have the same name\. 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 @@ -56731,7 +56731,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\(\*\) 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 @@ -58931,7 +58931,7 @@ SELECT ALL + col1 * + + 30 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43740 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) \* \(\- sum\(Int64\(\-60\)\)\) 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\(\*\)\) \* \(\- sum\(Int64\(\-60\)\)\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - SUM ( ALL - 60 ) AS col1, - 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-9770 diff --git a/data/sqlite/random/aggregates/slt_good_111.slt b/data/sqlite/random/aggregates/slt_good_111.slt index d772141..d99e3d7 100644 --- a/data/sqlite/random/aggregates/slt_good_111.slt +++ b/data/sqlite/random/aggregates/slt_good_111.slt @@ -2081,7 +2081,7 @@ SELECT 37 + - + COUNT ( * ) * + + 80 + - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -126 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-56\) \+ Int64\(42\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\(\-56\) \+ 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 DISTINCT + COUNT ( * ) * - 56 + + 42 AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 query I rowsort label-332 @@ -6190,7 +6190,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\(\*\) 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: @@ -9044,7 +9044,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 @@ -10309,7 +10309,7 @@ SELECT * FROM tab0 WHERE NOT + ( col0 ) * col2 - + 3 > + ( + - 23 ) + - col1 - c # Datafusion - Datafusion expected results: # Datafusion - Expected - 159 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(53\) AS col1" at position 0 and "max\(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\(\*\) \* Int64\(53\) AS col1" at position 0 and "max\(tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * 53 AS col1, + MAX ( + col0 ) AS col1 FROM tab0 query I rowsort label-1678 @@ -11565,7 +11565,7 @@ SELECT DISTINCT + + 37 FROM tab0 WHERE col2 <= - col2 + - ( col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 5904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(35\) \- \(\- Int64\(28\)\) \+ Int64\(59\) \* \(\- count\(\*\)\) \* 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\(28\) AS col0" at position 0 and "Int64\(35\) \- \(\- Int64\(28\)\) \+ Int64\(59\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 28 AS col0, 35 - - + 28 + 59 * - COUNT ( * ) * - 33 AS col0 FROM tab2 AS cor0 query I rowsort label-1887 @@ -12933,7 +12933,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\(\*\) 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 @@ -20603,7 +20603,7 @@ SELECT DISTINCT - MIN ( DISTINCT + 54 ) * + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10730 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* sum\(CAST\(tab2\.col0 AS Int32\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* sum\(CAST\(tab2\.col0 AS 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 58 * + SUM ( + CAST ( + + col0 AS INTEGER ) ) AS col1, - COUNT ( * ) AS col1 FROM tab2 query II rowsort label-3369 @@ -21202,7 +21202,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\(\*\) 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 @@ -23986,7 +23986,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\(\*\) AS col0" at position 1 have 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 @@ -32892,7 +32892,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\(\*\) 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: @@ -36049,7 +36049,7 @@ SELECT ALL COUNT ( * ) * - 51 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-5898 @@ -36263,7 +36263,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\(\*\) 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 @@ -36628,7 +36628,7 @@ SELECT ALL 78 - - + col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(55\) 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\(\*\)\) \+ Int64\(55\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 55 AS col0, 71 AS col0 FROM tab2 AS cor0 query III rowsort label-5992 @@ -36722,7 +36722,7 @@ SELECT ALL + + 40 FROM tab2 cor0 WHERE NOT NULL BETWEEN 3 + col1 * col1 + col0 A # 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\(\*\)\) 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 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + - col1 + col1 IN ( - - col0 / - col0, col0 ) query III rowsort @@ -36961,7 +36961,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\(\*\) AS col0" at position 0 and "count\(\*\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 @@ -39039,7 +39039,7 @@ SELECT * FROM tab2 AS cor0 WHERE 45 + ( + + ( + 8 ) ) + - 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - COUNT ( * ) FROM tab2 cor0 query I rowsort @@ -46621,7 +46621,7 @@ SELECT * FROM tab1 AS cor0 WHERE ( - col0 IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- max\(cor0\.col2\) \- \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- max\(cor0\.col2\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) - MAX ( col2 ) - - COUNT ( * ) AS col2, 3 AS col2 FROM tab2 AS cor0 query I rowsort label-7622 @@ -50866,7 +50866,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -51331,7 +51331,7 @@ SELECT + 47 * col1 AS col1 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\(\*\)\) 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 ALL - COUNT ( * ) AS col0, 51 AS col0 FROM tab0 query I rowsort @@ -54666,7 +54666,7 @@ SELECT ALL + col0 + + - 71 + + - CAST ( - - 9 AS INTEGER ) * + col1 + col0 * + c # Datafusion - Datafusion expected results: # Datafusion - Expected - -280 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) / \(\- count\(\*\)\) \- Int64\(\-93\) \* \(\- count\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("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\(\-93\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at 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 ( * ) - - 93 * - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-8937 diff --git a/data/sqlite/random/aggregates/slt_good_112.slt b/data/sqlite/random/aggregates/slt_good_112.slt index b47a6e8..a62c890 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\(\*\) 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 @@ -581,7 +581,7 @@ SELECT DISTINCT - col1 * + - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 query II rowsort @@ -6044,7 +6044,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\(\*\) AS col0" at position 0 and "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 @@ -12701,7 +12701,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\(\*\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -23727,7 +23727,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\(\*\) AS col1" at position 1 have the 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 @@ -25684,7 +25684,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\(\*\) 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 @@ -26378,7 +26378,7 @@ SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE + ( + 0 ) IN ( + 29, - col2 / + col # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(30\) 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\(\*\)\) \+ Int64\(30\) 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 ( * ) + + 30 col2, - 65 AS col2 FROM tab0 query I rowsort label-4348 @@ -31207,7 +31207,7 @@ SELECT - 80 * COUNT ( * ) FROM tab1 AS cor0 # 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\(\*\)\)\) 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 tab0 AS cor0 query I rowsort label-5146 @@ -35915,7 +35915,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\(\*\) AS col0" at position 1 have 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 @@ -39742,7 +39742,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\(\*\) AS col1" at position 1 have the same name\. 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: @@ -40004,7 +40004,7 @@ SELECT ALL + col1 + 26 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > 71 + - col0 # 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 "count\(\*\) \- Int64\(51\) AS col0" at position 0 and "count\(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\(\*\) \- Int64\(51\) AS col0" at position 0 and "count\(Int64\(19\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) - 51 AS col0, + COUNT ( + 19 ) AS col0 FROM tab2 AS cor0 query I rowsort label-6595 @@ -48248,7 +48248,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\(\*\) 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 @@ -51811,7 +51811,7 @@ SELECT COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab2 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 query II rowsort @@ -53769,7 +53769,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\(\*\) AS col2" at position 1 have the 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 @@ -56349,7 +56349,7 @@ SELECT DISTINCT CAST ( - MIN ( ALL + 43 ) AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-26\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-40\) \* \(\- count\(\*\)\) \* max\(Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-26\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 62 * + - 26 + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1, - 40 * - + ( + COUNT ( * ) ) * MAX ( - 6 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_113.slt b/data/sqlite/random/aggregates/slt_good_113.slt index 5c89167..d716768 100644 --- a/data/sqlite/random/aggregates/slt_good_113.slt +++ b/data/sqlite/random/aggregates/slt_good_113.slt @@ -851,7 +851,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\(\*\) 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 @@ -1730,7 +1730,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\(\*\) AS col0" at position 0 and "\(\- Int64\(76\)\) \* Int64\(85\) \+ Int64\(\-72\) \- count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -7132,7 +7132,7 @@ SELECT ALL 55 AS col1 FROM tab0 cor0 # 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\(\*\)\) AS col0" at position 1 have the 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 FROM tab2 AS cor0 query I rowsort @@ -9142,7 +9142,7 @@ SELECT - col2 FROM tab0 AS cor0 WHERE NOT - col0 <> - + col0 # 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\(\*\)\) AS col0" at position 0 and "min\(\(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "min\(\(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, MIN ( ALL - col0 ) AS col0 FROM tab0 query I rowsort @@ -15864,7 +15864,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\(99\)\) \- \(\- count\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -20742,7 +20742,7 @@ SELECT DISTINCT - col0 * + ( 19 ) * col0 * - CAST ( NULL AS INTEGER ) col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab1 query I rowsort @@ -21216,7 +21216,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\(\*\) AS col1" at position 1 have the 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 @@ -28214,7 +28214,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\(\*\) AS col1" at position 1 have the 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 @@ -28905,7 +28905,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\(\*\) AS col0" at position 1 have the 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 @@ -32075,7 +32075,7 @@ SELECT + 19, col0 FROM tab1 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) IS NU # 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\(\-22\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(4\) AS col0" at position 0 and "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 "Int64\(\-22\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(4\) AS col0" at position 0 and "count\(Int64\(82\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 22 * - + ( - COUNT ( * ) ) + 4 AS col0, COUNT ( ALL + 82 ) col0 FROM tab2 AS cor0 query I rowsort label-5279 @@ -32540,7 +32540,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -43 -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\(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\(\-17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 17 AS col0, COUNT ( * ) - + 46 AS col0 FROM tab1 cor0 query I rowsort @@ -33974,7 +33974,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\(\*\) 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 @@ -36854,7 +36854,7 @@ SELECT SUM ( - 60 ) FROM tab0 # 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\(\*\)\) AS col2" at position 0 and "max\(\(\- \(\- cor0\.col1\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(\(\- \(\- cor0\.col1\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, MAX ( - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - + 90 AND + + col0 query III rowsort @@ -44690,7 +44690,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\(\*\) AS col0" at position 0 and "\(\- count\(\(\- cor0\.col2\)\)\) \+ Int64\(51\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -44973,7 +44973,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\(\*\) AS col2" at position 1 have 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 @@ -45506,7 +45506,7 @@ SELECT + col2 * - + col0 + 23 * + 10 FROM tab2 cor0 WHERE + 43 * col2 IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- Int64\(\-47\)\) 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\(\*\)\) \+ \(\- Int64\(\-47\)\) 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 ( * ) + - - 47 AS col2, 72 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 query I rowsort @@ -46444,7 +46444,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\(\*\) 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 @@ -50431,7 +50431,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\(\*\) 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 @@ -51434,7 +51434,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\(\*\) AS col2" at position 1 have the 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 @@ -51570,7 +51570,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\(\*\) \+ count\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -52700,7 +52700,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IN ( - 24 + - + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL query III rowsort @@ -54732,7 +54732,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\(\*\) 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 @@ -56095,7 +56095,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "count\(\*\) / Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 42 AS col1, + COUNT ( * ) / 28 AS col1 FROM tab1 query I rowsort label-9242 diff --git a/data/sqlite/random/aggregates/slt_good_114.slt b/data/sqlite/random/aggregates/slt_good_114.slt index a108f7d..06c9495 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\(\-52\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -2180,7 +2180,7 @@ SELECT - 65 * - - 11 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3280 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(40\)\) \* Int64\(82\) AS col2" at position 0 and "\(\- CAST\(\(\- \(\- CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(40\)\) \* Int64\(82\) AS col2" at position 0 and "\(\- CAST\(\(\- \(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( ALL + 40 ) * 82 AS col2, - CAST ( - - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0 query II rowsort @@ -2764,7 +2764,7 @@ SELECT DISTINCT col2, 46 FROM tab1 # 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\(\*\)\) AS col2" at position 0 and "\(\- count\(DISTINCT \(\- 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 "\(\- count\(DISTINCT \(\- Int64\(8\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - COUNT ( DISTINCT - + 8 ) AS col2 FROM tab1 query I rowsort @@ -2837,7 +2837,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\(\*\) 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 @@ -10109,7 +10109,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\(\*\)\) \+ 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 @@ -10271,7 +10271,7 @@ SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 tab0 query II rowsort @@ -10714,7 +10714,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\(\*\) AS Int32\)" at position 0 and "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 @@ -12791,7 +12791,7 @@ SELECT ALL COUNT ( DISTINCT ( - 53 ) ) AS col2 FROM tab2 AS cor0 WHERE + 33 <> N # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-60\)\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have 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\(\-60\)\) 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 MAX ( - 60 ) AS col2, COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -18248,7 +18248,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\(\*\) \* 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 @@ -18836,7 +18836,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\(\*\) AS col2" at position 1 have the same 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 @@ -21837,7 +21837,7 @@ SELECT ALL + col2 AS col0, - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) FROM tab1 query I rowsort label-3605 @@ -25402,7 +25402,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\(\*\)\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -27588,7 +27588,7 @@ SELECT + MAX ( ALL - - 96 ) * - SUM ( ALL ( + col2 ) ) - - COUNT ( * ) AS col2 F # 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 "count\(\*\) \- Int64\(72\) AS col2" at position 0 and "max\(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\(\*\) \- Int64\(72\) AS col2" at position 0 and "max\(Int64\(59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + + COUNT ( * ) ) - 72 col2, + MAX ( + 59 ) AS col2 FROM tab0 query II rowsort @@ -28836,7 +28836,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -37427,7 +37427,7 @@ SELECT DISTINCT 58 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 396 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) \* Int64\(6\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 - - 66 * + 6 col1, - COUNT ( * ) AS col1 FROM tab0 cor0 query I rowsort label-6200 @@ -39889,7 +39889,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\(\*\)\) \* 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 @@ -40685,7 +40685,7 @@ SELECT - 82 FROM tab0 WHERE NOT - ( col1 ) * 42 NOT BETWEEN + col2 AND - col1 + # Datafusion - Expected - -80 # Datafusion - Expected - 81 # Datafusion - Expected - -51 -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\(\-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\(\-80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-54\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 80 AS col1, + MAX ( + col1 ), COUNT ( * ) - - - 54 AS col1 FROM tab0 query I rowsort @@ -45051,7 +45051,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\(\*\) 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 @@ -45428,7 +45428,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -46227,7 +46227,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\(\*\) AS col0" at position 0 and "count\(\(\- \(\- tab1\.col0\)\)\) / \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -49027,7 +49027,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\(\*\) 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 @@ -52140,7 +52140,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\(\*\) AS col2" at position 1 have the 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 @@ -53938,7 +53938,7 @@ SELECT col2 FROM tab1 WHERE ( NULL IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* count\(\*\) \- \(\- count\(\*\)\) AS col0" at position 0 and "\(\- max\(DISTINCT \(\- tab1\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- max\(DISTINCT \(\- tab1\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) * COUNT ( * ) - - COUNT ( * ) AS col0, - MAX ( DISTINCT - col1 ) AS col0 FROM tab1 query I rowsort label-8929 @@ -54609,7 +54609,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\(\*\) AS col0" at position 1 have the 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 @@ -56896,7 +56896,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\(\*\)\) \* \(\- min\(Int64\(3\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 69eeaa0..590612e 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\(\*\) AS col1" at position 1 have the 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\(\*\) 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: @@ -21560,7 +21560,7 @@ SELECT DISTINCT col1, 69 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -406 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* min\(\(\- cor0\.col2\)\) AS col2" at position 0 and "count\(\*\) \- 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\(7\) \* min\(\(\- cor0\.col2\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 * + MIN ( ALL - + col2 ) AS col2, COUNT ( * ) - + 60 AS col2 FROM tab2 AS cor0 query II rowsort @@ -24272,7 +24272,7 @@ SELECT col0 AS col0, col2 col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(45\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(45\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, + 45 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-4011 @@ -24825,7 +24825,7 @@ SELECT 99 * COUNT ( * ) FROM tab2 cor0 WHERE + col0 + + + col2 NOT IN ( - 3 ) # 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\(\*\)\) 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col0, - MAX ( + col1 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -27910,7 +27910,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -33367,7 +33367,7 @@ SELECT - COUNT ( * ) + - 71, + COUNT ( * ) col2 FROM tab2 # 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 col0" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\*\) \+ \(\- 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 ( * ) + + - COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0 query I rowsort @@ -33645,7 +33645,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\(\*\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(28\)\) \+ count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -33715,7 +33715,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\(\*\) AS col1" at position 1 have the 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 @@ -37018,7 +37018,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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -41363,7 +41363,7 @@ SELECT - 63 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -231 -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\(\*\)\) \* max\(DISTINCT cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col0\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(DISTINCT cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( ALL + col0 ) col2, - COUNT ( * ) * + MAX ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0 query I rowsort label-6852 @@ -50352,7 +50352,7 @@ SELECT ALL + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( + + col0 <> 59 + + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-54\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-54\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 61 + - - COUNT ( * ) AS col1, - 54 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -53073,7 +53073,7 @@ SELECT - COUNT ( DISTINCT - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -186 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-62\) AS col1" at position 0 and "max\(DISTINCT \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-62\) AS col1" at position 0 and "max\(DISTINCT \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 62 AS col1, MAX ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0 query I rowsort label-8787 @@ -56011,7 +56011,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\(\*\) AS col1" at position 1 have the 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: @@ -56443,7 +56443,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have 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 @@ -58309,7 +58309,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= ( - 3 ) # 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\(\*\)\) 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 - COUNT ( * ) AS col0, + 74 AS col0 FROM tab2 AS cor0 query I rowsort label-9662 @@ -59391,7 +59391,7 @@ SELECT + 70 * + 50 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -246 # Datafusion - Expected - -3440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(\-82\)\) AS col0" at position 0 and "Int64\(\-80\) \* 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\(\*\)\) \* \(\- Int64\(\-82\)\) AS col0" at position 0 and "Int64\(\-80\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - - 82 AS col0, - 80 * + 43 AS col0 FROM tab0 query I rowsort label-9840 @@ -60184,7 +60184,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\(\*\) AS col2" at position 1 have 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 @@ -60238,7 +60238,7 @@ SELECT - COUNT ( * ) * - 60 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), ( COUNT ( * ) ) FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_116.slt b/data/sqlite/random/aggregates/slt_good_116.slt index 0b44a30..5815b33 100644 --- a/data/sqlite/random/aggregates/slt_good_116.slt +++ b/data/sqlite/random/aggregates/slt_good_116.slt @@ -1739,7 +1739,7 @@ SELECT DISTINCT - col2 * 80 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - -1497 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col1\)\) AS col2" at position 0 and "min\(Int64\(\-50\)\) \* Int64\(30\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have 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 "min\(Int64\(\-50\)\) \* Int64\(30\) \+ \(\- \(\- 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, MIN ( - 50 ) * + 30 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort @@ -2114,7 +2114,7 @@ SELECT * FROM tab0 WHERE NOT + col1 = 30 * - + col2 + + 77 + - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* count\(\*\) \* \(\- Int64\(12\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(12\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 40 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + 12 AS col0 FROM tab0 query I rowsort label-341 @@ -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\(\*\) AS col1" at position 1 have the 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 @@ -7299,7 +7299,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -11952,7 +11952,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\(\*\) AS col2" at position 1 have the 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 @@ -12052,7 +12052,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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ), + COUNT ( * ), ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 query I rowsort label-2003 @@ -19504,7 +19504,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\(\*\) AS col1" at position 1 have the 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 @@ -28681,7 +28681,7 @@ SELECT ALL + 58 * col2 FROM tab2 # 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\(\*\)\)\) AS col1" at position 0 and "max\(cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "max\(cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col1, + MAX ( col0 ) AS col1 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL query I rowsort @@ -29944,7 +29944,7 @@ SELECT - + col1 - 54 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 187 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- max\(\(\- cor0\.col2\)\)\) \+ Int64\(10\) 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\(\*\) \* \(\- max\(\(\- cor0\.col2\)\)\) \+ Int64\(10\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - MAX ( ALL - col2 ) + + 10 AS col2, 63 AS col2 FROM tab1 AS cor0 query II rowsort label-4951 @@ -37329,7 +37329,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 228 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-76\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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\(\-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 + + SUM ( - ( - 76 ) ) col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -37770,7 +37770,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -39558,7 +39558,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\(\*\) AS col1" at position 1 have the 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 @@ -40521,7 +40521,7 @@ SELECT - COUNT ( * ) / 94 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -123 -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\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) 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 DISTINCT + - 17 AS col2, - COUNT ( * ) * + + 41 AS col2 FROM tab1 AS cor0 query I rowsort @@ -45935,7 +45935,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\(\*\) 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 @@ -48942,7 +48942,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -53601,7 +53601,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\(\*\) AS col1" at position 1 have the 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 @@ -55210,7 +55210,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\(\*\) 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 @@ -56494,7 +56494,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\(\*\) 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 @@ -58643,7 +58643,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\(\*\)\) \* 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 b856540..7b22db6 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\(\*\) AS Int32\) AS col1" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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 @@ -4298,7 +4298,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\(\*\) AS col1" at position 1 have the 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 @@ -4463,7 +4463,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\(\*\) 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 @@ -8505,7 +8505,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\(\*\) AS col1" at position 0 and "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 @@ -9760,7 +9760,7 @@ SELECT DISTINCT ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- 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 FROM tab1 query I rowsort @@ -11288,7 +11288,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -23472,7 +23472,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\(\*\) / count\(\*\) \* count\(\*\) AS col1" at position 1 have the 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: @@ -24156,7 +24156,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\(\*\) 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 @@ -28551,7 +28551,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\(\*\) AS col0" at position 1 have the 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 @@ -29135,7 +29135,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab2\.col1\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have 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\.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 ALL MAX ( DISTINCT + col1 ) AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 query III rowsort @@ -37590,7 +37590,7 @@ SELECT * FROM tab2 WHERE - 17 IN ( - 43 + - - 15 * + - 90 ) # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 query I rowsort label-6218 @@ -43825,7 +43825,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\(\*\) AS col2" at position 1 have 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 @@ -53334,7 +53334,7 @@ SELECT + ( + 95 ) + - 23 + + - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7004 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(91\) \* Int64\(\-77\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* count\(\(\- tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) \* Int64\(\-77\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* count\(\(\- tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 91 * - 77 AS col2, + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - col2 ) AS col2 FROM tab1 query I rowsort label-8810 @@ -55880,7 +55880,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\(\*\) 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 @@ -56037,7 +56037,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\(\*\) AS col0" at position 0 and "\(\- CAST\(\(\- sum\(tab0\.col1\)\) AS Int32\)\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -59699,7 +59699,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\(\*\) \* \(\- max\(Int64\(\-71\)\)\) \- 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 @@ -60162,7 +60162,7 @@ SELECT col0 / - col1 + col0 AS col1 FROM tab1 # 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\(\(\- tab0\.col2\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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 ( + - col2 ) col2, - COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -60261,7 +60261,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\(\*\)\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 df1ef04..85e19ef 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\(\*\) AS col0" at position 1 have the 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 @@ -2789,7 +2789,7 @@ SELECT - col1 * 23 + + col1 FROM tab0 AS cor0 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col0, 18 AS col0 FROM tab2 AS cor0 WHERE + col1 BETWEEN - col1 / 58 / col0 * + - col2 AND - + ( - col1 ) query I 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\(\*\) AS col1" at position 1 have the 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 @@ -4530,7 +4530,7 @@ SELECT ALL 1 FROM tab2 WHERE NOT NULL < ( - CAST ( NULL AS FLOAT8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -195 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ sum\(Int64\(\-64\)\) 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\(\*\)\) \+ sum\(Int64\(\-64\)\) 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 DISTINCT - COUNT ( * ) + SUM ( - 64 ) col2, MAX ( col2 ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -6231,7 +6231,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\(\*\) AS col1" at position 1 have the 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 @@ -8757,7 +8757,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\(\*\) 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 @@ -9094,7 +9094,7 @@ SELECT DISTINCT + COUNT ( * ) * - 25 AS 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\(\*\)\) 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 II rowsort @@ -10751,7 +10751,7 @@ SELECT DISTINCT + - 81 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-1795 @@ -13034,7 +13034,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\(\*\) 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 @@ -13159,7 +13159,7 @@ SELECT ALL + 24 - col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -21 -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\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 68 col2, COUNT ( * ) + - 24 AS col2 FROM tab0 AS cor0 query I rowsort @@ -14296,7 +14296,7 @@ SELECT 75 * col1 AS col1, CAST ( col1 AS INTEGER ) 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\(tab1\.col1\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 col1" at 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 ( ALL + col1 ) AS col1, - COUNT ( * ) AS col1 FROM tab1 query III rowsort @@ -16616,7 +16616,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\(\*\) 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 @@ -18934,7 +18934,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\(\*\) 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 @@ -24959,7 +24959,7 @@ SELECT - col2 + - - ( - col0 ) AS col2 FROM tab0 AS cor0 # 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 "count\(\*\) \* Int64\(98\) \+ \(\- Int64\(15\)\) \* Int64\(38\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("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\(98\) \+ \(\- Int64\(15\)\) \* 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 ( * ) * 98 + - + 15 * + 38 AS col2, - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -31879,7 +31879,7 @@ SELECT DISTINCT 10 AS col2, col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- \(\- count\(cor0\.col0\)\)\) \+ min\(Int64\(\-57\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\.col0\)\)\) \+ min\(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 DISTINCT - COUNT ( * ) * - - COUNT ( ALL + col0 ) + MIN ( ALL - 57 ) AS col0, - COUNT ( * ) AS col0, - 61 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - 47 query I rowsort @@ -34350,7 +34350,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\(\*\) AS col0" at position 1 have 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 @@ -36821,7 +36821,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\(\*\) AS col2" at position 1 have the 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 @@ -36857,7 +36857,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\(\*\) \+ count\(\*\) / count\(\*\) AS col2" at position 1 have the 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 @@ -46286,7 +46286,7 @@ SELECT + - col1 - + 45 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1731 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(\-34\) \* \(\- min\(cor0\.col0\)\) 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\(\*\) \- Int64\(\-34\) \* \(\- min\(cor0\.col0\)\) 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 ( * ) - + - 34 * - + MIN ( + col0 ) AS col0, 31 AS col0 FROM tab1 AS cor0 query I rowsort @@ -52066,7 +52066,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\(\*\) AS col1" at position 1 have the 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 @@ -53049,7 +53049,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\(\*\) \* CAST\(count\(\*\) AS Int32\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -53963,7 +53963,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 573fbf8..054d225 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\(\*\) AS col1" at position 1 have 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 @@ -6904,7 +6904,7 @@ SELECT ALL + MAX ( DISTINCT + - 85 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 query I rowsort label-1136 @@ -7362,7 +7362,7 @@ SELECT DISTINCT + 37 + - 57 + - MAX ( + 48 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ \(\- 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\(96\) \+ \(\- 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 DISTINCT 96 + - COUNT ( * ) AS col2, + 49 col2 FROM tab2 query I rowsort @@ -8092,7 +8092,7 @@ SELECT CAST ( - + 26 AS INTEGER ) col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* min\(DISTINCT cor0\.col2\) AS col0" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. 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\) \* min\(DISTINCT cor0\.col2\) AS col0" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + col2 ) col0, - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 query II rowsort label-1323 @@ -9352,7 +9352,7 @@ SELECT + - col2 col2, col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(43\) \- Int64\(16\) \+ Int64\(\-63\) AS col2" at position 0 and "max\(tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(43\) \- Int64\(16\) \+ Int64\(\-63\) AS col2" at position 0 and "max\(tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / 43 - + 16 + ( + - 63 ) AS col2, MAX ( col0 ) AS col2 FROM tab2 query I rowsort label-1536 @@ -12487,7 +12487,7 @@ SELECT ALL - - CAST ( - - 32 AS INTEGER ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 162 # Datafusion - Expected - -129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(54\) AS col1" at position 0 and "sum\(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\(\*\) \* Int64\(54\) AS col1" at position 0 and "sum\(Int64\(\-43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + + 54 AS col1, SUM ( - 43 ) AS col1 FROM tab2 query II rowsort @@ -14831,7 +14831,7 @@ SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( col0 ) 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\(\*\)\) AS col2" at position 0 and "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 "min\(\(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, + MIN ( - + col1 ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -15137,7 +15137,7 @@ SELECT DISTINCT ( + ( 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 query III rowsort @@ -25970,7 +25970,7 @@ SELECT ALL * FROM tab1 WHERE NOT - - col1 - - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "max\(Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "max\(Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0, + MAX ( + 79 ) AS col0 FROM tab0 query I rowsort label-4259 @@ -26065,7 +26065,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\(\*\) AS col1" at position 1 have the 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 @@ -28991,7 +28991,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\(\*\) 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 @@ -29151,7 +29151,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\(\*\) AS col2" at position 1 have the 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 @@ -29553,7 +29553,7 @@ SELECT - COUNT ( * ) * + 94 - + + SUM ( ALL 53 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(72\)\) AS col0" at position 0 and "Int64\(11\) \+ \(\- sum\(\(\- tab1\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(72\)\) AS col0" at position 0 and "Int64\(11\) \+ \(\- sum\(\(\- tab1\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + - ( 72 ) AS col0, + 11 + - SUM ( ALL - col0 ) AS col0 FROM tab1 query I rowsort @@ -30156,7 +30156,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\(\*\) AS col0" at position 1 have the 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 @@ -30186,7 +30186,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 tab0 WHERE - 74 IS NULL query I rowsort @@ -47945,7 +47945,7 @@ SELECT + col2 + - - ( col2 ) - - + col0 + - 95 * + - 83 AS col2 FROM tab0 AS cor # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3762 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(66\) \* 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\(66\) \* Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ) col1, 66 * + 57 AS col1 FROM tab1 cor0 query II rowsort @@ -50019,7 +50019,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\(\*\) AS col2" at position 1 have the 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 @@ -50218,7 +50218,7 @@ SELECT ALL * FROM tab2 WHERE - + col2 NOT IN ( - - col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(67\) AS Int32\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(67\) AS 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 ( 67 AS INTEGER ) AS col0, - COUNT ( * ) AS col0 FROM tab2 query I rowsort label-8274 @@ -53422,7 +53422,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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -56000,7 +56000,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\(\*\) 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 @@ -56442,7 +56442,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\(\*\) AS col0" at position 0 and "sum\(\(\- tab1\.col1\)\) \+ 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 @@ -58399,7 +58399,7 @@ SELECT MAX ( DISTINCT col0 ) col0 FROM tab1 # 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\(\*\)\) 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 ( * ) ) col0, 45 AS col0 FROM tab2 query I rowsort @@ -59028,7 +59028,7 @@ SELECT COUNT ( DISTINCT + 36 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 3137607 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "\(\- count\(\*\)\) \- \(\- sum\(DISTINCT tab1\.col2\)\) \* count\(\*\) \* Int64\(67\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- sum\(DISTINCT tab1\.col2\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(67\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 64 AS col1, - COUNT ( * ) - + - SUM ( DISTINCT col2 ) * + COUNT ( * ) * + 67 * + 70 AS col1 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_12.slt b/data/sqlite/random/aggregates/slt_good_12.slt index 4171ce1..900bcfc 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\(\*\) AS col2" at position 1 have the 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 @@ -5856,7 +5856,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -7019,7 +7019,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\(\*\) 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 @@ -13787,7 +13787,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - COUNT ( * ) AS col2, + COUNT ( * ) + 88 AS col2 FROM tab0 query II rowsort @@ -17062,7 +17062,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\(\*\) AS col2" at position 1 have 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 @@ -17134,7 +17134,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\(\*\) AS col1" at position 1 have the 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 @@ -19475,7 +19475,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\(\*\) AS col2" at position 1 have 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 @@ -22001,7 +22001,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -26029,7 +26029,7 @@ SELECT ALL COUNT ( - 67 ) FROM tab1 # 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 col0" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 FROM tab0 query I rowsort label-4242 @@ -31098,7 +31098,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\(\*\) AS col2" at position 1 have the 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 @@ -35257,7 +35257,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\(\*\) 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 @@ -38633,13 +38633,13 @@ 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\(\*\) AS col2" at position 1 have the 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: # Datafusion - Expected - -62 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(\-62\)\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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\(\-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 - MAX ( - - 62 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 query I rowsort label-6298 @@ -39162,7 +39162,7 @@ SELECT * FROM tab0 cor0 WHERE - 68 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "max\(\(\- 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 "max\(\(\- Int64\(47\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col0, + MAX ( - ( + 47 ) ) col0 FROM tab2 AS cor0 WHERE 93 * 75 * + + col0 IS NULL query II rowsort label-6386 @@ -43347,7 +43347,7 @@ SELECT DISTINCT - MIN ( - 29 ) FROM tab2 cor0 # 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ), - COUNT ( * ), - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT 69 NOT IN ( + + 75 ) query I rowsort label-7076 @@ -45181,7 +45181,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\(19\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -45392,7 +45392,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\(\*\) 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 @@ -46069,7 +46069,7 @@ SELECT ALL + 70 + - 93 * - 86 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(\*\) \+ \(\- 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- 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 DISTINCT + COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) AS col0, 69 AS col0 FROM tab1 AS cor0 query I rowsort @@ -47520,7 +47520,7 @@ SELECT 82 AS col1, - 91 FROM tab2 # 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\(\*\)\) 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 - COUNT ( * ) AS col2, + MAX ( col2 ) AS col2 FROM tab1 AS cor0 query I rowsort label-7767 @@ -47545,7 +47545,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\(\*\) AS col1" at position 1 have 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 @@ -50938,7 +50938,7 @@ SELECT ALL + - COUNT ( + col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col0\) \+ \(\- 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 "max\(cor0\.col0\) \+ \(\- 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 MAX ( col0 ) + - COUNT ( * ) AS col0, - 78 AS col0 FROM tab1 AS cor0 query I rowsort @@ -55646,7 +55646,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\(\*\) AS col2" at position 0 and "max\(\(\- Int64\(27\)\)\) / count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -58548,7 +58548,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\(\*\) 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 @@ -58746,7 +58746,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\(\*\) AS col0" at position 1 have 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 c5316bd..ad6325c 100644 --- a/data/sqlite/random/aggregates/slt_good_120.slt +++ b/data/sqlite/random/aggregates/slt_good_120.slt @@ -5234,7 +5234,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\(\*\) AS col2" at position 1 have the 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 @@ -6834,7 +6834,7 @@ SELECT - 52, col0 + + 51 / + - col0 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 289 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "sum\(cor0\.col2\) \+ 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 "sum\(cor0\.col2\) \+ Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col0, SUM ( ALL col2 ) + + 66 AS col0 FROM tab1 AS cor0 query III rowsort label-1126 @@ -11547,7 +11547,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\(\*\) 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 @@ -13034,7 +13034,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -14717,7 +14717,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\(\*\) 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 @@ -15858,7 +15858,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\(\*\) 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 @@ -16317,7 +16317,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\(\*\) 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 @@ -21179,7 +21179,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\(\*\) 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 @@ -26280,7 +26280,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -26508,7 +26508,7 @@ SELECT DISTINCT SUM ( ALL - + 28 ) FROM tab1 # 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\(\*\)\)\)\) 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 - - ( - + COUNT ( * ) ) col2, MAX ( + - col2 ) AS col2 FROM tab2 AS cor0 query I rowsort label-4363 @@ -35734,7 +35734,7 @@ SELECT + col0 * + + col1 * - col1 AS col2 FROM tab0 WHERE - col1 + + col2 IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(Int64\(83\) AS Int32\) \* Int64\(89\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(83\) AS Int32\) \* Int64\(89\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + + CAST ( 83 AS INTEGER ) * 89 / CAST ( NULL AS INTEGER ) AS col1, - 12 AS col1 FROM tab2 query I rowsort @@ -37480,7 +37480,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\(\*\) AS col0" at position 1 have the 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 @@ -38744,7 +38744,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\(\*\) \* 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 @@ -39242,7 +39242,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same 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 @@ -40864,7 +40864,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\(\*\) 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 @@ -43775,7 +43775,7 @@ SELECT DISTINCT + 70 FROM tab0 WHERE - 38 < 41 # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 col1, - COUNT ( * ) AS col1 FROM tab1 query II rowsort @@ -46693,7 +46693,7 @@ SELECT - - COUNT ( ALL + CAST ( - col0 AS INTEGER ) ) FROM tab0 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\(\*\)\)\) AS col0" at position 0 and "count\(\*\) \+ min\(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\(Int64\(1\)\) AS count\(\*\) \+ min\(Int64\(9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col0, + ( COUNT ( * ) ) + MIN ( 9 ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -48372,7 +48372,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\(\*\) 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 @@ -48617,7 +48617,7 @@ SELECT - col0 * + 96 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -363 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* sum\(DISTINCT tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * + SUM ( DISTINCT + col2 ) AS col1, + ( CAST ( NULL AS INTEGER ) ) + - + ( 93 ) AS col1 FROM tab2 query I rowsort label-8014 @@ -49325,7 +49325,7 @@ SELECT DISTINCT - col1 * - - col0 * + col0 col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -459 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- max\(DISTINCT \(\- cor0\.col1\)\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(81\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\(DISTINCT \(\- cor0\.col1\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - MAX ( DISTINCT - col1 ) * - COUNT ( * ) AS col0, 81 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -57037,7 +57037,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\(\*\) AS col0" at position 1 have the 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 @@ -57239,7 +57239,7 @@ SELECT DISTINCT 15, col1 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ), ( + COUNT ( * ) ) FROM tab2 cor0 query I rowsort label-9453 diff --git a/data/sqlite/random/aggregates/slt_good_121.slt b/data/sqlite/random/aggregates/slt_good_121.slt index dbc83fd..4bf6915 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\(\-16\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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: @@ -7784,7 +7784,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\(\*\) AS col1" at position 1 have the 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 @@ -13733,7 +13733,7 @@ SELECT ALL - + col2 AS col1, - 66 FROM tab0 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\(\*\)\) 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 FROM tab1 AS cor0 query I rowsort label-2242 @@ -14702,7 +14702,7 @@ SELECT + + MIN ( + + 42 ) FROM tab0 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\(\*\)\) 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 # Datafusion - Types were automatically converted from: @@ -20711,7 +20711,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\(\*\) AS col1" at position 1 have the 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 @@ -26884,7 +26884,7 @@ SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND - - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(16\)\) 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\(\*\) \* \(\- Int64\(16\)\) 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 ( * ) * - + 16 col1, 71 col1 FROM tab2 query I rowsort label-4413 @@ -26912,7 +26912,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 77 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), + ( + COUNT ( * ) ) FROM tab0 query III rowsort @@ -29512,7 +29512,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\(\*\) 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 @@ -29721,7 +29721,7 @@ SELECT + + SUM ( DISTINCT + + 5 ) FROM tab0 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\(\*\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, 80 col0 FROM tab0 cor0 query I rowsort @@ -29919,7 +29919,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\(\*\) 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 @@ -31060,7 +31060,7 @@ SELECT ALL - MIN ( 11 ) - 11 + 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 54 AS col1 FROM tab0 query I rowsort label-5112 @@ -34377,7 +34377,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -35766,7 +35766,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 @@ -40837,7 +40837,7 @@ SELECT ALL - 98 * - 62 AS col1 FROM tab0 WHERE NULL = 21 / + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -117390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab2\.col0\) AS col1" at position 0 and "CAST\(\(\- avg\(DISTINCT \(\- tab2\.col1\)\)\) AS Int32\) \* count\(\*\) \* Int64\(43\) \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab2\.col0\) AS col1" at position 0 and "CAST\(\(\- avg\(DISTINCT \(\- tab2\.col1\)\)\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( ALL col0 ) AS col1, + ( + CAST ( + - AVG ( DISTINCT - col1 ) AS INTEGER ) ) * + COUNT ( * ) * + 43 * - 14 AS col1 FROM tab2 query I rowsort @@ -47408,7 +47408,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\(\*\) AS Int32\)\) AS col1" at position 1 have 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 @@ -47886,7 +47886,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\(\*\) 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 @@ -48416,7 +48416,7 @@ SELECT + - COUNT ( * ) * - ( + ( 95 ) ) + + - 30 AS col2 FROM tab2 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 "count\(\*\) \+ \(\- Int64\(12\)\) \- Int64\(74\) / Int64\(3\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\(12\)\) \- Int64\(74\) / 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 COUNT ( * ) + - + 12 - + 74 / + 3 col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-7979 @@ -49736,7 +49736,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\(\*\) 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 @@ -51605,7 +51605,7 @@ SELECT * FROM tab0 WHERE NOT + col0 * - + col1 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 177 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(59\) 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\(\*\) \* Int64\(59\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * ( + 59 ) AS col2, 66 AS col2 FROM tab1 query I rowsort @@ -54721,7 +54721,7 @@ SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2 * 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -756 -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\(\-84\) \* \(\- 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 "Int64\(4\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-84\) \* \(\- count\(Int64\(30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 4 AS col0, - ( COUNT ( * ) ) * - 84 * + - COUNT ( ALL + 30 ) AS col0 FROM tab0 query I rowsort label-9004 diff --git a/data/sqlite/random/aggregates/slt_good_122.slt b/data/sqlite/random/aggregates/slt_good_122.slt index 29c1176..4c4d3e3 100644 --- a/data/sqlite/random/aggregates/slt_good_122.slt +++ b/data/sqlite/random/aggregates/slt_good_122.slt @@ -1142,7 +1142,7 @@ SELECT ALL * FROM tab2 WHERE - col0 >= 63 * 96 * + + col1 * - + col2 OR col2 * 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 81 + - + COUNT ( * ) AS col1, 13 col1 FROM tab1 AS cor0 query III rowsort @@ -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\(\*\) 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 @@ -4084,7 +4084,7 @@ SELECT DISTINCT - + ( - col2 ) AS col2, - col0 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 AS col1, - ( + COUNT ( * ) ) AS col1 FROM tab2 # Datafusion - Types were automatically converted from: @@ -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\(\*\) \* count\(\*\) AS col0" at position 1 have 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\(\*\) 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 @@ -17937,7 +17937,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -19896,7 +19896,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\(\*\) AS col0" at position 1 have the 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 @@ -22549,7 +22549,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\(\*\)\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-56\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -28536,7 +28536,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -31794,7 +31794,7 @@ SELECT + ( - COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 AS cor0 query II rowsort label-5250 @@ -32520,7 +32520,7 @@ SELECT DISTINCT col0 col0 FROM tab2 WHERE NOT ( + ( - 22 ) * + col2 * - - 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 Float64\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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 ALL CAST ( NULL AS FLOAT8 ) col1, ( + - COUNT ( * ) ) col1 FROM tab1 query I rowsort @@ -32774,7 +32774,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\(\*\) AS col0" at position 1 have 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 @@ -33999,7 +33999,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\(\*\) 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 @@ -40266,7 +40266,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\(\*\) 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 @@ -43219,7 +43219,7 @@ SELECT DISTINCT 99 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 ) # 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\(\*\)\) 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 FROM tab2 cor0 query I rowsort @@ -43763,7 +43763,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -44151,7 +44151,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\(\*\) 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: @@ -46066,7 +46066,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -50321,7 +50321,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\(\*\) 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: @@ -50507,7 +50507,7 @@ SELECT - MAX ( - 32 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 624 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(13\)\) \* Int64\(48\) AS col1" at position 0 and "count\(\*\) / \(\- min\(cor0\.col0\)\) \+ 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 "max\(Int64\(13\)\) \* Int64\(48\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(cor0\.col0\)\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( + + 13 ) * 48 col1, COUNT ( * ) / - MIN ( + col0 ) + 61 AS col1 FROM tab2 cor0 query I rowsort label-8331 @@ -53345,7 +53345,7 @@ SELECT + - MAX ( DISTINCT 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), ( + COUNT ( * ) ) FROM tab0 query I rowsort @@ -55458,7 +55458,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\(\*\)\) AS col0" at position 0 and "sum\(tab2\.col2\) / count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -59693,13 +59693,13 @@ SELECT DISTINCT - ( - 43 ) AS col2 FROM tab0 AS cor0 # 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\(\*\)\) / \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 37 AS col2, - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0 # 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\(\*\) AS col0" at position 1 have the 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 2954648..8d5ebc2 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\(\*\) 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 @@ -6414,7 +6414,7 @@ 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 "sum\(\(\- cor0\.col2\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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 col1" at 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 - col2 ) AS col1, ( - + COUNT ( * ) ) AS col1 FROM tab0 cor0 query I rowsort @@ -13431,7 +13431,7 @@ SELECT + 91 FROM tab0, 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 query I rowsort @@ -14567,7 +14567,7 @@ SELECT - + ( + - 81 ) col1 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\(\*\)\) 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 ) col1 FROM tab0 AS cor0 query I rowsort @@ -18412,7 +18412,7 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 * - 94 / - + col1 * + col0 * col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(95\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(95\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + 95 col0, - 80 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL query I rowsort label-3025 @@ -21485,7 +21485,7 @@ SELECT ALL * FROM tab1 WHERE NOT col1 IN ( - - ( + col0 ) ) # 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\(\*\)\)\) 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 ALL + ( - - COUNT ( * ) ) AS col2, 27 AS col2 FROM tab1 query III rowsort @@ -22952,7 +22952,7 @@ SELECT - ( 14 ) col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1971 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-27\) \* 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\(\-27\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) col1, - 27 * ( - 73 ) AS col1 FROM tab0 AS cor0 query I rowsort label-3768 @@ -24915,7 +24915,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\(89\) AS col2" at position 0 and "Int64\(48\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -26080,7 +26080,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\(\*\) AS col1" at position 1 have the 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 @@ -27455,7 +27455,7 @@ SELECT ALL - + 71 AS col2 FROM tab2 WHERE + - col1 IS NOT NULL # 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\(30\) 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\(\*\) / Int64\(30\) 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 ( * ) / + ( 30 ) AS col0, + 12 AS col0 FROM tab1 query I rowsort @@ -30413,7 +30413,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\(\*\) 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 @@ -30802,7 +30802,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\(\*\) AS col1" at position 1 have the 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 @@ -35499,7 +35499,7 @@ SELECT - col1 * - - 66 AS col1 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\(\*\)\) 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 ALL - COUNT ( * ) AS col1, 19 AS col1 FROM tab1 AS cor0 query III rowsort @@ -35940,13 +35940,13 @@ 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\(\*\)" at position 0 and "CAST\(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: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + ( COUNT ( * ) ) FROM tab1 AS cor0 query II rowsort label-5919 @@ -38662,7 +38662,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\(\*\)\)\) AS Float64\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -39009,7 +39009,7 @@ SELECT DISTINCT + SUM ( DISTINCT - ( - col2 ) ) FROM tab1 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\(\*\)\) 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 ( * ) ) col1, + 26 AS col1 FROM tab1 AS cor0 query I rowsort @@ -41664,7 +41664,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\(\*\) 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 @@ -46284,7 +46284,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\(\*\) AS col2" at position 1 have the same name\. 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 @@ -46384,7 +46384,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\(\*\) AS col1" at position 1 have the 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 @@ -47006,7 +47006,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\(\*\) 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 @@ -50077,7 +50077,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -51360,7 +51360,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 18 + + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 WHERE NOT + col0 IS NULL OR NOT ( NULL IS NOT NULL ) query III rowsort @@ -55995,7 +55995,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 0e3c5fb..60a562f 100644 --- a/data/sqlite/random/aggregates/slt_good_124.slt +++ b/data/sqlite/random/aggregates/slt_good_124.slt @@ -756,7 +756,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -1160,7 +1160,7 @@ SELECT + 26 AS col2, + col0 * - col0 * col1 AS col0 FROM tab2 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\(\*\)\)\) 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 AS col2 FROM tab0 AS cor0 query I rowsort @@ -3139,7 +3139,7 @@ SELECT ALL - CAST ( - CAST ( - MAX ( - col2 ) AS INTEGER ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / sum\(\(\- cor0\.col0\)\) AS col1" at position 0 and "max\(\(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / sum\(\(\- cor0\.col0\)\) AS col1" at position 0 and "max\(\(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / + SUM ( - col0 ) AS col1, MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0 query I rowsort label-511 @@ -4216,7 +4216,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) > - + 56 # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ALL 72 col2, - COUNT ( * ) AS col2 FROM tab0 query III rowsort @@ -10957,7 +10957,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\(\*\) 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 @@ -13633,7 +13633,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -17182,7 +17182,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\(\*\) 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 @@ -21512,7 +21512,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\(\*\) AS col2" at position 1 have the 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 @@ -24342,7 +24342,7 @@ SELECT ALL + col0, - 61 + + col1 + + col1 FROM tab2 # 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\(\*\)\) 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 ALL - COUNT ( * ) col1, 64 AS col1 FROM tab1 query I rowsort @@ -24878,7 +24878,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\(\*\) AS col1" at position 1 have the 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 @@ -27297,7 +27297,7 @@ SELECT ALL + col0 * col2 + 10 + - col1, col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(\-61\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(\-61\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 48 AS col1, - 61 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -31137,7 +31137,7 @@ SELECT DISTINCT col2 * 32 * - col0 * - col0 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 "sum\(DISTINCT \(\- Int64\(24\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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\(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 SUM ( DISTINCT - + 24 ) AS col1, - COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -33428,7 +33428,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\(\*\) 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 @@ -39347,7 +39347,7 @@ SELECT COUNT ( ALL - + col0 ) AS col0 FROM tab1 AS cor0 # 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\(\*\)\) AS col0" at position 0 and "Int64\(3\) \+ 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\(3\) \+ Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, + 3 + - 60 AS col0 FROM tab2 AS cor0 query I rowsort @@ -46245,7 +46245,7 @@ SELECT ALL - 51 + - col2 FROM tab1 # 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\(\-8\) \+ Int64\(23\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \+ Int64\(23\) 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 + COUNT ( * ) * - 8 + 23 AS col1, - 14 AS col1 FROM tab1 query III rowsort @@ -46739,7 +46739,7 @@ SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 DISTINCT - + COUNT ( * ) AS col0, 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 query II rowsort label-7699 @@ -47051,7 +47051,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -47874,7 +47874,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\(\*\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -49536,7 +49536,7 @@ SELECT DISTINCT 21 + - + COUNT ( * ) FROM tab0 # Datafusion - Expected - -3 # Datafusion - Expected - 3 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "count\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + COUNT ( - ( col1 ) ) AS col1, + + MAX ( + col2 ) AS col0 FROM tab0 AS cor0 query III rowsort label-8153 @@ -52244,7 +52244,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\(\*\) AS col2" at position 1 have 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 @@ -56712,7 +56712,7 @@ SELECT DISTINCT + MIN ( + - 4 ) + + + COUNT ( * ) 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\(\*\)\) AS col1" at position 0 and "count\(\*\) / 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 "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) / CAST ( NULL AS FLOAT8 ) AS col1 FROM tab1 AS cor0 query I rowsort label-9351 @@ -57542,7 +57542,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\(\*\) AS col1" at position 0 and "Int64\(64\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -60520,7 +60520,7 @@ SELECT DISTINCT + ( + 69 ) * - COUNT ( * ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \- count\(Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + ( COUNT ( 83 ) ) col2 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_125.slt b/data/sqlite/random/aggregates/slt_good_125.slt index 5907a74..10e2f83 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\(\*\) AS col1" at position 1 have the 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\(\*\) 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\(\*\) AS col1" at position 1 have the 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 @@ -26321,7 +26321,7 @@ SELECT DISTINCT - COUNT ( * ) / + 90 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. 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 tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL query I rowsort label-4342 @@ -36254,7 +36254,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( + ( + 81 ) ) NOT IN ( + col2 ) # 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 "\(\- count\(\*\)\) AS col1" at position 0 and "\(\- min\(\(\- cor0\.col0\)\)\) \+ count\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- min\(\(\- cor0\.col0\)\)\) \+ count\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col1, - MIN ( ALL - col0 ) + + COUNT ( + - col1 ) AS col1 FROM tab0 cor0 query I rowsort @@ -39257,7 +39257,7 @@ SELECT - - 74 * + CAST ( - 17 AS INTEGER ) + - + 15 * - - col1 AS col0 FROM tab1 # 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 "sum\(Int64\(4\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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\(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 + ( + SUM ( ALL + 4 ) ) AS col0, - COUNT ( * ) AS col0 FROM tab1 query I rowsort @@ -42276,7 +42276,7 @@ SELECT ALL ( col2 ) / - col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 44 -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\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) 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 8 col2, + COUNT ( * ) + 41 AS col2 FROM tab0 cor0 query I rowsort label-6985 @@ -44404,7 +44404,7 @@ SELECT ALL SUM ( ALL ( - + col0 ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - COUNT ( * ) col2, + 94 AS col2 FROM tab0 query I rowsort @@ -50207,7 +50207,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\(\*\) AS col2" at position 1 have the 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 @@ -52454,7 +52454,7 @@ SELECT ALL + col0 * + col0 + 88 AS col1, - col1 / - - col2 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\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 cor1 query I rowsort label-8655 @@ -56119,7 +56119,7 @@ SELECT DISTINCT + 39, + ( - col2 ) * 63 AS col2 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab2 cor0 query I rowsort label-9268 @@ -57616,7 +57616,7 @@ SELECT DISTINCT + - col0 col2, col1 FROM tab2 AS cor0 # 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\(\*\)\) 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 FROM tab1 AS cor0 query I rowsort label-9508 @@ -58395,7 +58395,7 @@ SELECT DISTINCT - col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + + - c # 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\(\*\)\) AS col1" at position 1 have the 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 col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-9644 @@ -58544,7 +58544,7 @@ SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 62 * + col1 AND NULL # 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 "sum\(tab2\.col1\) / Int64\(56\) \+ \(\- 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 "sum\(tab2\.col1\) / Int64\(56\) \+ \(\- 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 SUM ( ALL + col1 ) / + 56 + - COUNT ( * ) AS col2, + 65 col2 FROM tab2 query I rowsort label-9669 @@ -58763,7 +58763,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\(\*\) AS col1" at position 1 have 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 faca6cb..41e0f4e 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\(\*\) 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 @@ -7528,7 +7528,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\(\*\) AS col1" at position 1 have the 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 @@ -12110,7 +12110,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + col1 + col1 IS NOT NULL # 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\(\*\)\) 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 DISTINCT - + COUNT ( * ) col0, - 57 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -13502,7 +13502,7 @@ SELECT DISTINCT - + MAX ( col1 ) + + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 77 -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\(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\(32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + 32 ) AS col1, COUNT ( * ) + + 68 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort @@ -17048,7 +17048,7 @@ SELECT - 19 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL # 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\(\*\)\) AS col0" at position 1 have the 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 DISTINCT - - 77 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -18141,7 +18141,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -21813,7 +21813,7 @@ SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4017 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col2\)\) \* Int64\(18\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(17\) \* CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col2\)\) \* Int64\(18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(17\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - col2 ) * + ( + + 18 ) + - COUNT ( * ) AS col2, + 17 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1 cor0 query II rowsort label-3596 @@ -22041,7 +22041,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\(\*\)\)\) AS col1" at position 0 and "count\(\*\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -29057,7 +29057,7 @@ SELECT + COUNT ( * ), + 93 AS col1 FROM tab2 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 col1, - COUNT ( * ) col1 FROM tab2 AS cor0 query I rowsort @@ -30928,7 +30928,7 @@ SELECT DISTINCT + CAST ( - 32 AS INTEGER ) * + col2 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(cor0\.col1\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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 ( ALL + col1 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-5122 @@ -36692,7 +36692,7 @@ SELECT ALL * FROM tab1 WHERE - col1 * + ( - col1 ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 3700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \- Int64\(72\) / Int64\(\-16\) AS col1" at position 0 and "Int64\(86\) \* count\(\*\) \* Int64\(\-5\) \- Int64\(55\) \* Int64\(\-89\) \+ 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\(29\) \- Int64\(72\) / Int64\(\-16\) AS col1" at position 0 and "Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-5\) \- Int64\(55\) \* Int64\(\-89\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 29 - + 72 / - 16 AS col1, 86 * + COUNT ( * ) * - 5 - + + 55 * - 89 + + 95 col1 FROM tab0 query I rowsort @@ -41486,7 +41486,7 @@ SELECT + + 70 / + col0 AS col1 FROM tab0 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\(\*\)\)\) 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 ( * ) AS col2, - 81 AS col2 FROM tab0 AS cor0 query III rowsort @@ -45704,7 +45704,7 @@ SELECT - - 3 - + COUNT ( * ) FROM tab0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2, col1 * + col0 * + 42 * - 95, 45 * 74 / - col2 ) query I rowsort @@ -46891,7 +46891,7 @@ 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 "\(\- 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 ( * ) ) col0, + ( + - ( ( + + 36 ) ) ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -48681,7 +48681,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\(\*\) 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 @@ -50315,7 +50315,7 @@ SELECT DISTINCT - col0 + - + col0 + + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(\-17\)\) 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\(\*\)\) \* \(\- Int64\(\-17\)\) AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - + ( - 17 ) AS col1, - 99 col1 FROM tab1 query III rowsort @@ -52183,7 +52183,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\(\*\) AS col2" at position 1 have the 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 @@ -58700,7 +58700,7 @@ SELECT DISTINCT col0, - 55 AS col0 FROM tab1 # 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\(\*\)\) 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 - COUNT ( * ) AS col1, 80 AS col1 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_127.slt b/data/sqlite/random/aggregates/slt_good_127.slt index 63577af..66f7c61 100644 --- a/data/sqlite/random/aggregates/slt_good_127.slt +++ b/data/sqlite/random/aggregates/slt_good_127.slt @@ -1583,7 +1583,7 @@ SELECT COUNT ( DISTINCT + col0 ) * - + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 223 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col2\)\)\) AS col0" at position 0 and "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 "\(\- sum\(\(\- cor0\.col2\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - SUM ( - col2 ) AS col0, + COUNT ( * ) * - 17 AS col0 FROM tab1 AS cor0 query I rowsort @@ -5726,7 +5726,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( - - col2 ) * - 80 ) NOT IN ( col2 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- count\(\*\) AS col0" at position 1 have the 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 @@ -12362,7 +12362,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -13376,7 +13376,7 @@ SELECT col1 * + 83 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -115 # Datafusion - Expected - -207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ \(\- sum\(Int64\(67\)\)\) \+ Int64\(75\) AS col0" at position 0 and "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 "Int64\(11\) \+ \(\- sum\(Int64\(67\)\)\) \+ Int64\(75\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 11 + - SUM ( + 67 ) + 75 col0, + COUNT ( * ) * + - 69 AS col0 FROM tab1 query I rowsort label-2163 @@ -16486,7 +16486,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\(\*\) AS col0" at position 1 have the 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 @@ -18946,7 +18946,7 @@ SELECT + - ( + 49 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-80\) AS Int32\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-80\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - 80 AS INTEGER ) AS col1, COUNT ( * ) * + + 74 col1 FROM tab2 WHERE NOT NULL <= - col1 query II rowsort @@ -22654,7 +22654,7 @@ SELECT ALL SUM ( DISTINCT + col0 ) 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\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 label-3691 @@ -24431,7 +24431,7 @@ SELECT ALL + 39 * COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 # 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\(\*\)\) 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 ALL - + COUNT ( * ) AS col2, 8 AS col2 FROM tab1 AS cor0 query I rowsort @@ -27398,7 +27398,7 @@ 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\(\*\)\) 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 ( * ) AS col0, 34 AS col0 FROM tab2 query I rowsort label-4464 @@ -29291,7 +29291,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -30653,7 +30653,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\(\*\)\) / 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 @@ -31309,7 +31309,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -33789,7 +33789,7 @@ SELECT * FROM tab1 AS cor0 WHERE col1 * - 16 * 67 >= + col2 # 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\(DISTINCT \(\- tab0\.col2\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\.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 + COUNT ( DISTINCT + - col2 ) AS col2, - COUNT ( * ) AS col2, + + COUNT ( - - col1 ) FROM tab0 query III rowsort @@ -34163,7 +34163,7 @@ SELECT ALL - 38 + - - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- count\(\*\)\)\) \+ \(\- CAST\(Int64\(\-23\) AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(\-23\) AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 * - - COUNT ( * ) + - CAST ( + - 23 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query III rowsort @@ -34777,7 +34777,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -36862,7 +36862,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\(\*\) AS col0" at position 1 have the 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 @@ -37284,7 +37284,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -39343,7 +39343,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 @@ -42034,7 +42034,7 @@ SELECT DISTINCT * FROM tab2 WHERE - col2 BETWEEN col0 AND - col1 + + 59 * - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(21\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 30 AS col1, 21 * - COUNT ( * ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-6901 @@ -45186,7 +45186,7 @@ SELECT ALL + COUNT ( * ) * 2 / 30 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - -9 -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\(\*\) \* \(\- 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 "\(\- sum\(cor0\.col0\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( + + col0 ) AS col0, COUNT ( * ) * - COUNT ( + col1 ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -51877,7 +51877,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\(\*\) 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 @@ -52512,7 +52512,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -60098,7 +60098,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\(\*\) 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 77fd29b..b145384 100644 --- a/data/sqlite/random/aggregates/slt_good_128.slt +++ b/data/sqlite/random/aggregates/slt_good_128.slt @@ -9241,7 +9241,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\(\*\) 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 @@ -10641,7 +10641,7 @@ SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + - 14 IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(\*\) \+ Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col1, CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 63 AS col1 FROM tab1 cor0 query I rowsort @@ -12539,7 +12539,7 @@ SELECT ALL CAST ( + AVG ( ALL - col1 ) AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 ALL - COUNT ( * ) AS col0, 63 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL query I rowsort label-2048 @@ -12993,7 +12993,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\(\*\) AS col2" at position 1 have the 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 @@ -15531,7 +15531,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\(\*\) AS col1" at position 1 have 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 @@ -15859,7 +15859,7 @@ SELECT DISTINCT CAST ( + + col0 AS INTEGER ) + + 81 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -148 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* count\(\*\) \+ Int64\(\-91\) AS col0" at position 0 and "max\(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\(\-19\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-91\) AS col0" at position 0 and "max\(Int64\(82\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 19 * + COUNT ( * ) + - 91 AS col0, + MAX ( 82 ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -16756,7 +16756,7 @@ SELECT + + 43 + + ( + 3 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(max\(tab0\.col1\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(max\(tab0\.col1\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 + + - COUNT ( * ) AS col2, - CAST ( + MAX ( + col1 ) AS INTEGER ) col2 FROM tab0 query I rowsort label-2738 @@ -25373,7 +25373,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\(\*\) 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 @@ -28434,7 +28434,7 @@ SELECT + 67 * col0 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 48 AS col0, COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query III rowsort @@ -31837,7 +31837,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\(\*\) AS col0" at position 0 and "Int64\(56\) \+ \(\- Int64\(10\)\) \* 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 @@ -34446,7 +34446,7 @@ SELECT DISTINCT 60 - + CAST ( col0 AS INTEGER ) + + 57 * - ( ( col0 ) ) * col1 F # 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\(\*\)\) 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 - COUNT ( * ) AS col0, - 25 col0 FROM tab0 AS cor0 query I rowsort label-5657 @@ -37185,7 +37185,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\(\*\)\) AS col2" at position 0 and "\(\- count\(\(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(\(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, - COUNT ( ALL - + col2 ) AS col2 FROM tab2 cor0 query I rowsort label-6100 @@ -37515,7 +37515,7 @@ SELECT + + SUM ( - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 cor0 query III rowsort @@ -40648,7 +40648,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\(\*\)\)\) \* 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 @@ -40701,7 +40701,7 @@ SELECT DISTINCT col1 + + 74 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab1 cor0 query II rowsort @@ -41257,7 +41257,7 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 + - ( + col0 ) BETWEEN NULL AND NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2, - COUNT ( * ) * 4 AS col2 FROM tab2 AS cor0 query II rowsort label-6764 @@ -41946,7 +41946,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -42558,7 +42558,7 @@ SELECT DISTINCT ( + col1 ) / - col1 AS col2 FROM tab2 # 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\(\*\)\) 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\(\*\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, + 52 AS col0 FROM tab0 query I rowsort label-6977 @@ -45399,7 +45399,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\(\*\) AS col2" at position 1 have the 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: @@ -47198,7 +47198,7 @@ SELECT + COUNT ( + + 67 ) col2 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, - 80 AS col2 FROM tab2 query III rowsort @@ -49755,7 +49755,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\(\*\) AS col2" at position 1 have the 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 @@ -50044,7 +50044,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\(\*\) 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 @@ -50627,7 +50627,7 @@ SELECT DISTINCT * FROM tab0 WHERE + col0 * - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -270 -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\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 AS col1, + COUNT ( * ) * - 90 AS col1 FROM tab1 query II rowsort @@ -52654,7 +52654,7 @@ SELECT col1, - 16 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 86 -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\(\-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\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 AS col1, + COUNT ( * ) - + ( - 83 ) AS col1 FROM tab1 query I rowsort label-8641 @@ -55356,7 +55356,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\(\*\) 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 @@ -55643,7 +55643,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE 79 * + col2 NOT BETWEEN - + col1 AND 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\(\*\)\) AS col2" at position 0 and "min\(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 "min\(Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, + MIN ( ALL + 77 ) AS col2 FROM tab2 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 4978ca1..33cc6f1 100644 --- a/data/sqlite/random/aggregates/slt_good_129.slt +++ b/data/sqlite/random/aggregates/slt_good_129.slt @@ -77,7 +77,7 @@ SELECT - 32 * + col1 * + col2 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 "\(\- sum\(Int64\(47\)\)\) AS col1" at position 0 and "Int64\(39\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(47\)\)\) AS col1" at position 0 and "Int64\(39\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - SUM ( 47 ) AS col1, + 39 * - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL query II rowsort @@ -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\(\*\) 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 c7be09b..d6bec6b 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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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\(\*\) AS Int32\)\) AS col0" at position 1 have 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 @@ -17243,7 +17243,7 @@ SELECT DISTINCT ( + + 73 ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col1" at position 0 and "\(\- Int64\(50\)\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(50\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 91 col1, - ( + + 50 ) * ( - + COUNT ( * ) ) col1 FROM tab1 cor0 query I rowsort @@ -18844,7 +18844,7 @@ SELECT ALL * FROM tab1 WHERE col0 IS NULL # 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\(22\) \+ Int64\(6\) AS col2" at position 0 and "count\(\*\) / Int64\(\-64\) \+ count\(DISTINCT Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ Int64\(6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-64\) \+ count\(DISTINCT Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 22 + 6 AS col2, COUNT ( * ) / + - 64 + COUNT ( DISTINCT 0 ) AS col2 FROM tab0 WHERE - 4 IN ( - col0 + + col1, ( - col0 ) / + - 87 ) query III rowsort @@ -22087,7 +22087,7 @@ SELECT + - 24 * - - ( - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 query I rowsort @@ -22954,7 +22954,7 @@ SELECT ALL - 66 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 query I rowsort @@ -24683,7 +24683,7 @@ SELECT + col0 * + col2 / + col0 * 60 + 86 * + + col2 * col1 - + col0 AS col0 FRO # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(\(\- cor0\.col2\)\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(\(\- cor0\.col2\)\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - MIN ( + - col2 ) AS col0, + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL ) query I rowsort label-4109 @@ -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\(\*\)\) \+ count\(\*\) AS col1" at position 1 have the same 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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\) 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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 @@ -43288,7 +43288,7 @@ SELECT + + col0 + - - col1 * - + 23 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- 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 "Int64\(81\) \+ \(\- 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 81 + - COUNT ( * ) AS col1, + 16 AS col1 FROM tab0 AS cor0 query I 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\(\*\) 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 @@ -45097,7 +45097,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\(\*\) AS col0" at position 1 have the 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 @@ -46112,7 +46112,7 @@ SELECT DISTINCT - 18 + - + MIN ( + col0 ) FROM tab2 # 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\(6\) 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\(\*\)\) \+ Int64\(6\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + + 6 AS col0, 46 AS col0 FROM tab1 query I rowsort @@ -48933,7 +48933,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -59839,7 +59839,7 @@ SELECT ALL CAST ( - AVG ( col1 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab2 query I rowsort label-9948 diff --git a/data/sqlite/random/aggregates/slt_good_14.slt b/data/sqlite/random/aggregates/slt_good_14.slt index f6cb689..1513f45 100644 --- a/data/sqlite/random/aggregates/slt_good_14.slt +++ b/data/sqlite/random/aggregates/slt_good_14.slt @@ -3491,7 +3491,7 @@ SELECT DISTINCT COUNT ( DISTINCT - 97 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 AS col2, COUNT ( * ) * - + 50 AS col2 FROM tab0 AS cor0 query III rowsort @@ -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\(\*\) 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\(\*\) 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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -16054,7 +16054,7 @@ SELECT ALL 84 + - 92 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ max\(\(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- sum\(\(\- 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\(\(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- sum\(\(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + + MAX ( - col0 ) AS col2, - SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0 query I rowsort label-2619 @@ -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\(\*\) AS col1" at position 0 and "\(\- Int64\(6\)\) / count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\(\*\) AS col1" at position 0 and "count\(\*\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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\(\*\) 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 @@ -35143,7 +35143,7 @@ SELECT col2, + col1 * - col2 * - + col2 AS col2 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\(\*\)\) 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 @@ -36832,7 +36832,7 @@ SELECT DISTINCT col1 * + col1 FROM tab0 cor0 WHERE - col2 - - 58 <> ( - col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "\(\- min\(DISTINCT tab0\.col0\)\) / \(\- count\(\*\)\) AS col1" at position 1 have the 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 "\(\- min\(DISTINCT tab0\.col0\)\) / \(\- 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, - MIN ( DISTINCT col0 ) / - COUNT ( * ) AS col1 FROM tab0 query II rowsort @@ -37094,7 +37094,7 @@ SELECT 41 col2 FROM tab1 WHERE NOT + - ( + - col1 ) + + col2 + + - ( - - 88 ) IS # 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\(\*\)\) AS col2" at position 0 and "Int64\(76\) / \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 76 / - COUNT ( * ) AS col2 FROM tab1 query III 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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\(\*\) 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 @@ -52449,7 +52449,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\(\*\) 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 @@ -54424,7 +54424,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\(25\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -60955,7 +60955,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 0b8c2a9..c7a4603 100644 --- a/data/sqlite/random/aggregates/slt_good_15.slt +++ b/data/sqlite/random/aggregates/slt_good_15.slt @@ -5505,7 +5505,7 @@ SELECT DISTINCT - COUNT ( * ) / - COUNT ( col0 ) 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 "Int64\(56\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 56 AS col0, - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -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\(\*\) 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 @@ -7214,7 +7214,7 @@ SELECT + 84 AS col0, 50 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(2\) \* count\(\*\) \+ 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\(27\) AS col0" at position 0 and "Int64\(2\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 27 col0, + 2 * + COUNT ( * ) + + - 58 AS col0 FROM tab1 AS cor0 query I rowsort label-1186 @@ -12180,7 +12180,7 @@ SELECT DISTINCT MAX ( ALL ( + col0 ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS 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 MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query II rowsort @@ -18506,7 +18506,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + - col0 + + col0 * - + col2 * - + c # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -663 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "Int64\(\-18\) \* Int64\(37\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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 "Int64\(\-18\) \* Int64\(37\) \- \(\- 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, - 18 * + 37 - - COUNT ( * ) AS col1 FROM tab1 cor0 query III rowsort @@ -18635,7 +18635,7 @@ SELECT + COUNT ( * ) / + COUNT ( * ) - - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) \+ sum\(tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ sum\(tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + SUM ( col1 ) AS col1 FROM tab2 query II rowsort @@ -27114,7 +27114,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\(\*\) 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 @@ -27416,7 +27416,7 @@ SELECT ALL - + COUNT ( * ) + 60 * ( 4 ) FROM tab2 WHERE NULL > + 73 # 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\(\*\)\) AS col2" at position 1 have the 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 ALL + 67 AS col2, - COUNT ( * ) AS col2 FROM tab0 cor0 query I rowsort @@ -28789,7 +28789,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\(\*\)\)\) AS col1" at position 0 and "Int64\(53\) \- count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -29300,7 +29300,7 @@ SELECT DISTINCT + - COUNT ( ALL + 1 ) FROM tab2 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + COUNT ( * ) ), COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL query II rowsort label-4794 @@ -30039,7 +30039,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -31621,7 +31621,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\(\*\) AS col1" at position 1 have the 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 @@ -33875,7 +33875,7 @@ SELECT DISTINCT - - 36 AS col0, col2 AS col1 FROM tab1 AS cor0 WHERE 96 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "\(\- min\(\(\- 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 "\(\- min\(\(\- Int64\(95\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, ( - MIN ( - + 95 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL <= ( 40 ) query I rowsort label-5543 @@ -35222,7 +35222,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\(\-27\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -37903,7 +37903,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\(\*\) AS Int32\) AS col0" at position 1 have the 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 @@ -38078,7 +38078,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\(\*\) 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 @@ -40024,7 +40024,7 @@ SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 12 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL query I rowsort label-6548 @@ -40311,7 +40311,7 @@ SELECT DISTINCT COUNT ( * ) * + 1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 # 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\(\-10\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 DISTINCT - 10 col0, - COUNT ( * ) AS col0 FROM tab0 query II rowsort label-6599 @@ -43449,7 +43449,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -45444,7 +45444,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\(\*\) \* \(\- count\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -46042,7 +46042,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\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / count\(\*\) AS col0" at position 1 have the same name\. 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 @@ -46244,7 +46244,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\(\*\) 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 @@ -48988,7 +48988,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -56119,7 +56119,7 @@ SELECT * FROM tab0 AS cor0 WHERE NULL < 2 # 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\(\*\)\) AS col1" at position 1 have the same name\. 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 DISTINCT CAST ( NULL AS FLOAT8 ) AS col1, - COUNT ( * ) AS col1 FROM tab0 query III rowsort @@ -56421,7 +56421,7 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 * - 78 NOT BETWEEN + 99 * + - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 585 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- sum\(\(\- cor0\.col1\)\)\) 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\(\*\) \* \(\- sum\(\(\- cor0\.col1\)\)\) 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 ( * ) * + - SUM ( - col1 ) col0, + 79 AS col0 FROM tab2 AS cor0 query I rowsort @@ -58458,7 +58458,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\(\*\) AS col0" at position 0 and "min\(\(\- tab0\.col2\)\) \+ count\(\*\) \+ Int64\(18\) \+ \(\- Int64\(85\)\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 6d95c84..17619bc 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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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\(\*\)\) \+ count\(\*\) \- count\(\*\) AS col2" at position 1 have the 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 @@ -5433,7 +5433,7 @@ SELECT - + 76 col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. 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 tab0 AS cor0 query I rowsort label-900 @@ -6891,7 +6891,7 @@ SELECT 43 * - - col1 AS col1, - col1 FROM tab1 WHERE NOT ( ( NOT NULL IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 69 AS col0 FROM tab0 query I rowsort @@ -10754,7 +10754,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -10877,7 +10877,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -11532,7 +11532,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\(\*\) AS col2" at position 1 have 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 @@ -15957,7 +15957,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -22981,7 +22981,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\(\*\) AS col1" at position 1 have the 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 @@ -23031,7 +23031,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -29746,7 +29746,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\(\*\) AS col2" at position 1 have the 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 @@ -30126,7 +30126,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\(\*\) AS col1" at position 1 have the 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 @@ -30911,7 +30911,7 @@ SELECT + - ( CAST ( - + 83 AS INTEGER ) ) * + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 32 AS col2, + COUNT ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0 query III rowsort @@ -31380,7 +31380,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\(\*\) 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 @@ -31866,7 +31866,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\(\*\) 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 @@ -32874,7 +32874,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -33601,7 +33601,7 @@ SELECT ALL - - CAST ( + SUM ( ALL col0 ) AS INTEGER ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 192 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-64\) 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\(\*\)\) \* Int64\(\-64\) AS col1" at position 0 and "\(\- Int64\(\-19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - COUNT ( * ) ) * - 64 AS col1, ( - - 19 ) AS col1 FROM tab0 query I rowsort label-5541 @@ -34061,7 +34061,7 @@ SELECT - 38, + col1 * + col1 AS col0 FROM tab0 cor0 WHERE + col2 NOT BETWEEN NUL # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ), COUNT ( * ) FROM tab1 cor0 query III rowsort @@ -41201,7 +41201,7 @@ SELECT ALL ( + + 4 ) + + col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 query I rowsort @@ -43435,7 +43435,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\(\*\) \+ max\(Int64\(5\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have 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 @@ -46023,7 +46023,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\(\*\) 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 @@ -48022,7 +48022,7 @@ SELECT - + col0 * - 60 AS col1 FROM tab0 AS cor0 # 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 "\(\- max\(Int64\(38\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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\)\)\) AS col0" at 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 ( + 38 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 query I rowsort label-7935 @@ -48908,7 +48908,7 @@ SELECT DISTINCT + 83 - + 87 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ min\(DISTINCT \(\- tab1\.col0\)\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ min\(DISTINCT \(\- tab1\.col0\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT - col0 ) + - COUNT ( * ) AS col0, + 16 AS col0 FROM tab1 query I rowsort @@ -52465,7 +52465,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\(\*\) AS col2" at position 1 have the 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 f2bc21d..4f429ce 100644 --- a/data/sqlite/random/aggregates/slt_good_17.slt +++ b/data/sqlite/random/aggregates/slt_good_17.slt @@ -1466,7 +1466,7 @@ SELECT DISTINCT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL 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\(\*\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) col2, COUNT ( * ) * + 51 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 40 ) AND ( NULL ) query I rowsort @@ -7518,7 +7518,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -8317,7 +8317,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\(\*\) 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 @@ -8462,7 +8462,7 @@ SELECT + 91 * COUNT ( * ) + + 56 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) / Int64\(48\) \+ count\(\*\) \- \(\- 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\(6\) / Int64\(48\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- 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 6 / 48 + COUNT ( * ) - - COUNT ( * ) AS col0, + 92 AS col0 FROM tab1 query I rowsort @@ -8616,7 +8616,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\(\*\) AS col0" at position 1 have the 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 @@ -13280,7 +13280,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\(\*\) 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 @@ -22065,7 +22065,7 @@ SELECT DISTINCT - 29 * + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 282 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(Int64\(\-94\) AS Int32\) \* \(\- \(\- \(\- count\(\*\)\)\)\) AS col1" at position 1 have the same name\. 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 "CAST\(Int64\(\-94\) AS Int32\) \* \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( - 94 AS INTEGER ) * - - ( - COUNT ( * ) ) AS col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: @@ -31352,7 +31352,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\(\*\) 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 @@ -40211,7 +40211,7 @@ SELECT DISTINCT - ( COUNT ( * ) ) * 63 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -138 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- min\(cor0\.col0\)\) AS col0" at position 0 and "max\(DISTINCT cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(cor0\.col0\)\) AS col0" at position 0 and "max\(DISTINCT cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - MIN ( ALL + col0 ) AS col0, MAX ( DISTINCT + col1 ) col0 FROM tab2 AS cor0 query I rowsort label-6614 @@ -41163,7 +41163,7 @@ SELECT + CAST ( + 76 AS INTEGER ) + - col0 col0 FROM tab1 AS cor0 WHERE NULL IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( - col2 ) AS col0, - COUNT ( * ) + + + ( - CAST ( NULL AS INTEGER ) ) / + - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -45480,7 +45480,7 @@ SELECT DISTINCT - 95 AS col1 FROM tab0 WHERE + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(max\(cor0\.col1\) AS Int32\) AS col1" at position 0 and "Int64\(23\) \+ \(\- \(\- max\(cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(max\(cor0\.col1\) AS Int32\) AS col1" at position 0 and "Int64\(23\) \+ \(\- \(\- max\(cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + CAST ( + MAX ( ALL col1 ) AS INTEGER ) AS col1, + 23 + - - MAX ( + col0 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -46523,7 +46523,7 @@ SELECT * FROM tab0 WHERE + col0 * - ( - col0 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 33 -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\(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\(70\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 70 AS col1, COUNT ( * ) * 11 AS col1 FROM tab0 WHERE 31 NOT BETWEEN NULL AND - + 59 query I rowsort label-7637 @@ -48214,7 +48214,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\(17\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -53734,7 +53734,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\(\*\) 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 @@ -56498,7 +56498,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\(\-52\) \+ \(\- \(\- count\(\*\)\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -58264,7 +58264,7 @@ SELECT ALL - 77 / - + col0 col2, + 15 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(cor0\.col1\)\) AS col2" at position 0 and "max\(\(\- cor0\.col0\)\) \+ count\(\*\) \+ \(\- max\(DISTINCT 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 "\(\- max\(cor0\.col1\)\) AS col2" at position 0 and "max\(\(\- cor0\.col0\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(DISTINCT Int64\(\-26\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + MAX ( ALL + col1 ) AS col2, + MAX ( - col0 ) + COUNT ( * ) + - MAX ( DISTINCT - 26 ) AS col2 FROM tab0 cor0 query I rowsort @@ -59729,7 +59729,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\(\*\) AS col0" at position 1 have the 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 37d46d4..1e5af61 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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 @@ -11263,7 +11263,7 @@ SELECT + COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ) AS col2 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\(\*\)\) AS col0" at position 0 and "\(\- \(\- max\(Int64\(0\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- \(\- max\(Int64\(0\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, ( - - ( MAX ( ALL 0 ) ) ) AS col0 FROM tab1 query II rowsort @@ -11504,7 +11504,7 @@ SELECT + 7 * - COUNT ( * ) col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(CAST\(cor0\.col2 AS Int32\)\)\) AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) / count\(\*\) AS col2" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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 @@ -17988,7 +17988,7 @@ SELECT ( - 43 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( COUNT ( * ) ), COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-2982 @@ -19336,7 +19336,7 @@ SELECT DISTINCT + - 64 AS col1, - 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\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 cor0 query III rowsort @@ -24971,7 +24971,7 @@ SELECT + SUM ( DISTINCT - + col0 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(74\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(74\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 AS col1, + 74 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( + col0 * + 51 * 29 - col2 + col2 ) BETWEEN 14 * - col2 AND NULL ) query I rowsort @@ -30588,7 +30588,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ sum\(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\(59\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(Int64\(24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 AS col1, ( - COUNT ( * ) ) + + SUM ( ALL + 24 ) AS col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL query II 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\(\-2\) \- \(\- count\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -31005,7 +31005,7 @@ SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( - - col1, col0, + col0 + - + 30 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(12\) AS col0" at position 0 and "\(\- sum\(tab1\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(12\) AS col0" at position 0 and "\(\- sum\(tab1\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 12 AS col0, - SUM ( ALL + + col0 ) AS col0 FROM tab1 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\(\*\) 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 @@ -39281,7 +39281,7 @@ SELECT 0 + + 49 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\(\*\)\) 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 DISTINCT - ( + COUNT ( * ) ) AS col0, 88 AS col0 FROM tab1 cor0 query I rowsort label-6505 @@ -39510,7 +39510,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\(\*\) AS col0" at position 1 have the 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 @@ -40917,7 +40917,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -44524,7 +44524,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\(\*\) AS col0" at position 0 and "count\(\*\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 @@ -46191,7 +46191,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\(\*\) AS col2" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -46535,7 +46535,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\(\*\) AS col1" at position 1 have the 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 @@ -46788,7 +46788,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\(\*\) AS col2" at position 1 have 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 @@ -48545,7 +48545,7 @@ SELECT - col2 + - - col2 * - 81 * 36 * col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 99 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query III rowsort @@ -54669,7 +54669,7 @@ SELECT ALL col2, + col1 FROM tab0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < 1 * - + col0 * col2 query I rowsort label-9026 diff --git a/data/sqlite/random/aggregates/slt_good_19.slt b/data/sqlite/random/aggregates/slt_good_19.slt index a217ef6..9a14bab 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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -5819,7 +5819,7 @@ SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NULL IN ( + col2, + col1, + CAST ( - # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab0 cor0 query II rowsort label-945 @@ -8257,7 +8257,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\(\*\) 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 @@ -12310,7 +12310,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\(\*\) 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 @@ -13957,7 +13957,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\(51\) AS col0" at position 0 and "\(\- count\(\*\)\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -18280,7 +18280,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 DISTINCT + + 87 col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -21796,7 +21796,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + 46 * + 17 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + CAST ( + ( + ( - - COUNT ( * ) ) ) AS INTEGER ) ) AS col1, - 88 AS col1 FROM tab1 query I rowsort label-3580 @@ -22059,7 +22059,7 @@ SELECT col0 * - col2 - - - col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL query I rowsort @@ -24250,7 +24250,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\(\*\) AS col0" at position 1 have the 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 @@ -24642,7 +24642,7 @@ SELECT 10 - - + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-83\) \* Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-83\) \* Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + COUNT ( * ) AS INTEGER ) col2, - 83 * - 2 AS col2 FROM tab2 query I rowsort @@ -31416,7 +31416,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\(\*\) 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 @@ -38477,7 +38477,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\(\*\) AS col2" at position 1 have the 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 @@ -39768,7 +39768,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\(\*\) 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 @@ -40962,7 +40962,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\(\*\) AS col2" at position 1 have 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: @@ -41055,7 +41055,7 @@ SELECT - 97 * col0 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\(\*\)\) AS col0" at position 0 and "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 "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, COUNT ( * ) + + - 21 AS col0 FROM tab2 query I rowsort @@ -42335,7 +42335,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\(\*\) 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 @@ -45436,7 +45436,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\(\*\) AS col0" at position 0 and "Int64\(84\) \* \(\- 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 @@ -47439,7 +47439,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\(\*\) 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 @@ -48601,7 +48601,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\(\*\) 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 @@ -51169,7 +51169,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\(\*\) AS col1" at position 1 have the 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 @@ -56149,7 +56149,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -58978,7 +58978,7 @@ SELECT ALL col2 - + col0 - - col2 AS col2 FROM tab2 # 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\(\*\) \- \(\- \(\- \(\- count\(DISTINCT tab0\.col1\)\)\)\) AS col2" at position 0 and "sum\(tab0\.col0\) \* avg\(Int64\(14\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("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\(DISTINCT tab0\.col1\)\)\)\) AS col2" at position 0 and "sum\(tab0\.col0\) \* avg\(Int64\(14\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) - - ( - - COUNT ( DISTINCT + col1 ) ) AS col2, SUM ( ALL + col0 ) * AVG ( 14 ) * - COUNT ( * ) AS col2 FROM tab0 WHERE + 93 > NULL query I rowsort label-9712 @@ -59398,7 +59398,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\(\*\) 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 a4aeda3..f752838 100644 --- a/data/sqlite/random/aggregates/slt_good_2.slt +++ b/data/sqlite/random/aggregates/slt_good_2.slt @@ -3196,7 +3196,7 @@ SELECT ALL MAX ( + col0 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) / count\(\*\) \- Int64\(70\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(70\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 82 / + COUNT ( * ) - 70 AS col0, + ( - 93 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-524 @@ -8682,7 +8682,7 @@ SELECT DISTINCT + MAX ( - 86 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\)\) \+ Int64\(42\) AS col2" at position 0 and "count\(\*\) / \(\- \(\- sum\(\(\- cor0\.col1\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\)\) \+ Int64\(42\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- sum\(\(\- cor0\.col1\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( ALL 1 ) + 42 AS col2, + COUNT ( * ) / - - SUM ( - col1 ) AS col2 FROM tab1 AS cor0 query I rowsort label-1423 @@ -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\(\*\) AS col1" at position 1 have the 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\(\*\) 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 @@ -14819,7 +14819,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\(\*\) AS col0" at position 1 have the 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 @@ -15893,7 +15893,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\(\*\) 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 @@ -19606,7 +19606,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\(\*\) AS col2" at position 1 have the 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 @@ -25664,7 +25664,7 @@ SELECT ALL + 87 + - 5 AS col0 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 query I rowsort @@ -28779,7 +28779,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\(\*\) AS col2" at position 1 have the 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 @@ -29904,7 +29904,7 @@ SELECT col0 * - 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab2 query II rowsort label-4946 @@ -29939,7 +29939,7 @@ SELECT * FROM tab2 WHERE NOT 15 NOT BETWEEN - - col1 AND + 27 # 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 tab1\.col0\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\) AS col1" at 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 ( DISTINCT col0 ) col1, - COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -34166,7 +34166,7 @@ SELECT * FROM tab0 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 "Int64\(\-72\) \* Int64\(0\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 ALL - 72 * + + 0 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL query I rowsort label-5672 @@ -35373,7 +35373,7 @@ SELECT ALL - 44 / COUNT ( * ) AS col0 FROM tab1 AS cor0 # 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\) AS col1" at position 0 and "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 "Int64\(98\) 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 DISTINCT 98 AS col1, COUNT ( * ) / 53 AS col1 FROM tab0 AS cor0 query I rowsort @@ -39528,7 +39528,7 @@ SELECT DISTINCT ( + - col2 ) * + col1 - + ( + + 60 ) + 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab0 query I rowsort @@ -41337,7 +41337,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\(\*\) 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 @@ -42479,7 +42479,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\(\*\) 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 @@ -43520,7 +43520,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\(\*\) AS col1" at position 1 have the 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 @@ -47096,7 +47096,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\(\*\) AS col2" at position 1 have the 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 @@ -48171,7 +48171,7 @@ SELECT ALL - col0 / + ( + col1 ) + 63 FROM tab1 AS cor0 # 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\(44\) AS col1" at position 0 and "count\(\*\) \- \(\- 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\(44\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 44 col1, COUNT ( * ) - - ( COUNT ( * ) ) + - 4 col1 FROM tab0 cor0 query I rowsort label-8000 @@ -48999,7 +48999,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\(\*\) 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 @@ -50771,7 +50771,7 @@ SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 # 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\(\*\) / 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 "Int64\(41\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / max\(tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 41 AS col0, COUNT ( * ) / + + MAX ( + col2 ) AS col0 FROM tab0 query I rowsort label-8434 @@ -51666,7 +51666,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -51711,7 +51711,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\(\*\)\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -56673,7 +56673,7 @@ SELECT ALL col1 AS col2, col1 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 3 # Datafusion - Expected - 267 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- tab0\.col1\)\) AS col1" at position 1 and "\(\- Int64\(\-89\)\) \* \(\- \(\- 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\(DISTINCT \(\- tab0\.col1\)\) AS col1" at position 1 and "\(\- Int64\(\-89\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 col2, COUNT ( DISTINCT ( - col1 ) ) col1, - - 89 * - - COUNT ( * ) AS col1 FROM tab0 query I rowsort label-9411 @@ -56742,7 +56742,7 @@ SELECT DISTINCT + ( ( - col0 ) ) AS col2 FROM tab1 AS cor0 # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ALL - ( - 19 ) col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 query II rowsort @@ -57166,7 +57166,7 @@ SELECT COUNT ( DISTINCT 3 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(11\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(11\)\)\) AS col1" at 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 - + 11 ) col1, - COUNT ( * ) AS col1 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_20.slt b/data/sqlite/random/aggregates/slt_good_20.slt index 737fe9f..208a569 100644 --- a/data/sqlite/random/aggregates/slt_good_20.slt +++ b/data/sqlite/random/aggregates/slt_good_20.slt @@ -368,7 +368,7 @@ SELECT + ( + col2 ) * + col2 + + CAST ( + 29 AS INTEGER ) + - ( col2 ) * 88 * - # 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\(\*\)\) 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 FROM tab1 AS cor0 # Datafusion - Types were automatically converted from: @@ -1110,7 +1110,7 @@ SELECT DISTINCT - 59 AS col2 FROM tab0 AS cor0 WHERE NOT + 19 + col0 * + + 45 > # 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\(\*\)\) 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 AS col2 FROM tab1 AS cor0 query I rowsort label-166 @@ -6121,7 +6121,7 @@ SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT 99 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 75 -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\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 AS col0, COUNT ( * ) * 25 AS col0 FROM tab0 query I rowsort label-995 @@ -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\(\*\) AS col0" at position 1 have 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\(\*\) 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 @@ -10952,7 +10952,7 @@ SELECT ALL - MAX ( ALL col2 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -219 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- count\(\*\)\) AS col0" at position 0 and "CAST\(min\(Int64\(\-1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(min\(Int64\(\-1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 73 * - COUNT ( * ) AS col0, + CAST ( + + MIN ( + - 1 ) AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -18675,7 +18675,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\(\*\)\) / 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 @@ -22564,7 +22564,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\(\*\) 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 @@ -22889,7 +22889,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -29928,7 +29928,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\(\*\) AS col0" at position 1 have the 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 @@ -32890,7 +32890,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\(49\) AS col1" at position 0 and "Int64\(20\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -33119,7 +33119,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\(\*\) AS col1" at position 1 have 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 @@ -34275,7 +34275,7 @@ SELECT - ( COUNT ( DISTINCT + col1 ) ) + 61 AS col2 FROM tab2 AS cor0 WHERE NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - -1900 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(95\) AS col2" at position 0 and "\(\- 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 "Int64\(\-20\) \* Int64\(95\) 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 - 20 * 95 AS col2, - COUNT ( * ) * + 21 AS col2 FROM tab2 AS cor0 query III rowsort @@ -34944,7 +34944,7 @@ SELECT ALL * FROM tab2 WHERE NOT ( + 57 + - ( col2 ) ) BETWEEN ( + col0 ) AND NU # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- cor0\.col0\)\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- cor0\.col0\)\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( - - col0 ) AS col2, - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -36491,7 +36491,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE + 42 IS NOT NULL # 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\(23\) \- \(\- 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\(23\) \- \(\- 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 ALL 23 - - COUNT ( * ) AS col2, - 31 AS col2 FROM tab0 AS cor0 query III rowsort @@ -36705,7 +36705,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\(\*\) 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: @@ -38406,7 +38406,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\(\*\) AS col2" at position 1 have the 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 @@ -39335,7 +39335,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\(\*\) 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 @@ -43907,7 +43907,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\(\*\) 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 @@ -46659,7 +46659,7 @@ SELECT + - 87 - + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(75\)\) \- max\(DISTINCT Int64\(\-54\)\) 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 "sum\(DISTINCT Int64\(75\)\) \- max\(DISTINCT Int64\(\-54\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( DISTINCT + 75 ) - + MAX ( DISTINCT - 54 ) AS col0, - COUNT ( * ) + + - 92 AS col0 FROM tab0 AS cor0 query I rowsort @@ -48051,7 +48051,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\(\*\) AS col0" at position 1 have the 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 @@ -49948,7 +49948,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\(\*\) \+ count\(\*\) AS col0" at position 1 have the 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 6f86080..5b0b219 100644 --- a/data/sqlite/random/aggregates/slt_good_21.slt +++ b/data/sqlite/random/aggregates/slt_good_21.slt @@ -4038,7 +4038,7 @@ SELECT + 61 * + col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col1" at position 0 and "\(\- count\(\*\)\) \* Int64\(16\) / Int64\(75\) / \(\- max\(\(\- cor0\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(16\) / Int64\(75\) / \(\- max\(\(\- cor0\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 2 AS col1, - COUNT ( * ) * + + 16 / 75 / - MAX ( - col2 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -4311,7 +4311,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -5236,7 +5236,7 @@ SELECT DISTINCT 74 * col2 FROM tab0 # 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\(\*\)\)\) AS col2" at position 1 have the 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 FROM tab2 query I rowsort @@ -7952,7 +7952,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) \- count\(\*\) \+ count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -8183,7 +8183,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -9538,7 +9538,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + + 18 AND 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -252 -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\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 21 AS col0, COUNT ( * ) * - 84 AS col0 FROM tab1 AS cor0 query II rowsort @@ -16328,7 +16328,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\(\*\) AS col2" at position 1 have the same name\. 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 @@ -16785,7 +16785,7 @@ SELECT * FROM tab2 WHERE + + col0 + - 64 NOT IN ( + 61 * + col1 - + 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(42\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(42\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 42 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query III rowsort @@ -18395,7 +18395,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -21137,7 +21137,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\(\*\) 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 @@ -23328,7 +23328,7 @@ SELECT - col2 * + col2 + col0 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- max\(\(\- Int64\(1\)\)\)\) 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\(\*\) \+ \(\- max\(\(\- Int64\(1\)\)\)\) 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 ( * ) + + - MAX ( ALL - + 1 ) AS col2, + 82 AS col2 FROM tab0 query III rowsort @@ -24113,7 +24113,7 @@ SELECT DISTINCT + + col0 + + 98 AS col1, 47 * 39 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- \(\- 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 "Int64\(60\) \+ \(\- \(\- 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 + + 60 + - - COUNT ( * ) AS col0, - 29 AS col0 FROM tab0 AS cor0 query I rowsort label-3973 @@ -25115,7 +25115,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\(\*\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -26361,7 +26361,7 @@ SELECT DISTINCT + 87 + + MIN ( + - 31 ) + - - 13 AS col1 FROM ( tab0 AS cor0 CRO # 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\(\(\- tab2\.col2\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\.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 COUNT ( + - col2 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 query II rowsort @@ -36297,7 +36297,7 @@ SELECT + col1 + + + col1 * 77 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 WHERE NULL BETWEEN + col2 + col0 AND NULL query II rowsort @@ -42838,7 +42838,7 @@ SELECT - 50 / - COUNT ( * ) FROM tab0 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\(\*\)\)\) 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 ( * ) AS col1, 52 col1 FROM tab2 AS cor0 query I rowsort @@ -42876,7 +42876,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\(\*\) / max\(\(\- Int64\(45\)\)\) \+ count\(\*\) \+ 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 @@ -53570,7 +53570,7 @@ SELECT SUM ( - - col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(1\) / \(\- max\(tab1\.col0\)\) AS col0" at position 0 and "Int64\(\-62\) \- \(\- CAST\(Int64\(\-93\) AS Int32\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) / \(\- max\(tab1\.col0\)\) AS col0" at position 0 and "Int64\(\-62\) \- \(\- CAST\(Int64\(\-93\) AS Int32\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( COUNT ( * ) ) + + 1 / - MAX ( ALL + col0 ) AS col0, - 62 - - CAST ( - 93 AS INTEGER ) + 33 AS col0 FROM tab1 query III rowsort @@ -57123,7 +57123,7 @@ SELECT + ( - col2 ) * - col0 FROM tab2 WHERE + - 9 <> - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) \* count\(\*\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, 18 * COUNT ( * ) - + 50 AS col0 FROM tab2 AS cor0 query I rowsort @@ -58691,7 +58691,7 @@ SELECT + SUM ( ALL + 76 ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\(\- Int64\(\-74\)\)\)\)\) \* \(\- 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\(\-74\)\)\)\)\) \* \(\- 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 ALL - - COUNT ( ALL - - 74 ) * - + COUNT ( * ) AS col0, + 13 AS col0 FROM tab0 WHERE NOT + col0 <= NULL query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_22.slt b/data/sqlite/random/aggregates/slt_good_22.slt index c4ae06a..8b65d23 100644 --- a/data/sqlite/random/aggregates/slt_good_22.slt +++ b/data/sqlite/random/aggregates/slt_good_22.slt @@ -5572,7 +5572,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\(\*\) 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 @@ -5811,7 +5811,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -7433,7 +7433,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\(\*\) AS col1" at position 1 have the 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 @@ -8606,7 +8606,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\(\*\) 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 @@ -10870,7 +10870,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\(\*\) AS col1" at position 1 have the 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 @@ -11671,7 +11671,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\(\*\) AS col0" at position 1 have the 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 @@ -14877,7 +14877,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\(\*\) AS col1" at position 1 have the 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 @@ -17972,7 +17972,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\(\*\) 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 @@ -26669,7 +26669,7 @@ SELECT - col2 + - 52 * + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -214 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(79\) AS col2" at position 0 and "CAST\(\(\- sum\(DISTINCT tab1\.col2\)\) AS Int32\) \- Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col2" at position 0 and "CAST\(\(\- sum\(DISTINCT tab1\.col2\)\) AS Int32\) \- Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + 79 AS col2, CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) - - 9 AS col2 FROM tab1 query I rowsort @@ -27226,7 +27226,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\(\*\) 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 @@ -36948,7 +36948,7 @@ SELECT ALL - SUM ( + 70 ) AS col2 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( COUNT ( * ) ), + COUNT ( * ) FROM tab0 query I rowsort @@ -38128,7 +38128,7 @@ SELECT col2 * - - col2 / + col1, col0 - + 72 AS col2 FROM tab2 AS cor0 WHERE NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 FROM tab1 WHERE NOT NULL IS NULL query III rowsort @@ -40321,7 +40321,7 @@ SELECT DISTINCT * FROM tab0 WHERE - 61 IS 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\(\*\)\)\) AS col0" at position 0 and "Int64\(80\) \- \(\- 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\(80\) \- \(\- Int64\(10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - COUNT ( * ) ) AS col0, 80 - - + 10 AS col0 FROM tab0 query III rowsort @@ -41516,7 +41516,7 @@ SELECT ALL + col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "sum\(Int64\(27\)\) \+ Int64\(\-2\) \* Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "sum\(Int64\(27\)\) \+ Int64\(\-2\) \* Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) col2, SUM ( 27 ) + - 2 * - 26 col2 FROM tab0 query II rowsort label-6833 @@ -44300,7 +44300,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\(\*\) AS col0" at position 1 have the 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 @@ -52925,7 +52925,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -53055,7 +53055,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\(\*\) \+ count\(\*\) AS col2" at position 1 have 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 @@ -54526,7 +54526,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\(\*\) AS col1" at position 0 and "Int64\(56\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -57181,7 +57181,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 0252f2b..9fb638c 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\(\*\) AS col1" at position 1 have 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col0" at position 0 and "count\(\*\) / count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\) AS col2" at position 1 have the 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 @@ -5033,7 +5033,7 @@ SELECT DISTINCT - COUNT ( * ) + - 53 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(\-91\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(\-91\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 18 AS col1, - 91 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-831 @@ -9080,7 +9080,7 @@ SELECT ALL + COUNT ( * ) + - 89 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL query I rowsort @@ -17935,7 +17935,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\(\*\) AS col1" at position 1 have the 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 @@ -20951,7 +20951,7 @@ SELECT ALL - ( - col1 ) * - col0 * - ( + col2 ) + + + 46 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab1\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab1\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( ALL + + col1 ) AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 query I rowsort label-3469 @@ -29121,7 +29121,7 @@ SELECT DISTINCT - 92 + 18 * col1 AS col0 FROM tab0 # 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\(\*\)\) 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 ALL - ( + COUNT ( * ) ) AS col1, + 57 AS col1 FROM tab1 cor0 query I rowsort label-4812 @@ -37417,7 +37417,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\(\*\) AS col0" at position 1 have the 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 @@ -40194,7 +40194,7 @@ SELECT DISTINCT MAX ( - 49 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-79\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-79\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 23 col1, + COUNT ( * ) + + - 79 + + + 10 AS col1 FROM tab0 query I rowsort label-6635 @@ -42649,7 +42649,7 @@ SELECT ALL + - col0 * - 53 + + + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 168 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* \(\- \(\- \(\- count\(\*\)\)\)\) \- Int64\(78\) 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\(\-82\) \* \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(78\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 82 * - - ( - COUNT ( * ) ) - + 78 AS col2, + 76 AS col2 FROM tab2 AS cor0 query I rowsort label-7036 @@ -43674,7 +43674,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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: @@ -45540,7 +45540,7 @@ SELECT ALL - - COUNT ( ALL + ( - 59 ) ) AS col2, 48 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\(\-15\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 AS cor0 query I rowsort label-7512 @@ -48331,7 +48331,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\(\*\) AS col1" at position 1 have the 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 @@ -48419,7 +48419,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\(\*\) AS col1" at position 1 have the 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 @@ -49230,7 +49230,7 @@ SELECT ALL COUNT ( * ) AS col0, - ( + 4 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "count\(\*\) \+ \(\- \(\- count\(\*\)\)\) \+ \(\- max\(DISTINCT \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- max\(DISTINCT \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 AS col0, COUNT ( * ) + - + ( + - COUNT ( * ) ) + - + MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -49568,7 +49568,7 @@ SELECT * FROM tab1 WHERE NOT col2 + - + 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\(\*\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 AS cor0 query I rowsort @@ -50411,7 +50411,7 @@ SELECT DISTINCT + - 77 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 query I rowsort @@ -57729,7 +57729,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\(\*\) AS col0" at position 0 and "Int64\(63\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 efbeae7..843dd19 100644 --- a/data/sqlite/random/aggregates/slt_good_24.slt +++ b/data/sqlite/random/aggregates/slt_good_24.slt @@ -1504,7 +1504,7 @@ SELECT ALL + - 48 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- count\(\*\)\) \* CAST\(Int64\(3\) AS Int32\) AS col2" at position 0 and "\(\- max\(Int64\(16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(3\) AS Int32\) AS col2" at position 0 and "\(\- max\(Int64\(16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - COUNT ( * ) ) * - + COUNT ( * ) * CAST ( + 3 AS INTEGER ) AS col2, - MAX ( 16 ) AS col2 FROM tab2 AS cor0 query I rowsort label-230 @@ -4403,7 +4403,7 @@ SELECT - col2 + - col0 * + + 6 * - + 11 * 59 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1, tab1 AS cor0 query III rowsort @@ -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\(\*\) AS col1" at position 0 and "Int64\(5\) / count\(\*\) AS col1" at position 1 have the same 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\(\*\) AS col2" at position 1 have 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -24396,7 +24396,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\(\*\) 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 @@ -25948,7 +25948,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\(\*\) AS col0" at position 1 have the 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 @@ -31662,7 +31662,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 + 44 + + col2 * + - c # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 33 -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\(\-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\(59\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 59 AS col1, COUNT ( * ) * - - 11 AS col1 FROM tab0 query I rowsort label-5249 @@ -31713,7 +31713,7 @@ SELECT DISTINCT - - 78 * MIN ( - 94 ) col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 470191 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(60\) AS col2" at position 0 and "count\(\*\) \- Int64\(\-82\) \* Int64\(61\) \* 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\(\*\)\) \- Int64\(60\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-82\) \* Int64\(61\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) - 60 AS col2, COUNT ( * ) - - 82 * 61 * 94 AS col2 FROM tab0 AS cor0 query I rowsort label-5258 @@ -34299,7 +34299,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\(\*\) 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 @@ -34731,7 +34731,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\(\*\) AS col1" at position 1 have the 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 @@ -45945,7 +45945,7 @@ SELECT - 66 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2, tab2 AS # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 44 AS col2, - COUNT ( * ) col2 FROM tab0 AS cor0 # Datafusion - Types were automatically converted from: @@ -47483,7 +47483,7 @@ SELECT DISTINCT - COUNT ( * ) * 98 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(\*\) \* \(\- Int64\(10\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(74\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(74\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + COUNT ( * ) * - + 10 col1, CAST ( - + 74 AS INTEGER ) AS col1 FROM tab2 query III rowsort @@ -48391,7 +48391,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\(\*\) AS col0" at position 1 have the 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 @@ -51025,7 +51025,7 @@ SELECT ALL + + ( + CAST ( - - 20 AS INTEGER ) ) FROM tab2 AS cor0 # 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\(\*\)\)\) AS col1" at position 0 and "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 ALL - - COUNT ( * ) AS col1, + COUNT ( * ) * - + ( + + ( 54 ) ) col1 FROM tab2 AS cor0 query I rowsort @@ -51985,7 +51985,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\(\*\) 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 @@ -52452,7 +52452,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\(\*\) AS col2" at position 1 have the 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 @@ -55943,7 +55943,7 @@ SELECT DISTINCT * FROM tab0 WHERE col0 + - - col2 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 ( * ) AS col0 FROM tab0, tab1 AS cor0 query I rowsort @@ -56613,7 +56613,7 @@ SELECT DISTINCT + CAST ( + - 53 AS INTEGER ) AS col1 FROM tab2 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\(\*\)\) AS col1" at position 0 and "max\(\(\- \(\- cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(\(\- \(\- cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + MAX ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -58881,7 +58881,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -59985,7 +59985,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\(\*\) AS col2" at position 1 have the 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 45d6a9f..7550d5a 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\(\*\) 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\(\*\) 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 @@ -3647,7 +3647,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -6124,7 +6124,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -7733,7 +7733,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\(\*\) AS col2" at position 1 have the 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 @@ -9002,7 +9002,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\(\*\) AS col2" at position 1 have 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 @@ -9509,7 +9509,7 @@ SELECT ALL + + SUM ( ALL col2 ) col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* avg\(Int64\(81\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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\) \* avg\(Int64\(81\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * AVG ( ALL 81 ) AS col1, - COUNT ( * ) AS col1 FROM tab0 cor0 query I rowsort label-1558 @@ -11383,7 +11383,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\(\*\) AS col1" at position 1 have 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 @@ -13767,7 +13767,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -14884,7 +14884,7 @@ SELECT ALL - MIN ( ALL 73 ) 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same 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 col2" at 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 ( 21 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -17374,7 +17374,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\(\*\)\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -20858,7 +20858,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\(\*\) 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 @@ -22689,7 +22689,7 @@ SELECT + + col1 + 45 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 < 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( + COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0 query I rowsort label-3758 @@ -27084,7 +27084,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\(\*\) AS col2" at position 1 have the 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 @@ -31117,7 +31117,7 @@ SELECT COUNT ( * ) * + - 94 col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 199 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / max\(DISTINCT cor0\.col1\) 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\(\*\)\) / max\(DISTINCT cor0\.col1\) 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 ALL - COUNT ( * ) / + + MAX ( DISTINCT + + col1 ) AS col1, SUM ( col0 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -37645,7 +37645,7 @@ SELECT - col2 AS col0, col0 * - - ( + col1 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 cor0 WHERE col2 * + col0 IS NULL query III rowsort @@ -38477,7 +38477,7 @@ SELECT ALL - COUNT ( * ) * + - COUNT ( * ), 55 AS col0 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\(\-90\) \+ Int64\(95\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 + - 90 + + + 95 col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -41810,7 +41810,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\(\*\) AS col1" at position 1 have the 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 @@ -41956,7 +41956,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\(\*\) 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 @@ -44503,7 +44503,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- count\(\*\)\) \+ \(\- sum\(Int64\(\-22\)\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- sum\(Int64\(\-22\)\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + - COUNT ( * ) + - SUM ( - 22 ) AS col1, + 10 AS col1 FROM tab1 AS cor0 query II rowsort label-7374 @@ -47473,7 +47473,7 @@ SELECT ALL + - ( MAX ( ALL + + col0 ) ) 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\(\*\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-92\)\) \- 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\(\*\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-92\)\) \- Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) col1, + MAX ( DISTINCT - 92 ) - - 42 col1 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_26.slt b/data/sqlite/random/aggregates/slt_good_26.slt index 44c7971..737feb7 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\(\*\) 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\(\*\) AS col2" at position 1 have the 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\(\-35\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -9164,7 +9164,7 @@ SELECT DISTINCT MIN ( DISTINCT + - col2 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -201 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-67\) 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\(\*\) \* Int64\(\-67\) 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 ( * ) * + - 67 AS col0, + 75 col0 FROM tab0 query I rowsort label-1525 @@ -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\(\*\)\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -11667,7 +11667,7 @@ SELECT 1 / - - col1 FROM tab0 # 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\(\*\)\) AS col2" at position 0 and "Int64\(77\) \* count\(DISTINCT 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\(77\) \* count\(DISTINCT Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, 77 * + ( + COUNT ( DISTINCT + 68 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL query I 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\(\*\) AS col2" at position 0 and "CAST\(\(\- \(\- 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\(\*\) AS col2" at position 1 have the 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 @@ -24005,7 +24005,7 @@ SELECT ALL COUNT ( - - col2 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 AS col1, - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Types were automatically converted from: @@ -25022,7 +25022,7 @@ SELECT ALL SUM ( DISTINCT - ( col2 ) ) AS col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -183 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(61\)\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(61\)\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - + 61 AS col0, - 65 AS col0 FROM tab1 cor0 query I rowsort @@ -28111,7 +28111,7 @@ SELECT + + col2 + 93 FROM tab2 WHERE - - col2 + - 8 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -865 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-58\) \+ Int64\(\-98\) \* \(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "\(\- max\(\(\- \(\- tab0\.col2\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-58\) \+ Int64\(\-98\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- max\(\(\- \(\- tab0\.col2\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 + - 58 + - 98 * - + COUNT ( * ) * - COUNT ( * ) AS col2, - MAX ( - - col2 ) AS col2 FROM tab0 query III rowsort @@ -34872,7 +34872,7 @@ SELECT + 98 + 19 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 255 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col2\) \* max\(Int64\(85\)\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\) \* max\(Int64\(85\)\) 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 ) * MAX ( ALL + + 85 ) AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-5756 @@ -36351,7 +36351,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -41369,7 +41369,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\(\*\) AS col0" at position 1 have 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 @@ -42641,7 +42641,7 @@ SELECT + + col0, col0 col0 FROM tab2 AS cor0 # 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\(\*\)\) 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 "\(\- 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 ALL - COUNT ( * ) col2, + 40 AS col2 FROM tab1 AS cor0 query I rowsort label-7043 @@ -42762,7 +42762,7 @@ SELECT DISTINCT - + col0 + - col2 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "max\(\(\- Int64\(32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(\(\- Int64\(32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 44 + - - ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1, MAX ( ALL - + 32 ) AS col1 FROM tab2 cor0 query I rowsort label-7063 @@ -43612,7 +43612,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\(\*\)\) AS col0" at position 0 and "Int64\(72\) \+ count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -44870,7 +44870,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 285 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* \(\- count\(\*\)\) AS col1" at position 0 and "sum\(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\(\-25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "sum\(Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 25 * - COUNT ( * ) AS col1, + SUM ( 95 ) col1 FROM tab0 query I rowsort @@ -49526,7 +49526,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\(\*\) AS col1" at position 1 have 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: @@ -50294,7 +50294,7 @@ SELECT + - col2 * + + col0 / + + col0 + + col0 col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(cor0\.col0\) \* Int64\(21\) \* \(\- 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 "avg\(cor0\.col0\) \* Int64\(21\) \* \(\- 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 AVG ( + col0 ) * 21 * - COUNT ( * ) col0, 83 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL query I rowsort label-8309 @@ -50687,7 +50687,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\(\*\) 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 @@ -57925,7 +57925,7 @@ SELECT - + col1 + + col2 * - col2 AS col2 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_27.slt b/data/sqlite/random/aggregates/slt_good_27.slt index 1d2ca26..a43aa47 100644 --- a/data/sqlite/random/aggregates/slt_good_27.slt +++ b/data/sqlite/random/aggregates/slt_good_27.slt @@ -1376,7 +1376,7 @@ SELECT DISTINCT + 63 / - col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), ( COUNT ( * ) ) FROM tab1 query IIIIII rowsort @@ -6442,7 +6442,7 @@ SELECT DISTINCT - 29 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \- \(\- count\(\*\)\) AS col0" at position 0 and "\(\- sum\(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\(14\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- sum\(Int64\(58\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 - + - COUNT ( * ) AS col0, ( - SUM ( ALL + 58 ) ) col0 FROM tab1 AS cor0 query I rowsort @@ -7877,7 +7877,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\(\*\) 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 @@ -11478,7 +11478,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\(\*\) AS col2" at position 1 have the 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 @@ -15854,7 +15854,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\(\*\) AS col1" at position 1 have the 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 @@ -18841,7 +18841,7 @@ SELECT DISTINCT col1, col0 * + + col1, 19 / col0 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ count\(\*\) \+ Int64\(70\) AS col2" at position 0 and "Int64\(\-33\) \+ 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\(14\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col2" at position 0 and "Int64\(\-33\) \+ Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 14 + COUNT ( * ) + + 70 AS col2, - 33 + - 11 AS col2 FROM tab0 WHERE + 98 = 25 + + col2 * + col2 + - col0 query I rowsort label-3118 @@ -19723,7 +19723,7 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( + col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT cor0\.col2\) AS col1" at position 0 and "count\(\*\) \- \(\- 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 "max\(DISTINCT cor0\.col2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( DISTINCT col2 ) AS col1, COUNT ( * ) - - + 47 AS col1 FROM tab1 AS cor0 query I rowsort label-3258 @@ -21345,7 +21345,7 @@ SELECT ALL - col1 * + col0 * + - col1 * + + ( 43 ) AS col0 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\(\*\)\) 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 AS col0 FROM tab1 query I rowsort @@ -22487,7 +22487,7 @@ SELECT DISTINCT + col1 + 87 + - + col1 * + 95 + 14 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col2\)\) \* Int64\(\-1\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col2\)\) \* Int64\(\-1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( - col2 ) * - 1 + + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -23932,7 +23932,7 @@ SELECT - col0 + + col0 - - - 71 * + col0 * col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(\*\) \+ max\(\(\- tab1\.col2\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(52\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\(\*\) \+ max\(\(\- tab1\.col2\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(52\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) + MAX ( - + col2 ) AS col0, COUNT ( * ) * + + 52 + - COUNT ( * ) AS col0 FROM tab1 query I rowsort label-3949 @@ -24104,7 +24104,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\(\*\) 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 @@ -24505,7 +24505,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\(\*\) AS col0" at position 1 have the 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 @@ -25544,7 +25544,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\(\*\) AS col1" at position 1 have the same 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 @@ -26382,7 +26382,7 @@ SELECT ALL + 2, + col2 * + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(\*\) / Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) / + 80 col0 FROM tab0 AS cor0 query II rowsort @@ -30772,7 +30772,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\(\*\)\) \- 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 @@ -34886,7 +34886,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -40782,7 +40782,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\(\*\) 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 @@ -41009,7 +41009,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\(\*\) AS col0" at position 1 have the 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 @@ -42841,7 +42841,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\(\*\) AS col2" at position 1 have the 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 @@ -43087,7 +43087,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\(\*\) 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 @@ -44753,7 +44753,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\(\*\) 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 @@ -44828,7 +44828,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\(\*\) AS col0" at position 1 have 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 @@ -48134,7 +48134,7 @@ SELECT ALL col1 / + col2 + + 33 AS col2 FROM tab1 # Datafusion - Expected - -51 # Datafusion - Expected - -23 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- tab0\.col1\)\) \- max\(DISTINCT Int64\(54\)\) AS col1" at position 0 and "count\(\*\) \* \(\- \(\- 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\(\(\- tab0\.col1\)\) \- max\(DISTINCT Int64\(54\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( + + ( - col1 ) ) - + MAX ( DISTINCT 54 ) AS col1, SUM ( DISTINCT + - 23 ), + + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 query III rowsort @@ -51456,7 +51456,7 @@ SELECT ALL col0 - + CAST ( + 68 AS INTEGER ) 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab0 cor0 query I rowsort @@ -52953,7 +52953,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\(\*\)\)\) \+ count\(\*\) AS col1" at position 0 and "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 @@ -53104,7 +53104,7 @@ SELECT * FROM tab2 WHERE NOT + + 3 / col0 NOT IN ( + col2, col1 + col2, - + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 273 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-91\) 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\(\*\)\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - 91 AS col2, 1 AS col2 FROM tab2 AS cor0 query I rowsort label-8784 @@ -55692,7 +55692,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\(\*\) 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 @@ -57275,7 +57275,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -58337,7 +58337,7 @@ SELECT ALL + 55 * + + 88 * 68 FROM tab1 # 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\(\*\)\) 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 - + COUNT ( * ) AS col0, 58 col0 FROM tab2 AS cor0 query III rowsort @@ -58526,7 +58526,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\(\*\)\) AS col2" at position 0 and "Int64\(\-23\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -60449,7 +60449,7 @@ SELECT ALL - 99 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 33, col1 * + + ( - 93 # 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\(\*\)\) 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 tab1 query I rowsort label-9994 diff --git a/data/sqlite/random/aggregates/slt_good_28.slt b/data/sqlite/random/aggregates/slt_good_28.slt index dba5cc7..a177cfe 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\(\*\) AS col2" at position 1 have the 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 @@ -1135,7 +1135,7 @@ SELECT DISTINCT - ( - col0 ) * - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -2563 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "max\(DISTINCT \(\- \(\- Int64\(\-79\)\)\)\) \- \(\- Int64\(\-46\)\) \* 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 "max\(DISTINCT \(\- \(\- Int64\(\-79\)\)\)\) \- \(\- Int64\(\-46\)\) \* Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - COUNT ( * ) AS col2, + MAX ( DISTINCT + - ( - - 79 ) ) - - ( + - 46 ) * 54 AS col2 FROM tab1 AS cor0 query III rowsort @@ -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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -12270,7 +12270,7 @@ SELECT * FROM tab0 WHERE + col2 - col2 * 37 + - ( - 95 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab2\.col1\) AS col1" at position 0 and "\(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab2\.col1\) 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 MAX ( col1 ) AS col1, - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -18129,7 +18129,7 @@ SELECT ( + 82 ) / - 47 - - CAST ( - col2 AS INTEGER ) + col1 FROM tab2 # 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\(\*\)\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "min\(Int64\(\-33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "min\(Int64\(\-33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - COUNT ( * ) AS col2, MIN ( + - 33 ) AS col2 FROM tab1 query I rowsort label-2972 @@ -18465,7 +18465,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\(\*\) AS col2" at position 1 have the 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 @@ -18707,7 +18707,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\(\*\) AS col0" at position 1 have the 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 @@ -21643,7 +21643,7 @@ SELECT + col1 * ( - 4 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -276 # Datafusion - Expected - 38 -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\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(92\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 92 AS col0, 38 AS col0 FROM tab2 AS cor0 query III rowsort @@ -26369,7 +26369,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\(\*\) 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 @@ -36133,7 +36133,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\(\*\) 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: @@ -36554,7 +36554,7 @@ SELECT ALL - - 59 * 42 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 207 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(76\)\) \+ Int64\(68\) \* count\(\(\- Int64\(62\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / \(\- count\(\*\)\) \* Int64\(80\) \+ \(\- count\(DISTINCT \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(76\)\) \+ Int64\(68\) \* count\(\(\- Int64\(62\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(80\) \+ \(\- count\(DISTINCT \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( ALL 76 ) + 68 * + COUNT ( - + 62 ) col0, CAST ( NULL AS INTEGER ) / - COUNT ( * ) * 80 + + - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 cor0 query I rowsort @@ -40693,7 +40693,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\(\*\) \* 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 @@ -44334,7 +44334,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\(\*\) AS col0" at position 1 have the 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 @@ -45575,7 +45575,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\(\*\) AS col1" at position 1 have the 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: @@ -46380,7 +46380,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -48392,7 +48392,7 @@ 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\(\*\)\) AS col1" at position 1 have the 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 DISTINCT 99 AS col1, - COUNT ( * ) AS col1 FROM tab2 query I rowsort label-7963 @@ -49676,7 +49676,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\(\*\)\) \* 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 @@ -50389,7 +50389,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\(\*\) AS col0" at position 1 have 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 @@ -51122,7 +51122,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\(\*\) AS col1" at position 1 have 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 @@ -52542,7 +52542,7 @@ SELECT ALL + 77 col1 FROM tab0 # 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\(\*\)\) 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 ALL - COUNT ( * ) col0, 23 AS col0 FROM tab2 query I rowsort label-8645 @@ -59278,7 +59278,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 <= ( + col2 + + col1 ) ) # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col0, 24 AS col0 FROM tab1 query I rowsort @@ -59377,7 +59377,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\(\*\) AS col0" at position 1 have 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 @@ -59714,7 +59714,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\(\*\) AS col0" at position 1 have the 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 ba6d934..295ccb6 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\(\*\) 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\(\*\) AS col0" at position 0 and "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\(\*\) 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\(\*\) 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 @@ -17767,7 +17767,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\(\*\) AS col2" at position 1 have the same name\. 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 @@ -19551,7 +19551,7 @@ SELECT + col0 - + col2 * col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 46 AS col0, CAST ( NULL AS INTEGER ) + - COUNT ( * ) col0 FROM tab1 query III rowsort @@ -19897,7 +19897,7 @@ SELECT + col2 col0 FROM tab1 AS cor0 WHERE - 40 > 92 / + + 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 "\(\- count\(DISTINCT cor0\.col2\)\) AS col0" at position 0 and "count\(\*\) / \(\- count\(\*\)\) AS col0" at position 1 have the 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\.col2\)\) 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 ( DISTINCT col2 ) AS col0, COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab1 cor0 query III rowsort @@ -20022,7 +20022,7 @@ SELECT + 82 * + col1 * 38, ( + + ( + ( + col2 ) ) ) + + col2 AS col2 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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - COUNT ( * ) + - ( + 56 ) AS col2 FROM tab1 AS cor0 query I rowsort label-3295 @@ -32463,7 +32463,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\(29\) \+ 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 @@ -40713,7 +40713,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\(\*\) 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 @@ -40991,7 +40991,7 @@ SELECT 68 * - + 39 - + col1 + - - col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(41\) 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\(\*\) \- Int64\(41\) 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 ( * ) - 41 AS col1, - 68 AS col1 FROM tab2 query I rowsort @@ -41544,7 +41544,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\(\*\) 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 @@ -47730,7 +47730,7 @@ SELECT * FROM tab2 WHERE NOT + col0 + + 56 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-69\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) / \(\- Int64\(88\)\) \* 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 "\(\- min\(Int64\(\-69\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(88\)\) \* Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( ALL - 69 ) AS col2, - COUNT ( * ) / - + 88 * - 4 AS col2 FROM tab2 query I rowsort label-7857 @@ -51392,7 +51392,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\(\*\) AS col2" at position 1 have the 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 @@ -51423,7 +51423,7 @@ SELECT 12 AS col1, - col2 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -61 -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\(\*\)\) AS col0" at position 1 have the 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 - 67 AS col0, - 58 + - + COUNT ( * ) col0 FROM tab0 AS cor0 query I rowsort @@ -52152,7 +52152,7 @@ SELECT + 3 AS col2, + 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\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 label-8586 @@ -53649,7 +53649,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\(\*\) AS col2" at position 0 and "\(\- 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 @@ -56225,7 +56225,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\(\*\) AS col1" at position 1 have the 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 @@ -56738,7 +56738,7 @@ SELECT col0 * 57 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0 query III rowsort label-9341 diff --git a/data/sqlite/random/aggregates/slt_good_3.slt b/data/sqlite/random/aggregates/slt_good_3.slt index 751c43b..a512b01 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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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 @@ -6722,7 +6722,7 @@ SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -193 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- count\(\*\)\) \+ Int64\(49\) \+ Int64\(\-26\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(49\) \+ Int64\(\-26\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 * - COUNT ( * ) + 49 + - 26 AS col0, 1 col0 FROM tab1 AS cor0 query I rowsort @@ -6811,7 +6811,7 @@ SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT + col2 + - col0 / + + 32 = + # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "count\(\*\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) + + 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-1101 @@ -13131,7 +13131,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -18323,7 +18323,7 @@ SELECT DISTINCT + 95 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ count\(DISTINCT Int64\(\-80\)\) 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\(\*\) \+ count\(DISTINCT Int64\(\-80\)\) 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 COUNT ( * ) + COUNT ( DISTINCT - 80 ) AS col2, 77 AS col2 FROM tab2 query III rowsort @@ -18588,7 +18588,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\(\*\) AS col0" at position 1 have the 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 @@ -25162,7 +25162,7 @@ SELECT ALL - 8 * - col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL query I rowsort label-4126 @@ -26790,7 +26790,7 @@ SELECT col2 AS col0, + 76 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "sum\(tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "sum\(tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, SUM ( + col0 ) col1 FROM tab2 query I rowsort @@ -27491,7 +27491,7 @@ SELECT DISTINCT col2, - 53 FROM tab1 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\(\*\)\) 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 "\(\- 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 ALL - COUNT ( * ) AS col0, 49 AS col0 FROM tab2 AS cor0 query I rowsort @@ -28047,7 +28047,7 @@ SELECT - 52 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 85 ) + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -32162,7 +32162,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\(\*\) AS col1" at position 1 have the 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 @@ -32173,7 +32173,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\(\*\) 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 @@ -33042,7 +33042,7 @@ SELECT DISTINCT + 82 + - COUNT ( * ) FROM tab1 AS cor0 # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 70 AS col0, - COUNT ( * ) AS col0 FROM tab2 query I rowsort @@ -34038,7 +34038,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\(\*\) 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 @@ -41586,7 +41586,7 @@ NULL # Datafusion - Expected - -3 # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 and "max\(cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 and "max\(cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, + MAX ( + col1 ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -44649,7 +44649,7 @@ SELECT - MAX ( + col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2, + 29 AS col2 FROM tab1 query I rowsort label-7340 @@ -49975,7 +49975,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\(\*\) AS col1" at position 1 have the 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 @@ -52148,7 +52148,7 @@ SELECT - + SUM ( + + 57 ) AS col1, SUM ( - col1 ) + - 33 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 14 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -53168,7 +53168,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 * 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 9 * - COUNT ( * ) AS col2, + 56 col2 FROM tab2 AS cor0 query III rowsort @@ -54397,7 +54397,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\(\*\) AS col1" at position 1 have the 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 @@ -54833,7 +54833,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\(\*\) AS col0" at position 1 have the 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 @@ -55284,7 +55284,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -56487,7 +56487,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - ( - - 85 ) * + 67 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 243 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) AS col0" at position 0 and "Int64\(3\) \* \(\- \(\- count\(\*\)\)\) \* count\(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\(\-95\)\) AS col0" at position 0 and "Int64\(3\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(\-36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 95 AS col0, 3 * - - COUNT ( * ) * COUNT ( - 36 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -59883,7 +59883,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\(\*\) AS col0" at position 1 have 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 4881ac1..9f884ec 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\(\*\) \* 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\(\*\) AS col1" at position 1 have the 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 @@ -3050,7 +3050,7 @@ SELECT ALL + SUM ( 53 ) FROM tab1 # Datafusion - Expected - -3 # Datafusion - Expected - NULL # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(51\) \+ sum\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(51\) \+ sum\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - ( COUNT ( * ) ) AS INTEGER ) col0, 51 + + + SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( DISTINCT + + col2 ) - COUNT ( * ) * 31 FROM tab1 query I rowsort @@ -6360,7 +6360,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\(\*\) 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 @@ -8181,7 +8181,7 @@ SELECT - 2 * - COUNT ( * ) - + MAX ( 36 ) + COUNT ( * ) AS col0 FROM tab0 cor0 C # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(97\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(43\) \+ 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\(12\) \+ Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 + 97 + - COUNT ( * ) AS col2, 43 + 76 col2 FROM tab2 query I rowsort label-1343 @@ -9487,7 +9487,7 @@ SELECT DISTINCT - - col1 - - - col2 * - - col0 FROM tab1 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\(30\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 DISTINCT + 30 AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -14256,7 +14256,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\(\*\) AS col1" at position 1 have the 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 @@ -14424,7 +14424,7 @@ SELECT DISTINCT + col2 + + col2 + - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1091 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(34\) \* Int64\(32\) 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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(34\) \* Int64\(32\) AS col2" at position 0 and "\(\- Int64\(59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 34 * 32 AS col2, ( - + 59 ) AS col2 FROM tab0 cor0 query I rowsort label-2366 @@ -14761,7 +14761,7 @@ SELECT ALL * FROM tab0 WHERE NOT + ( + - col0 ) / + 26 IS NOT 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\(\*\)\) 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 "\(\- 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 DISTINCT - ( + COUNT ( * ) ) AS col1, - 47 AS col1 FROM tab0 query I rowsort @@ -18610,7 +18610,7 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col2 BETWEEN - col2 AND col2 + - - 44 + # 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\(\*\)\) AS col2" at position 1 have the 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 tab0 query I rowsort label-3067 @@ -22296,7 +22296,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\(\*\)\) AS col0" at position 0 and "Int64\(97\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -24546,7 +24546,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\(\*\) 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 @@ -25395,7 +25395,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + col1 ) > NULL # 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\(\*\)\) AS col0" at position 1 have the 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 tab2 cor0 query I rowsort @@ -25863,7 +25863,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\(\*\) AS col1" at position 1 have the 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 @@ -27229,7 +27229,7 @@ SELECT DISTINCT + col1 * - - col2 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 711 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(53\)\) / \(\- count\(\*\)\) \+ Int64\(\-8\) \* \(\- max\(DISTINCT cor0\.col0\)\) 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 "min\(Int64\(53\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-8\) \* \(\- max\(DISTINCT cor0\.col0\)\) 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 MIN ( + 53 ) / - COUNT ( * ) + - 8 * - MAX ( DISTINCT + col0 ) AS col0, - 42 AS col0 FROM tab1 AS cor0 query I rowsort @@ -27299,7 +27299,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -32200,7 +32200,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\(\*\) 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 @@ -34945,7 +34945,7 @@ SELECT DISTINCT + - 24 AS col1, col0 * + 35 * + col2 + + col1 FROM tab1 AS cor0 # 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\(\*\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, 13 col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: @@ -35086,7 +35086,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\(\*\) AS col0" at position 1 have the 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 @@ -38294,7 +38294,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have 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 @@ -49342,7 +49342,7 @@ SELECT ALL - 22 * + 89 * col2 / - col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 query I rowsort @@ -50259,7 +50259,7 @@ SELECT + - 26 * + ( - COUNT ( * ) ) col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 tab0 AS cor0 CROSS JOIN tab2 cor1 query I rowsort label-8298 @@ -52724,7 +52724,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + col0 >= - 12 # 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\(\*\)\) 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 tab1 AS cor0 query I rowsort label-8703 @@ -54338,7 +54338,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\(\*\) 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 ecb3df0..c74496c 100644 --- a/data/sqlite/random/aggregates/slt_good_31.slt +++ b/data/sqlite/random/aggregates/slt_good_31.slt @@ -1786,7 +1786,7 @@ SELECT col0 * 83 AS col0 FROM tab1 AS cor0 WHERE NOT - ( + ( + col1 ) ) IS 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\(\*\)\) AS col2" at position 0 and "count\(\*\) \- Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) - + 48 AS col2 FROM tab2 cor0 query I rowsort @@ -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\(\*\) / sum\(Int64\(15\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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\(\*\) 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\(\*\) AS col0" at position 0 and "\(\- 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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -17080,7 +17080,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\(\*\) AS col1" at position 1 have the 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 @@ -17813,7 +17813,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -19181,7 +19181,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\(\*\) AS col1" at position 0 and "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 @@ -20619,7 +20619,7 @@ SELECT col1 * 2 AS col0 FROM tab1 # 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\(\*\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 88 AS col2 FROM tab1 query II rowsort @@ -24689,7 +24689,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\(\*\) AS col0" at position 1 have the 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 @@ -25989,7 +25989,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\(\*\) 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 @@ -27199,7 +27199,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\(\*\)\) \* 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 @@ -29948,7 +29948,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\(\*\) AS col0" at position 1 have the 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 @@ -32607,7 +32607,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\(\*\) AS col2" at position 1 have the 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 @@ -32643,7 +32643,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\(89\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -34901,7 +34901,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\(\*\) 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 @@ -35241,7 +35241,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -40711,7 +40711,7 @@ SELECT ALL - 29 FROM tab2 cor0 WHERE NOT NULL IS NULL AND NOT + col0 NOT BETWEEN # 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - COUNT ( * ) ), - COUNT ( * ) FROM tab1 AS cor0 query I rowsort label-6692 @@ -42717,7 +42717,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( ( NOT + col1 * 80 * + col2 NOT BETWEEN ( # Datafusion - Expected - -32 # Datafusion - Expected - 0 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(32\)\)\) AS col0" at position 0 and "Int64\(2\) / \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(32\)\)\) AS col0" at position 0 and "Int64\(2\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( ALL - + 32 ) AS col0, 2 / - ( COUNT ( * ) ) AS col0, 5 FROM tab1 query I rowsort label-7026 @@ -42876,7 +42876,7 @@ SELECT ALL - 59 + - - COUNT ( * ) * - ( - + ( 1 ) ) / + 84 + COUNT ( * ) FROM ta # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ count\(\*\) \+ Int64\(75\) AS col2" at position 0 and "Int64\(44\) \- 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\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(75\) AS col2" at position 0 and "Int64\(44\) \- Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( COUNT ( * ) ) + COUNT ( * ) + 75 AS col2, 44 - + 82 AS col2 FROM tab1 AS cor0 query III rowsort @@ -45387,7 +45387,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\(\-9\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -54917,7 +54917,7 @@ SELECT + ( col1 ) - 46 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(71\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(71\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + 71 AS col0, 3 AS col0 FROM tab0 query III rowsort @@ -57340,7 +57340,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\(\*\) 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 aaca531..18b1466 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\(\*\) 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\(\*\) 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 @@ -8626,7 +8626,7 @@ SELECT + col0 FROM tab1 AS cor0 WHERE NOT + ( - col1 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 ( * ) ) col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -10059,7 +10059,7 @@ SELECT DISTINCT MAX ( ALL + 65 ) + + 72 + - 37 FROM tab0 AS cor0 CROSS JOIN 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 query I rowsort @@ -13940,7 +13940,7 @@ SELECT - + col1 + + - col0 * 7 + col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \+ Int64\(62\) \- \(\- Int64\(92\)\) / Int64\(\-33\) AS col1" at position 0 and "count\(\*\) \* 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\(36\) \+ Int64\(62\) \- \(\- Int64\(92\)\) / Int64\(\-33\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( + ( + + 36 ) ) + + 62 - + - ( + + 92 ) / + - 33 AS col1, COUNT ( * ) * + 61 AS col1 FROM tab2 AS cor0 query I rowsort label-2290 @@ -16741,7 +16741,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\(\*\)\) \+ count\(\*\) \+ \(\- count\(\*\)\) \+ CAST\(NULL AS Int32\) \* count\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -17291,7 +17291,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\(\*\) AS col0" at position 1 have the 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 @@ -31286,7 +31286,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\(\*\) 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: @@ -33584,7 +33584,7 @@ SELECT + col0 - + 5 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 152 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(40\) \+ Int64\(32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(40\) \+ Int64\(32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 40 + + + 32 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query III rowsort @@ -34716,7 +34716,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\(\*\) 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 @@ -38888,7 +38888,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\(\*\) AS col0" at position 1 have 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 @@ -40108,7 +40108,7 @@ SELECT DISTINCT - col1 + + ( 88 ) + + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-52\) \- \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-66\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-66\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - 52 - - COUNT ( * ) AS col1, - 66 + - COUNT ( * ) col1 FROM tab1 AS cor0 query I rowsort @@ -42365,7 +42365,7 @@ SELECT DISTINCT - ( + 95 ) * - - 77 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "Int64\(74\) \* Int64\(\-93\) \* \(\- count\(\*\)\) \+ \(\- count\(\*\)\) \- \(\- 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 "Int64\(\-10\) AS col1" at position 0 and "Int64\(74\) \* Int64\(\-93\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- CAST\(NULL AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 10 AS col1, 74 * - 93 * + - COUNT ( * ) + - COUNT ( * ) - - CAST ( NULL AS FLOAT8 ) AS col1 FROM tab2 AS cor0 query III rowsort label-6999 @@ -45639,7 +45639,7 @@ SELECT DISTINCT - col2 * + + 12 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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 I rowsort @@ -46238,7 +46238,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\(\*\) AS col1" at position 1 have the 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 @@ -46845,7 +46845,7 @@ SELECT ( + 26 ) * - + col0, col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 query I rowsort label-7742 @@ -47650,7 +47650,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\(15\) AS col0" at position 0 and "Int64\(22\) \+ count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -53102,7 +53102,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\(\*\)\) AS col2" at position 0 and "Int64\(21\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -57006,7 +57006,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -57317,7 +57317,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\(\*\) 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 @@ -60267,7 +60267,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\(\*\) AS col2" at position 1 have the 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 32df3e5..682a2a1 100644 --- a/data/sqlite/random/aggregates/slt_good_33.slt +++ b/data/sqlite/random/aggregates/slt_good_33.slt @@ -1547,7 +1547,7 @@ SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT NULL <> + - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(33\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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 col1" at 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 ( * ) * 33 AS col1, - COUNT ( * ) AS col1 FROM tab0 query I rowsort label-264 @@ -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\(\*\) 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 @@ -4093,7 +4093,7 @@ SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 * col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3192 # Datafusion - Expected - -387 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(\-56\) AS col0" at position 0 and "Int64\(\-37\) \* count\(\*\) \- Int64\(81\) \+ \(\- 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 "Int64\(57\) \* Int64\(\-56\) AS col0" at position 0 and "Int64\(\-37\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(81\) \+ \(\- sum\(tab2\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 * - 56 AS col0, + ( - 37 ) * + COUNT ( * ) - + + 81 + - + SUM ( + col1 ) AS col0 FROM tab2 query III rowsort @@ -7802,7 +7802,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\(\*\)\) \* \(\- count\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -9769,7 +9769,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\(\*\) 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 @@ -10965,7 +10965,7 @@ SELECT - col1 + col0 * + + ( + 94 ) + - col1 * + col0 * - 80 FROM tab1 cor0 WHER # 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\(\*\)\) AS col0" at position 0 and "count\(\*\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) \* count\(cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col0, COUNT ( * ) * COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -14738,7 +14738,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\(\*\) AS col1" at position 1 have the 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 @@ -23523,7 +23523,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\(\*\) AS col2" at position 1 have the 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 @@ -24036,7 +24036,7 @@ SELECT col0 * + 84 col1 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\(\*\)\)\) AS col0" at position 0 and "count\(\*\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - ( - + COUNT ( * ) ) ) AS col0, + COUNT ( * ) * 36 AS col0 FROM tab2 query I rowsort label-3993 @@ -29351,7 +29351,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\(\*\) AS col2" at position 0 and "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 @@ -29393,7 +29393,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\(\*\) 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 @@ -44738,7 +44738,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\(\*\) 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 @@ -50832,7 +50832,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\(\*\) AS col1" at position 1 have the 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 @@ -58970,7 +58970,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 84c6e66..a45a211 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\(\*\) AS col1" at position 1 have the 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: @@ -8601,7 +8601,7 @@ SELECT DISTINCT col1 AS col0, + col1 * + col0 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\(3\) \- \(\- count\(cor0\.col0\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(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 + ( 3 ) - - COUNT ( + col0 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort label-1419 @@ -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\(\*\) 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\(\*\) AS col2" at position 1 have the 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\(\*\) 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 @@ -12052,7 +12052,7 @@ SELECT + - ( - + col0 ) * - col2 FROM tab1 AS cor0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab1 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col0" at position 1 have the 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 @@ -23804,7 +23804,7 @@ SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1, 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 "sum\(\(\- tab0\.col0\)\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) / 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 "sum\(\(\- tab0\.col0\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + SUM ( - col0 ) + - + COUNT ( * ) AS col0, COUNT ( * ) / 5 AS col0 FROM tab0 WHERE NOT NULL >= - - 61 # Datafusion - Datafusion expected results: @@ -26896,7 +26896,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -32173,7 +32173,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 87 IS NULL # 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 "Int64\(\-1\) AS col0" at position 0 and "count\(\*\) \+ 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\(\-1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 1 AS col0, COUNT ( * ) + 29 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -33623,7 +33623,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\(\*\) AS col1" at position 0 and "sum\(Int64\(65\)\) \* count\(\*\) \+ count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -36116,7 +36116,7 @@ SELECT DISTINCT col1 col0, - 62 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\(83\) \+ Int64\(\-46\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-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 DISTINCT 83 + - 46 col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 query II rowsort @@ -46048,7 +46048,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\(\*\) 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 @@ -46237,7 +46237,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\(\*\) 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 @@ -51149,7 +51149,7 @@ SELECT DISTINCT col1, col0 - 81 * col0 * col2 * - col1 * + + 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-8460 @@ -53682,7 +53682,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\(\*\) AS col1" at position 1 have the 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 @@ -57100,7 +57100,7 @@ SELECT DISTINCT - col0 * + col2 * - col2 * col1 AS col1 FROM tab2 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\(\*\)\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, 36 AS col2 FROM tab2 query III rowsort @@ -57118,13 +57118,13 @@ SELECT col0 * - col0 + 12 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ \(\- \(\- Int64\(77\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(77\)\)\) AS col2" at 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 + - ( - + 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\(\*\) 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 37d7032..2b775da 100644 --- a/data/sqlite/random/aggregates/slt_good_35.slt +++ b/data/sqlite/random/aggregates/slt_good_35.slt @@ -6925,7 +6925,7 @@ SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) * + 36 FROM tab1 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\(\*\)\) 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 ( * ) AS col2, 34 AS col2 FROM tab1 query I rowsort label-1156 @@ -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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -9567,7 +9567,7 @@ SELECT DISTINCT + col1 * col0 * + col0 * - - col1 - - 62 / ( + 54 ) * + + 27 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col0\) AS col0" at position 0 and "max\(\(\- tab0\.col1\)\) \* count\(\*\) \+ CAST\(Int64\(\-59\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col0\) AS col0" at position 0 and "max\(\(\- tab0\.col1\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-59\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ( col0 ) ) AS col0, + ( MAX ( ALL - col1 ) ) * + COUNT ( * ) + CAST ( - 59 AS INTEGER ) col0 FROM tab0 query II rowsort @@ -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\(\*\) 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 @@ -9922,7 +9922,7 @@ SELECT + ( - - ( + 85 ) ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "Int64\(57\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 87 AS col1, 57 + - COUNT ( * ) col1 FROM tab2 query I rowsort label-1658 @@ -10180,7 +10180,7 @@ SELECT ALL SUM ( - 98 ) * - COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 3 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* count\(\*\) \* CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(42\) 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\(31\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 31 ) * COUNT ( * ) * CAST ( NULL AS FLOAT8 ) col0, COUNT ( * ) AS col2, 42 AS col0 FROM tab2 query I rowsort label-1695 @@ -14645,7 +14645,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\(\*\) AS col2" at position 1 have the 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 @@ -18519,7 +18519,7 @@ SELECT ALL - col2 * + + 46 * 61 + + col0 + 95 FROM tab2 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\(5\) \+ \(\- \(\- min\(Int64\(28\)\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\) \+ \(\- \(\- min\(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 + 5 + - - MIN ( 28 ) AS col0, - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Types were automatically converted from: @@ -18922,7 +18922,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\(\*\) AS Int32\) AS col0" at position 1 have the 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 @@ -21553,7 +21553,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - -990 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* \(\- \(\- \(\- \(\- count\(\*\)\)\)\)\) \- Int64\(19\) AS col2" at position 0 and "Int64\(30\) \* \(\- 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\(40\) \* \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \- Int64\(19\) AS col2" at position 0 and "Int64\(30\) \* \(\- Int64\(33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 40 * - - ( - - COUNT ( * ) ) - 19 AS col2, + 30 * - + 33 AS col2 FROM tab1 query I rowsort @@ -23263,7 +23263,7 @@ SELECT DISTINCT + col0 + col2 * - col0 col2 FROM tab1 AS cor0 # 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 "count\(\*\) \+ count\(\*\) \* Int64\(\-35\) 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\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-35\) 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 ( * ) + COUNT ( * ) * - 35 col0, - 1 AS col0 FROM tab2 AS cor0 query I rowsort @@ -30500,7 +30500,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\(\*\) 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 @@ -32817,7 +32817,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\(\*\) 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 @@ -36142,7 +36142,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -43702,7 +43702,7 @@ SELECT DISTINCT + - col2 + 61 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- \(\- \(\- 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\(38\) \- \(\- \(\- 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 38 - - - ( + COUNT ( * ) ) AS col2, 61 AS col2 FROM tab1 AS cor0 query I rowsort @@ -45029,7 +45029,7 @@ SELECT CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab0 # 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\(\-44\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-44\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / + - 44 AS col1, - COUNT ( * ) AS col1 FROM tab1 query I rowsort label-7496 @@ -45531,7 +45531,7 @@ SELECT 98, - col1 AS col1 FROM tab0 # 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\(\*\)\) AS col0" at position 1 have the 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 ALL - 4 AS col0, - COUNT ( * ) AS col0 FROM tab0 query I rowsort label-7578 @@ -53878,7 +53878,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\(\*\) AS col1" at position 1 have the 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 @@ -53967,7 +53967,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\(\*\) AS col2" at position 1 have 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 @@ -57051,7 +57051,7 @@ SELECT DISTINCT + 52 * + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 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\(\*\)\) 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 ALL ( - + COUNT ( * ) ) AS col0, 50 AS col0 FROM tab2 cor0 query I rowsort label-9510 diff --git a/data/sqlite/random/aggregates/slt_good_36.slt b/data/sqlite/random/aggregates/slt_good_36.slt index 78cfa3d..5c0d94c 100644 --- a/data/sqlite/random/aggregates/slt_good_36.slt +++ b/data/sqlite/random/aggregates/slt_good_36.slt @@ -141,7 +141,7 @@ SELECT 63 * + ( - 36 ) 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\(\*\)\) 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 FROM tab1 query II rowsort label-17 @@ -708,7 +708,7 @@ SELECT ALL * FROM tab2 AS cor0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 query I rowsort @@ -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\(\*\) AS col1" at position 1 have the 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 @@ -5773,7 +5773,7 @@ SELECT + 94 / + col0 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -174 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- \(\- max\(\(\- \(\- tab2\.col2\)\)\)\)\) AS col0" at position 0 and "max\(\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- max\(\(\- \(\- tab2\.col2\)\)\)\)\) AS col0" at position 0 and "max\(\(\- Int64\(\-87\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - - MAX ( - - col2 ) AS col0, MAX ( - - 87 ) AS col0 FROM tab2 query I rowsort @@ -6437,7 +6437,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\(\*\) 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 @@ -8295,7 +8295,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -15624,7 +15624,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -21602,7 +21602,7 @@ SELECT DISTINCT col1, - 2 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + ( - COUNT ( * ) ) ), - COUNT ( * ) FROM tab2 query II rowsort @@ -24531,7 +24531,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\(\*\) 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 @@ -25624,7 +25624,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -26390,7 +26390,7 @@ SELECT ALL * FROM tab0 WHERE NOT + col1 / + 8 - + + CAST ( 97 AS INTEGER ) NOT B # 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\(\*\)\) AS col2" at position 0 and "count\(\*\) \- \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 tab0 query I rowsort @@ -28802,7 +28802,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -29690,7 +29690,7 @@ SELECT DISTINCT - 45 FROM tab2 AS cor0 WHERE 66 - col0 / 37 >= NULL # 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\(\*\)\) AS col0" at position 1 have the 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 23 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -34828,7 +34828,7 @@ 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\(\*\)\) 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 ALL - COUNT ( * ) AS col1, ( - - 0 ) col1 FROM tab0 AS cor0 query I rowsort label-5768 @@ -38112,7 +38112,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\(\*\) AS col2" at position 1 have 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 @@ -39408,7 +39408,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\(\*\) AS col1" at position 1 have the 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 @@ -40843,7 +40843,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\(\*\) 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 @@ -43786,7 +43786,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\(\*\) AS col2" at position 1 have the 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 @@ -52091,7 +52091,7 @@ SELECT ALL - col2 * + 43 * - - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 query I rowsort @@ -53637,7 +53637,7 @@ SELECT + col2 FROM tab0 AS cor0 WHERE + col0 / 76 IS NOT NULL # 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 "max\(DISTINCT \(\- tab0\.col2\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- tab0\.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 MAX ( DISTINCT + - ( + col2 ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -53746,7 +53746,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\(\*\) 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 @@ -57858,7 +57858,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\(\*\) AS col2" at position 1 have 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 @@ -58921,7 +58921,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\(\*\) \+ 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 f74a446..cab8193 100644 --- a/data/sqlite/random/aggregates/slt_good_37.slt +++ b/data/sqlite/random/aggregates/slt_good_37.slt @@ -580,7 +580,7 @@ SELECT ALL - col0 + + col1, + 54 - - 41 / + 32 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- 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 DISTINCT - - COUNT ( * ) col0, + 83 AS col0 FROM tab1 cor0 query I rowsort @@ -1085,7 +1085,7 @@ SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - col2 # 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\(\*\) \* count\(DISTINCT Int64\(\-65\)\) 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\(\*\) \* count\(DISTINCT Int64\(\-65\)\) 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 ( * ) * COUNT ( DISTINCT - 65 ) AS col0, 2 AS col0 FROM tab1 query I rowsort @@ -5713,7 +5713,7 @@ SELECT DISTINCT + + 89 AS col0 FROM tab0 AS cor0 WHERE NOT 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 WHERE NULL IS NULL query I rowsort label-944 @@ -13859,7 +13859,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\(\*\)\) AS col1" at position 1 have the same name\. 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 tab0 query I rowsort @@ -18612,7 +18612,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -25757,7 +25757,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\(\*\) AS col1" at position 1 have the 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 @@ -26519,7 +26519,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\(\*\) 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 @@ -27618,7 +27618,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\(\*\) AS col1" at position 1 have the 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: @@ -30575,7 +30575,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\(\*\) 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 @@ -30961,7 +30961,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\(\*\) 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 @@ -35177,7 +35177,7 @@ SELECT + col2 * + col0 * - ( - col2 ) AS col2 FROM tab0 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\(\*\)\)\) 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 FROM tab1 AS cor0 query II rowsort @@ -36581,7 +36581,7 @@ SELECT - col0 * - CAST ( - ( + col0 ) AS INTEGER ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 query I rowsort label-6068 @@ -39990,7 +39990,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\(\*\) 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 @@ -40061,7 +40061,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\(\*\) \+ 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 @@ -41938,7 +41938,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\(\*\) 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 @@ -51927,7 +51927,7 @@ SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 225 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* max\(cor0\.col0\) 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\(cor0\.col0\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + MAX ( ALL + col0 ) AS col0, 86 AS col0 FROM tab2 AS cor0 query III rowsort @@ -58438,7 +58438,7 @@ SELECT DISTINCT + COUNT ( * ) * + 36 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 query I rowsort label-9673 diff --git a/data/sqlite/random/aggregates/slt_good_38.slt b/data/sqlite/random/aggregates/slt_good_38.slt index 29ce045..84cf98e 100644 --- a/data/sqlite/random/aggregates/slt_good_38.slt +++ b/data/sqlite/random/aggregates/slt_good_38.slt @@ -393,7 +393,7 @@ SELECT + col0 + - col0 * + - col2 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -711 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) \* 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\(19\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 19 AS col0, + COUNT ( * ) * - COUNT ( * ) * + + 79 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -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\(\*\) 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 @@ -2255,7 +2255,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\(\*\) AS col2" at position 1 have the 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 @@ -2901,7 +2901,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\(\*\) 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 @@ -4195,7 +4195,7 @@ SELECT ALL + COUNT ( * ) + - 6 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-34\) \+ Int64\(\-15\) 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\(\*\)\) \* Int64\(\-34\) \+ Int64\(\-15\) 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 ( * ) * - 34 + - 15 AS col0, + 45 AS col0 FROM tab1 cor0 query I rowsort @@ -5390,7 +5390,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\(\*\) 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 @@ -7041,7 +7041,7 @@ SELECT COUNT ( * ) AS col0, ( - + 38 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "count\(\*\) \+ \(\- sum\(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\(\-24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- sum\(Int64\(\-55\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 24 AS col1, COUNT ( * ) + - + SUM ( - 55 ) AS col1 FROM tab1 cor0 query II rowsort label-1157 @@ -9488,7 +9488,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 + col1 IN ( col0, co # Datafusion - Datafusion expected results: # Datafusion - Expected - 201 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(67\)\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(\-89\)\) \* sum\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(67\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-89\)\) \* sum\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( 67 ) AS col2, + COUNT ( * ) * - - 89 * SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -13196,7 +13196,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - 53 ) * + col0 - - - 85 IS NOT NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(8\) \* \(\- count\(\*\)\) \* 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\(82\) AS col0" at position 0 and "Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 82 AS col0, 8 * - COUNT ( * ) * + ( + + 5 ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -14974,7 +14974,7 @@ SELECT - 75 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\(\-60\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same 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\)\) AS col0" at 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 ( - 60 ) AS col0, - COUNT ( * ) AS col0 FROM tab2 cor0 query I rowsort label-2474 @@ -15412,7 +15412,7 @@ SELECT - col2 col1, col2 + - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -204 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(68\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(68\) \* \(\- 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, + 68 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Types were automatically converted from: @@ -16158,7 +16158,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\(\*\) AS col1" at position 1 have the 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 @@ -17863,7 +17863,7 @@ SELECT ALL - ( ( - - col0 ) ) col1 FROM tab0 AS cor0 # 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\(Int64\(\-23\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-23\)\)\) AS col2" at 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 ( + - 23 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 query II rowsort label-2942 @@ -21162,7 +21162,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\(\*\) 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 @@ -26216,7 +26216,7 @@ SELECT ALL + - 12 * - col0 + - col1 * - 49 * - 23 AS col1 FROM tab2 AS cor0 WHER # 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\(cor0\.col2\)\) AS col2" at position 0 and "count\(\*\) / Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(cor0\.col2\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( col2 ) AS col2, + COUNT ( * ) / + 51 AS col2 FROM tab2 AS cor0 query II rowsort @@ -28560,7 +28560,7 @@ SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( 33 ) ) IN ( col2 ) # 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\(\*\)\)\) 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 - - COUNT ( * ) AS col1, - 43 AS col1 FROM tab0 AS cor0 query III rowsort @@ -30793,7 +30793,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\(\*\) 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: @@ -31564,7 +31564,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\(\*\) AS col0" at position 1 have the 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 @@ -36505,7 +36505,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\(\*\) 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 @@ -38240,7 +38240,7 @@ SELECT 11 * - ( - - SUM ( - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 query I rowsort label-6313 @@ -39448,7 +39448,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\(\*\) AS col0" at position 1 have the 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 @@ -41669,7 +41669,7 @@ SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(85\) \+ \(\- Int64\(\-20\)\) / \(\- CAST\(NULL AS Int32\)\) \+ count\(\*\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(85\) \+ \(\- Int64\(\-20\)\) / \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, 85 + - - 20 / - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 45 AS col0 FROM tab1 query I rowsort label-6885 @@ -42658,7 +42658,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\(\*\) 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 @@ -42910,7 +42910,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\(\*\) 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 @@ -44593,7 +44593,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\(\*\) AS col1" at position 1 have 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 @@ -45047,7 +45047,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\(\*\) 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 @@ -45064,7 +45064,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\(\*\) 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 @@ -46110,7 +46110,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\(\*\) 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 @@ -47723,7 +47723,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\(\*\) 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 @@ -52298,7 +52298,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\(\*\) AS col1" at position 0 and "\(\- 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 16faad3..9235ddc 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\(\*\) AS col1" at position 1 have the 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 @@ -1633,7 +1633,7 @@ SELECT ALL + CAST ( + + 15 AS INTEGER ) 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\(DISTINCT cor0\.col1\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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 col1" at 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 + col1 ) col1, - COUNT ( * ) AS col1 FROM tab1 cor0 query I rowsort label-273 @@ -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\(\*\) 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\(\*\) 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 @@ -12851,7 +12851,7 @@ SELECT ALL - 27 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "\(\- Int64\(\-58\)\) \+ count\(\*\) \+ Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "\(\- Int64\(\-58\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 AS col0, - ( - 58 ) + COUNT ( * ) + + 94 AS col0 FROM tab0 AS cor0 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\(\*\) AS col2" at position 1 have the 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 @@ -16558,7 +16558,7 @@ SELECT - col1 AS col2, 73 + + ( col1 ) - + - CAST ( NULL AS INTEGER ) AS col2 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + 57 ) < - ( - - col1 ) query I rowsort label-2716 @@ -20257,7 +20257,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\(\*\) AS col2" at position 1 have the 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 @@ -20318,7 +20318,7 @@ SELECT ALL + - col1, ( col2 ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "count\(\*\) \* min\(DISTINCT \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(DISTINCT \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 62 AS col1, COUNT ( * ) * ( MIN ( DISTINCT - + col2 ) ) AS col1 FROM tab1 AS cor0 query I rowsort label-3325 @@ -22016,7 +22016,7 @@ SELECT DISTINCT col2, col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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 FROM tab2 AS cor0 query I rowsort label-3613 @@ -23408,7 +23408,7 @@ SELECT ALL - + col1 / + + 99 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\(tab0\.col0\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 col1" at 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 ( + col0 ) AS col1, - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <> col2 query I rowsort @@ -28051,7 +28051,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\(\*\) AS col0" at position 1 have the 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 @@ -33549,7 +33549,7 @@ SELECT ALL 46 * - - col0 / - col1 + - col0 FROM tab0 AS cor0 WHERE NOT col0 IS N # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) AS col0" at position 0 and "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 2 AS col0, COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT + col2 = NULL query I rowsort @@ -36915,7 +36915,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\(\*\) 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 @@ -37718,7 +37718,7 @@ SELECT - COUNT ( * ) col1 FROM tab0 cor0 WHERE col2 * - 22 > - 67 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 query I rowsort label-6192 @@ -39002,7 +39002,7 @@ SELECT - 98 - - 33 AS col2 FROM tab2 cor0 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 "count\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 query I rowsort label-6403 @@ -41618,7 +41618,7 @@ SELECT 81 - col1 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(23\)\) 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\(\*\) \* \(\- Int64\(23\)\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * - + 23 AS col2, - 69 AS col2 FROM tab1 cor0 query I rowsort @@ -47831,7 +47831,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -48234,7 +48234,7 @@ SELECT DISTINCT 55 / + + col0 + - 89 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 query I rowsort @@ -48912,7 +48912,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\(\*\)\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -55376,7 +55376,7 @@ SELECT DISTINCT - col2 AS col1 FROM tab2 cor0 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-9085 @@ -56793,7 +56793,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\(\*\) AS col1" at position 0 and "CAST\(\(\- 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 @@ -57768,7 +57768,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\(\*\) AS col0" at position 1 have the same 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 072fa31..6a18d5b 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\(\*\) AS col0" at position 1 have the 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 @@ -4753,7 +4753,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\(\*\) \* 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 @@ -8302,7 +8302,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\(\*\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 88 AS col2 FROM tab1 cor0 query III rowsort @@ -14222,7 +14222,7 @@ SELECT + 44 * - col2, col2 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(16\) 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\(\*\) \+ Int64\(16\) 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 ( * ) + 16 AS col2, 44 AS col2 FROM tab2 AS cor0 query I rowsort label-2320 @@ -16642,7 +16642,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\(\*\) 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 @@ -17542,7 +17542,7 @@ SELECT ALL - - col1, + col2 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -240 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-80\) 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\(\*\) \* Int64\(\-80\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - 80 AS col0, 34 col0 FROM tab1 AS cor0 query I rowsort @@ -18483,7 +18483,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\(\*\) \+ 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 @@ -22620,7 +22620,7 @@ SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col1 + col1 IS NOT 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\(\*\)\) AS col1" at position 1 have the 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 ALL + - 16 AS col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 query II rowsort label-3690 @@ -22691,7 +22691,7 @@ SELECT col2 FROM tab1 WHERE NOT - + 85 * 84 * 78 - - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -459 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) col2, + COUNT ( * ) * + - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort @@ -24119,7 +24119,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\(\*\) 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 @@ -30058,7 +30058,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\(\*\) AS col1" at position 1 and "\(\- \(\- 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 @@ -32442,7 +32442,7 @@ SELECT DISTINCT + ( - ( - 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -40373,7 +40373,7 @@ SELECT ALL * FROM tab1 WHERE NULL = + - col0 * + + 80 # 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\(\*\)\) 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 - COUNT ( * ) AS col0, 24 AS col0 FROM tab2 query II rowsort @@ -41347,7 +41347,7 @@ SELECT ( - 70 ) * - + 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\(\*\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 III rowsort @@ -48314,7 +48314,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\(\*\) 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 @@ -49136,7 +49136,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\(\*\) 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 @@ -49408,7 +49408,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -53760,7 +53760,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\(\*\) AS col1" at position 1 have the 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 @@ -56701,7 +56701,7 @@ SELECT DISTINCT + col1 * - col0 * 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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 tab1 query I rowsort @@ -59533,7 +59533,7 @@ SELECT ALL - 27 * - - col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(\-81\) 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\(\*\)\) / Int64\(\-81\) 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 ( * ) / - 81 col2, 25 AS col2 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_40.slt b/data/sqlite/random/aggregates/slt_good_40.slt index 66625b4..737da16 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\(\*\) 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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -9369,7 +9369,7 @@ SELECT - MAX ( 85 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "\(\- count\(DISTINCT \(\- \(\- cor0\.col2\)\)\)\) \+ 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\(DISTINCT \(\- \(\- cor0\.col2\)\)\)\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, - COUNT ( DISTINCT - - col2 ) + + 51 AS col1 FROM tab0 AS cor0 query II rowsort label-1530 @@ -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\(\*\) 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\(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\(\*\) 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 @@ -11720,7 +11720,7 @@ SELECT + 42 * - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + + COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0 query I rowsort label-1923 @@ -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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -21736,7 +21736,7 @@ SELECT 57 AS col1, COUNT ( * ) * 20 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 query I rowsort @@ -26615,7 +26615,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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( COUNT ( * ) ), COUNT ( * ) FROM tab2 query I rowsort label-4422 @@ -29785,7 +29785,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -31223,7 +31223,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\(\*\) AS col2" at position 1 have the 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 @@ -36150,7 +36150,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\(\*\) AS col0" at position 1 have the same 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 @@ -36255,7 +36255,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\(\*\) 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 @@ -36998,7 +36998,7 @@ SELECT ALL + - 10 / - - MAX ( + col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 199 # Datafusion - Expected - 315 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col0\) AS col2" at position 0 and "count\(\*\) \* Int64\(81\) \+ Int64\(\-24\) \* \(\- count\(\*\)\) AS col2" at position 1 have 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 col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(81\) \+ Int64\(\-24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( ALL col0 ) AS col2, COUNT ( * ) * + + 81 + - 24 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-6120 @@ -52605,7 +52605,7 @@ SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 66 + + col1 AND + - CAST ( + + c # 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 "count\(\*\) \+ Int64\(\-37\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at 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 ( * ) + - 37 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-8709 @@ -55859,7 +55859,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\(\*\) 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 @@ -55952,7 +55952,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\(\*\) 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 36d3bf0..5c786b1 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\(\*\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-65\) \- \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -1225,7 +1225,7 @@ SELECT 91 * - col1 * + col1 * col2 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 54 -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\(49\)\)\)\) \- count\(\*\) \+ Int64\(98\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "\(\- count\(\(\- Int64\(49\)\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(98\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 AS col2, - COUNT ( - + 49 ) - COUNT ( * ) + + 98 + - 44 AS col2 FROM tab0 WHERE NOT NULL IS NULL query I rowsort @@ -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\(\*\) 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col2" at position 1 have the same 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 @@ -11185,7 +11185,7 @@ SELECT DISTINCT - 54 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col0, 30 AS col0 FROM tab2 AS cor0 query III rowsort @@ -16899,7 +16899,7 @@ SELECT DISTINCT - COUNT ( * ) + 20 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- 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\(\*\) \- \(\- 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 ( * ) - - COUNT ( * ) col0, 75 AS col0 FROM tab2 AS cor0 query III rowsort @@ -18409,7 +18409,7 @@ SELECT + + 53 * - + 48 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3102 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- cor0\.col1\)\) \* min\(\(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col0" at position 1 have 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\)\) \* min\(\(\- cor0\.col1\)\) 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 SUM ( DISTINCT - col1 ) * + MIN ( - col1 ) AS col0, - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-3074 @@ -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\(\*\) AS col2" at position 1 have the 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 @@ -21417,7 +21417,7 @@ SELECT ALL - col1 * 76 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8817 # Datafusion - Expected - 130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(98\) \* \(\- Int64\(90\)\) AS col1" at position 0 and "Int64\(75\) \+ 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\(\*\) \+ Int64\(98\) \* \(\- Int64\(90\)\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 98 * - + 90 AS col1, 75 + + 55 col1 FROM tab1 AS cor0 query I rowsort @@ -22465,7 +22465,7 @@ SELECT DISTINCT CAST ( - col2 AS INTEGER ) * 98 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 query II rowsort @@ -26426,7 +26426,7 @@ SELECT - 36 * + col1 FROM tab0 AS cor0 # 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\(\*\)\) AS col0" at position 1 have the 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 ALL 68 AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 query II rowsort label-4408 @@ -27464,7 +27464,7 @@ SELECT DISTINCT - ( col2 ) * + col0 * + col2 AS col1 FROM tab0 # 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\(\*\) \* \(\- max\(\(\- tab0\.col1\)\)\) AS col2" at position 0 and "min\(\(\- Int64\(\-4\)\)\) \+ \(\- min\(Int64\(48\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(\(\- tab0\.col1\)\)\) AS col2" at position 0 and "min\(\(\- Int64\(\-4\)\)\) \+ \(\- min\(Int64\(48\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - MAX ( ALL - col1 ) AS col2, MIN ( - - 4 ) + - MIN ( + 48 ) col2 FROM tab0 query I rowsort label-4583 @@ -33503,7 +33503,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\(\*\) 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 @@ -37247,7 +37247,7 @@ SELECT + col0 + - 89 * - col1 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 "count\(\*\) \+ \(\- sum\(\(\- Int64\(\-31\)\)\)\) 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\(\*\) \+ \(\- sum\(\(\- Int64\(\-31\)\)\)\) AS col1" at position 0 and "Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - + SUM ( - - 31 ) col1, - 3 AS col1 FROM tab0 AS cor0 query I rowsort @@ -44178,7 +44178,7 @@ SELECT ALL MIN ( DISTINCT + 82 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "count\(\*\) / \(\- Int64\(74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 33 AS col1, COUNT ( * ) / - ( 74 ) AS col1 FROM tab2 query I rowsort label-7381 @@ -45392,7 +45392,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\(\*\) 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 @@ -49046,7 +49046,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\(\*\) 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 @@ -49665,7 +49665,7 @@ SELECT 43 + - - 54 FROM tab2 AS cor0 # 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\(44\) \+ count\(\*\) \- Int64\(\-34\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\*\) \- 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 44 + COUNT ( * ) - - 34 AS col0, ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -50014,7 +50014,7 @@ SELECT + 4 * + - col2 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 "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(33\) \+ 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\(33\) \+ Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, 33 + - 23 AS col1 FROM tab1 AS cor0 query III rowsort @@ -58364,7 +58364,7 @@ SELECT - - col1 col0, col2 * + ( + 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 query II rowsort @@ -58860,7 +58860,7 @@ SELECT 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "\(\- count\(\*\)\) / \(\- sum\(tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- sum\(tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 57 AS col2, - COUNT ( * ) / - SUM ( + + col0 ) AS col2 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_42.slt b/data/sqlite/random/aggregates/slt_good_42.slt index 47f3e18..0e9272a 100644 --- a/data/sqlite/random/aggregates/slt_good_42.slt +++ b/data/sqlite/random/aggregates/slt_good_42.slt @@ -4291,7 +4291,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\(\*\) AS col2" at position 1 have 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 @@ -4385,7 +4385,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\(\*\) AS col2" at position 1 have the 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 @@ -10169,7 +10169,7 @@ SELECT - ( 55 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # 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\(\*\)" at position 0 and "count\(\*\)" at position 2 have the same name\. Consider aliasing \("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 "count\(Int64\(1\)\) AS count\(\*\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), - ( - COUNT ( * ) ), + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: @@ -11436,7 +11436,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\(\*\) AS col0" at position 1 have the 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 @@ -17045,7 +17045,7 @@ SELECT - col1 AS col1, + col1 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "\(\- sum\(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 "\(\- sum\(Int64\(\-75\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, - SUM ( + - 75 ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -17661,7 +17661,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\(\*\) AS col2" at position 1 have the 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 @@ -18862,7 +18862,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\(\*\) 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 @@ -22300,7 +22300,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\(\*\) AS col0" at position 1 have 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 @@ -30077,7 +30077,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\(\*\) AS col2" at position 1 have the 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 @@ -42122,7 +42122,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\(\*\) AS col1" at position 1 have the 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 @@ -44213,7 +44213,7 @@ SELECT - MIN ( - col1 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 603 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* \(\- 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 "Int64\(\-67\) \* \(\- 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 ALL - 67 * - COUNT ( * ) col2, ( 78 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 query III rowsort @@ -44610,7 +44610,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\(\*\) AS col2" at position 1 have the 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 @@ -49244,7 +49244,7 @@ SELECT 21 * col1 * + col2 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\(\*\)\) AS col2" at position 0 and "count\(\(\- 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 "count\(\(\- tab0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, COUNT ( - + col2 ) AS col2 FROM tab0 query I rowsort label-8159 @@ -52291,7 +52291,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\(\*\) \* \(\- count\(\*\)\) AS col2" at position 0 and "min\(cor0\.col2\) / count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -52821,7 +52821,7 @@ SELECT DISTINCT + 19 / + col2 + - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 query III rowsort @@ -55817,7 +55817,7 @@ SELECT 97 * - col2 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -621 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* count\(\*\) \* \(\- count\(\*\)\) AS col0" at position 0 and "count\(\(\- Int64\(\-4\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(\(\- Int64\(\-4\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 69 * + + COUNT ( * ) * - COUNT ( * ) AS col0, COUNT ( - - 4 ) AS col0 FROM tab1 query I rowsort @@ -57120,7 +57120,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\(\*\) AS col0" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 dbf1901..f8c4ba0 100644 --- a/data/sqlite/random/aggregates/slt_good_43.slt +++ b/data/sqlite/random/aggregates/slt_good_43.slt @@ -4487,7 +4487,7 @@ SELECT col2 AS col2, col2 / col2 AS col0 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 Float64\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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 DISTINCT CAST ( NULL AS FLOAT8 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 query III rowsort @@ -8396,7 +8396,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(81\) \+ 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\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(81\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - ( + ( + COUNT ( * ) ) ) AS col1, 81 + + 39 AS col1 FROM tab1 AS cor0 query II rowsort @@ -12728,7 +12728,7 @@ SELECT ALL SUM ( DISTINCT col2 ) FROM tab0 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\(\*\)\) AS col2" at position 1 have the 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 ALL + 34 AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-2075 @@ -12801,7 +12801,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -14487,7 +14487,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\(\*\) 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 @@ -17162,7 +17162,7 @@ SELECT + + MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) 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 tab2 AS cor0 query I rowsort @@ -23700,7 +23700,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -24218,7 +24218,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\(\*\) AS col2" at position 1 have the 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 @@ -26476,7 +26476,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -27313,7 +27313,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\(\*\) AS col2" at position 1 have the 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 @@ -27558,7 +27558,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\(\*\) 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 @@ -30412,7 +30412,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\(\*\) 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 @@ -35028,7 +35028,7 @@ SELECT DISTINCT col0 col1, + col1 + - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 query I rowsort label-5748 @@ -35111,7 +35111,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + + ( + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-5763 @@ -39001,7 +39001,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\(\*\) AS col1" at position 1 have the 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 @@ -39393,7 +39393,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\(\*\) 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 @@ -39911,7 +39911,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\(\-69\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -41433,7 +41433,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\(\*\) AS col0" at position 1 have the 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 @@ -44820,7 +44820,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -46668,7 +46668,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\(\*\) AS col2" at position 1 have 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 @@ -47259,7 +47259,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\(\*\) 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 @@ -51209,7 +51209,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\(\*\) AS col1" at position 1 have the 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 @@ -52400,7 +52400,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\(\*\) 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 @@ -52899,7 +52899,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\(47\) AS col2" at position 0 and "count\(\*\) \+ CAST\(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 09b75f8..b3dbf88 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\(\*\) AS col1" at position 1 have the 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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -13400,7 +13400,7 @@ SELECT + 12 * + col2 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 135 -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\(\-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\(17\) 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 + 17 AS col0, - COUNT ( * ) * ( - 15 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -13774,7 +13774,7 @@ SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL AND NOT NULL IS NOT NULL # 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\(78\) \+ \(\- 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\(78\) \+ \(\- 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 78 + - ( + COUNT ( * ) ) AS col1, 7 AS col1 FROM tab1 query I rowsort @@ -16573,7 +16573,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\(\*\) 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 @@ -18049,7 +18049,7 @@ SELECT col0, col0 + + 78 * + - col1 AS col2 FROM tab1 # 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 "Int64\(0\) AS col0" at position 0 and "Int64\(93\) \- count\(\(\- tab1\.col1\)\) \- Int64\(26\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(93\) \- count\(\(\- tab1\.col1\)\) \- Int64\(26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 AS col0, 93 - + COUNT ( - col1 ) - + 26 + - COUNT ( * ) AS col0 FROM tab1 query I rowsort label-2969 @@ -18625,7 +18625,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\(\*\) 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 @@ -24552,7 +24552,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -26544,7 +26544,7 @@ SELECT DISTINCT - ( + ( + col0 ) ) * col1 * - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "\(\- count\(\*\)\) \* \(\- 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 "Int64\(\-32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 32 AS col2, - COUNT ( * ) * + - MIN ( ALL + + col2 ) AS col2 FROM tab1 query I rowsort label-4365 @@ -38697,7 +38697,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\(\*\) 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 @@ -45873,7 +45873,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\(\*\) \+ \(\- count\(\*\)\) \* \(\- count\(\*\)\) \+ \(\- count\(tab2\.col0\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -48551,7 +48551,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\(\*\) AS col2" at position 1 have 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 @@ -50520,7 +50520,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\(\*\) AS col2" at position 1 have the 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 @@ -57510,7 +57510,7 @@ SELECT ALL + + col2 * - - 87 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) AS col1" at position 0 and "Int64\(\-24\) \* \(\- count\(\*\)\) \+ 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 "\(\- Int64\(\-50\)\) AS col1" at position 0 and "Int64\(\-24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 50 AS col1, - 24 * - COUNT ( * ) + SUM ( ALL col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 <> - ( + CAST ( - - col1 AS INTEGER ) ) * - col0 - col1 + - ( 48 ) + - col2 / - col0 * - 89 query I rowsort label-9479 @@ -59196,7 +59196,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\(\*\) 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 @@ -59971,7 +59971,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 4178e74..e5c518a 100644 --- a/data/sqlite/random/aggregates/slt_good_45.slt +++ b/data/sqlite/random/aggregates/slt_good_45.slt @@ -1540,7 +1540,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\(\*\) 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 @@ -2734,7 +2734,7 @@ SELECT - 93 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 11 AS col0, + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 query I rowsort @@ -3481,7 +3481,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\(\*\) 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 @@ -6734,7 +6734,7 @@ SELECT 80 AS col1, 88 AS col2 FROM tab2 WHERE NOT - col2 IN ( + + col1 / - + 72 # 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 query I rowsort @@ -10172,7 +10172,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\(\*\) \+ 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 @@ -17541,7 +17541,7 @@ SELECT - 3, 57 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), ( COUNT ( * ) ) FROM tab2 query I rowsort @@ -18900,7 +18900,7 @@ SELECT - - 13 * + 54 FROM tab2 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 AS col0, - ( + + COUNT ( * ) ) col0 FROM tab0 AS cor0 query I rowsort @@ -24182,7 +24182,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\(\*\) AS col1" at position 1 have the 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 @@ -27128,7 +27128,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\(\*\) AS col2" at position 1 have the 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 @@ -30036,7 +30036,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\(\*\) AS col1" at position 1 have the 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 @@ -35022,7 +35022,7 @@ SELECT - col1 * - col1 - col0 FROM tab2 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\(\*\)\) 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 - COUNT ( * ) AS col1, 21 col1 FROM tab0 AS cor0 query I rowsort label-5773 @@ -45684,7 +45684,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\(\*\) 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 @@ -51476,7 +51476,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\(\*\) AS col1" at position 1 have the 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 @@ -51718,7 +51718,7 @@ SELECT MIN ( ALL - 10 ) FROM tab2 # 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \* max\(\(\- tab1\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(\(\- tab1\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( * ) * MAX ( - col0 ) AS col0 FROM tab1 query I rowsort label-8535 diff --git a/data/sqlite/random/aggregates/slt_good_46.slt b/data/sqlite/random/aggregates/slt_good_46.slt index 70dd301..8dc2bb4 100644 --- a/data/sqlite/random/aggregates/slt_good_46.slt +++ b/data/sqlite/random/aggregates/slt_good_46.slt @@ -3303,7 +3303,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\(\*\) AS col2" at position 1 have the 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 @@ -4818,7 +4818,7 @@ SELECT * FROM tab1 WHERE NOT - - col2 * - - col1 + - - col1 * col0 * 76 IS NOT N # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 297 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-24\)\) 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 "sum\(Int64\(\-24\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - 24 ) AS col2, COUNT ( * ) * 99 col2 FROM tab1 query I rowsort label-797 @@ -6246,7 +6246,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\(\*\) AS col0" at position 0 and "count\(\*\) \* min\(CAST\(NULL AS Float64\)\) \* \(\- Int64\(72\)\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -9556,7 +9556,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\(\*\) AS col2" at position 1 have the 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 @@ -14306,7 +14306,7 @@ SELECT DISTINCT ( + + col2 ) * - col2 + + 82 + + + 68 * + 72 + - 37 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 6 * - + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT col2 / col0 IS NULL query III rowsort @@ -20679,7 +20679,7 @@ SELECT DISTINCT ( - col1 ) / + col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -28509,7 +28509,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\(\*\) 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 @@ -28536,7 +28536,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\(\*\) 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 @@ -29422,7 +29422,7 @@ SELECT - 19 AS col0 FROM tab2 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\(\*\)\) AS col2" at position 0 and "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 "min\(\(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col2, MIN ( - + col1 ) AS col2 FROM tab0 cor0 query I rowsort label-4851 @@ -34326,14 +34326,14 @@ SELECT - - ( col0 ) + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # 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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -35871,7 +35871,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\(\*\)\) AS col0" at position 0 and "Int64\(52\) \- count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -37957,7 +37957,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\(\-32\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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: @@ -41340,7 +41340,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\(\*\) AS col2" at position 1 have the 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: @@ -46164,7 +46164,7 @@ SELECT + 0 - - col2 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(44\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(44\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) - + 44 AS col2, 19 AS col2 FROM tab0 query III rowsort @@ -46661,7 +46661,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\(\*\) AS col0" at position 1 have the 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 @@ -52496,7 +52496,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -53155,7 +53155,7 @@ SELECT - - 20 * - col1 FROM tab0 AS cor0 # 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\(\*\)\) 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 "\(\- 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 - COUNT ( * ) AS col0, - 33 col0 FROM tab0 AS cor0 query I rowsort @@ -57549,7 +57549,7 @@ SELECT * FROM tab2 WHERE NOT - col2 * col2 / - + 70 >= + + 63 / - ( col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT cor0\.col2\) \* \(\- 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 "min\(DISTINCT cor0\.col2\) \* \(\- 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 + MIN ( DISTINCT col2 ) * - COUNT ( * ) AS col2, 13 AS col2 FROM tab2 cor0 query I rowsort label-9492 diff --git a/data/sqlite/random/aggregates/slt_good_47.slt b/data/sqlite/random/aggregates/slt_good_47.slt index 560554a..27ee40c 100644 --- a/data/sqlite/random/aggregates/slt_good_47.slt +++ b/data/sqlite/random/aggregates/slt_good_47.slt @@ -7425,7 +7425,7 @@ SELECT - - 31 * - 31 * col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab0\.col1\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \* count\(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 "min\(\(\- tab0\.col1\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MIN ( - col1 ) AS col2, - COUNT ( * ) * + COUNT ( ALL col0 ) col2 FROM tab0 query I rowsort @@ -8592,7 +8592,7 @@ SELECT + 33, 9 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-53\)\)\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have 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\(\-53\)\)\) 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 - ( SUM ( DISTINCT + - 53 ) ) AS col2, + COUNT ( * ) * + + ( - COUNT ( * ) ) AS col2 FROM tab1 query I rowsort label-1398 @@ -11317,7 +11317,7 @@ SELECT DISTINCT - COUNT ( * ) * + + 44 AS col2 FROM tab2 AS cor0 # 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 "\(\- count\(\*\)\) \* Int64\(93\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) AS col0" at 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 ( * ) ) * 93 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -15328,7 +15328,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\(\*\)\) AS col2" at position 0 and "sum\(\(\- cor0\.col1\)\) \* \(\- Int64\(\-29\)\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -27882,7 +27882,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\(\*\) AS col0" at position 1 have the 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 @@ -33639,7 +33639,7 @@ SELECT 72 - - - col2 * col2 + + 58 + + 69 - - - col0 + 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\(\*\)\) AS col1" at position 0 and "count\(tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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 ALL - COUNT ( * ) AS col1, + COUNT ( + col1 ) AS col1 FROM tab1 query I rowsort @@ -34172,7 +34172,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -37218,7 +37218,7 @@ SELECT + - SUM ( DISTINCT + col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -2263 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(31\) \* 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\(31\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, + 31 * - 73 AS col1 FROM tab2 AS cor0 query I rowsort label-6095 @@ -39753,7 +39753,7 @@ SELECT + + col1 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 9 ) >= col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(13\) AS col2" at position 0 and "Int64\(\-28\) \+ Int64\(\-37\) \+ \(\- count\(\*\)\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(13\) AS col2" at position 0 and "Int64\(\-28\) \+ Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + + 13 AS col2, - 28 + - 37 + + - COUNT ( * ) * 48 AS col2 FROM tab1 cor0 query II rowsort @@ -45784,7 +45784,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\(\*\) AS col2" at position 0 and "min\(\(\- cor0\.col1\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -56325,7 +56325,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\(\*\) AS col2" at position 1 have 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 @@ -57225,7 +57225,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 3ad5553..6b2fa40 100644 --- a/data/sqlite/random/aggregates/slt_good_48.slt +++ b/data/sqlite/random/aggregates/slt_good_48.slt @@ -8640,7 +8640,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -22223,7 +22223,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\(\*\) AS col0" at position 1 have the 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 @@ -27396,7 +27396,7 @@ SELECT + 34 + col2 * + col2 AS col0 FROM tab0 # 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\(0\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "\(\- count\(DISTINCT Int64\(13\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(DISTINCT Int64\(13\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 0 + - COUNT ( * ) AS col1, - COUNT ( DISTINCT 13 ) AS col1 FROM tab1 AS cor0 query I rowsort label-4517 @@ -28813,7 +28813,7 @@ SELECT DISTINCT CAST ( - + CAST ( - 65 AS INTEGER ) AS INTEGER ) col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) query III rowsort @@ -29221,7 +29221,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\(\*\) 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 @@ -31916,7 +31916,7 @@ SELECT DISTINCT * FROM tab1 WHERE NULL <> - col0 # 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\(\*\)\) AS col0" at position 1 have the 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 tab0 query I rowsort @@ -37313,7 +37313,7 @@ SELECT * FROM tab2 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) * col0 + + 21 + + # 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 "Int64\(1\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 1 AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0 query I rowsort label-6147 @@ -37361,7 +37361,7 @@ SELECT ALL - 55 + - 93 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 query I rowsort label-6154 @@ -38061,7 +38061,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\(\*\) AS col0" at position 0 and "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 @@ -40534,7 +40534,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\(\*\) AS col0" at position 1 have the 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 @@ -41672,7 +41672,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -41775,7 +41775,7 @@ SELECT 19 * 97 * - 75 AS col0 FROM tab1 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\(\*\)\) AS col1" at position 0 and "\(\- sum\(\(\- tab2\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- sum\(\(\- tab2\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, - SUM ( - col0 ) AS col1 FROM tab2 WHERE NOT ( - col1 IS NOT NULL ) query I rowsort label-6882 @@ -47991,7 +47991,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\(\*\) AS col2" at position 1 have the 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 @@ -48777,7 +48777,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\(\*\) 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 @@ -51725,7 +51725,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\(\*\) AS col0" at position 1 have the 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 @@ -53424,7 +53424,7 @@ SELECT ALL - + 99 AS col1, - 1 AS col0 FROM tab2 AS 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 FROM tab1 AS cor0 query I rowsort @@ -54763,7 +54763,7 @@ SELECT DISTINCT + SUM ( DISTINCT + + 64 ) FROM tab1 cor0 # 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 col1" at position 0 and "count\(\*\) / count\(\(\- 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\(18\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(\(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 18 AS col1, COUNT ( * ) / COUNT ( - col0 ) AS col1 FROM tab1 AS cor0 query I rowsort label-9013 @@ -56239,7 +56239,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\(\*\) 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 @@ -57100,7 +57100,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\(\*\) 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 @@ -58998,7 +58998,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\(\*\) AS col0" at position 1 have the 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 20e3e71..ec7d43f 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\(\*\)\) \+ count\(\*\) AS col2" at position 1 have the 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\(\*\) AS col0" at position 1 have the 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 @@ -1321,7 +1321,7 @@ SELECT DISTINCT 84 / + col0 FROM tab0 AS cor0 WHERE 98 BETWEEN + col0 AND col2 # 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\(\*\)\) 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 ALL - + COUNT ( * ) AS col0, + 57 AS col0 FROM tab1 AS cor0 query II rowsort label-214 @@ -13164,7 +13164,7 @@ SELECT DISTINCT - COUNT ( * ) / + + 47 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -191 -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\(78\) \+ 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\(74\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) \+ Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + 74 ) AS col2, - COUNT ( * ) * + 78 + + 43 AS col2 FROM tab2 query I rowsort label-2166 @@ -13535,7 +13535,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 37 + + - col2 < + - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 query I rowsort @@ -13997,7 +13997,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 665 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(7\) AS col1" at position 0 and "count\(\*\) \- 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 "Int64\(95\) \* Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- min\(Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 * + 7 AS col1, COUNT ( * ) - + MIN ( - 0 ) AS col1 FROM tab1 query III rowsort @@ -15830,7 +15830,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\(\*\) AS col0" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -23055,7 +23055,7 @@ SELECT ALL 8 AS col0, col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(83\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(83\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 87 AS col2, 83 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -24117,7 +24117,7 @@ SELECT DISTINCT + 31 * 42 AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 371925 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* Int64\(19\) \* Int64\(75\) \* \(\- count\(\*\)\) AS col2" at position 0 and "count\(cor0\.col2\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* Int64\(19\) \* Int64\(75\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(cor0\.col2\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 87 * + 19 * + 75 * - COUNT ( * ) AS col2, ( COUNT ( + col2 ) ) + 81 AS col2 FROM tab0 AS cor0 query III rowsort @@ -24962,7 +24962,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\(\*\) 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 @@ -25103,7 +25103,7 @@ SELECT ALL + 96 / + COUNT ( ALL + 85 ) 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\(cor0\.col2\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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 DISTINCT MIN ( ALL + col2 ) AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -26995,7 +26995,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\(\*\) AS col2" at position 1 have the 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 @@ -28994,7 +28994,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\(\*\) AS col1" at position 1 have the 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 @@ -31051,7 +31051,7 @@ SELECT + col2, + col0 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 47 AS col1, - COUNT ( * ) col1 FROM tab0 query I rowsort label-5095 @@ -33487,7 +33487,7 @@ SELECT col0 AS col0, ( col2 ) AS col1 FROM tab2 # 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\(\*\)\) 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 "\(\- 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 DISTINCT - + COUNT ( * ) AS col0, 90 AS col0 FROM tab2 AS cor0 WHERE col1 < + 37 query II rowsort @@ -36576,7 +36576,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 90 NOT IN ( - col2, col2, 15 - - 98 + - col # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 48 -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\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 25 AS col1, COUNT ( * ) * 16 col1 FROM tab0 AS cor0 query I rowsort label-6012 @@ -40135,7 +40135,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\(\*\) 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: @@ -47434,7 +47434,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\(\*\) AS col2" at position 1 have the 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 @@ -48905,7 +48905,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\(\*\) 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 @@ -52079,7 +52079,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 17716 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(42\) \* Int64\(\-14\) \* Int64\(\-30\) \+ \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(42\) \* Int64\(\-14\) \* Int64\(\-30\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, 42 * - 14 * + - 30 + - + COUNT ( * ) + + 79 AS col1 FROM tab0 query II rowsort @@ -57048,7 +57048,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\(\*\) 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 6a314ab..fa3c358 100644 --- a/data/sqlite/random/aggregates/slt_good_5.slt +++ b/data/sqlite/random/aggregates/slt_good_5.slt @@ -4352,7 +4352,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\(\*\) 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 @@ -4696,7 +4696,7 @@ SELECT * FROM tab2 WHERE NOT NULL IN ( 60, col2, - col2 ) # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2 WHERE NOT 25 NOT IN ( + col0 ) query II rowsort @@ -7168,7 +7168,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\(\*\) 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 @@ -7562,7 +7562,7 @@ SELECT + COUNT ( * ) * + MAX ( DISTINCT - - col1 ) * - + 58 * + 33 AS col0 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(\*\) \* CAST\(Int64\(\-40\) AS Int32\) \+ min\(Int64\(\-59\)\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-40\) AS Int32\) \+ min\(Int64\(\-59\)\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, COUNT ( * ) * CAST ( - 40 AS INTEGER ) + + MIN ( - 59 ) * ( 99 ) AS col2 FROM tab0 query I rowsort @@ -8356,7 +8356,7 @@ SELECT ALL + col2 * + - 55 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\(\*\)\) AS col1" at position 0 and "count\(DISTINCT \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(DISTINCT \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - COUNT ( * ) AS col1, COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 query I rowsort label-1370 @@ -9763,7 +9763,7 @@ SELECT + + 81 / - - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-1608 @@ -12213,7 +12213,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + col0 = - col2 * 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 234 # Datafusion - Expected - 170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-78\) AS col2" at position 0 and "Int64\(93\) \+ 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\(\*\)\) \* Int64\(\-78\) AS col2" at position 0 and "Int64\(93\) \+ Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - 78 AS col2, 93 + 77 AS col2 FROM tab0 AS cor0 query I rowsort label-2005 @@ -14257,7 +14257,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\(\*\) 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 @@ -17071,7 +17071,7 @@ SELECT ALL - - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 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\(70\) \+ Int64\(1\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(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 70 + 1 AS col2, ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -27717,7 +27717,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\(\*\) 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 @@ -28823,7 +28823,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\(\*\) 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 @@ -38286,7 +38286,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\(\*\) 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 @@ -38364,7 +38364,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\(\-53\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -44743,7 +44743,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\(74\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -50577,7 +50577,7 @@ SELECT ALL + MIN ( ALL 49 ) FROM tab1 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 DISTINCT + 87 col1, - COUNT ( * ) col1 FROM tab0 AS cor0 query I rowsort label-8323 @@ -54798,7 +54798,7 @@ SELECT ALL + CAST ( NULL AS INTEGER ) + - 69 FROM tab1 AS cor0 WHERE - col2 - + # 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\(\*\)\) \* min\(DISTINCT 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 "\(\- Int64\(22\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT Int64\(\-1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 22 AS col2, - COUNT ( * ) * MIN ( DISTINCT + - 1 ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -55602,7 +55602,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\(\*\) AS col1" at position 1 have the 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 @@ -59583,7 +59583,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\(\*\) 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 @@ -60104,7 +60104,7 @@ SELECT COUNT ( * ) * - 63 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 363 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* CAST\(sum\(cor0\.col2\) AS Int32\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(sum\(cor0\.col2\) AS Int32\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * CAST ( + SUM ( + col2 ) AS INTEGER ) AS col1, - 21 AS col1 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_50.slt b/data/sqlite/random/aggregates/slt_good_50.slt index 922491f..53c2ed6 100644 --- a/data/sqlite/random/aggregates/slt_good_50.slt +++ b/data/sqlite/random/aggregates/slt_good_50.slt @@ -1367,7 +1367,7 @@ SELECT * FROM tab2 AS cor0 WHERE - 0 NOT IN ( - + col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(70\) AS col1" at position 0 and "\(\- count\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(70\) AS col1" at position 0 and "\(\- count\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 27 * - ( - COUNT ( * ) ) + 70 AS col1, - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 query III rowsort label-228 @@ -1739,7 +1739,7 @@ SELECT DISTINCT + 26 * 27 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1449 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(23\) AS col1" at position 0 and "count\(\*\) \* 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\(\-63\) \* Int64\(23\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 63 * + 23 AS col1, COUNT ( * ) * 50 AS col1 FROM tab0 AS cor0 query I rowsort @@ -2833,7 +2833,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\(\*\) 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 @@ -8380,7 +8380,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\(\*\) AS col2" at position 1 have the 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 @@ -13555,7 +13555,7 @@ SELECT CAST ( + - COUNT ( * ) AS INTEGER ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 query I rowsort @@ -14552,7 +14552,7 @@ SELECT ALL 86 * + col0 AS 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\(\*\)\) 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 ( * ) AS col1, - 63 col1 FROM tab1 query I rowsort label-2399 @@ -20556,7 +20556,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\(\*\) AS col0" at position 1 have the 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 @@ -25730,7 +25730,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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ), ( + + COUNT ( * ) ) FROM tab1 query I rowsort @@ -26331,7 +26331,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\(\*\) AS col1" at position 1 have the 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 @@ -30331,7 +30331,7 @@ SELECT DISTINCT - 45 AS col1 FROM tab1 WHERE - ( + + col1 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -123 -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\(\-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\(31\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 31 AS col1, - COUNT ( * ) * - - 41 AS col1 FROM tab2 query II rowsort @@ -30776,7 +30776,7 @@ SELECT + 37 * + - 73 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -681 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* sum\(DISTINCT \(\- cor0\.col0\)\) 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\(\*\) \* sum\(DISTINCT \(\- cor0\.col0\)\) 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 ( * ) * + + SUM ( DISTINCT - col0 ) AS col0, 52 AS col0 FROM tab1 AS cor0 query III rowsort @@ -32139,7 +32139,7 @@ SELECT 5 * + + 17 FROM tab0 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\(\*\)\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) AS col2, 94 col2 FROM tab0 AS cor0 query III rowsort @@ -32292,7 +32292,7 @@ SELECT DISTINCT - MIN ( ALL + 7 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5346 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(66\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 + 81 * + 66 AS col0, ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 query I rowsort label-5323 @@ -33952,7 +33952,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\(\*\) 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 @@ -44284,7 +44284,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\(\*\)\) AS col2" at position 0 and "count\(\*\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -49092,7 +49092,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\(\*\) 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 @@ -52967,7 +52967,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\(\*\) / count\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -57359,7 +57359,7 @@ SELECT - - 99 AS col0 FROM tab2 WHERE NOT - 60 * - + col2 + + + col0 + - - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 291 -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\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) 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 47 AS col0, COUNT ( * ) * 97 AS col0 FROM tab2 query II rowsort label-9463 @@ -60332,7 +60332,7 @@ SELECT 45 AS col1, col1 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab0 query I rowsort label-9956 diff --git a/data/sqlite/random/aggregates/slt_good_51.slt b/data/sqlite/random/aggregates/slt_good_51.slt index 3a44663..f7f5a75 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\(\*\) 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\(\*\) AS col1" at position 1 have the 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\(\*\) 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 @@ -17639,7 +17639,7 @@ SELECT + 23 * + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -7644 -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\(28\) \* 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\(89\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(28\) \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 89 col0, COUNT ( * ) * + 28 * + - 91 AS col0 FROM tab0 cor0 query II rowsort @@ -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\(\*\) AS col1" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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 @@ -24999,7 +24999,7 @@ SELECT - col1 / 23 / - col0 * + 89 - 75 / - col1 AS col0 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\(\*\)\) 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 col2 FROM tab0 AS cor0 query II rowsort @@ -25378,7 +25378,7 @@ SELECT + - MIN ( - - col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -616 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(14\) \+ \(\- count\(\*\)\) \* Int64\(70\) \* \(\- \(\- 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 "Int64\(78\) AS col0" at position 0 and "Int64\(14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(70\) \* \(\- \(\- count\(\(\- cor0\.col2\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 78 AS col0, 14 + - COUNT ( * ) * + 70 * - ( + - COUNT ( - col2 ) ) AS col0 FROM tab0 AS 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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -27937,7 +27937,7 @@ SELECT 78 AS col1 FROM tab1, 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab0 query I rowsort @@ -28868,7 +28868,7 @@ SELECT - ( + ( 83 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 267 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(89\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -30399,7 +30399,7 @@ SELECT + 16 / - 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\(\*\) \* count\(tab0\.col0\) AS col0" at position 0 and "count\(\(\- 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\(\*\) \* count\(tab0\.col0\) AS col0" at position 0 and "count\(\(\- tab0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * COUNT ( ALL + col0 ) AS col0, + COUNT ( - col1 ) AS col0 FROM tab0 query I rowsort label-4999 @@ -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\(\*\) 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 @@ -31603,7 +31603,7 @@ SELECT ALL * FROM tab1 WHERE 64 IS NULL # Datafusion - Expected - 45 # Datafusion - Expected - 56 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(\*\) \* count\(\(\- 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 "Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(\(\- tab1\.col1\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45 AS col0, + 56, COUNT ( * ) * + COUNT ( - col1 ) AS col0 FROM tab1 query I rowsort @@ -34554,7 +34554,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\(\*\) AS col0" at position 1 have the 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 @@ -35558,7 +35558,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -36702,7 +36702,7 @@ SELECT ALL + + 65 AS col0, 92 - col1 + col2 * + col2 * + + col1 FROM tab0 AS cor # 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\(\*\)\) 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\(\*\)\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) col1, - 36 col1 FROM tab2 AS cor0 query I rowsort label-6029 @@ -44239,7 +44239,7 @@ SELECT + AVG ( DISTINCT - 60 ) * - + 42 FROM tab1 WHERE col2 = + + col1 # 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\(\*\) AS col0" at position 1 have the 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 @@ -47034,7 +47034,7 @@ SELECT ALL ( - 79 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(5\) \+ 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\(5\) \+ Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 5 + 62 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-7742 @@ -55420,7 +55420,7 @@ SELECT - - COUNT ( * ) / + 11 AS col1 FROM tab2 cor0 # Datafusion - Expected - -19 # Datafusion - Expected - -3 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) \- min\(DISTINCT Int64\(7\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 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 DISTINCT - ( 12 ) - + MIN ( DISTINCT 7 ) AS col2, - COUNT ( * ) AS col2, 25 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL query I rowsort @@ -57005,7 +57005,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\(\*\) 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\(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 @@ -57981,7 +57981,7 @@ SELECT + col0 * + ( + - col1 ), + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 56 col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 query I rowsort label-9556 @@ -58763,7 +58763,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\(\*\) 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 40b71e6..7d3c376 100644 --- a/data/sqlite/random/aggregates/slt_good_52.slt +++ b/data/sqlite/random/aggregates/slt_good_52.slt @@ -289,7 +289,7 @@ SELECT DISTINCT col2 + + - col2 - - col2 + - col0 - 74 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) \+ 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\(\-8\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 8 col2, COUNT ( * ) * - + COUNT ( * ) + 42 AS col2 FROM tab1 cor0 query IIIIII rowsort @@ -3230,7 +3230,7 @@ SELECT col0 col0, + col1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3413 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(62\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(62\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col2, COUNT ( * ) + + 62 * + 55 col2 FROM tab0 cor0 query II rowsort @@ -5079,7 +5079,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT 76 * - 96 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 FROM tab1 cor0 query I rowsort @@ -6490,7 +6490,7 @@ SELECT - - ( + SUM ( DISTINCT - 69 ) ) 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(\-47\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 3 AS col2, ( - 47 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -7144,7 +7144,7 @@ SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 query II rowsort @@ -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\(\*\) AS col1" at position 1 have 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 @@ -8106,7 +8106,7 @@ SELECT ALL - ( + COUNT ( * ) ) / - COUNT ( * ) FROM tab1 # 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\(\*\)\) 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 FROM tab0 query I rowsort label-1324 @@ -10578,7 +10578,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\(\*\) 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 @@ -12766,7 +12766,7 @@ SELECT + 77 + - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ max\(DISTINCT cor0\.col0\) AS col0" at position 0 and "count\(\*\) \+ 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\(\-80\) \+ max\(DISTINCT cor0\.col0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 + + MAX ( DISTINCT col0 ) AS col0, COUNT ( * ) + + + CAST ( NULL AS FLOAT8 ) col0 FROM tab0 AS cor0 query I rowsort label-2115 @@ -14409,7 +14409,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\(\*\) 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 @@ -18670,7 +18670,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 23 - + + 99 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- Int64\(26\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- Int64\(26\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 + - + ( + 26 ) AS col2, - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-3089 @@ -18975,7 +18975,7 @@ SELECT DISTINCT - - col0 + - - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 query III rowsort @@ -19625,7 +19625,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\(\*\) AS col2" at position 0 and "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 @@ -22087,7 +22087,7 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 < - + col0 + - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 305 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(74\) / Int64\(74\) \+ Int64\(38\) \* 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\(74\) / Int64\(74\) \+ Int64\(38\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ) AS col2, 74 / + 74 + + 38 * + 8 col2 FROM tab1 AS cor0 WHERE NOT col1 + 1 * - col1 IS NOT NULL query I rowsort label-3656 @@ -25199,7 +25199,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\(\*\) 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 @@ -30609,7 +30609,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\(\*\) AS col1" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -32478,7 +32478,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\(\*\) AS col0" at position 0 and "\(\- 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 @@ -35429,7 +35429,7 @@ SELECT - col2 + + - ( + col1 ) * col1 FROM tab1 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\(15\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ( * ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -36473,7 +36473,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\(\*\)\) \* 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 @@ -36545,7 +36545,7 @@ SELECT DISTINCT ( + - ( + - COUNT ( - col2 ) ) ) * COUNT ( * ) AS col1 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\(\*\)\) AS col2" at position 0 and "sum\(DISTINCT \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "sum\(DISTINCT \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) col2, SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL query I rowsort @@ -38822,7 +38822,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\(\-57\) / 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 @@ -39685,7 +39685,7 @@ SELECT + col1 * - 37 * + + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -11812 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(\-64\) \+ max\(Int64\(89\)\) \* count\(\*\) \* Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(\-64\) \+ max\(Int64\(89\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 67 AS col0, ( - 64 ) + + MAX ( + 89 ) * COUNT ( * ) * - 44 AS col0 FROM tab2 AS cor0 query I rowsort label-6587 @@ -40446,7 +40446,7 @@ SELECT DISTINCT 96 / + + ( - 7 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2 query I rowsort label-6717 @@ -42937,7 +42937,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\(\*\) AS col1" at position 1 have the 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: @@ -48436,7 +48436,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\(\*\) AS col2" at position 1 have the 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 @@ -50450,7 +50450,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\(\*\) AS col0" at position 1 have the 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 @@ -51042,7 +51042,7 @@ SELECT + - COUNT ( col2 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 55 AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-8466 @@ -55533,7 +55533,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\(\*\) AS Int32\)\) AS col1" at position 1 have the 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 @@ -56168,7 +56168,7 @@ SELECT + col1 * - 67 AS col0, col2 col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 0 -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\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) 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 20 AS col2, + COUNT ( * ) * 36 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0 query III rowsort @@ -56220,7 +56220,7 @@ SELECT ALL MIN ( DISTINCT col0 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ count\(\*\) \* Int64\(64\) \+ Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) \+ Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 3 col2, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 64 + 25 AS col2 FROM tab1 query I rowsort label-9339 @@ -59951,7 +59951,7 @@ SELECT - 93 + + 47 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- \(\- count\(tab2\.col2\)\)\) AS col0" at position 0 and "\(\- min\(Int64\(74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- count\(tab2\.col2\)\)\) AS col0" at position 0 and "\(\- min\(Int64\(74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - - COUNT ( ALL + col2 ) AS col0, - MIN ( + + 74 ) AS col0 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_53.slt b/data/sqlite/random/aggregates/slt_good_53.slt index 3169d7e..5194282 100644 --- a/data/sqlite/random/aggregates/slt_good_53.slt +++ b/data/sqlite/random/aggregates/slt_good_53.slt @@ -4878,7 +4878,7 @@ SELECT * FROM tab2 AS cor0 WHERE + 92 IS NOT NULL # 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\(\*\)\) 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 - + COUNT ( * ) AS col2, 79 AS col2 FROM tab0 AS cor0 query I rowsort @@ -4983,7 +4983,7 @@ SELECT ALL * FROM tab1 WHERE - col2 IN ( - 46 + 89 ) # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-831 @@ -9598,7 +9598,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\(\*\) 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 @@ -11338,7 +11338,7 @@ SELECT DISTINCT + + ( - 23 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 query I rowsort label-1891 @@ -11542,7 +11542,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\(\*\) 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 @@ -15427,7 +15427,7 @@ SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL # 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\(\*\)\)\) 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 DISTINCT - - COUNT ( * ) AS col2, 91 AS col2 FROM tab0 cor0 query II rowsort @@ -18557,7 +18557,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\(\*\) AS col2" at position 1 have the 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 @@ -19312,7 +19312,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\(\*\)\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -21154,7 +21154,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\(\*\) AS col0" at position 1 have the 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 @@ -22355,7 +22355,7 @@ SELECT DISTINCT 86 + COUNT ( * ) AS col1 FROM tab1, tab2 cor0 # Datafusion - Expected - -69 # Datafusion - Expected - -3 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 col2, - COUNT ( * ) AS col2, - 27 AS col2 FROM tab1 query III rowsort @@ -22365,7 +22365,7 @@ SELECT ALL * FROM tab0 WHERE ( NOT 46 * - + col0 + + - 95 IS NOT NULL ) # 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\(\*\)\) 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 "\(\- 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 ALL - + COUNT ( * ) col2, 64 AS col2 FROM tab0 AS cor0 query I rowsort @@ -22415,7 +22415,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\(\*\) 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 @@ -23432,7 +23432,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - col1 / + col1 NOT BETWEEN NULL A # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(41\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(41\) AS col0" at position 0 and "Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + + + 41 AS col0, ( + - 33 ) col0 FROM tab1 AS cor0 query I rowsort @@ -37123,7 +37123,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\(\*\) AS col1" at position 1 have the 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 @@ -37295,7 +37295,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\(\*\) 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 @@ -37401,7 +37401,7 @@ SELECT - col2 AS col0, + ( - 71 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 query I rowsort @@ -41632,7 +41632,7 @@ SELECT DISTINCT + 16 * col2 + + - col2 + - col1 + - - 21, col1 AS col1 FROM tab1 # 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\(\*\)\)\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col2, ( + 73 ) AS col2 FROM tab0 WHERE NOT col2 IS NULL query I rowsort label-6853 @@ -45836,7 +45836,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\(\*\) \+ 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 @@ -49209,7 +49209,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\(\*\) AS col0" at position 1 have the 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 @@ -52661,7 +52661,7 @@ SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) * + - 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 "count\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab2 query I rowsort @@ -57994,7 +57994,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\(\*\)\) / \(\- count\(\*\)\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -58713,7 +58713,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\(\*\) AS col1" at position 1 have 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 @@ -59657,7 +59657,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\(\*\) AS col0" at position 1 have the 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 @@ -59812,7 +59812,7 @@ SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE + col1 * - 91 * + 80 * + 88 IN ( # 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 "\(\- Int64\(\-1\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-1\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 1 col2, COUNT ( * ) * + + 4 AS col2 FROM tab2 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_54.slt b/data/sqlite/random/aggregates/slt_good_54.slt index 648730b..7acb822 100644 --- a/data/sqlite/random/aggregates/slt_good_54.slt +++ b/data/sqlite/random/aggregates/slt_good_54.slt @@ -3642,7 +3642,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 "\(\- 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 ALL - COUNT ( * ) AS col0, 77 AS col0 FROM tab2 AS cor0 query I rowsort @@ -12436,7 +12436,7 @@ SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(41\) 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\(\*\) \+ Int64\(41\) 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 ( * ) + + + 41 col0, - 37 AS col0 FROM tab1 AS cor0 query I rowsort @@ -15153,7 +15153,7 @@ SELECT ALL + + 53 * - col1 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1140 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- max\(\(\- tab0\.col0\)\)\) AS col1" at position 0 and "count\(\*\) \- max\(DISTINCT 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\(76\) \* \(\- max\(\(\- tab0\.col0\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- max\(DISTINCT Int64\(\-22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 76 * - MAX ( ALL + - col0 ) col1, COUNT ( * ) - MAX ( DISTINCT - 22 ) AS col1 FROM tab0 query I rowsort label-2499 @@ -15304,7 +15304,7 @@ SELECT - - 10 AS col1 FROM tab1 AS cor0 # 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\(\*\)\) 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 col1 FROM tab2 AS cor0 query II rowsort @@ -22018,7 +22018,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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 query II rowsort label-3637 @@ -25937,7 +25937,7 @@ SELECT ( - 82 ) + - col0 AS col1, - col0 * 88 AS col2 FROM tab1 # 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\(\*\)\) AS col1" at position 1 have the 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 DISTINCT + 97 AS col1, - COUNT ( * ) AS col1 FROM tab1 query III rowsort @@ -26321,7 +26321,7 @@ SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * - col # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(29\) AS col2" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(29\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / + 29 col2, COUNT ( * ) * - 92 AS col2 FROM tab0 query II rowsort @@ -26917,7 +26917,7 @@ SELECT - + col1 * ( + - 61 ) AS col2 FROM tab2 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\(\*\)\) 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\(\*\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 5 AS col2 FROM tab0 cor0 query II rowsort @@ -30624,7 +30624,7 @@ SELECT ALL * FROM tab1 WHERE NULL > - + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ count\(\*\) \+ max\(tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ max\(tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 43 AS col2, - COUNT ( * ) + + ( + + COUNT ( * ) ) + + MAX ( col1 ) AS col2 FROM tab0 query I rowsort label-5049 @@ -34715,7 +34715,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\(\-73\) \- Int64\(\-16\) \- count\(\*\) AS col0" at position 1 have the 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 @@ -36973,7 +36973,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\(\*\) AS col1" at position 1 have the 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 @@ -40488,7 +40488,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -41699,7 +41699,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\(\*\) AS col0" at position 1 have the 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 @@ -42878,7 +42878,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -43676,7 +43676,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\(\*\) 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 @@ -47314,7 +47314,7 @@ SELECT ALL - - col0 / col2 + - 35 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) \+ CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 85 + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 13 AS col0 FROM tab0 AS cor0 query I rowsort @@ -48696,7 +48696,7 @@ SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 # 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\(\*\)\) 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 ( - COUNT ( * ) ) AS col2, 6 AS col2 FROM tab2 query I rowsort label-8022 @@ -52303,7 +52303,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(26\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 71 AS col0, + 26 + - + COUNT ( * ) col0 FROM tab1 query II rowsort @@ -55689,7 +55689,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -56297,7 +56297,7 @@ SELECT * FROM tab2 AS cor0 WHERE 74 < 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 CROSS JOIN tab1 AS cor1 query III rowsort @@ -59634,7 +59634,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - ( col0 ) / - col2 * - col2 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, 22 AS col1 FROM tab1 query I rowsort @@ -60309,7 +60309,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 33b2589..04e6cdb 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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) 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 @@ -10187,7 +10187,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\(\*\) 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 @@ -11291,7 +11291,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\(\*\) AS col0" at position 1 have 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 @@ -12939,7 +12939,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\(\*\) 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 @@ -23301,7 +23301,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\(\*\) AS col0" at position 1 have 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 @@ -23546,7 +23546,7 @@ NULL # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 tab1 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-3895 @@ -25380,7 +25380,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -27502,7 +27502,7 @@ SELECT ALL - + 14 col0 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\(\-33\)\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(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 ALL + + COUNT ( ALL - 33 ) * - - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 cor0 query I rowsort @@ -32969,7 +32969,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\(\*\) AS Int32\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have 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 @@ -33553,7 +33553,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\(\*\) 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 @@ -35025,7 +35025,7 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 > - + ( + col2 ) * CAST ( NULL AS I # 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\(\*\)\)\) 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 "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) 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 - - COUNT ( * ) AS col2, MIN ( - col2 ) AS col2 FROM tab0 AS cor0 query III rowsort @@ -35779,7 +35779,7 @@ SELECT ALL - + col2 + - col0 FROM tab0 WHERE NOT + 20 <> NULL # 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\(\*\)\)\) 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 ( * ) ) col2, + 57 AS col2 FROM tab1 query III rowsort @@ -37451,7 +37451,7 @@ SELECT - col0 * 91 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 query III rowsort @@ -37932,7 +37932,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\(\*\) AS col2" at position 1 have the 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 @@ -46448,7 +46448,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\(\*\) 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 @@ -52443,7 +52443,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\(\*\) AS col2" at position 1 have the 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 @@ -56291,7 +56291,7 @@ SELECT ALL 79 - col2 AS col2 FROM tab0 # 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\(\*\)\) 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 DISTINCT - + COUNT ( * ) AS col1, - 15 AS col1 FROM tab1 cor0 query II rowsort label-9282 @@ -56658,7 +56658,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\(\*\) AS col1" at position 1 have the 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 @@ -56718,7 +56718,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\(\*\) 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 @@ -57513,7 +57513,7 @@ SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT col1 + - 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-9486 diff --git a/data/sqlite/random/aggregates/slt_good_56.slt b/data/sqlite/random/aggregates/slt_good_56.slt index 263c0b1..122ca52 100644 --- a/data/sqlite/random/aggregates/slt_good_56.slt +++ b/data/sqlite/random/aggregates/slt_good_56.slt @@ -1993,7 +1993,7 @@ SELECT - 58 / - ( col0 ) FROM tab1 # 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 "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(32\) / 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\(32\) / Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - COUNT ( * ) AS col2, 32 / + - 46 AS col2 FROM tab2 query I rowsort @@ -2634,7 +2634,7 @@ SELECT 35 col0 FROM tab0 AS cor0 WHERE + - col2 / + - col2 + col0 < - - 44 * - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), ( COUNT ( * ) ) FROM tab1 AS cor0 query I rowsort label-424 @@ -3121,7 +3121,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( + 26, 77 + - 82 * - + 76 * - # 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\(\*\)\) AS col1" at position 0 and "Int64\(\-22\) \* 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\(\-22\) \* Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + - ( + COUNT ( * ) ) ) AS col1, - 22 * + - 1 col1 FROM tab2 AS cor0 query I rowsort label-501 @@ -3160,7 +3160,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\(\*\) 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: @@ -12419,7 +12419,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\(\*\) 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 @@ -15412,7 +15412,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\(\*\) / count\(\*\) AS col1" at position 1 have the 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 @@ -17802,7 +17802,7 @@ SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 / col1 IS 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\(\*\)\) 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 FROM tab2 AS cor0 query II rowsort label-2943 @@ -18055,7 +18055,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NULL AND 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 "\(\- count\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 query I rowsort label-2987 @@ -18592,7 +18592,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\(\*\) AS col2" at position 1 have the 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 @@ -19817,7 +19817,7 @@ SELECT - 27 * - 66 * col1 * + col1 FROM tab2 WHERE col2 IS 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\(\*\)" at position 1 and "count\(\*\)" at position 2 have the same name\. Consider aliasing \("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 1 and "count\(Int64\(1\)\) AS count\(\*\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 3 AS col2, + COUNT ( * ), COUNT ( * ) FROM tab1 query I rowsort label-3278 @@ -25936,7 +25936,7 @@ SELECT col2 * + col1 * + col1 + 6 / + col2 AS col0 FROM tab2 AS cor0 WHERE + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- CAST\(tab0\.col1 AS Int32\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- CAST\(tab0\.col1 AS Int32\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MIN ( - CAST ( + + col1 AS INTEGER ) ) AS col0, CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -26067,7 +26067,7 @@ SELECT ALL col0 * col0 + - col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT \(\- Int64\(44\)\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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\(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 DISTINCT ( + - MIN ( DISTINCT - + 44 ) ) col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort @@ -26645,7 +26645,7 @@ SELECT 27 + + + ( + - col2 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -210 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- 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\(70\) \* \(\- 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 ALL 70 * + - COUNT ( * ) col0, 7 AS col0 FROM tab1 AS cor0 query I rowsort @@ -29139,7 +29139,7 @@ SELECT col2 AS col0, + col2 AS col2 FROM tab2 AS cor0 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 query III rowsort @@ -31156,7 +31156,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\(\*\) AS col2" at position 1 have the 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 @@ -39030,7 +39030,7 @@ SELECT - - 9 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "count\(Int64\(\-58\)\) \+ Int64\(\-77\) \+ 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\(Int64\(\-58\)\) \+ Int64\(\-77\) \+ Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, ( + COUNT ( - 58 ) ) + - 77 + - 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -40737,7 +40737,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - col1 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(43\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + 43 AS col1, - COUNT ( * ) AS col1 FROM tab2 query I rowsort label-6744 @@ -44076,7 +44076,7 @@ SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) AS col1, 2 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1 query III rowsort @@ -46342,7 +46342,7 @@ SELECT * FROM tab2 AS cor0 WHERE + 92 + - col2 <> - 5 + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) * CAST ( NULL AS FLOAT8 ) AS col2, - ( 56 ) AS col2 FROM tab0 AS cor0 query I rowsort label-7677 @@ -49662,13 +49662,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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\(\*\) 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 @@ -50662,7 +50662,7 @@ SELECT ALL COUNT ( DISTINCT - col0 ) col2 FROM tab1 AS cor0 # 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\(\*\)\) 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 tab1 AS cor0 WHERE NOT - 77 IS NULL query I rowsort @@ -51107,7 +51107,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\(\*\) AS col2" at position 1 have the 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 @@ -51897,7 +51897,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\(\*\) 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 @@ -54409,7 +54409,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -57600,7 +57600,7 @@ SELECT DISTINCT 60 - - + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 DISTINCT - COUNT ( * ) AS col0, + 95 AS col0 FROM tab2 WHERE - col2 IS NULL AND ( + ( col2 ) ) IS NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_57.slt b/data/sqlite/random/aggregates/slt_good_57.slt index 3446619..141ea47 100644 --- a/data/sqlite/random/aggregates/slt_good_57.slt +++ b/data/sqlite/random/aggregates/slt_good_57.slt @@ -776,7 +776,7 @@ SELECT ALL + ( + 93 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4500 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* min\(\(\- cor0\.col0\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\) \* 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 60 * + MIN ( - col0 ) AS col1, - COUNT ( * ) col1 FROM tab2 AS cor0 query I rowsort label-122 @@ -5830,7 +5830,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\(\*\) 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 @@ -14979,7 +14979,7 @@ SELECT ( + ( + - col1 ) ) * col1, col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- 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 "Int64\(31\) \* \(\- 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 31 * - + COUNT ( * ) AS col2, 64 AS col2 FROM tab0 query I rowsort @@ -21750,7 +21750,7 @@ SELECT col1 + + + col0 + col2 AS col1 FROM tab0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NULL < NULL query I rowsort label-3576 @@ -29352,7 +29352,7 @@ SELECT DISTINCT 29 AS col2, MAX ( DISTINCT ( - - col1 ) ) / - - 29 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -5775 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "max\(tab2\.col0\) \* \(\- max\(\(\- \(\- tab2\.col1\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(tab2\.col0\) \* \(\- max\(\(\- \(\- tab2\.col1\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + MAX ( + col0 ) * - MAX ( - - col1 ) AS col1 FROM tab2 query II rowsort label-4835 @@ -31945,7 +31945,7 @@ SELECT * FROM tab2 cor0 WHERE NOT 25 <= - - 81 + - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(36\) 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\(\*\) / Int64\(36\) 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 ( * ) / + 36 AS col2, 10 AS col2 FROM tab0 AS cor0 query I rowsort @@ -32361,7 +32361,7 @@ SELECT COUNT ( * ) + ( 59 ) 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\(\*\)\) 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 ALL - COUNT ( * ) AS col0, - 16 col0 FROM tab2 query I rowsort label-5323 @@ -37772,7 +37772,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\(\*\) AS col1" at position 1 have the 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 @@ -38165,7 +38165,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\(\*\) 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 @@ -38675,7 +38675,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\(\*\) AS col0" at position 0 and "Int64\(\-88\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -38799,7 +38799,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\(\*\) 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 @@ -44399,7 +44399,7 @@ SELECT ALL col1 * - ( - - 35 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -234 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* \(\- count\(\*\)\) AS col1" at position 0 and "min\(Int64\(8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(Int64\(8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 78 * - + COUNT ( * ) col1, + MIN ( 8 ) AS col1 FROM tab2 query I rowsort @@ -45070,7 +45070,7 @@ SELECT ALL + 19 - - col2 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 0 and "sum\(\(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "sum\(\(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1, SUM ( ALL - col1 ) AS col1 FROM tab1 query III rowsort @@ -47953,7 +47953,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\(\*\) AS col2" at position 1 have the 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 @@ -48931,7 +48931,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\(\*\) AS col1" at position 1 have the 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 @@ -51680,7 +51680,7 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 + + 88 IS NULL # 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\(\*\)\) 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 - + COUNT ( * ) AS col0, + MIN ( ALL + col0 ) AS col0 FROM tab1 AS cor0 query I rowsort label-8520 @@ -52453,7 +52453,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * + col1 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 tab1 query I rowsort @@ -56834,7 +56834,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -57583,7 +57583,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\(\*\) AS col2" at position 1 have the 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 dc1d533..0ea0f30 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\(\*\) AS col2" at position 1 have 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 @@ -4746,7 +4746,7 @@ SELECT DISTINCT * FROM tab0 WHERE - 73 / + 22 IS NOT NULL # 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 "Int64\(5\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 CROSS JOIN tab0 AS cor1 query I rowsort @@ -9069,7 +9069,7 @@ SELECT * FROM tab2 AS cor0 WHERE - 13 * - 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\(\*\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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-1494 @@ -9127,7 +9127,7 @@ SELECT DISTINCT + 72 - col1 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\)" at position 0 and "\(\- 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 @@ -15105,7 +15105,7 @@ SELECT ALL SUM ( ALL + 96 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "\(\- count\(\*\)\) \* count\(cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( 20 ) col2, - COUNT ( * ) * + COUNT ( col1 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -24236,7 +24236,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\(\*\) 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\(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 @@ -26310,7 +26310,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\(\*\) AS col0" at position 1 have 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 @@ -28827,7 +28827,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\(\*\) AS col2" at position 0 and "count\(\*\) \+ 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 @@ -37213,7 +37213,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\(\*\) AS col2" at position 1 have 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 @@ -37254,7 +37254,7 @@ SELECT col0 * 85 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 77 -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\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 32 AS col1, - COUNT ( * ) + + + 80 AS col1 FROM tab1 query I rowsort @@ -38679,7 +38679,7 @@ NULL # Datafusion - Expected - -61 # Datafusion - Expected - -14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(50\) \+ count\(\*\) \- \(\- 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\(\-61\) AS col0" at position 0 and "Int64\(50\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-73\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 61 AS col0, 50 + COUNT ( * ) - - - 73 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -39338,7 +39338,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\(\*\) AS col0" at position 1 have the 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 @@ -40704,7 +40704,7 @@ SELECT ALL - 96 * - ( col1 ), + col1 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \- \(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "\(\- \(\- count\(\(\- tab0\.col1\)\)\)\) \- 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\(57\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- \(\- count\(\(\- tab0\.col1\)\)\)\) \- Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 57 - + ( - COUNT ( * ) ) * - COUNT ( * ) AS col0, - ( - COUNT ( ALL - col1 ) ) - - 68 AS col0 FROM tab0 query I rowsort @@ -43290,7 +43290,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\(\*\) 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 @@ -47252,7 +47252,7 @@ SELECT DISTINCT 31 + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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 col1" at 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 ( + + col0 ) AS col1, ( - COUNT ( * ) ) AS col1 FROM tab1 query I rowsort label-7826 @@ -48423,7 +48423,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\(\*\)\) \* min\(DISTINCT Int64\(73\)\) \+ count\(\*\) AS col2" at position 1 have the same 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 @@ -48530,7 +48530,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -51495,7 +51495,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(57\) \* 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\(57\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( - COUNT ( * ) ) col1, 57 * + 65 col1 FROM tab1 AS cor0 query I rowsort label-8532 @@ -51882,7 +51882,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\(\*\) 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 @@ -52393,7 +52393,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\(\*\) AS Int32\)" at position 0 and "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 @@ -54357,7 +54357,7 @@ SELECT DISTINCT CAST ( col1 AS INTEGER ) + + ( col1 ) AS col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2, tab0 AS cor0 query I rowsort @@ -55760,7 +55760,7 @@ SELECT ALL MAX ( + col2 ) * 47 - + 58 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 180 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(60\) 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\(\*\) \* Int64\(60\) 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 ( * ) * + 60 AS col1, + 80 AS col1 FROM tab2 AS cor0 query I rowsort @@ -55965,7 +55965,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -58415,7 +58415,7 @@ SELECT DISTINCT ( + col1 ) * 92 col0 FROM tab0 AS cor0 # 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\(\*\)\) AS col1" at position 0 and "Int64\(6\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 DISTINCT - + COUNT ( * ) AS col1, 6 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/aggregates/slt_good_59.slt b/data/sqlite/random/aggregates/slt_good_59.slt index 035e0b1..c4f5564 100644 --- a/data/sqlite/random/aggregates/slt_good_59.slt +++ b/data/sqlite/random/aggregates/slt_good_59.slt @@ -786,7 +786,7 @@ SELECT DISTINCT - 26 / - col1 AS col1, col2 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ \(\- count\(\*\)\) \* \(\- max\(\(\- cor0\.col2\)\)\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- max\(\(\- cor0\.col2\)\)\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 23 + + - COUNT ( * ) * - + MAX ( - + col2 ) AS col2, + 56 AS col2 FROM tab0 AS cor0 query II rowsort label-120 @@ -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\(\*\) AS col1" at position 1 have the 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 @@ -2742,7 +2742,7 @@ SELECT DISTINCT - 71, col0 col0 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 3 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ), + - 72 AS col2 FROM tab2 query II 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\(\*\) 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\(\*\) 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\(\*\) AS col1" at position 1 have the 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 @@ -16448,7 +16448,7 @@ SELECT DISTINCT col2 AS col0, - col0 FROM tab2 WHERE + 76 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \- \(\- 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 "Int64\(95\) \- \(\- 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 ALL + 95 - - COUNT ( * ) AS col1, 66 AS col1 FROM tab0 query I rowsort label-2708 @@ -16548,7 +16548,7 @@ SELECT - col2 + + ( - 35 ) - - 10 + - - col0 * + col0 * - - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -6984 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(72\) \* max\(DISTINCT 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\(72\) \* max\(DISTINCT Int64\(\-97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, 72 * MAX ( DISTINCT - 97 ) AS col0 FROM tab1 query I rowsort label-2724 @@ -28500,7 +28500,7 @@ SELECT * FROM tab2 cor0 WHERE ( NULL ) < + col0 # 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\(\*\)\) 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 ALL + ( - COUNT ( * ) ) AS col2, 82 AS col2 FROM tab1 AS cor0 query I rowsort @@ -29101,7 +29101,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -32692,7 +32692,7 @@ SELECT ALL + COUNT ( * ) + - + 36 AS col0, + COUNT ( * ) AS col2 FROM tab1 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-14\)\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-14\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 14 AS col0, ( COUNT ( * ) ) + - 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort @@ -38103,7 +38103,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( + 51 ) <> ( NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 3422 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(62\) \* Int64\(55\) \+ \(\- count\(\*\)\) \+ 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 "Int64\(87\) AS col0" at position 0 and "Int64\(62\) \* Int64\(55\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ min\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 87 col0, + 62 * + 55 + - COUNT ( * ) + MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -44195,7 +44195,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\(\*\) AS col0" at position 1 have the 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 @@ -45674,7 +45674,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\(\*\) 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 @@ -47200,7 +47200,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\(\*\) 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 @@ -52429,7 +52429,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\(\*\) 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 @@ -55523,7 +55523,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\(\*\) AS col1" at position 1 have the 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 @@ -55798,7 +55798,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\(\*\) 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 @@ -58450,7 +58450,7 @@ SELECT * FROM tab1 AS cor0 WHERE - col1 * + col2 + - 47 - - 8 * + - col2 * 11 < # Datafusion - Datafusion expected results: # Datafusion - Expected - 267 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- 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 "Int64\(\-89\) \* \(\- 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 ALL - 89 * - COUNT ( * ) AS col0, 16 AS col0 FROM tab0 AS cor0 query I rowsort label-9620 diff --git a/data/sqlite/random/aggregates/slt_good_6.slt b/data/sqlite/random/aggregates/slt_good_6.slt index 54c2324..5d27509 100644 --- a/data/sqlite/random/aggregates/slt_good_6.slt +++ b/data/sqlite/random/aggregates/slt_good_6.slt @@ -10283,7 +10283,7 @@ SELECT ALL + 25 col1 FROM tab0 cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(88\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) \* count\(\*\) \* count\(\*\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\) \+ \(\- 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\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 + 88 + - COUNT ( * ) AS col0, COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -10876,7 +10876,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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab2 WHERE - col0 <> - col2 AND NOT col1 IS NULL query II rowsort label-1781 @@ -13155,7 +13155,7 @@ SELECT DISTINCT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 2 = ( col2 ) * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / \(\- count\(\*\)\) \* min\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / - COUNT ( * ) * + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( ALL + col1 ) AS col1 FROM tab1 query I rowsort label-2152 @@ -13780,7 +13780,7 @@ SELECT DISTINCT + 44 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "Int64\(9\) \* Int64\(7\) \+ count\(\*\) \+ 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 "Int64\(\-18\) AS col0" at position 0 and "Int64\(9\) \* Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 AS col0, 9 * 7 + + + COUNT ( * ) + - 75 AS col0 FROM tab1 AS cor0 query I rowsort label-2257 @@ -17047,7 +17047,7 @@ SELECT col1 * - + col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- 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\(\*\) \+ \(\- 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 DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2, - 83 col2 FROM tab0 query I rowsort @@ -18495,7 +18495,7 @@ SELECT COUNT ( * ) - + 40 FROM tab1 WHERE NOT NULL NOT IN ( + - col1 * - - 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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -25784,7 +25784,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\(71\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -26367,7 +26367,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\(\*\) AS col2" at position 1 have the 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 @@ -26990,7 +26990,7 @@ SELECT ALL - col1, col1 - - - 70 + - col2 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(79\) 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\(\*\)\) \+ Int64\(79\) 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 ( * ) + + 79 AS col2, - 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 query III rowsort @@ -35648,7 +35648,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\(\*\) 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 @@ -39726,7 +39726,7 @@ SELECT + col0, col0 - 48 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -258 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(12\) \+ 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\(86\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(12\) \+ Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 86 * - ( + + COUNT ( * ) ) AS col1, 12 + + - 89 col1 FROM tab1 AS cor0 query II rowsort @@ -40123,7 +40123,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\(\*\) AS col0" at position 1 have the same name\. 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: @@ -41110,7 +41110,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\(\*\) 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 @@ -44036,7 +44036,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(cor0\.col2\) \* \(\- \(\- count\(\*\)\)\) / Int64\(\-55\) 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 "avg\(cor0\.col2\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(\-55\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT AVG ( + + col2 ) * - - COUNT ( * ) / - 55 AS col0, 25 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL query I rowsort @@ -44167,7 +44167,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\(\*\)\)\) \* CAST\(Int64\(52\) AS Int32\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -44324,7 +44324,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 "Int64\(\-3\) AS col1" at position 0 and "Int64\(52\) \+ count\(\*\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(52\) \+ 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 - 3 col1, + 52 + + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -48123,7 +48123,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\(\*\) AS col0" at position 1 have the 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 @@ -48678,7 +48678,7 @@ SELECT + COUNT ( * ) * + 33 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "count\(\*\) \- Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - - ( COUNT ( * ) ) AS col1, COUNT ( * ) - - 73 AS col1 FROM tab1 query III rowsort label-8004 @@ -49829,7 +49829,7 @@ SELECT * FROM tab0 AS cor0 WHERE + col0 IN ( - 95, col0 + - + ( + - 5 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-26\) AS col1" at position 0 and "count\(DISTINCT \(\- cor0\.col1\)\) / 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\(\*\) \+ Int64\(\-26\) AS col1" at position 0 and "count\(DISTINCT \(\- cor0\.col1\)\) / Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + - 26 AS col1, COUNT ( DISTINCT - col1 ) / + 72 AS col1 FROM tab0 AS cor0 query I rowsort @@ -50903,7 +50903,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\(\*\) 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 @@ -54692,7 +54692,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\(\*\) AS col0" at position 1 have the same name\. 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 ff0e216..030ae2c 100644 --- a/data/sqlite/random/aggregates/slt_good_60.slt +++ b/data/sqlite/random/aggregates/slt_good_60.slt @@ -2121,7 +2121,7 @@ SELECT ALL + col2 / - + 81 AS col0 FROM tab0 # 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\(\*\)\) AS col0" at position 0 and "max\(\(\- Int64\(\-6\)\)\) \+ 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 "max\(\(\- Int64\(\-6\)\)\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, MAX ( - - 6 ) + 30 AS col0 FROM tab2 AS cor0 query III rowsort @@ -8033,7 +8033,7 @@ SELECT + 45 col0 FROM tab0 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\(\*\) \+ count\(\*\) \+ Int64\(52\) \* Int64\(0\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("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\(52\) \* 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 + COUNT ( * ) + COUNT ( * ) + + 52 * + ( - 0 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 query III rowsort @@ -10332,7 +10332,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\(\*\) 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 @@ -14314,7 +14314,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\(\*\) 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 @@ -14728,7 +14728,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\(\*\) AS col0" at position 0 and "count\(\*\) \* Int64\(55\) \* \(\- 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 @@ -20866,7 +20866,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\(\*\) 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 @@ -21390,7 +21390,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\(\*\) AS col0" at position 1 have the 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 @@ -27008,7 +27008,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\(\*\) AS col2" at position 0 and "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 @@ -31458,7 +31458,7 @@ SELECT DISTINCT - - col1 + - 96 * 48 * 83 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -267 -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\(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\(56\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 56 col1, COUNT ( * ) * - ( 89 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -31566,7 +31566,7 @@ SELECT 58 * - + 86 col0 FROM tab2 # 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 col2" at position 0 and "Int64\(\-51\) \* count\(DISTINCT \(\- \(\- cor0\.col1\)\)\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-51\) \* count\(DISTINCT \(\- \(\- cor0\.col1\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 AS col2, - 51 * COUNT ( DISTINCT + ( - - col1 ) ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 65 = NULL query I rowsort @@ -34093,7 +34093,7 @@ SELECT ALL + col1 + + - col1 FROM tab0 cor0 WHERE NOT ( NULL ) <= col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -192 -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\(\-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\(\-60\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - ( - 60 ) AS col1, + COUNT ( * ) * - 64 AS col1 FROM tab2 AS cor0 query I rowsort @@ -35217,7 +35217,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -37815,7 +37815,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -42256,7 +42256,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\(\*\) 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 @@ -43655,7 +43655,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\(\*\)\) AS col0" at position 0 and "Int64\(87\) \* count\(\*\) AS col0" at position 1 have the 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: @@ -45876,7 +45876,7 @@ 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\(\*\)\) AS col1" at position 1 have the 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 DISTINCT 18 col1, - COUNT ( * ) AS col1 FROM tab0 query I rowsort label-7554 @@ -46501,7 +46501,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\(\*\) AS col1" at position 1 have the 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 @@ -50143,7 +50143,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\(\*\) AS col2" at position 1 have the same 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 @@ -54315,7 +54315,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\(\*\) AS col0" at position 1 have the 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 @@ -55231,7 +55231,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\(\*\) AS col1" at position 1 have the 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 @@ -58108,7 +58108,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\(\*\) AS col2" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 238168e..1b732a2 100644 --- a/data/sqlite/random/aggregates/slt_good_61.slt +++ b/data/sqlite/random/aggregates/slt_good_61.slt @@ -457,7 +457,7 @@ SELECT 92 + + CAST ( + + col0 AS INTEGER ) FROM tab0 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col0, 78 AS col0 FROM tab0 AS cor0 query III rowsort @@ -3527,7 +3527,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\(\*\) AS col2" at position 1 have 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 @@ -3928,7 +3928,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -5405,7 +5405,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\(\*\) 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 @@ -8450,7 +8450,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -8530,7 +8530,7 @@ SELECT ALL 36 * - - 78 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- count\(CAST\(Int64\(90\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(CAST\(Int64\(90\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + - COUNT ( + CAST ( 90 AS INTEGER ) ) AS col0, + 23 AS col0 FROM tab2 AS cor0 query I rowsort @@ -28557,7 +28557,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\(\*\) \* count\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -34571,7 +34571,7 @@ SELECT - 9 / col1 * col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - -22 -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\(\-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 "\(\- sum\(cor0\.col0\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - SUM ( col0 ) AS col0, - COUNT ( * ) + - 19 AS col0 FROM tab1 AS cor0 query I rowsort label-5690 @@ -35751,7 +35751,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\(\*\) 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 @@ -49838,7 +49838,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\(\*\) 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 @@ -55346,7 +55346,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 f5cdb42..4f7158f 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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\) 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\(\*\) 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 @@ -10801,7 +10801,7 @@ SELECT + 34 * - - col1 + + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ min\(DISTINCT Int64\(\-26\)\) AS col0" at position 0 and "count\(\*\) \+ Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ min\(DISTINCT Int64\(\-26\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 51 + + + MIN ( DISTINCT - 26 ) AS col0, COUNT ( * ) + 13 AS col0 FROM tab2 query I rowsort @@ -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\(\*\) AS col1" at position 1 have the same 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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 @@ -16563,7 +16563,7 @@ SELECT * FROM tab0 AS cor0 WHERE - col2 * 56 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-21\) AS col2" at position 0 and "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-21\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + - 21 AS col2, + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort label-2730 @@ -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\(\*\) AS col1" at position 1 have the 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 @@ -18462,7 +18462,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(51\) \* CAST\(NULL AS Int32\) \+ min\(CAST\(\(\- Int64\(18\)\) AS Int32\)\) \- count\(\*\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(51\) \* CAST\(NULL AS Int32\) \+ min\(CAST\(\(\- Int64\(18\)\) AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 AS col1, 51 * CAST ( NULL AS INTEGER ) + MIN ( + CAST ( - + 18 AS INTEGER ) ) - + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-3038 @@ -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\(\*\) AS col2" at position 1 have the 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 @@ -23490,7 +23490,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\(\*\) 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 @@ -25877,7 +25877,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - col1 - + + ( + 4 ) * + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(90\) \+ \(\- Int64\(80\)\) \+ \(\- 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\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(90\) \+ \(\- Int64\(80\)\) \+ \(\- Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - COUNT ( * ) AS col0, 90 + ( - ( + 80 ) ) + - - 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query III rowsort @@ -38069,7 +38069,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -39182,7 +39182,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\(\*\) AS col1" at position 1 have 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 @@ -42087,7 +42087,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\(\*\) AS col0" at position 1 have the 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 @@ -44458,7 +44458,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\(\*\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -45498,7 +45498,7 @@ SELECT col2 * + 83 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -296 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(80\)\) \- CAST\(Int64\(56\) AS Int32\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(80\)\) \- CAST\(Int64\(56\) AS Int32\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - ( 80 ) - + CAST ( + + 56 AS INTEGER ) AS col0, - 26 AS col0 FROM tab2 query I rowsort label-7471 @@ -46886,7 +46886,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\(\*\) 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 @@ -51459,7 +51459,7 @@ SELECT ALL * FROM tab2 WHERE CAST ( 80 AS INTEGER ) - - + col1 <> ( - 69 - 25 ) # 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\(\*\)\) 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 "\(\- 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 - COUNT ( * ) AS col1, + COUNT ( - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL query I rowsort @@ -52462,7 +52462,7 @@ SELECT - col1 + - + col2 FROM tab0 # Datafusion - Expected - 56 # Datafusion - Expected - -3 # 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\(\*\)\) AS col1" at position 1 have the 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 DISTINCT 56 col1, - COUNT ( * ) AS col1, + - COUNT ( * ) col2 FROM tab2 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_63.slt b/data/sqlite/random/aggregates/slt_good_63.slt index b48a317..dcb12d3 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\(\*\) AS col0" at position 1 have the 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 @@ -6942,7 +6942,7 @@ SELECT - col0, - col1 col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -216 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(72\)\)\) AS col1" at position 0 and "Int64\(91\) \+ \(\- count\(\*\)\) AS col1" at position 1 have 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\(72\)\)\) AS col1" at position 0 and "Int64\(91\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( ALL + 72 ) AS col1, 91 + + - COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -8650,7 +8650,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -13494,7 +13494,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\(\*\) AS col1" at position 1 have the 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 @@ -13705,7 +13705,7 @@ SELECT 92 col0 FROM tab0 AS cor0 WHERE NOT - col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 query I rowsort label-2264 @@ -16898,7 +16898,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -21700,7 +21700,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -24665,7 +24665,7 @@ SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0 # 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\(\*\)\) 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 DISTINCT ( - + COUNT ( * ) ) AS col1, + ( - + 71 ) AS col1 FROM tab1 AS cor0 query II rowsort @@ -24757,7 +24757,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -24799,7 +24799,7 @@ SELECT + + col0 * + + col0 - + - col2 + - col1 FROM tab2 AS cor0 # 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\) \+ max\(DISTINCT Int64\(0\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\) \+ max\(DISTINCT 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 ( + 81 ) + + MAX ( DISTINCT + 0 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-4122 @@ -25303,7 +25303,7 @@ SELECT DISTINCT 93 / + 82 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* CAST\(NULL AS Int32\) \* count\(\*\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 37 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - - 57 AS col1, + 25 + - 56 AS col1 FROM tab0 query I rowsort @@ -26467,7 +26467,7 @@ SELECT ALL 10 * + COUNT ( * ) FROM tab2 WHERE NOT ( + + col1 ) NOT IN ( 63 * + c # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(22\) AS Int32\) AS col0" at position 0 and "count\(\*\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(22\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( + 22 AS INTEGER ) AS col0, + COUNT ( * ) * + 13 AS col0 FROM tab1 AS cor0 query I rowsort label-4411 @@ -38267,7 +38267,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\(\*\) 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 @@ -38421,7 +38421,7 @@ SELECT 94 * col1 - + col0 - col1 + - - 89 + - + col1 * - 80 * + - col0 AS col1 F # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-6386 @@ -42206,7 +42206,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\(\*\) AS col1" at position 0 and "max\(tab1\.col0\) \+ count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -45640,7 +45640,7 @@ SELECT + COUNT ( DISTINCT + 61 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + COUNT ( * ) ), ( COUNT ( * ) ) FROM tab0 query I rowsort label-7590 @@ -48090,7 +48090,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\(\*\) AS col2" at position 1 have 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 @@ -51928,7 +51928,7 @@ 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ) col1, - COUNT ( * ) AS col1 FROM tab1 query I rowsort label-8644 @@ -53121,7 +53121,7 @@ SELECT ( + 19 ) * + 85 FROM tab2 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NOT NULL > - - col2 query I rowsort @@ -53432,7 +53432,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\(\*\) AS col1" at position 0 and "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 @@ -58567,7 +58567,7 @@ SELECT 31 / - 74 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab1 query I rowsort label-9757 diff --git a/data/sqlite/random/aggregates/slt_good_64.slt b/data/sqlite/random/aggregates/slt_good_64.slt index bdc3748..dd0d1a5 100644 --- a/data/sqlite/random/aggregates/slt_good_64.slt +++ b/data/sqlite/random/aggregates/slt_good_64.slt @@ -953,7 +953,7 @@ SELECT * FROM tab0 WHERE ( 23 + + ( + ( + col1 ) ) ) < ( 41 ) # 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\(\*\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 CROSS JOIN tab1 AS cor1 query I rowsort label-158 @@ -1807,7 +1807,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\(\*\) AS col1" at position 1 have 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 @@ -5770,7 +5770,7 @@ SELECT - 93 * col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -237 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-79\) 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\(\*\) \* Int64\(\-79\) 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 ( * ) * - 79 AS col2, 52 AS col2 FROM tab1 query I rowsort label-958 @@ -12174,7 +12174,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\(\*\) AS col0" at position 1 have 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 @@ -15262,7 +15262,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\(\*\) 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 @@ -24773,7 +24773,7 @@ SELECT ALL + col1, - col0 * + - 97 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 98 -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\(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\(\-62\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 col0, + COUNT ( * ) + + 95 AS col0 FROM tab2 query II rowsort @@ -25847,7 +25847,7 @@ SELECT ALL - 99 + + - col1 + col1 AS col0 FROM tab1 WHERE NULL BETWEEN + col2 AN # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab2 query I rowsort @@ -28067,7 +28067,7 @@ SELECT ALL + col1 col0 FROM tab2 WHERE + - col1 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ALL - 18 col2, - COUNT ( * ) AS col2 FROM tab2 query II rowsort @@ -28268,7 +28268,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\(\*\) 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 @@ -30771,7 +30771,7 @@ SELECT ALL + col0 + + 48 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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-5074 @@ -31354,7 +31354,7 @@ SELECT DISTINCT - 32 AS col0, + col0 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -105 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-35\) 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\(\*\) \* Int64\(\-35\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - 35 AS col0, - 47 AS col0 FROM tab2 query I rowsort @@ -32600,7 +32600,7 @@ SELECT - - ( - 84 ) * + 7 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-49\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-49\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 49 AS col0, 64 AS col0 FROM tab1 query I rowsort @@ -33081,7 +33081,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -39843,7 +39843,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\(\*\) 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 @@ -41640,7 +41640,7 @@ SELECT DISTINCT + 35 FROM tab0 WHERE + + 41 + - 86 + - col0 IS NOT 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\(\*\)\) 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 ( * ) col1, 20 AS col1 FROM tab1 AS cor0 query I rowsort label-6846 @@ -43297,7 +43297,7 @@ SELECT DISTINCT col1 / - col2 - - col2 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 query I rowsort label-7111 @@ -44359,7 +44359,7 @@ SELECT DISTINCT - - 49 col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(56\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(56\) \+ \(\- 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, 56 + - COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort label-7299 @@ -47687,7 +47687,7 @@ SELECT + + col2 * 35 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(10\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(10\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 10 AS col2, 62 AS col2 FROM tab2 AS cor0 query III rowsort @@ -48448,7 +48448,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\(\*\) 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 @@ -52757,7 +52757,7 @@ SELECT ALL + COUNT ( * ) / + COUNT ( * ) + 77 FROM tab2 AS cor0 CROSS JOIN tab0 # 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\) \* min\(tab0\.col1\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\) \* min\(tab0\.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 83 * + + MIN ( ALL + col1 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -53074,7 +53074,7 @@ SELECT 99 * + col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) \+ \(\- 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 ( * ) + - COUNT ( * ) AS col2 FROM tab2 query I rowsort label-8736 @@ -54750,7 +54750,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\(\*\) AS col2" at position 1 have the 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 @@ -55552,7 +55552,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\(\*\) 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 @@ -57484,7 +57484,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\(\*\) AS Int32\)\) AS col1" at position 1 have the 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 5561719..dcdc49e 100644 --- a/data/sqlite/random/aggregates/slt_good_65.slt +++ b/data/sqlite/random/aggregates/slt_good_65.slt @@ -461,7 +461,7 @@ SELECT - col2 * + + col1 * + col0 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 138 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \- \(\- count\(\*\)\) \+ Int64\(39\) 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\(96\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(39\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 96 - - COUNT ( * ) + 39 AS col0, + 40 col0 FROM tab0 query I rowsort label-75 @@ -3385,7 +3385,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\(\*\) AS col0" at position 1 have the 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 @@ -4189,7 +4189,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -5687,7 +5687,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -8421,7 +8421,7 @@ SELECT col0 FROM tab1 WHERE NOT + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab0 query I rowsort label-1392 @@ -10810,7 +10810,7 @@ SELECT 52 col0, + ( + - col0 ) FROM tab2 WHERE NOT col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- min\(DISTINCT \(\- tab1\.col2\)\)\) AS Int32\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- min\(DISTINCT \(\- tab1\.col2\)\)\) AS 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 ( - MIN ( DISTINCT - col2 ) AS INTEGER ) AS col1, - COUNT ( * ) col1 FROM tab1 query I rowsort @@ -11962,7 +11962,7 @@ SELECT DISTINCT col0 * - - 73 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 query I rowsort label-1985 @@ -14894,7 +14894,7 @@ SELECT DISTINCT + col1 col2 FROM tab2 WHERE NOT - - 77 <> col1 # Datafusion - Expected - -78 # 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 1 and "\(\- \(\- 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\(2\) 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 - 78, + 2 AS col0, - - COUNT ( * ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -15637,7 +15637,7 @@ SELECT COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(4\) AS col2" at position 0 and "Int64\(99\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(4\) AS col2" at position 0 and "Int64\(99\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 * + + 4 AS col2, 99 + - COUNT ( * ) col2 FROM tab0 query III rowsort @@ -15900,7 +15900,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\(\*\) \* count\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -17721,7 +17721,7 @@ SELECT DISTINCT - 37 AS col1, COUNT ( * ) col2 FROM tab0 # Datafusion - Expected - -3 # Datafusion - Expected - 470 # Datafusion - Expected - 224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- tab1\.col1\)\) \* \(\- Int64\(94\)\) AS col2" at position 1 and "\(\- count\(\*\)\) \+ sum\(tab1\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- tab1\.col1\)\) \* \(\- Int64\(94\)\) AS col2" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(tab1\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), MAX ( - col1 ) * - + 94 AS col2, - COUNT ( * ) + + SUM ( + col0 ) AS col2 FROM tab1 query I rowsort @@ -20814,7 +20814,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\(\*\) \- count\(\*\) AS col2" at position 1 have the same 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 @@ -22427,7 +22427,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\(\*\)\) / \(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -24025,7 +24025,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\(\*\) 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 @@ -28374,7 +28374,7 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IS NOT NULL OR NOT ( + col0 / - col # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-18\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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 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 ALL - 19 * - COUNT ( * ) AS col1, - 18 - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col1 / 86 + - col2 IS NOT NULL query I rowsort @@ -30131,7 +30131,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\(\*\) 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 @@ -31173,7 +31173,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 @@ -33174,7 +33174,7 @@ SELECT + ( - 67 ) * col1 FROM tab1 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\(\*\)\) 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 ( * ) col1, 22 AS col1 FROM tab2 AS cor0 query III rowsort label-5536 @@ -34262,7 +34262,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\(\*\) 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 @@ -36726,7 +36726,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -36864,7 +36864,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -36891,7 +36891,7 @@ SELECT col0 / + - 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\(\*\)\) 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 - COUNT ( * ) AS col2, + 6 AS col2 FROM tab0 cor0 query III rowsort @@ -38698,7 +38698,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\(\*\) 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 @@ -46478,7 +46478,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -48252,7 +48252,7 @@ SELECT ALL - col2 + - - col1 * - + col0 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- 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\(\*\) \+ \(\- 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 DISTINCT COUNT ( * ) + - + COUNT ( * ) AS col2, - 60 AS col2 FROM tab2 query I rowsort @@ -48906,7 +48906,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 "count\(\*\) \* \(\- count\(\(\- cor0\.col0\)\)\) AS col0" at position 0 and "Int64\(43\) / 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\(\*\) \* \(\- count\(\(\- cor0\.col0\)\)\) AS col0" at position 0 and "Int64\(43\) / Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - COUNT ( - col0 ) AS col0, 43 / + ( 27 ) col0 FROM tab2 AS cor0 query I rowsort @@ -49043,7 +49043,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -54385,7 +54385,7 @@ SELECT - COUNT ( ALL - + col2 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(54\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(54\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( MAX ( + + 54 ) ) col1, + COUNT ( * ) * + - 36 col1 FROM tab1 AS cor0 query I rowsort @@ -55862,7 +55862,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\(\*\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 @@ -56725,7 +56725,7 @@ SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL < - col2 * - col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ Int64\(\-41\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-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 DISTINCT - 33 + - 41 AS col0, - COUNT ( * ) col0 FROM tab1 query I rowsort label-9444 @@ -57825,7 +57825,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 72002ce..4ac96b5 100644 --- a/data/sqlite/random/aggregates/slt_good_66.slt +++ b/data/sqlite/random/aggregates/slt_good_66.slt @@ -396,7 +396,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 / + CAST ( NULL AS INTEGER ) ) < N # 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 query II rowsort @@ -2668,7 +2668,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\(\*\) AS col0" at position 1 have the 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 @@ -4756,7 +4756,7 @@ SELECT - col0 * - 44 AS col2 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 "Int64\(0\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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-769 @@ -5716,7 +5716,7 @@ SELECT - - ( + MIN ( - col0 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "count\(\*\) \+ \(\- 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 "Int64\(\-83\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 83 AS col1, COUNT ( * ) + - + MIN ( + col0 ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: @@ -5929,7 +5929,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\(\*\) 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 @@ -7561,7 +7561,7 @@ SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT NULL > - + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- \(\- tab2\.col0\)\)\) \* \(\- avg\(DISTINCT CAST\(NULL AS Int32\)\)\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- \(\- tab2\.col0\)\)\) \* \(\- avg\(DISTINCT CAST\(NULL AS Int32\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - - col0 ) * - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col0, - 38 AS col0 FROM tab2 query I rowsort label-1239 @@ -8158,7 +8158,7 @@ SELECT DISTINCT col2 + + - 5 * + 22 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 query I rowsort @@ -11808,7 +11808,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -19072,7 +19072,7 @@ SELECT + col0 * col1 * + + 2 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 "min\(cor0\.col1\) \* count\(Int64\(47\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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\) \* count\(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 MIN ( col1 ) * + + COUNT ( ALL 47 ) AS col1, - COUNT ( * ) col1 FROM tab0 AS cor0 query I rowsort label-3153 @@ -19320,7 +19320,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -37596,7 +37596,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\(\*\) 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 @@ -38078,7 +38078,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\(\*\) 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 @@ -41096,7 +41096,7 @@ SELECT - MIN ( DISTINCT - 6 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -133517 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(73\) \* \(\- Int64\(59\)\) \* Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(73\) \* \(\- Int64\(59\)\) \* Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 73 * - + 59 * 31 AS col1 FROM tab2 AS cor0 query III rowsort @@ -42052,7 +42052,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -43063,7 +43063,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\(\*\)\) AS col2" at position 0 and "count\(\*\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -48462,7 +48462,7 @@ SELECT ALL - 83 AS col1, 92 * + col0 FROM tab0 # Datafusion - Expected - -3 # Datafusion - Expected - 100 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, + ( + 74 ) + + 26 AS col2, 12 FROM tab0 query III rowsort label-8039 @@ -51420,7 +51420,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\(\*\) 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 @@ -53318,7 +53318,7 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE + 1 NOT BETWEEN NULL AND + + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23400 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* \(\- count\(\*\)\) \* \(\- \(\- sum\(DISTINCT \(\- cor0\.col1\)\)\)\) AS col1" at position 0 and "Int64\(28\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(\*\)\) \* \(\- \(\- sum\(DISTINCT \(\- cor0\.col1\)\)\)\) 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 DISTINCT - 40 * - + COUNT ( * ) * - - SUM ( DISTINCT - col1 ) AS col1, + 28 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -53338,7 +53338,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\(\*\) 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 @@ -58483,7 +58483,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\(\*\) AS col2" at position 1 have the 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 b5e0607..c2cf26b 100644 --- a/data/sqlite/random/aggregates/slt_good_67.slt +++ b/data/sqlite/random/aggregates/slt_good_67.slt @@ -5973,7 +5973,7 @@ SELECT DISTINCT - + 50 AS col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(0\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ 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 "\(\- max\(Int64\(0\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ max\(cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( + 0 ) AS col0, - COUNT ( * ) + MAX ( col1 ) AS col0 FROM tab1 cor0 query I rowsort @@ -8798,7 +8798,7 @@ SELECT ALL CAST ( - + 90 AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 1160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(20\) \* 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\(20\) \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, 20 * 58 AS col2 FROM tab0 AS cor0 query II rowsort @@ -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\(\*\) AS col1" at position 1 have the 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 @@ -11266,7 +11266,7 @@ SELECT ALL - ( - CAST ( 40 AS INTEGER ) ) / - col0 AS col2 FROM tab0 cor0 # 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\(\*\)\) AS col1" at position 1 have the 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 tab0 query II rowsort @@ -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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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\(\*\) \- count\(\*\) AS col0" at position 1 have 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\(\*\) AS col2" at position 1 have the 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 @@ -14799,7 +14799,7 @@ SELECT DISTINCT - 88 AS col2, - 10 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(36\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + 36 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 query I rowsort @@ -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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -18298,7 +18298,7 @@ SELECT DISTINCT ( - 88 ) + MIN ( + - col0 ) - + COUNT ( * ) 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\(\*\)\) AS col1" at position 0 and "Int64\(\-9\) \+ count\(\(\- tab2\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-9\) \+ count\(\(\- tab2\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, - 9 + + + COUNT ( - col0 ) AS col1 FROM tab2 query III rowsort @@ -18420,7 +18420,7 @@ SELECT - COUNT ( * ) * ( + 85 ), + COUNT ( * ) * + COUNT ( DISTINCT + col2 ) FRO # 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 "Int64\(75\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 DISTINCT 75 col0, - COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -22298,7 +22298,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT 8 + col1 + + col1 < + col1 * + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 # Datafusion - Expected - 258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(41\) AS col0" at position 0 and "Int64\(\-86\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(41\) AS col0" at position 0 and "Int64\(\-86\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 + + + ( 41 ) AS col0, - 86 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort label-3656 @@ -26940,7 +26940,7 @@ SELECT ALL + col0 + - 95 + - col1 * + 17 AS col0 FROM tab2 WHERE NOT NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- \(\- count\(\*\)\)\) \* \(\- \(\- CAST\(\(\- \(\- 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\)\) 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 ALL - CAST ( NULL AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * - - CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab1 query I rowsort label-4419 @@ -33058,7 +33058,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\(\*\)\) \+ max\(\(\- tab0\.col1\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -38865,7 +38865,7 @@ SELECT + ( - col2 ) - - - col1 + - col1 AS col0, col2 + - - 80 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-6387 @@ -39315,7 +39315,7 @@ SELECT ( - + COUNT ( * ) ) AS col1 FROM 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 AS cor0 query I rowsort label-6460 @@ -41414,7 +41414,7 @@ SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 ALL - COUNT ( * ) AS col2, 17 AS col2 FROM tab0 AS cor0 query I rowsort @@ -41868,7 +41868,7 @@ SELECT ALL col2 / + - col2 + - + col0 * - 75 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 col0, CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1 query II rowsort @@ -44922,7 +44922,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\(\*\) AS col0" at position 1 have the 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 @@ -48444,7 +48444,7 @@ SELECT - COUNT ( * ) AS col1, 25 AS col2 FROM tab0 AS 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\(\*\)\) 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 ( * ) AS col0, + 25 AS col0 FROM tab0 AS cor0 query I rowsort label-7980 @@ -51805,7 +51805,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\(\*\) 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 @@ -56742,7 +56742,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\(\*\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -57151,7 +57151,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\(\*\) 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 @@ -57193,7 +57193,7 @@ SELECT DISTINCT + - 97 + - - 92 col2 FROM tab0 WHERE ( NOT ( NULL ) IS NOT 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\(\*\)\) AS col0" at position 1 have the 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 18 AS col0, - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: @@ -58779,7 +58779,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\(\*\) AS col1" at position 1 have the same 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 e4910b8..c6b1a79 100644 --- a/data/sqlite/random/aggregates/slt_good_68.slt +++ b/data/sqlite/random/aggregates/slt_good_68.slt @@ -2316,7 +2316,7 @@ SELECT ( + - MAX ( - col1 ) ) AS col1 FROM tab1 # 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\(\*\)\) 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 FROM tab1 query I rowsort @@ -10443,7 +10443,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\(\*\) 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 @@ -10478,7 +10478,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\(\*\) 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 @@ -14173,7 +14173,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\(\*\) 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 @@ -18150,7 +18150,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\(\*\) 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 @@ -18336,7 +18336,7 @@ SELECT ALL + MIN ( 34 ) col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 12 AS col0, COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -18685,7 +18685,7 @@ SELECT ALL 38 + + + col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(70\) \+ min\(DISTINCT \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(70\) \+ min\(DISTINCT \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS FLOAT8 ) + - - COUNT ( * ) AS col1, 70 + + MIN ( DISTINCT + ( - col1 ) ) AS col1 FROM tab0 cor0 query I rowsort @@ -20723,7 +20723,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\(\*\) 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 @@ -20745,7 +20745,7 @@ SELECT - CAST ( - - 41 AS INTEGER ) * - CAST ( + col0 AS INTEGER ) FROM tab0 cor # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(\*\) \* \(\- Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * - + 3 AS col0 FROM tab1 AS cor0 query I rowsort label-3437 @@ -22922,7 +22922,7 @@ SELECT ALL - col1 * + - 92 * + 81 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) / \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "max\(DISTINCT \(\- \(\- tab1\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "max\(DISTINCT \(\- \(\- tab1\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 39 / - - COUNT ( * ) AS col2, MAX ( DISTINCT - - col0 ) AS col2 FROM tab1 query I rowsort @@ -24663,7 +24663,7 @@ SELECT ALL * FROM tab0 WHERE ( NOT NULL IS NOT NULL ) OR + col2 IN ( 75 + + + co # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab1 query I rowsort @@ -25078,7 +25078,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\(\*\) AS col2" at position 1 have the 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 @@ -25226,7 +25226,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\(\*\) 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 @@ -29609,7 +29609,7 @@ SELECT * FROM tab1 cor0 WHERE NULL IN ( 87 + 76, - col2, - + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- \(\- Int64\(62\)\) 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\(\*\)\) \- \(\- Int64\(62\)\) 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 ( * ) - - + 62 AS col1, - 63 col1 FROM tab0 query I rowsort @@ -37934,7 +37934,7 @@ SELECT - col1 + + - col0 col1 FROM tab0 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - COUNT ( * ) FROM tab0 query I rowsort @@ -38810,7 +38810,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\(\*\) \* count\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -40874,7 +40874,7 @@ SELECT + SUM ( DISTINCT col0 ) / + - COUNT ( * ) + 70 AS col0 FROM tab2 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\(\*\)\)\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- \(\- count\(Int64\(\-44\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- \(\- count\(Int64\(\-44\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( - COUNT ( * ) ) AS col1, - 25 * - - COUNT ( ALL - 44 ) AS col1 FROM tab1 cor0 query I rowsort label-6762 @@ -46335,7 +46335,7 @@ SELECT + + col0 + 49 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 query I rowsort @@ -53354,7 +53354,7 @@ SELECT - - ( - COUNT ( * ) ) AS col0 FROM tab0 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 "Int64\(\-65\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 65 AS col1, - COUNT ( * ) AS col1 FROM tab0 cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_69.slt b/data/sqlite/random/aggregates/slt_good_69.slt index 3169113..99d196a 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\(\*\) 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 @@ -4492,7 +4492,7 @@ SELECT DISTINCT + col1 col0, - col1 + + + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 120 -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\(\-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\(\-76\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 76 AS col1, - COUNT ( * ) * - 40 AS col1 FROM tab2 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\(\*\) AS col2" at position 1 have the 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 @@ -9201,7 +9201,7 @@ SELECT COUNT ( - 68 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) * + 83 col2 FROM tab0 AS cor0 query I rowsort @@ -19384,7 +19384,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -20392,7 +20392,7 @@ SELECT + 3 * + 93 - - 8 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 414 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(\*\) \* \(\- sum\(Int64\(\-46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(\-46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + - SUM ( - 46 ) AS col1 FROM tab2 query I rowsort label-3355 @@ -35225,7 +35225,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\(\*\) AS col0" at position 1 have the 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 @@ -37118,7 +37118,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -40638,7 +40638,7 @@ SELECT ALL - - col2 FROM tab0 cor0 WHERE + col0 * + - 58 + - - 39 + + col2 <> + # 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\(\*\)\) AS col2" at position 0 and "Int64\(78\) \- 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\(78\) \- Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + 78 - + 71 AS col2 FROM tab0 cor0 query I rowsort @@ -42780,7 +42780,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\(\*\) 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 @@ -44669,7 +44669,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -44945,7 +44945,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -46003,7 +46003,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\(\*\) AS col1" at position 1 have the same 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 @@ -49836,7 +49836,7 @@ SELECT ALL - COUNT ( - + col0 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 261 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(87\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( 87 ) AS col2, - COUNT ( * ) col2 FROM tab0 AS cor0 query I rowsort label-8216 @@ -52284,7 +52284,7 @@ SELECT ALL + + col2 + + col2 + 18 AS col0 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 "\(\- sum\(DISTINCT Int64\(89\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(89\)\)\) AS col0" at 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 ( DISTINCT + 89 ) AS col0, + ( - COUNT ( * ) ) AS col0 FROM tab2 cor0 query III rowsort label-8626 @@ -58044,7 +58044,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\(\*\) AS col0" at position 1 have 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 @@ -58145,7 +58145,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\(\*\) AS col2" at position 1 have the 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 @@ -58914,7 +58914,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\(\*\) AS col2" at position 1 have the 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 96ab5ce..74aa896 100644 --- a/data/sqlite/random/aggregates/slt_good_7.slt +++ b/data/sqlite/random/aggregates/slt_good_7.slt @@ -3452,7 +3452,7 @@ SELECT + 36 / + + ( col2 ) AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col0, MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 query I rowsort label-547 @@ -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\(\*\) AS col1" at position 1 have the 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 @@ -17133,7 +17133,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\(\*\) 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 @@ -17725,7 +17725,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\(\*\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -18843,7 +18843,7 @@ SELECT - + 80 + + + ( + + COUNT ( * ) ) * - + ( + COUNT ( * ) ) AS col0 FROM tab # 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\(\*\)\) 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 "\(\- 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 - COUNT ( * ) AS col2, + 64 AS col2 FROM tab0 AS cor0 query I rowsort @@ -19095,7 +19095,7 @@ SELECT ALL - CAST ( - - col1 AS INTEGER ) * 55 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ count\(\*\) \* Int64\(2\) \- \(\- count\(\*\)\) AS col1" at position 0 and "max\(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\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(Int64\(82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 + + COUNT ( * ) * 2 - - COUNT ( * ) AS col1, MAX ( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL query I rowsort label-3113 @@ -20615,7 +20615,7 @@ SELECT - + SUM ( + col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab2 cor0 query I rowsort @@ -25353,7 +25353,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\(\*\) AS col2" at position 1 have the 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 @@ -26084,7 +26084,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\(\*\) 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 @@ -27961,7 +27961,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 @@ -38379,7 +38379,7 @@ SELECT - col1 + + col1 + 91 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + + 33 AS col0 FROM tab0 WHERE NOT + col0 IS NULL query I rowsort @@ -40786,7 +40786,7 @@ SELECT ALL ( - col0 ) FROM tab2 WHERE NOT ( ( NULL ) NOT BETWEEN - col0 AND ( NU # 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\(68\)\) \- sum\(DISTINCT tab2\.col0\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(68\)\) \- sum\(DISTINCT tab2\.col0\) 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 - + COUNT ( * ) * - + 68 - + SUM ( DISTINCT col0 ) col2, + MAX ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL query III rowsort @@ -43739,7 +43739,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\(\*\) 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 @@ -47328,7 +47328,7 @@ SELECT DISTINCT - col0 - - 37 AS col2 FROM tab1 AS 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 FROM tab0 AS cor0 query I rowsort label-7744 diff --git a/data/sqlite/random/aggregates/slt_good_70.slt b/data/sqlite/random/aggregates/slt_good_70.slt index 60020de..f08b19b 100644 --- a/data/sqlite/random/aggregates/slt_good_70.slt +++ b/data/sqlite/random/aggregates/slt_good_70.slt @@ -1238,7 +1238,7 @@ SELECT ALL col2 - 31 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col1" at position 0 and "count\(\(\- \(\- cor0\.col0\)\)\) \* count\(\*\) \* CAST\(NULL AS Int32\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col1" at position 0 and "count\(\(\- \(\- cor0\.col0\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( - 55 ) col1, + COUNT ( ALL - - col0 ) * + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 33 AS col1 FROM tab1 AS cor0 query III rowsort @@ -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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -5751,7 +5751,7 @@ SELECT + MAX ( DISTINCT - 28 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "count\(\*\) / Int64\(\-20\) \* 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\(\-60\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-20\) \* Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 60 AS col2, COUNT ( * ) / - 20 * 60 AS col2 FROM tab2 query II rowsort @@ -8250,7 +8250,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\(\*\) 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 @@ -9367,7 +9367,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 20 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 223 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col2\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ \(\- 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 "sum\(cor0\.col2\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- min\(\(\- cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + SUM ( ALL + + col2 ) AS col1, - COUNT ( * ) + + ( - MIN ( ALL + - col0 ) ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -11071,7 +11071,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -11227,7 +11227,7 @@ SELECT - col1 * ( col0 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\)\)\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 col1, MIN ( - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -20896,7 +20896,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 I rowsort label-3446 @@ -21669,7 +21669,7 @@ SELECT DISTINCT - col2 * - 26 FROM tab0 AS cor0 # 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 "Int64\(\-82\) / Int64\(22\) AS col0" at position 0 and "sum\(tab0\.col1\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(22\) AS col0" at position 0 and "sum\(tab0\.col1\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 82 / 22 AS col0, ( + SUM ( ALL + col1 ) ) * - COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -24032,7 +24032,7 @@ SELECT 80 * col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 180 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(60\)\) AS col2" at position 0 and "count\(\*\) \* 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 "sum\(Int64\(60\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + SUM ( + + 60 ) AS col2, COUNT ( * ) * + 31 AS col2 FROM tab1 AS cor0 query III rowsort @@ -26879,7 +26879,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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: @@ -28480,7 +28480,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\(\*\) AS col1" at position 1 have the 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 @@ -28946,7 +28946,7 @@ SELECT * FROM tab0 WHERE NOT - 91 IS NOT 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\(\*\)\) 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 tab0 query I rowsort label-4777 @@ -34385,7 +34385,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\(\*\) 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 @@ -34736,7 +34736,7 @@ SELECT DISTINCT - + ( 28 ) FROM tab1 WHERE - 94 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab1 # Datafusion - Types were automatically converted from: @@ -37069,7 +37069,7 @@ SELECT * FROM tab1 cor0 WHERE + col1 * + 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 query III rowsort @@ -39538,7 +39538,7 @@ SELECT - + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(29\) AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same 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 FROM tab1 cor0 query I rowsort @@ -40595,7 +40595,7 @@ SELECT ALL + 87 AS col1, ( col1 ) + + - 5 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 378 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-42\) \* \(\- count\(Int64\(43\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-42\) \* \(\- count\(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 + COUNT ( * ) * - 42 * - COUNT ( + 43 ) AS col0, - COUNT ( * ) AS col0 FROM tab1 query I rowsort label-6697 @@ -41596,7 +41596,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\(\*\) AS Int32\)" at position 0 and "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 @@ -42510,7 +42510,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\(\*\) 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 @@ -42943,7 +42943,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\(\*\) AS col0" at position 1 have the 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 @@ -46606,7 +46606,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -49057,7 +49057,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST ( - col2 AS FLOA # 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - COUNT ( * ) FROM tab2 query III rowsort @@ -49172,7 +49172,7 @@ SELECT * FROM tab1 WHERE - - col2 - - 7 NOT IN ( - - 88 + + - CAST ( NULL AS INT # 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\(\-24\) \+ sum\(Int64\(35\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\) \+ sum\(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 - 24 + + SUM ( ALL + 35 ) col1, - COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -50177,7 +50177,7 @@ SELECT DISTINCT - COUNT ( * ) + + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 query I rowsort @@ -54160,7 +54160,7 @@ SELECT ALL - ( - + 21 ) - + 99 AS col2 FROM tab1 # 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\(\*\) \- \(\- count\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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 ( * ) AS col1 FROM tab1 query I rowsort label-8943 @@ -57681,7 +57681,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\(\*\) AS col2" at position 1 have the 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 190a5bc..8246f7e 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\(\*\) 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 @@ -10440,7 +10440,7 @@ SELECT - 85 * - 79 * - 69 AS col0 FROM tab0 WHERE NOT - - col0 + - col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab1 query II rowsort @@ -19527,7 +19527,7 @@ SELECT ALL + col0 + col1 - col2 + col0, + col1 FROM tab0 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 "count\(\*\) \* \(\- min\(DISTINCT Int64\(33\)\)\) AS col2" at position 0 and "\(\- count\(DISTINCT cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(DISTINCT Int64\(33\)\)\) AS col2" at position 0 and "\(\- count\(DISTINCT cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - + MIN ( DISTINCT + 33 ) AS col2, - COUNT ( DISTINCT col1 ) col2 FROM tab1 cor0 WHERE NULL IS NULL query I rowsort @@ -24177,7 +24177,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\(\*\) AS col1" at position 1 have the 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 @@ -24938,7 +24938,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\(\*\) AS col2" at position 1 have the 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: @@ -33289,7 +33289,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\(\*\) 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 @@ -38646,7 +38646,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\(\*\) AS col2" at position 1 have the same name\. 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 @@ -42971,7 +42971,7 @@ SELECT DISTINCT - + COUNT ( * ) * + MAX ( ALL 85 ) FROM tab2 WHERE + - col1 IS N # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 query II rowsort @@ -48257,7 +48257,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have 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 @@ -51704,7 +51704,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\(\*\) 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 @@ -57260,7 +57260,7 @@ SELECT ALL 96 + - + MAX ( DISTINCT col2 ) 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - COUNT ( * ) FROM tab1 query I rowsort label-9467 @@ -59889,7 +59889,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\(\*\) AS col0" at position 1 have the 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 3429ff0..2b7488c 100644 --- a/data/sqlite/random/aggregates/slt_good_72.slt +++ b/data/sqlite/random/aggregates/slt_good_72.slt @@ -7402,7 +7402,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\(\*\) AS col2" at position 1 have the 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 @@ -7631,7 +7631,7 @@ SELECT - + 78 * + 7 AS col0 FROM tab0 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\(\*\)\) AS col2" at position 0 and "Int64\(\-2\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, - 2 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 query III rowsort @@ -15862,7 +15862,7 @@ SELECT DISTINCT COUNT ( * ) + + 92 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL query I rowsort @@ -22175,7 +22175,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\(\*\) / sum\(cor0\.col2\) \+ Int64\(26\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -27403,7 +27403,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ min\(\(\- \(\- tab0\.col1\)\)\) 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\(\*\) \+ min\(\(\- \(\- tab0\.col1\)\)\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + + MIN ( - - ( col1 ) ) AS col1, + 56 AS col1 FROM tab0 query III rowsort label-4536 @@ -28309,7 +28309,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\(\*\) AS col1" at position 1 have the 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 @@ -32094,7 +32094,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\(\*\) AS col0" at position 1 have the 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 @@ -33529,7 +33529,7 @@ SELECT ALL * FROM tab1 WHERE NOT ( ( + col1 <= - 45 ) ) # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE - ( - col1 ) * - col0 * col1 / - col2 IS NULL query I rowsort @@ -37780,7 +37780,7 @@ SELECT col2 * 10 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- \(\- 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\(\*\)\) \+ \(\- \(\- 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 DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col2, 51 AS col2 FROM tab1 query I rowsort label-6243 @@ -38273,7 +38273,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\(\*\) 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 @@ -41443,7 +41443,7 @@ SELECT ALL - 30 * - col0 * - 13 + + col1 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(94\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / avg\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(94\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / avg\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) / + 94 AS col1, - CAST ( NULL AS INTEGER ) / + AVG ( - + col1 ) AS col1, + 23 FROM tab1 AS cor0 query III rowsort @@ -42573,7 +42573,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\(\*\) 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 @@ -44517,7 +44517,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\(\*\) 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 @@ -46017,7 +46017,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -47023,7 +47023,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\(\*\) 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 @@ -50269,7 +50269,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(Int64\(12\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(Int64\(12\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - ( - COUNT ( * ) ) AS col1, 75 * + CAST ( 12 AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -51268,7 +51268,7 @@ SELECT ALL - col1, - 93 * - col1 + + col0 AS col1 FROM tab2 AS cor0 # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 53 AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query III rowsort @@ -52367,7 +52367,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\(\*\) AS col0" at position 1 have the 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 @@ -56885,7 +56885,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -59055,7 +59055,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\(\*\) 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 @@ -59331,7 +59331,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\(\*\) \- count\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 04489a4..76f3f31 100644 --- a/data/sqlite/random/aggregates/slt_good_73.slt +++ b/data/sqlite/random/aggregates/slt_good_73.slt @@ -5597,7 +5597,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\(\*\) AS col1" at position 1 have the 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 @@ -5863,7 +5863,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\(\*\) AS col1" at position 1 have the 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 @@ -6231,7 +6231,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\(\*\) AS col0" at position 1 have the 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 @@ -7817,7 +7817,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\(\*\) AS col0" at position 1 have the 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: @@ -10471,7 +10471,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\(\*\) 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 @@ -13511,7 +13511,7 @@ SELECT - 32 * - - col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 query III rowsort @@ -13786,7 +13786,7 @@ SELECT ALL col0 + + 7 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort @@ -19543,7 +19543,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\(\*\) \* 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 @@ -22842,7 +22842,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\(\*\) AS col1" at position 1 have the 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 @@ -25768,7 +25768,7 @@ SELECT DISTINCT MIN ( ALL col0 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- \(\- count\(\*\)\)\) 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 "Int64\(50\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 * - - COUNT ( * ) AS col2, + 36 AS col2 FROM tab2 query I rowsort @@ -27384,7 +27384,7 @@ SELECT - col1 + col1 FROM tab1 cor0 WHERE NOT - col2 BETWEEN NULL AND - + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT cor0\.col2\) AS col0" at position 0 and "Int64\(49\) \- \(\- count\(\*\)\) AS col0" at position 1 have 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\.col2\) 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 DISTINCT + MAX ( DISTINCT col2 ) AS col0, 49 - - COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -27406,7 +27406,7 @@ SELECT ALL + SUM ( ALL + col1 ) AS col2 FROM tab0 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 "\(\- count\(\*\)\) \+ Int64\(\-73\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-73\) AS col1" at 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 ( * ) + - 73 AS col1, - COUNT ( * ) col1 FROM tab2 AS cor0 query I rowsort @@ -28020,7 +28020,7 @@ SELECT DISTINCT - ( - - 13 ) * - + MIN ( ALL + col1 ) * + + COUNT ( * ) AS col1 # 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\(\*\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, - 26 AS col0 FROM tab1 query I rowsort label-4647 @@ -28727,7 +28727,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 213 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(71\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(71\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * 71 AS col1, 86 col1 FROM tab1 query III rowsort @@ -31143,7 +31143,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\(\*\) AS col0" at position 1 have the 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 @@ -34333,7 +34333,7 @@ SELECT - 36 * MIN ( ALL - col0 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( COUNT ( * ) ), ( + COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-5681 @@ -36557,7 +36557,7 @@ SELECT 52 * + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: @@ -37669,7 +37669,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -42896,7 +42896,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\(\*\)\) \* count\(\*\) AS col0" at position 0 and "Int64\(\-14\) \+ count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -44364,7 +44364,7 @@ SELECT DISTINCT + SUM ( ALL - col1 ) FROM tab1 AS cor0 WHERE + - 95 < + col2 AND # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(85\)\) AS col1" at position 0 and "min\(\(\- Int64\(13\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(85\)\) AS col1" at position 0 and "min\(\(\- Int64\(13\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) + - + 85 AS col1, MIN ( - + 13 ) AS col1 FROM tab2 AS cor0 query II rowsort @@ -56258,7 +56258,7 @@ SELECT ALL + 57 col2 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\(\*\)\) 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 FROM tab1 AS cor0 query I rowsort @@ -59881,7 +59881,7 @@ SELECT ALL - + COUNT ( * ) FROM tab1 cor0 WHERE NOT - 89 + 56 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(99\) \- 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\(\*\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(99\) \- Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + 28 col2, 99 - + 20 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_74.slt b/data/sqlite/random/aggregates/slt_good_74.slt index 9b3e68b..cc84bb3 100644 --- a/data/sqlite/random/aggregates/slt_good_74.slt +++ b/data/sqlite/random/aggregates/slt_good_74.slt @@ -2832,7 +2832,7 @@ SELECT ALL + - ( - ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0 # 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\(\*\)\) AS col2" at position 1 have the 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 DISTINCT + 22 AS col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -7284,7 +7284,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\(\*\) \- 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 @@ -11860,7 +11860,7 @@ SELECT ALL + - CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0 WHERE col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1 query III rowsort @@ -13531,7 +13531,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\(\*\)\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -13614,7 +13614,7 @@ SELECT ALL - 25 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2, tab2 AS cor0 query I rowsort label-2268 @@ -13989,7 +13989,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\(\*\) \* \(\- count\(\(\- cor0\.col2\)\)\) AS col1" at position 1 and "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 @@ -16684,7 +16684,7 @@ SELECT DISTINCT + col0 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( + col0 - # 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\(\*\)\) 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 DISTINCT - + COUNT ( * ) AS col1, + 4 AS col1 FROM tab2 AS cor0 query I rowsort @@ -17667,7 +17667,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\(\*\)\) / avg\(DISTINCT tab0\.col2\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -17847,7 +17847,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\(\*\) AS col0" at position 1 have the 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 @@ -19935,7 +19935,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -20474,7 +20474,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -23742,7 +23742,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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ), - ( COUNT ( * ) ) FROM tab1 cor0 query III rowsort @@ -25094,7 +25094,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(36\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(36\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 AS col2, 36 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -27082,7 +27082,7 @@ SELECT + 52 * - COUNT ( * ) * MAX ( - col1 ) AS col0, - COUNT ( * ) AS col1 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 38 -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\(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\(44\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 44 AS col0, + COUNT ( * ) + + + 35 AS col0 FROM tab2 query I rowsort label-4508 @@ -32729,7 +32729,7 @@ SELECT col0 FROM tab2 AS cor0 WHERE NOT 41 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / Int64\(1\) AS col0" at position 0 and "count\(\*\) \+ Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / Int64\(1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 48 / + 1 AS col0, COUNT ( * ) + 49 AS col0 FROM tab0 AS cor0 query I rowsort label-5456 @@ -47301,7 +47301,7 @@ SELECT DISTINCT + 39 + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 query III rowsort @@ -52959,7 +52959,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\(40\) \* 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 @@ -55751,7 +55751,7 @@ SELECT * FROM tab0 cor0 WHERE NOT col0 * - 6 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 query II rowsort @@ -56557,7 +56557,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 11cf119..4c51266 100644 --- a/data/sqlite/random/aggregates/slt_good_75.slt +++ b/data/sqlite/random/aggregates/slt_good_75.slt @@ -5609,7 +5609,7 @@ SELECT col1 FROM tab2 WHERE NOT + col2 * col0 + 63 + + ( - - 71 ) + + col2 IS NO # 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\(\*\)\) 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 tab0 query I rowsort label-936 @@ -5620,7 +5620,7 @@ SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 query I rowsort label-938 @@ -5990,7 +5990,7 @@ SELECT ALL 78 * + col2 AS col0, + col2 FROM tab1 cor0 WHERE NOT 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL query I rowsort @@ -9042,7 +9042,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\(\*\) 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 @@ -9757,7 +9757,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\(\*\) AS col2" at position 1 have the 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 @@ -11905,7 +11905,7 @@ SELECT DISTINCT - 11 AS col2 FROM tab2 AS cor0 WHERE - col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 query III rowsort @@ -18364,7 +18364,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\(\*\) 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 @@ -19635,7 +19635,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\(\*\) AS col1" at position 0 and "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 @@ -19872,7 +19872,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\(\*\) AS col2" at position 1 have the 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 @@ -24138,7 +24138,7 @@ SELECT + 14 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 174 # Datafusion - Expected - -195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- max\(\(\- \(\- tab2\.col2\)\)\)\) AS col1" at position 0 and "sum\(\(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- max\(\(\- \(\- tab2\.col2\)\)\)\) AS col1" at position 0 and "sum\(\(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - MAX ( - - col2 ) AS col1, SUM ( - col1 ) AS col1 FROM tab2 query I rowsort @@ -32403,7 +32403,7 @@ SELECT + COUNT ( - - col1 ) AS col2 FROM tab1 AS cor0 # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ) col2, - COUNT ( * ) AS col2 FROM tab1 cor0 query II rowsort @@ -37557,7 +37557,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\(\*\) AS col0" at position 1 have 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 @@ -39071,7 +39071,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -40466,7 +40466,7 @@ SELECT ALL + + MIN ( DISTINCT + + col0 ) FROM tab1 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 "Int64\(97\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-6727 @@ -46147,7 +46147,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\(\*\) AS col2" at position 1 have the 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 @@ -47303,7 +47303,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -47601,7 +47601,7 @@ SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > ( - col2 * + 69 * + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), ( + COUNT ( * ) ) FROM tab1 AS cor0 query I rowsort label-7919 @@ -47796,7 +47796,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\(\*\) AS col0" at position 1 have 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 @@ -48629,7 +48629,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\(\*\) 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 @@ -50835,7 +50835,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\(\*\) AS col1" at position 1 have the 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 @@ -51837,7 +51837,7 @@ SELECT DISTINCT - 94 FROM tab2 AS cor0 CROSS JOIN tab0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1 query I rowsort label-8619 @@ -53551,7 +53551,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\(\*\)\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -54925,7 +54925,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\(\*\) 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 @@ -56381,7 +56381,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\(\*\) 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 @@ -56714,7 +56714,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\(\*\) AS col2" at position 1 have the 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 @@ -58733,7 +58733,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\(\*\) AS col1" at position 1 have the 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 d9a9d23..fb47806 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\(\*\) AS col2" at position 0 and "Int64\(3\) \* count\(\*\) / \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\(\*\) AS col2" at position 1 have the 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 @@ -7256,7 +7256,7 @@ SELECT ALL + 66 + + col0 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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 tab0 AS cor0 query I rowsort label-1195 @@ -9804,7 +9804,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\(\*\) AS col1" at position 1 have the 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 @@ -9907,7 +9907,7 @@ SELECT DISTINCT - + 46 + col1 - + 30 / - col1 FROM tab0 cor0 WHERE NOT 36 IS NUL # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), ( COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab0 cor1 query I rowsort label-1632 @@ -14599,7 +14599,7 @@ SELECT DISTINCT * FROM tab1 WHERE ( + ( - 45 ) = - 72 * col1 * + ( + 18 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) AS col0" at position 0 and "sum\(DISTINCT tab2\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "sum\(DISTINCT tab2\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col0, + SUM ( DISTINCT + ( + + ( + col0 ) ) ) + - + CAST ( NULL AS INTEGER ) col0 FROM tab2 query I rowsort @@ -19216,7 +19216,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\(\*\) \* 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 @@ -20001,7 +20001,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -22874,7 +22874,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -29181,7 +29181,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\(\*\) 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 @@ -29739,7 +29739,7 @@ SELECT ALL + col0 * + 60 col1 FROM tab2 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\(\*\)\)\) 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 - - COUNT ( * ) AS col1, 21 AS col1 FROM tab2 cor0 query I rowsort @@ -30769,7 +30769,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\(\*\) \* count\(\*\) \* \(\- Int64\(72\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -32112,7 +32112,7 @@ SELECT DISTINCT + + 18 + - 84 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7549 # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(92\) \+ \(\- min\(\(\- tab0\.col0\)\)\) AS col1" at position 0 and "Int64\(37\) \- Int64\(93\) \+ \(\- count\(\*\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(92\) \+ \(\- min\(\(\- tab0\.col0\)\)\) AS col1" at position 0 and "Int64\(37\) \- Int64\(93\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 * 92 + - MIN ( ALL - col0 ) AS col1, 37 - + 93 + - ( COUNT ( * ) + 58 ) AS col1 FROM tab0 query II rowsort @@ -32247,7 +32247,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -267 -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\(\-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\(33\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 33 col1, COUNT ( * ) * - 89 AS col1 FROM tab1 query III rowsort @@ -32462,7 +32462,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -36878,7 +36878,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\(\*\) \* count\(\*\) AS col2" at position 1 have 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 @@ -36889,7 +36889,7 @@ SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 15 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -138 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* \(\- count\(\*\)\) AS col2" at position 0 and "\(\- count\(DISTINCT cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(DISTINCT cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 46 * - + COUNT ( * ) AS col2, - COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -37043,7 +37043,7 @@ SELECT ALL - 54 / - + 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab0 cor0 # Datafusion - Types were automatically converted from: @@ -39935,7 +39935,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\(\-25\)\) \+ max\(\(\- cor0\.col0\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -41163,7 +41163,7 @@ SELECT 19 + + col2 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-20\) AS col2" at position 0 and "\(\- count\(cor0\.col2\)\) / Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-20\) AS col2" at position 0 and "\(\- count\(cor0\.col2\)\) / Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - 20 AS col2, - COUNT ( ALL + col2 ) / - 9 AS col2 FROM tab0 AS cor0 query I rowsort label-6837 @@ -42615,7 +42615,7 @@ SELECT ALL - - COUNT ( * ) FROM tab2 cor0 WHERE + col0 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\(\*\)\) AS col1" at position 0 and "count\(\(\- 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\(\-16\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, COUNT ( - - 16 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 > + - col0 * col1 + + ( 32 ) - - + ( + col2 ) query I rowsort label-7073 @@ -46113,7 +46113,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\(\*\) 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 @@ -48206,7 +48206,7 @@ SELECT DISTINCT ( + + ( - col0 ) ) FROM tab0 # 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\(\*\) \+ count\(\*\) / Int64\(18\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(18\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + COUNT ( * ) / 18 AS col0, 14 AS col0 FROM tab0 query I rowsort @@ -49688,7 +49688,7 @@ SELECT DISTINCT - 90 - 60 FROM tab0 # 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\(\*\)\) AS col2" at position 1 have the 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 FROM tab0 query III rowsort @@ -55759,7 +55759,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col1 * + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -177 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- \(\- max\(DISTINCT \(\- tab1\.col2\)\)\)\) 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\(\*\) \* \(\- \(\- max\(DISTINCT \(\- tab1\.col2\)\)\)\) 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 ( * ) * - - ( + MAX ( DISTINCT - col2 ) ) AS col0, 72 AS col0 FROM tab1 query I rowsort label-9258 diff --git a/data/sqlite/random/aggregates/slt_good_77.slt b/data/sqlite/random/aggregates/slt_good_77.slt index 446dc80..691d018 100644 --- a/data/sqlite/random/aggregates/slt_good_77.slt +++ b/data/sqlite/random/aggregates/slt_good_77.slt @@ -3205,7 +3205,7 @@ SELECT DISTINCT col2 - + 80 * col1 + col2 FROM tab0 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 "\(\- min\(DISTINCT Int64\(75\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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\(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 - + MIN ( DISTINCT 75 ) col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -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\(\*\) 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\(\*\) 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 @@ -8971,7 +8971,7 @@ SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + # 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\(\*\)" at position 1 and "count\(\*\)" at position 2 have the same name\. Consider aliasing \("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 1 and "count\(Int64\(1\)\) AS count\(\*\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, COUNT ( * ), COUNT ( * ) FROM tab2 query I rowsort @@ -10746,7 +10746,7 @@ SELECT DISTINCT + COUNT ( * ) * - 3 + - - AVG ( DISTINCT col1 ) * CAST ( 40 AS I # 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\(\*\)\) \* \(\- min\(Int64\(77\)\)\) \- \(\- count\(\*\)\) \* Int64\(\-7\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -11245,7 +11245,7 @@ SELECT DISTINCT + MIN ( ALL - col1 ) - + - COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- 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\(\*\)\) \* \(\- 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 ( * ) * - COUNT ( * ) AS col2, 33 AS col2 FROM tab1 AS cor0 query III rowsort @@ -14809,7 +14809,7 @@ SELECT DISTINCT - 10 * 42 * - col1 + - col2 + - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-15\) 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\(\*\) \* Int64\(\-15\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 15 AS col1, 51 AS col1 FROM tab1 AS cor0 query I rowsort @@ -15627,7 +15627,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\(\*\) 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 @@ -20009,7 +20009,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\(\*\) 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 @@ -25710,7 +25710,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\(\*\) 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 @@ -28205,7 +28205,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\(\*\) AS col1" at position 0 and "Int64\(1\) \+ count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -36389,7 +36389,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\(\*\) 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 @@ -43211,7 +43211,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\(\*\) AS col0" at position 1 have the 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 @@ -44130,7 +44130,7 @@ SELECT DISTINCT 40 / + + 90 * - SUM ( ALL + - col2 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(\*\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 77 + ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col0, 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-7301 @@ -46005,7 +46005,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\(\*\) 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 @@ -51630,7 +51630,7 @@ SELECT - MIN ( DISTINCT - col0 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab0 query I rowsort label-8546 @@ -57294,7 +57294,7 @@ SELECT + col1 * + 8 col0 FROM tab2 # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, + 42 AS col2 FROM tab0 query I rowsort label-9487 @@ -58347,7 +58347,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\(\*\) 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 @@ -58404,7 +58404,7 @@ SELECT - - 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 query I rowsort @@ -60202,7 +60202,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\(\*\) AS col2" at position 1 have the 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 4fa7f1b..d8b60aa 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\(\*\) AS col1" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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 @@ -9654,7 +9654,7 @@ SELECT ALL * FROM tab1 WHERE NOT + col1 * + - col1 + + 2 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 800 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- \(\- Int64\(32\)\)\) AS col1" at position 0 and "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- \(\- Int64\(32\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 25 * - ( - + 32 ) AS col1, COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab2 query I rowsort label-1597 @@ -10267,7 +10267,7 @@ SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 44 AS col1 FROM tab2 AS cor0 WHERE - # 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\(\*\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col0, 80 col0 FROM tab0 AS cor0 query I rowsort @@ -16813,7 +16813,7 @@ SELECT ALL + 54 - - col0 AS col1 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\)" at position 0 and "count\(\*\)" at position 2 have the same name\. Consider aliasing \("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 "count\(Int64\(1\)\) AS count\(\*\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), ( - COUNT ( * ) ) / + 26 AS col0, + COUNT ( * ) FROM tab1 query I rowsort @@ -17795,7 +17795,7 @@ SELECT DISTINCT + col0 AS col1, - col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab0 query I rowsort @@ -20185,7 +20185,7 @@ SELECT col0 / col1 * - ( 70 ) - - 17 + - - ( col1 ) * - 58 * 38 + - col2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "Int64\(30\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "Int64\(30\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 col2, + 30 * - COUNT ( * ) AS col2 FROM tab1 query I rowsort @@ -21432,7 +21432,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\(\*\) AS col2" at position 1 have 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 @@ -25557,7 +25557,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\(\*\) 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 @@ -28608,7 +28608,7 @@ SELECT ALL - col0 / + col2 + 99 AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -2241 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) \* count\(\*\) \* Int64\(83\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\) \* 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, COUNT ( * ) * + ( + COUNT ( * ) ) * 83 * + - COUNT ( * ) col0 FROM tab0 AS cor0 query I rowsort @@ -28844,7 +28844,7 @@ SELECT - ( 56 ) FROM tab0 WHERE NOT + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "max\(tab2\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(tab2\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col2, MAX ( ALL col1 ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2 query II rowsort label-4780 @@ -31247,7 +31247,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\(\*\) AS col1" at position 1 have the 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 @@ -32935,7 +32935,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\(\*\) 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 @@ -35866,7 +35866,7 @@ SELECT DISTINCT * FROM tab0 WHERE NULL <= - 91 + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 0 -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\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 74 AS col0, COUNT ( * ) / 53 col0 FROM tab0 query I rowsort @@ -42544,7 +42544,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\(\*\) AS col0" at position 0 and "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 @@ -45025,7 +45025,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\(\*\) AS col1" at position 1 have the 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 @@ -47645,7 +47645,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -48809,7 +48809,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -51590,7 +51590,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -52802,7 +52802,7 @@ SELECT + - col1 / - col0 * + + col1 - - + 69 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(cor0\.col1\)\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(cor0\.col1\)\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( col1 ) * 2 AS col1, CAST ( - + COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0 query I rowsort @@ -55148,7 +55148,7 @@ SELECT ALL + COUNT ( - 90 ) AS 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\(\*\)\) 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 tab1 query I rowsort label-9115 @@ -56458,7 +56458,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -57357,7 +57357,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\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -58410,7 +58410,7 @@ SELECT - - SUM ( ALL 16 ) + COUNT ( * ) 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\(\*\)\) AS col1" at position 0 and "avg\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "avg\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, AVG ( ALL + col1 ) col1 FROM tab2 AS cor0 WHERE 62 > col1 * + col1 query I rowsort label-9655 diff --git a/data/sqlite/random/aggregates/slt_good_79.slt b/data/sqlite/random/aggregates/slt_good_79.slt index e66fce8..ab93a00 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\(\*\) 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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 @@ -10829,7 +10829,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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - ( + + COUNT ( * ) ) FROM tab1 WHERE + col2 IS NOT NULL # Datafusion - Datafusion expected results: @@ -10975,7 +10975,7 @@ SELECT 73 + - 45 * 93 + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) \* \(\- 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 ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0 query I rowsort @@ -20802,7 +20802,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\(\*\) AS col1" at position 1 have the 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 @@ -21844,7 +21844,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -26570,7 +26570,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 - - 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\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 I rowsort label-4383 @@ -35911,7 +35911,7 @@ SELECT ALL ( + + col2 ) * - + col2 + - col0 * - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -464 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(49\) AS Int32\) / count\(\*\) \* \(\- Int64\(29\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(49\) AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(29\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 49 AS INTEGER ) / COUNT ( * ) * - + 29 AS col2, - COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -36077,7 +36077,7 @@ SELECT DISTINCT COUNT ( * ) * 74 * - MAX ( DISTINCT col2 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + - 11 col2, 7 AS col2 FROM tab0 query I rowsort @@ -36121,7 +36121,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\(\*\) AS col1" at position 1 have the 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 @@ -37016,7 +37016,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\(\*\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -38115,7 +38115,7 @@ SELECT ALL - 7 + + ( + col0 ) 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\(\*\)\) AS col2" at position 0 and "\(\- count\(DISTINCT cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(DISTINCT cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - COUNT ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -40721,7 +40721,7 @@ SELECT * FROM tab0 AS cor0 WHERE - 86 BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -221 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ count\(\*\) \- sum\(cor0\.col0\) AS col2" at position 0 and "Int64\(23\) / \(\- 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\(\*\) \- sum\(cor0\.col0\) AS col2" at position 0 and "Int64\(23\) / \(\- Int64\(\-46\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + COUNT ( * ) - SUM ( ALL + col0 ) AS col2, + 23 / - - 46 AS col2 FROM tab1 cor0 query III rowsort @@ -43050,7 +43050,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -43311,7 +43311,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\(\*\) AS col0" at position 1 have the 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 @@ -43889,7 +43889,7 @@ SELECT DISTINCT MIN ( ALL 50 ) 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 43 IS NULL # Datafusion - Datafusion expected results: @@ -48784,7 +48784,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\(\*\) AS col0" at position 1 have the 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 @@ -52506,7 +52506,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -56891,7 +56891,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -57878,7 +57878,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\(\*\)\) \+ count\(\*\) AS col2" at position 1 have 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 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/aggregates/slt_good_8.slt b/data/sqlite/random/aggregates/slt_good_8.slt index 5ee4d9f..0e7a36d 100644 --- a/data/sqlite/random/aggregates/slt_good_8.slt +++ b/data/sqlite/random/aggregates/slt_good_8.slt @@ -7299,7 +7299,7 @@ SELECT - - 65 * - - COUNT ( ALL col2 ) col1 FROM tab2 WHERE 19 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -11748 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(47\) \* \(\- Int64\(84\)\) \+ Int64\(96\) 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\(\*\) \* Int64\(47\) \* \(\- Int64\(84\)\) \+ Int64\(96\) 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 ( * ) * 47 * - + 84 + 96 AS col2, 16 AS col2 FROM tab0 query I rowsort label-1195 @@ -7681,7 +7681,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 @@ -10253,7 +10253,7 @@ SELECT * FROM tab1 WHERE NOT - + 88 * col2 IS NOT 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\(\*\) \+ \(\- \(\- avg\(\(\- cor0\.col0\)\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\(\(\- 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 ( * ) + - - AVG ( ALL - col0 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= - 49 # Datafusion - Datafusion expected results: @@ -14418,7 +14418,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE 37 + + 25 + + col0 + - col0 - ( + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -291 -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\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) 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 - 81 AS col0, COUNT ( * ) * + - 97 AS col0 FROM tab1 cor0 query III rowsort @@ -19331,7 +19331,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\(\*\) AS Int32\)\) AS col0" at position 1 have the 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 @@ -22410,7 +22410,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\(\*\) 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 @@ -24504,7 +24504,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\(\*\) AS col2" at position 1 and "count\(\*\) \+ \(\- 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 @@ -24545,7 +24545,7 @@ SELECT + 40 AS col0, + 16 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(cor0\.col1 AS Int32\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(cor0\.col1 AS 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 SUM ( + + CAST ( + col1 AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 query II rowsort @@ -31501,7 +31501,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\(\*\) AS col2" at position 1 have the 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 @@ -34714,7 +34714,7 @@ SELECT DISTINCT - COUNT ( * ) * 68 * - + 20 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col0\) \- \(\- 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 "max\(cor0\.col0\) \- \(\- 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 MAX ( ALL col0 ) - + - COUNT ( * ) AS col2, 81 AS col2 FROM tab0 AS cor0 query III rowsort label-5727 @@ -35266,7 +35266,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\(\*\) 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 @@ -36068,7 +36068,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\(\*\) AS col0" at position 1 have the 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 @@ -39244,7 +39244,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\(\*\) 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 @@ -39812,7 +39812,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\(\*\) 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 @@ -41780,7 +41780,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\(\*\) 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 @@ -43571,7 +43571,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + + - col2 / - - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, - 39 AS col1 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_80.slt b/data/sqlite/random/aggregates/slt_good_80.slt index 76841ae..bb37f12 100644 --- a/data/sqlite/random/aggregates/slt_good_80.slt +++ b/data/sqlite/random/aggregates/slt_good_80.slt @@ -5291,7 +5291,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + 64 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 "min\(\(\- cor0\.col1\)\) AS col1" at position 0 and "min\(cor0\.col2\) \* \(\- count\(\*\)\) AS col1" at position 1 have 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 col1" at position 0 and "min\(cor0\.col2\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MIN ( ALL - col1 ) col1, + MIN ( col2 ) * ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE - 44 + col2 * - CAST ( - 90 AS INTEGER ) IS NULL query I rowsort label-854 @@ -5636,7 +5636,7 @@ SELECT - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ CAST\(count\(tab0\.col1\) AS Int32\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(count\(tab0\.col1\) AS Int32\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + + CAST ( + COUNT ( ALL + col1 ) AS INTEGER ) AS col1, - 81 AS col1 FROM tab0 query I rowsort @@ -5656,7 +5656,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -12652,7 +12652,7 @@ SELECT * FROM tab1 WHERE col1 / col0 + + col0 * 26 >= ( - col2 ) # 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 col1" at position 0 and "Int64\(\-19\) \* count\(\*\) \- max\(DISTINCT \(\- tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "Int64\(\-19\) \* count\(Int64\(1\)\) AS count\(\*\) \- max\(DISTINCT \(\- tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 71 AS col1, - 19 * COUNT ( * ) - + MAX ( DISTINCT - col2 ) AS col1 FROM tab1 query II rowsort @@ -16082,7 +16082,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\(\*\) 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 @@ -17505,7 +17505,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\(\*\) AS col1" at position 1 have the 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 @@ -26631,7 +26631,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -114 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(38\) 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\(\*\)\) \* Int64\(38\) 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 ( * ) * + 38 AS col0, + 22 AS col0 FROM tab1 AS cor0 query III rowsort @@ -32073,7 +32073,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\(\*\) 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 @@ -32954,7 +32954,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\(\*\) \+ 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 @@ -33539,7 +33539,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\(\*\) AS col0" at position 1 have the 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 @@ -49012,7 +49012,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\(\*\) 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 @@ -57072,7 +57072,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\(\*\) 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 c9da0b1..cbb6f75 100644 --- a/data/sqlite/random/aggregates/slt_good_81.slt +++ b/data/sqlite/random/aggregates/slt_good_81.slt @@ -1112,7 +1112,7 @@ SELECT * FROM tab2 AS cor0 WHERE 49 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 query I rowsort @@ -4221,7 +4221,7 @@ SELECT 78 * + 52 + - + ( - 32 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 DISTINCT 16 col1, - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) query I rowsort label-695 @@ -5854,7 +5854,7 @@ SELECT - - 24 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ CAST\(Int64\(97\) AS Int32\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(97\) AS Int32\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + CAST ( + 97 AS INTEGER ) AS col1, 82 AS col1 FROM tab0 AS cor0 query I rowsort label-964 @@ -5975,7 +5975,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> + col0 # 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\(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\(18\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 18 AS col1, + COUNT ( * ) / + + 46 AS col1 FROM tab0 query I rowsort @@ -9272,7 +9272,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\(\*\) 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 @@ -11161,7 +11161,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\(\*\) AS col2" at position 1 have the 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 @@ -12418,7 +12418,7 @@ SELECT + col1 AS col0, + col2 / - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "\(\- min\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- min\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 73 + - COUNT ( * ) AS col1, - MIN ( + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-2049 @@ -17154,7 +17154,7 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 BETWEEN - - col2 AND - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 tab2 cor0 WHERE NOT ( NULL ) > NULL query I rowsort label-2837 @@ -20304,7 +20304,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\(\*\) AS col1" at position 0 and "\(\- min\(tab1\.col0\)\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -21635,7 +21635,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -25247,7 +25247,7 @@ SELECT DISTINCT col2 * - 97 + + 89 AS col0 FROM tab2 WHERE NOT + col2 * col0 = ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\(\- cor0\.col0\)\)\) AS Int32\)\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\(\- cor0\.col0\)\)\) AS Int32\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - COUNT ( - col0 ) AS INTEGER ) + - - COUNT ( * ) AS col1, - 16 AS col1 FROM tab0 AS cor0 query I rowsort @@ -35897,7 +35897,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -36777,7 +36777,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\(\*\) AS col1" at position 1 have the 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 @@ -38484,7 +38484,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\(\*\) AS col2" at position 1 have the 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 @@ -44453,7 +44453,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\(\*\) 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 @@ -44887,7 +44887,7 @@ SELECT ALL - col0 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 + + - col0 + # 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\(\*\)\)\) 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 ( * ) ) AS col0, + 55 AS col0 FROM tab0 query I rowsort @@ -45869,7 +45869,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\(\*\) AS col1" at position 1 have the 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 @@ -46087,7 +46087,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\(\*\) 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 @@ -51156,7 +51156,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\(\*\) AS col0" at position 1 have the 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 @@ -53997,7 +53997,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\(\*\) 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 @@ -55087,7 +55087,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\(\*\) 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 @@ -55099,7 +55099,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\(\*\) 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 @@ -57144,7 +57144,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\(\*\)\) \* count\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 3319e94..ae26c2e 100644 --- a/data/sqlite/random/aggregates/slt_good_82.slt +++ b/data/sqlite/random/aggregates/slt_good_82.slt @@ -332,7 +332,7 @@ SELECT ALL - COUNT ( ALL 91 ) AS col2 FROM tab0 # 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\(\*\)\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, + 4 AS col2 FROM tab2 query I rowsort @@ -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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -4290,7 +4290,7 @@ SELECT 73 + + col0 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\)" at position 0 and "CAST\(CAST\(CAST\(\(\- count\(\*\)\) AS Int32\) AS Int32\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "CAST\(CAST\(CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS Int32\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), CAST ( CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-699 @@ -4812,7 +4812,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -6581,7 +6581,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\(\*\) 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 @@ -6780,7 +6780,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -8513,7 +8513,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -11326,7 +11326,7 @@ SELECT DISTINCT COUNT ( DISTINCT - - col0 ) AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 FROM tab1 AS cor0 query II rowsort label-1867 @@ -16841,7 +16841,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\(\-26\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -18420,7 +18420,7 @@ SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 + col0 / - # 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\(\*\)\)\) 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 ALL - - COUNT ( * ) AS col2, - 54 AS col2 FROM tab2 AS cor0 query I rowsort label-3029 @@ -24219,7 +24219,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\(\*\) AS col0" at position 1 have 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 @@ -25187,7 +25187,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\(\*\) 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 @@ -25334,7 +25334,7 @@ SELECT + 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -92 -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\(82\) \- 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\(64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(82\) \- Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 col0, COUNT ( * ) / + 82 - 92 AS col0 FROM tab2 AS cor0 query I rowsort @@ -26098,7 +26098,7 @@ SELECT - 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 query I rowsort @@ -30386,7 +30386,7 @@ SELECT ALL col1, 48 FROM tab1 cor0 WHERE NOT + 15 > + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(63\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(63\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + + + 63 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0 query II rowsort label-4975 @@ -35068,7 +35068,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\(\*\) AS col0" at position 0 and "\(\- count\(DISTINCT tab0\.col1\)\) \+ 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 @@ -36881,7 +36881,7 @@ SELECT + CAST ( 63 AS INTEGER ) * + 30 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- 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\(69\) \+ \(\- 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 ALL 69 + - COUNT ( * ) col0, - 49 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL query II rowsort @@ -36930,7 +36930,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\(\*\) 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 @@ -38679,7 +38679,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\(\*\) \+ \(\- count\(tab2\.col2\)\) \* Int64\(\-6\) \* Int64\(70\) \* \(\- \(\- Int64\(15\)\)\) \* count\(\*\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -38725,7 +38725,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\(\*\) 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 @@ -39937,7 +39937,7 @@ NULL # 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 "\(\- count\(\*\)\) \- Int64\(\-61\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\(\-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 - COUNT ( * ) - - 61 col1, - COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -42257,7 +42257,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -45391,7 +45391,7 @@ SELECT DISTINCT COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) - - 72 col0 FROM t # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- count\(\*\)\) / sum\(Int64\(66\)\) AS col0" at position 0 and "count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / sum\(Int64\(66\)\) AS col0" at position 0 and "count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + SUM ( ALL + 66 ) AS col0, + COUNT ( 22 ) col0 FROM tab1 query I rowsort @@ -45488,7 +45488,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\(\*\) 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 @@ -48092,7 +48092,7 @@ SELECT - COUNT ( * ) * - 19 AS col2 FROM tab1 AS cor0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), ( + COUNT ( * ) ) FROM tab2 cor0 query III rowsort @@ -48191,7 +48191,7 @@ SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL # 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\(\(\- \(\- \(\- \(\- tab1\.col1\)\)\)\)\)\) AS col2" at position 0 and "count\(\*\) \* 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\(\(\- \(\- \(\- \(\- tab1\.col1\)\)\)\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* max\(tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( - - ( - - col1 ) ) AS col2, ( + + COUNT ( * ) ) * MAX ( + col1 ) col2 FROM tab1 query I rowsort @@ -52893,7 +52893,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "count\(\*\) \+ Int64\(61\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(61\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 66 AS col0, ( + COUNT ( * ) ) + 61 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -56488,7 +56488,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\(\*\) 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 @@ -57208,7 +57208,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 89, col1 + + col0 * col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(41\) \+ \(\- count\(\*\)\) \+ Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(41\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, + 41 + - COUNT ( * ) + 41 col0 FROM tab2 cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_83.slt b/data/sqlite/random/aggregates/slt_good_83.slt index 13f997e..39afc92 100644 --- a/data/sqlite/random/aggregates/slt_good_83.slt +++ b/data/sqlite/random/aggregates/slt_good_83.slt @@ -2812,7 +2812,7 @@ SELECT col0 + + - col1 AS col0 FROM tab1 WHERE NOT col1 IS NULL # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 col2, + ( - COUNT ( * ) ) AS col2 FROM tab2 query I rowsort label-458 @@ -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\(\*\) 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 @@ -8727,7 +8727,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\(\*\) AS col0" at position 0 and "count\(DISTINCT CAST\(NULL AS Float64\)\) \+ count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -8927,7 +8927,7 @@ SELECT + 36 / - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "Int64\(90\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "Int64\(90\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 55 AS col0, 90 * - + COUNT ( * ) col0 FROM tab2 AS cor0 query II rowsort @@ -16424,7 +16424,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\(\*\) AS col1" at position 0 and "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 @@ -16462,7 +16462,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 "count\(Int64\(\-49\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same 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\)\) AS col2" at 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 ( + - 49 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * col0 IS NOT NULL query I rowsort @@ -16644,7 +16644,7 @@ SELECT + + 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 cor0 query I rowsort @@ -18946,7 +18946,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\(\*\) AS col0" at position 1 have 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 @@ -20147,7 +20147,7 @@ SELECT * FROM tab2 WHERE - col1 BETWEEN - - col2 AND ( + col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "\(\- count\(\*\)\) \* \(\- \(\- min\(tab0\.col0\)\)\) \+ 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\(90\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- min\(tab0\.col0\)\)\) \+ Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 90 ) AS col0, - COUNT ( * ) * - - MIN ( + col0 ) + - 15 col0 FROM tab0 query I rowsort label-3306 @@ -20177,13 +20177,13 @@ SELECT - ( - 28 ) - col1 * + + col0 + + col2 FROM tab0 AS cor0 WHERE - 50 NOT IN # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. 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\(\*\) 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: @@ -25158,7 +25158,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\(\*\) 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 @@ -26637,7 +26637,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\(\*\) AS col1" at position 1 have the 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: @@ -27565,7 +27565,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\(\*\) 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 @@ -31248,7 +31248,7 @@ SELECT - - col2 * + col2 + + col1 - - col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -2597 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-49\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-49\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 20 + - COUNT ( * ) AS col0, ( - 49 ) * 53 AS col0 FROM tab1 query I rowsort label-5139 @@ -32844,7 +32844,7 @@ SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(\*\) \+ \(\- \(\- min\(\(\- tab1\.col1\)\)\)\) / sum\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- min\(\(\- tab1\.col1\)\)\)\) / sum\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + - - MIN ( ALL - col1 ) / SUM ( 46 ) AS col0 FROM tab1 query I rowsort @@ -33451,7 +33451,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\(\*\) \* 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 @@ -38677,7 +38677,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\(\*\) 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 @@ -39512,7 +39512,7 @@ SELECT ALL ( - 4 ) - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(\-79\)\) 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 "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-79\)\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) + - ( - 79 ) AS col2, - 59 AS col2 FROM tab1 AS cor0 query III rowsort @@ -39699,7 +39699,7 @@ SELECT DISTINCT + col0 + - - col0 col0 FROM tab0 # 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\(\*\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + COUNT ( * ) ) AS col1, 59 AS col1 FROM tab1 query I rowsort @@ -40583,7 +40583,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\(\*\) AS col1" at position 1 have the 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 @@ -44300,7 +44300,7 @@ SELECT COUNT ( ALL + - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 query III rowsort @@ -45541,7 +45541,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -50576,7 +50576,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\(\*\) AS col0" at position 0 and "Int64\(14\) \+ Int64\(\-57\) \+ count\(\*\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -59509,7 +59509,7 @@ SELECT - col1 - - + col2 * - - 96 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- tab2\.col1\)\) AS col1" at position 0 and "count\(\*\) \* count\(\*\) \* 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 "max\(\(\- tab2\.col1\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( - col1 ) AS col1, + COUNT ( * ) * + COUNT ( * ) * + - 67 AS col1 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_84.slt b/data/sqlite/random/aggregates/slt_good_84.slt index 30568c7..ce4d945 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\(\*\) 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col2" at position 0 and "\(\- 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 @@ -14832,7 +14832,7 @@ SELECT * FROM tab0 WHERE NOT - col2 * - 90 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6692 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ sum\(tab0\.col1\) \* Int64\(\-65\) AS col2" at position 0 and "count\(\*\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ sum\(tab0\.col1\) \* Int64\(\-65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + SUM ( ALL + col1 ) * - 65 col2, COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort @@ -25604,7 +25604,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\(\*\) 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 @@ -27821,7 +27821,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -150 -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\(50\) \+ \(\- Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(50\) \+ \(\- Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 64 AS col2, - COUNT ( * ) * + 50 + - + 0 AS col2 FROM tab1 cor0 query III rowsort @@ -31593,7 +31593,7 @@ SELECT + col2 * - - col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + ( + + COUNT ( * ) ) ), COUNT ( * ) FROM tab0 query I rowsort @@ -32208,7 +32208,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\(\*\) 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 @@ -36198,7 +36198,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\(\*\) AS col0" at position 1 have the 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 @@ -36720,7 +36720,7 @@ SELECT DISTINCT col2 * - ( - col2 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 1561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) / count\(cor0\.col2\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(34\) \* 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 "Int64\(\-84\) / count\(cor0\.col2\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(34\) \* min\(cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + - 84 ) / COUNT ( ALL col2 ) AS col2, - COUNT ( * ) + + 34 * + MIN ( ALL col0 ) AS col2 FROM tab2 cor0 query I rowsort @@ -38313,7 +38313,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\(\*\) 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 @@ -40714,7 +40714,7 @@ SELECT DISTINCT col1 * + + 77 + - col1 * col1 + - + col0 col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(\*\) \* \(\- count\(\*\)\) \- Int64\(26\) AS col2" at position 0 and "sum\(\(\- 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(26\) AS col2" at position 0 and "sum\(\(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) * + + COUNT ( * ) * ( - COUNT ( * ) ) - + 26 AS col2, SUM ( - + col2 ) AS col2 FROM tab0 cor0 query I rowsort @@ -40964,7 +40964,7 @@ SELECT - SUM ( col2 ) * + 49 AS col2 FROM tab0 # 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\(\*\)\) AS col1" at position 0 and "Int64\(38\) / 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\) / Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 38 / + 38 AS col1 FROM tab1 query III rowsort @@ -43552,7 +43552,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\(\*\) 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 @@ -49315,7 +49315,7 @@ SELECT 37 * + COUNT ( * ) FROM tab0 # 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\(\*\)\) AS col1" at position 1 have the 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 tab2 query I rowsort label-8159 @@ -50597,7 +50597,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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: @@ -55235,7 +55235,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\(\*\) 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 @@ -56067,7 +56067,7 @@ SELECT ALL - + 27 + + + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 query I rowsort label-9260 @@ -58940,7 +58940,7 @@ SELECT + MIN ( CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(32\) \* count\(\*\) \+ Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 8 ) col0, + 32 * COUNT ( * ) + - 24 AS col0 FROM tab1 cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_85.slt b/data/sqlite/random/aggregates/slt_good_85.slt index 597202d..e786b2b 100644 --- a/data/sqlite/random/aggregates/slt_good_85.slt +++ b/data/sqlite/random/aggregates/slt_good_85.slt @@ -5093,7 +5093,7 @@ SELECT 35 + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(18\) AS col2" at position 0 and "Int64\(61\) \- Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) AS col2" at position 0 and "Int64\(61\) \- Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 18 AS col2, 61 - + - 26 AS col2 FROM tab0 cor0 query I rowsort @@ -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\(\*\) AS col2" at position 1 have the 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 @@ -5563,7 +5563,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\(\*\) 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 @@ -7744,7 +7744,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col0 = + - CAST ( 34 AS FLOAT8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(\-63\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-63\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / - 63 AS col2, 31 AS col2 FROM tab1 AS cor0 WHERE NOT + 49 NOT BETWEEN ( NULL ) AND col2 * - col0 query I rowsort label-1267 @@ -10472,7 +10472,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\(\*\) \+ 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 @@ -10831,7 +10831,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -11448,7 +11448,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -11563,7 +11563,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\(\*\) 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 @@ -12598,7 +12598,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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: @@ -16563,7 +16563,7 @@ SELECT DISTINCT ( - ( - - col2 ) ) * + col1 * + col0 FROM tab0 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 ALL - 28 AS col0, - COUNT ( * ) AS col0 FROM tab0 cor0 query I rowsort @@ -20722,7 +20722,7 @@ SELECT DISTINCT + col0, col2 + + 37 * + col0 FROM tab1 WHERE NOT ( NOT + col2 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NOT ( NOT col1 NOT BETWEEN col1 AND + col2 ) query III rowsort @@ -22346,7 +22346,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\(\*\) AS col1" at position 1 have 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 @@ -22754,7 +22754,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\(\*\) 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 @@ -22830,7 +22830,7 @@ SELECT DISTINCT + col0 col1, 42 * + - 42 + CAST ( - col2 AS INTEGER ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab2 query II rowsort @@ -31700,7 +31700,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\(\*\) 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 @@ -35887,7 +35887,7 @@ SELECT + - MIN ( DISTINCT - 88 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + - COUNT ( * ) AS col0, - 93 AS col0 FROM tab0 query I rowsort label-5960 @@ -38687,7 +38687,7 @@ SELECT DISTINCT - COUNT ( * ) * + - 54 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. 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\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) + - + ( COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT NULL <= ( NULL ) query I rowsort @@ -39921,7 +39921,7 @@ SELECT DISTINCT col0 - + 83 FROM tab2 # 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\(tab1\.col1\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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\.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 ) ) col1, - COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -42714,7 +42714,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\(\*\) 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 @@ -43374,7 +43374,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -44008,7 +44008,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\(\*\) 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 @@ -47085,7 +47085,7 @@ SELECT ALL + SUM ( DISTINCT - 13 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab0 query II rowsort @@ -56320,7 +56320,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -56352,7 +56352,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\(\*\) 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 @@ -58833,7 +58833,7 @@ SELECT MAX ( ALL - + 13 ) + - + 14 / - + COUNT ( - col0 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 295 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* count\(\*\) \+ Int64\(52\) \+ Int64\(87\) 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 "Int64\(52\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(52\) \+ Int64\(87\) 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 + 52 * COUNT ( * ) + + + 52 + + + 87 AS col1, - 61 AS col1 FROM tab0 AS cor0 query I rowsort label-9777 diff --git a/data/sqlite/random/aggregates/slt_good_86.slt b/data/sqlite/random/aggregates/slt_good_86.slt index 8e2b479..6079443 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\(80\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -7261,7 +7261,7 @@ SELECT DISTINCT - ( + 71 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- max\(\(\- tab1\.col0\)\)\) AS col0" at position 0 and "Int64\(\-90\) \+ 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\(\*\) \* \(\- max\(\(\- tab1\.col0\)\)\) AS col0" at position 0 and "Int64\(\-90\) \+ Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - MAX ( + - col0 ) AS col0, - 90 + 79 AS col0 FROM tab1 query I rowsort @@ -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\(\*\) 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\(\*\) 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 @@ -14378,7 +14378,7 @@ SELECT - 18 AS col2 FROM tab0 AS cor0 WHERE + 70 < + col0 + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / sum\(Int64\(62\)\) 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\(\*\) / sum\(Int64\(62\)\) 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 ( * ) / + SUM ( ALL + 62 ) AS col1, SUM ( ALL - col2 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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\(40\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -17782,7 +17782,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\(\*\) AS col1" at position 1 have the 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: @@ -18383,7 +18383,7 @@ SELECT ALL + col1 - 60 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "sum\(Int64\(\-41\)\) \+ 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 "sum\(Int64\(\-41\)\) \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) AS col2, + SUM ( ALL + - 41 ) + + 6 AS col2 FROM tab1 AS cor0 query I rowsort @@ -18602,7 +18602,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\(\*\) AS col1" at position 0 and "Int64\(\-61\) \* Int64\(\-75\) \+ Int64\(97\) / count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -21203,7 +21203,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\(\-66\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -26931,7 +26931,7 @@ SELECT DISTINCT col2 + + 95, + col2 FROM tab2 # 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\(27\)\)\) AS col1" at position 0 and "Int64\(\-40\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same 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 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 ALL COUNT ( - + 27 ) AS col1, - 40 + - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col1 * + col1 query I rowsort label-4462 @@ -31512,7 +31512,7 @@ SELECT 7 AS col0 FROM tab0 WHERE NOT + - col2 * 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 # Datafusion - Types were automatically converted from: @@ -32080,7 +32080,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\(\*\) 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 @@ -37242,7 +37242,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE col0 < + col1 # 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\(\*\)\)\) 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 ( * ) ) AS col1, + 8 AS col1 FROM tab0 AS cor0 query III rowsort @@ -38140,7 +38140,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\(\*\) 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 @@ -38467,7 +38467,7 @@ SELECT ALL ( - col2 ) * 98 FROM tab1 # 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 "Int64\(17\) / \(\- Int64\(\-14\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ \(\- \(\- 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\(17\) / \(\- Int64\(\-14\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(\-29\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 / - - 14 AS col1, - COUNT ( * ) + - - ( - 29 ) AS col1 FROM tab2 query I rowsort label-6347 @@ -38537,7 +38537,7 @@ SELECT DISTINCT CAST ( - 99 AS INTEGER ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 81 -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\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 24 AS col2, COUNT ( * ) + 78 AS col2 FROM tab2 query I rowsort label-6360 @@ -42142,7 +42142,7 @@ SELECT ALL + col2 * - - col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(61\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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\(61\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 61 + - COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -42929,7 +42929,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\(\*\) AS col0" at position 1 have the 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 @@ -44685,7 +44685,7 @@ SELECT DISTINCT col2 + col2 + + col0 FROM tab0 # 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 "count\(\*\) \+ \(\- Int64\(\-73\)\) 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\(\*\) \+ \(\- Int64\(\-73\)\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + + ( ( - - 73 ) ) AS col0, 1 AS col0 FROM tab2 query I rowsort @@ -45129,7 +45129,7 @@ SELECT ALL 8 - + MAX ( col1 ) + - 58 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL query I rowsort @@ -47484,7 +47484,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\(\*\) AS col0" at position 1 have 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 @@ -53469,7 +53469,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\(\*\) AS col0" at position 1 have the 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 @@ -56533,7 +56533,7 @@ SELECT ( - 69 ), COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -135 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ \(\- count\(\*\)\) \* Int64\(54\) AS col2" at position 0 and "\(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(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 27 + + - COUNT ( * ) * 54 AS col2, - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -57125,7 +57125,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\(\*\) AS col0" at position 0 and "Int64\(\-26\) \* \(\- 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 @@ -59447,7 +59447,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -204 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-68\) 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\(\*\) \* Int64\(\-68\) 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 ( * ) * ( ( - 68 ) ) AS col2, 18 AS col2 FROM tab1 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/aggregates/slt_good_87.slt b/data/sqlite/random/aggregates/slt_good_87.slt index 36c9291..d84b298 100644 --- a/data/sqlite/random/aggregates/slt_good_87.slt +++ b/data/sqlite/random/aggregates/slt_good_87.slt @@ -3397,7 +3397,7 @@ SELECT DISTINCT + 29, + 89 / - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "\(\- \(\- count\(\*\)\)\) \+ \(\- CAST\(Int64\(97\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(97\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, ( - - COUNT ( * ) ) + - CAST ( 97 AS INTEGER ) AS col1 FROM tab2 query I rowsort @@ -4286,7 +4286,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\(\*\) 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 @@ -14494,7 +14494,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 - Datafusion expected results: @@ -16044,7 +16044,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\(\*\) AS col1" at position 1 have the 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 @@ -17043,7 +17043,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\(\*\) 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 @@ -18146,7 +18146,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\(\*\) \* count\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -18568,7 +18568,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -18897,7 +18897,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -21079,7 +21079,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\(\*\) AS col2" at position 1 have the 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 @@ -21470,7 +21470,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\(\*\) 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 @@ -26098,7 +26098,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\(\*\) AS col2" at position 0 and "\(\- min\(DISTINCT \(\- cor0\.col2\)\)\) \* Int64\(\-84\) \- \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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: @@ -26609,7 +26609,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\(\*\) AS col0" at position 1 have the 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 @@ -26780,7 +26780,7 @@ SELECT ALL - COUNT ( ALL 95 ) AS col2 FROM tab0 WHERE + col2 - + col1 IS NOT NUL # 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\(\*\)\) AS col1" at position 0 and "sum\(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 "sum\(Int64\(50\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) col1, + SUM ( 50 ) AS col1 FROM tab2 query I rowsort @@ -27606,7 +27606,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\(\*\) 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 @@ -28055,7 +28055,7 @@ SELECT ALL MAX ( ALL - + 3 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -30264,7 +30264,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\(\*\)\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -30533,7 +30533,7 @@ SELECT - ( + - 93 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 59 -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\(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 "Int64\(63\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 63 col2, + COUNT ( * ) + ( + 56 ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -31215,7 +31215,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\(\*\) AS col2" at position 1 have the 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 @@ -32922,7 +32922,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\(\*\) AS col1" at position 1 have 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 @@ -33907,7 +33907,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\(\*\) 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 @@ -35625,7 +35625,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\(\*\) 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 @@ -38255,7 +38255,7 @@ SELECT DISTINCT col0 * - + col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -669 # Datafusion - Expected - -195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* sum\(DISTINCT \(\- cor0\.col2\)\) AS col2" at position 0 and "Int64\(65\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* sum\(DISTINCT \(\- cor0\.col2\)\) 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 ALL + COUNT ( * ) * + + SUM ( DISTINCT - + col2 ) AS col2, 65 * + - COUNT ( * ) col2 FROM tab1 AS cor0 query I rowsort @@ -40009,7 +40009,7 @@ SELECT ALL col1 * + col0 + + 24 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 282 -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\(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\(\-90\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 AS col1, COUNT ( * ) * + 94 AS col1 FROM tab1 AS cor0 query II rowsort @@ -41560,7 +41560,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -43930,7 +43930,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\(\*\)\) \* count\(cor0\.col1\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -44456,7 +44456,7 @@ SELECT DISTINCT 79 * - 51 AS col1 FROM tab2 # 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 "\(\- count\(\*\)\) \+ Int64\(22\) 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\(\*\)\) \+ Int64\(22\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + 22 AS col0, 74 AS col0 FROM tab0 query IIIIII rowsort @@ -46600,7 +46600,7 @@ SELECT DISTINCT col0 * + 0 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\(\*\)\) AS col0" at position 1 have the 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 query I rowsort label-7633 @@ -47256,7 +47256,7 @@ SELECT + col0 col0 FROM tab0 WHERE 87 * - 7 / - + col0 + + - col2 - - + 63 * + 4 # 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\(\*\)\) 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 tab2 query I rowsort label-7733 @@ -52000,7 +52000,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\(\*\) AS col2" at position 1 have the 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 @@ -54198,7 +54198,7 @@ SELECT ALL - 47 AS col1 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ( * ) col2 FROM tab0, tab0 cor0 query I rowsort @@ -56710,7 +56710,7 @@ SELECT DISTINCT - col1 * + col1 * + - 66 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 "min\(\(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(\-34\) \* \(\- count\(\*\)\) AS col2" at position 1 have 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 "Int64\(\-34\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MIN ( - col0 ) col2, ( - 34 ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL query I rowsort @@ -56891,7 +56891,7 @@ SELECT + col0 FROM tab2 WHERE NOT + col2 IS NULL # 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\(\*\)\)\) 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\(\*\)\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col1, 87 AS col1 FROM tab0 AS cor0 query I rowsort @@ -57742,7 +57742,7 @@ SELECT DISTINCT + col0 + + 44 + ( - 28 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col0, 57 + 83 col0 FROM tab2 AS cor0 query I rowsort @@ -58705,7 +58705,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - + col0 + - c # 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\(\*\)\) 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 ( * ) col1, 19 AS col1 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_88.slt b/data/sqlite/random/aggregates/slt_good_88.slt index 4009853..2726458 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\(\*\) AS col0" at position 1 have 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 @@ -5788,7 +5788,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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 cor0 # Datafusion - Types were automatically converted from: @@ -6947,7 +6947,7 @@ SELECT col0 / - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -2271 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(43\) \* 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\(94\) \+ Int64\(43\) \* Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 94 + 43 * - 55 AS col2 FROM tab2 query I rowsort label-1135 @@ -8720,7 +8720,7 @@ SELECT ALL + col0 * + + col2 FROM tab1 WHERE NOT - col2 / + col0 NOT BETWEEN - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) col2 FROM tab1 # Datafusion - Types were automatically converted from: @@ -17985,7 +17985,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\(\*\) 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 @@ -20478,7 +20478,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\(\*\) 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 @@ -23539,7 +23539,7 @@ SELECT col1 + + - 42 * + ( + + col1 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "count\(\*\) \* \(\- \(\- count\(\*\)\)\) \* max\(\(\- Int64\(64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* max\(\(\- Int64\(64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 94 AS col2, + COUNT ( * ) * + - ( + - COUNT ( * ) ) * + MAX ( ALL - + 64 ) AS col2 FROM tab0 AS cor0 query I rowsort label-3868 @@ -25488,7 +25488,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\(\*\) 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 @@ -25665,7 +25665,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\(\*\) 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 @@ -25913,7 +25913,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\(\*\) AS col1" at position 1 have the 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 @@ -26056,7 +26056,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -27391,7 +27391,7 @@ SELECT ALL + - ( - - col1 ) AS 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\(\*\)\) AS col1" at position 0 and "count\(\*\) \+ \(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, COUNT ( * ) + - - 6 AS col1 FROM tab2 query I rowsort @@ -27441,7 +27441,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\(\-54\) \* count\(\*\) \* Int64\(19\) AS col2" at position 0 and "Int64\(51\) \+ count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -27545,7 +27545,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\(\*\) 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 @@ -32737,7 +32737,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\(\*\) AS col0" at position 0 and "Int64\(\-90\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -32977,7 +32977,7 @@ SELECT ALL col2 + col2 * - + 55 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 15 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -33406,7 +33406,7 @@ SELECT ALL - ( - col1 ) + - - col1 * col1 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(97\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(97\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 AS col1, 97 * - COUNT ( * ) col1 FROM tab1 query II rowsort @@ -34680,7 +34680,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -35928,7 +35928,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(56\) \- \(\- \(\- count\(\*\)\)\) \* \(\- count\(\*\)\) \* sum\(\(\- 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\(56\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(\(\- Int64\(\-16\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, 56 - - - COUNT ( * ) * + - COUNT ( * ) * + SUM ( ALL - - 16 ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -36293,7 +36293,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\(\*\) AS col2" at position 1 have the 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 @@ -37234,7 +37234,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\(\*\) AS col2" at position 1 have the 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 @@ -48389,7 +48389,7 @@ SELECT + 84 + - + col1 + col1 FROM tab2 # 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\(57\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(57\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 57 AS col2, + COUNT ( * ) + + 48 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 query I rowsort @@ -48456,7 +48456,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\(\*\) AS col1" at position 1 have the 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 @@ -50199,7 +50199,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0 query I rowsort @@ -56804,7 +56804,7 @@ SELECT DISTINCT - 32 + - col1 AS col1 FROM tab0 WHERE NOT + col0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( COUNT ( * ) ), COUNT ( * ) FROM tab0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_89.slt b/data/sqlite/random/aggregates/slt_good_89.slt index 431c02a..f594d6b 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\(\*\) AS col1" at position 1 have the 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 @@ -8701,7 +8701,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\(\*\)\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -8717,7 +8717,7 @@ SELECT ALL col1 FROM tab1 cor0 WHERE NOT NULL >= NULL # 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\(\*\)\) AS col0" at position 0 and "sum\(Int64\(\-6\)\) \+ 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 "sum\(Int64\(\-6\)\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, + SUM ( - 6 ) + + 91 AS col0 FROM tab2 cor0 query I rowsort @@ -10137,7 +10137,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\(\*\) 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 @@ -12132,7 +12132,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\(\*\) 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 @@ -12789,7 +12789,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\(\*\) AS col2" at position 1 have the 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 @@ -16068,7 +16068,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\(\*\) AS col2" at position 1 have the 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 @@ -16078,7 +16078,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\(\*\) \* count\(\*\) AS col2" at position 1 have 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 @@ -17959,7 +17959,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -669 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "count\(\*\) \* \(\- sum\(tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 AS col1, + COUNT ( * ) * - SUM ( ALL + col2 ) AS col1 FROM tab1 query III rowsort @@ -19250,7 +19250,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\(\*\) AS col2" at position 1 have the 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 @@ -19694,7 +19694,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\(\*\) 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 @@ -21281,7 +21281,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -21585,7 +21585,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\(\*\) 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 @@ -21839,7 +21839,7 @@ SELECT ALL - COUNT ( + + col1 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "avg\(DISTINCT Int64\(53\)\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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 "avg\(DISTINCT Int64\(53\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 AS col1, + AVG ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL query II rowsort @@ -24342,7 +24342,7 @@ SELECT DISTINCT + col1 / - - col0 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -225 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- 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\(75\) \* \(\- 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 + 75 * - COUNT ( * ) AS col0, 77 AS col0 FROM tab1 cor0 query II rowsort @@ -25415,7 +25415,7 @@ SELECT + 96 FROM tab1 WHERE NOT - col0 <> - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -323040 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* count\(\*\) \+ Int64\(97\) \* Int64\(49\) \* Int64\(\-68\) \+ Int64\(83\) 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\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(49\) \* Int64\(\-68\) \+ Int64\(83\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( - - COUNT ( * ) ) * + COUNT ( * ) + + 97 * + 49 * - 68 + 83 AS col2, 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-4151 @@ -34138,7 +34138,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\(\*\) AS col1" at position 1 have the 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 @@ -35080,7 +35080,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\(\*\) AS col2" at position 1 have the 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 @@ -45900,7 +45900,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -47142,7 +47142,7 @@ SELECT ALL ( + 15 ) col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -945 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-99\) \* count\(\*\) \* count\(\*\) \+ \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-99\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) col0, - 99 * COUNT ( * ) * + + COUNT ( * ) + - - COUNT ( * ) * ( - + 18 ) AS col0 FROM tab0 cor0 query I rowsort @@ -48458,7 +48458,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -49260,7 +49260,7 @@ SELECT + ( - 84 ) AS col1 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 tab0 AS cor0 query I rowsort @@ -49729,7 +49729,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\(\*\) AS col0" at position 1 have the 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 @@ -51009,7 +51009,7 @@ SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) FROM tab1 cor0 query I rowsort @@ -58894,7 +58894,7 @@ SELECT ALL + col1 * + CAST ( - 83 AS INTEGER ) + col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 252 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(84\)\) AS col1" at position 0 and "Int64\(87\) / count\(\*\) \+ Int64\(\-28\) \+ \(\- count\(\*\)\) \* count\(\*\) \+ \(\- 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 "sum\(Int64\(84\)\) AS col1" at position 0 and "Int64\(87\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-28\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( 84 ) AS col1, 87 / + + COUNT ( * ) + - 28 + - COUNT ( * ) * + + COUNT ( * ) + - + 71 col1 FROM tab0 query II rowsort @@ -59279,7 +59279,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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: @@ -59691,7 +59691,7 @@ SELECT ALL - 12 AS col2 FROM tab2 AS cor0 WHERE NOT col2 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\(\*\)\) 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 query I rowsort label-9789 diff --git a/data/sqlite/random/aggregates/slt_good_9.slt b/data/sqlite/random/aggregates/slt_good_9.slt index bd75493..d608c39 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\(\*\) / 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\(\*\) AS col2" at position 1 have the 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 @@ -6773,7 +6773,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - - ( + - col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-13\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-13\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL - 13 ) AS col1, - COUNT ( * ) * 60 AS col1 FROM tab0 query I rowsort label-1085 @@ -7972,7 +7972,7 @@ SELECT * FROM tab1 WHERE NOT + col2 <> + + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 ALL - COUNT ( * ) AS col0, - 30 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-1285 @@ -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\(\*\) AS col2" at position 1 have the 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\(\*\) 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 @@ -21126,7 +21126,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2 + - + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) AS col0" at position 0 and "sum\(\(\- cor0\.col0\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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 "sum\(\(\- cor0\.col0\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 29 AS col0, + SUM ( - col0 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 query III rowsort @@ -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\(\*\) AS col2" at position 1 have the 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 @@ -29631,7 +29631,7 @@ SELECT ALL - MAX ( col2 ) 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 "Int64\(52\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 FROM tab2 # Datafusion - Types were automatically converted from: @@ -38325,7 +38325,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\(\*\) \* 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 @@ -41438,7 +41438,7 @@ SELECT 74 + - col1 AS col0, 79 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - COUNT ( * ) ), - COUNT ( * ) FROM tab1 query I rowsort @@ -53801,7 +53801,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\(\*\) AS col1" at position 1 have the 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 @@ -54512,7 +54512,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\(\*\) 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 @@ -58392,7 +58392,7 @@ SELECT DISTINCT + SUM ( - col1 ) * 42 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\(\*\)\) AS col2" at position 0 and "min\(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 "min\(DISTINCT \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + MIN ( DISTINCT - col2 ) AS col2 FROM tab2 query II rowsort label-9600 @@ -59910,7 +59910,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have 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 dab11dc..64f84db 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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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\(\*\) 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 @@ -5568,7 +5568,7 @@ SELECT col2 * - col1 + - ( - - col0 ) + + col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 517 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- count\(\(\- CAST\(NULL AS Float64\)\)\)\) \+ Int64\(26\) AS col0" at position 0 and "Int64\(\-47\) \* 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\(\*\) \- \(\- count\(\(\- CAST\(NULL AS Float64\)\)\)\) \+ Int64\(26\) AS col0" at position 0 and "Int64\(\-47\) \* Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - - COUNT ( ALL - CAST ( NULL AS FLOAT8 ) ) + 26 AS col0, - 47 * - 11 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL query I rowsort @@ -8539,13 +8539,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(\*\) \* max\(\(\- 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\(29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* max\(\(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. 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\(\*\) AS col0" at position 1 have the 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 @@ -8576,7 +8576,7 @@ SELECT + 7 + + - col2 - - col1 + + - ( - col0 ) FROM tab1 # Datafusion - Expected - -20 # Datafusion - Expected - 54 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- Int64\(17\)\) AS col2" at position 0 and "\(\- max\(DISTINCT \(\- 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\(\*\)\) \+ \(\- Int64\(17\)\) AS col2" at position 0 and "\(\- max\(DISTINCT \(\- Int64\(54\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - + 17 AS col2, - MAX ( DISTINCT - + 54 ) AS col2, + 59 FROM tab1 AS cor0 query I 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\(\*\)" at position 0 and "CAST\(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\(\*\) 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 @@ -14229,7 +14229,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\(\*\) 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 @@ -14840,7 +14840,7 @@ SELECT DISTINCT + + 84 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 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\(\*\)\) 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 tab2 AS cor0 query II rowsort @@ -17375,7 +17375,7 @@ SELECT ALL - 86 col2 FROM tab0 # 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\(\*\)\) AS col1" at position 0 and "max\(Int64\(31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(Int64\(31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, MAX ( ALL + 31 ) col1 FROM tab2 query I rowsort label-2860 @@ -17659,7 +17659,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -17700,7 +17700,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\(\*\) AS col1" at position 1 have the 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 @@ -19482,7 +19482,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\(\*\) AS col0" at position 1 have the 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 @@ -24305,7 +24305,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\(\*\) AS col2" at position 0 and "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 @@ -28391,7 +28391,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\(\*\)\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -28919,7 +28919,7 @@ SELECT + col2 + - + ( 65 ) * 44 / - + col2 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 162 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* Int64\(54\) 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\(\*\)\)\) \* Int64\(54\) 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 ( * ) * + 54 col0, + ( - 40 ) col0 FROM tab1 AS cor0 query I rowsort label-4757 @@ -30585,7 +30585,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\(\*\) AS col1" at position 0 and "Int64\(42\) \* Int64\(\-29\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -31032,7 +31032,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\(\*\) AS col1" at position 0 and "Int64\(57\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(\-10\)\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -35661,7 +35661,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\(\*\) 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 @@ -37229,7 +37229,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -37257,7 +37257,7 @@ SELECT + 68 * 57 col2, - col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab2\.col1\)\) AS col0" at position 0 and "count\(\*\) \* min\(DISTINCT \(\- 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 "min\(\(\- tab2\.col1\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(DISTINCT \(\- tab2\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( - + col1 ) AS col0, + COUNT ( * ) * + MIN ( DISTINCT - col0 ) AS col0 FROM tab2 query I rowsort label-6133 @@ -44614,7 +44614,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\(\*\) AS col0" at position 1 have the 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 @@ -45085,7 +45085,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -45138,7 +45138,7 @@ SELECT ( + COUNT ( * ) ) * - + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(26\) 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\(\*\)\) \* Int64\(26\) 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 ( * ) * 26 AS col0, 38 AS col0 FROM tab1 AS cor0 query I rowsort label-7429 @@ -45267,7 +45267,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\(\*\) AS col2" at position 1 have the 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 @@ -48133,7 +48133,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -53104,7 +53104,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -54633,7 +54633,7 @@ SELECT ALL 0 AS col1, 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\(\(\- \(\- tab2\.col0\)\)\) AS col2" at position 0 and "count\(\*\) \- Int64\(13\) \+ 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\(\(\- \(\- tab2\.col0\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(13\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - - col0 ) AS col2, COUNT ( * ) - + 13 + 16 AS col2 FROM tab2 query I rowsort @@ -59139,7 +59139,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\(\*\) 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 b862109..089f6ab 100644 --- a/data/sqlite/random/aggregates/slt_good_91.slt +++ b/data/sqlite/random/aggregates/slt_good_91.slt @@ -5111,7 +5111,7 @@ SELECT + - 88 * + 51 - - 19 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 174 -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\(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 "Int64\(\-70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 70 col2, COUNT ( * ) * 58 col2 FROM tab1 cor0 query I rowsort @@ -11768,7 +11768,7 @@ SELECT col2 + + 79 FROM tab0 cor0 # 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\(52\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "count\(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\(\*\) \+ Int64\(52\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(DISTINCT \(\- \(\- cor0\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + 52 / - - COUNT ( * ) AS col0, COUNT ( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -11986,7 +11986,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\(45\) / Int64\(\-96\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -14916,7 +14916,7 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 68 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), ( + COUNT ( * ) ) FROM tab2 AS cor0 query I rowsort @@ -15668,7 +15668,7 @@ SELECT * FROM tab0 WHERE - col0 + - - col0 / + + 44 BETWEEN + - col1 AND + 87 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(\-29\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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 "Int64\(\-29\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 80 col1, - 29 * ( - COUNT ( * ) ) AS col1 FROM tab0 query I rowsort @@ -24323,7 +24323,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -24830,7 +24830,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\(\*\) \* count\(\*\) AS col0" at position 0 and "Int64\(85\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -30645,7 +30645,7 @@ SELECT * FROM tab2 WHERE - 66 + + col0 IS NOT NULL # 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\(\*\)\)\) 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 - ( + - COUNT ( * ) ) AS col1, 79 AS col1 FROM tab2 query I rowsort @@ -40515,7 +40515,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\(\*\) 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 @@ -40935,7 +40935,7 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT col1 * + col1 BETWEEN NULL AND - col2 # 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\(\-14\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ( * ) AS col2 FROM tab2 AS cor0 query III rowsort label-6730 @@ -45979,7 +45979,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE 27 IS 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\(\-30\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 FROM tab0 AS cor0 query I rowsort @@ -46341,7 +46341,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\(\*\) AS col2" at position 1 have 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 @@ -51657,7 +51657,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL query I rowsort label-8488 @@ -53994,7 +53994,7 @@ SELECT 62 col2 FROM tab1 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\(\*\)\) AS col1" at position 1 have the 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 ALL + - 91 AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 66 IS NOT NULL query I rowsort label-8865 @@ -57501,7 +57501,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\(81\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -60232,7 +60232,7 @@ SELECT DISTINCT + + MAX ( 82 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 # 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\(\*\)\) AS col2" at position 0 and "count\(\(\- cor0\.col1\)\) / \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(\(\- cor0\.col1\)\) / \(\- count\(\(\- cor0\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + ( COUNT ( * ) ) AS col2, COUNT ( ALL - col1 ) / + - COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0 query I rowsort label-9873 diff --git a/data/sqlite/random/aggregates/slt_good_92.slt b/data/sqlite/random/aggregates/slt_good_92.slt index 8e3030c..578fff1 100644 --- a/data/sqlite/random/aggregates/slt_good_92.slt +++ b/data/sqlite/random/aggregates/slt_good_92.slt @@ -363,7 +363,7 @@ SELECT * FROM tab0 WHERE + - col1 + + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -315 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(35\) \* \(\- 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\(\*\) \* Int64\(35\) \* \(\- 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 ( * ) * + 35 * - COUNT ( * ) AS col1, 38 AS col1 FROM tab0 query II rowsort @@ -18798,7 +18798,7 @@ SELECT + - col0 AS col1, + ( 79 ) * - CAST ( 78 AS INTEGER ) * col1 - + - col0 F # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) 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 @@ -21403,7 +21403,7 @@ SELECT DISTINCT + col2 * - - col2 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 FROM tab0 AS cor0 query I rowsort @@ -28595,7 +28595,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\(\*\) AS col2" at position 1 have 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 @@ -29412,7 +29412,7 @@ SELECT 24 AS col2 FROM tab1 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\(\*\)\) AS col1" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) / 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 "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / min\(cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) col1, + COUNT ( * ) + - COUNT ( * ) / + MIN ( col2 ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -30843,7 +30843,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 67 - + col1 IS NULL AND NULL <> ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -195 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT cor0\.col1\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \* Int64\(\-4\) / \(\- count\(DISTINCT \(\- Int64\(58\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT cor0\.col1\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-4\) / \(\- count\(DISTINCT \(\- Int64\(58\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col1, - COUNT ( * ) * - 4 / + - COUNT ( DISTINCT - + 58 ) col1 FROM tab2 AS cor0 query I rowsort label-5056 @@ -33665,7 +33665,7 @@ SELECT * FROM tab1 WHERE NOT ( - + 92 * - ( + - 26 ) + - col0 * + CAST ( - 69 AS # 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\(tab1\.col2\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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 col2" at 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 ( col2 ) AS col2, - COUNT ( * ) AS col2 FROM tab1 query I rowsort label-5507 @@ -35647,7 +35647,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\(\*\) AS col2" at position 1 have 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 @@ -38187,7 +38187,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\(\*\) \* \(\- count\(\*\)\) \- Int64\(\-11\) \* 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 @@ -39876,7 +39876,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\(\*\) 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 @@ -49468,7 +49468,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -52347,7 +52347,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\(\*\) AS col2" at position 1 have the 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 @@ -55515,7 +55515,7 @@ SELECT ALL 54 + - - 55 * - - col0 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - ( + COUNT ( * ) ) FROM tab0 query I rowsort label-9105 @@ -56971,7 +56971,7 @@ SELECT - COUNT ( * ) / - 88 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(\-44\)\) \+ \(\- Int64\(13\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(53\)\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-44\)\) \+ \(\- Int64\(13\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(53\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + - - 44 + - + 13 AS col1, MAX ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab2 query I rowsort @@ -58484,7 +58484,7 @@ SELECT DISTINCT - col2 / + 14 - col2 * + col2 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-9600 @@ -58537,7 +58537,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\(\*\) AS col1" at position 1 have the 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 2afa1a7..a7a703e 100644 --- a/data/sqlite/random/aggregates/slt_good_93.slt +++ b/data/sqlite/random/aggregates/slt_good_93.slt @@ -6218,7 +6218,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\(\*\) AS col1" at position 1 have the 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 @@ -6553,7 +6553,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\(\*\) 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 @@ -8149,7 +8149,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\(\*\) AS col1" at position 1 have 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 @@ -17602,7 +17602,7 @@ SELECT col1 + - col2 + - col1 FROM tab2 AS cor0 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 query II rowsort @@ -19899,7 +19899,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\(\*\) 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 @@ -29155,7 +29155,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\(65\)\) \+ 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 @@ -31623,7 +31623,7 @@ SELECT - COUNT ( 39 ) AS col0, + 84 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -451 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(41\) \* \(\- CAST\(Int64\(11\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(41\) \* \(\- CAST\(Int64\(11\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col0, 41 * + - CAST ( ( + 11 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 query II rowsort @@ -35433,7 +35433,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\(\*\) AS col2" at position 1 have 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 @@ -37228,7 +37228,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\(\*\) 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 @@ -40074,7 +40074,7 @@ SELECT ALL - col2 * col2, - 30 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col1\) AS col2" at position 0 and "Int64\(69\) \+ count\(\*\) \* Int64\(15\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col1\) AS col2" at position 0 and "Int64\(69\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( DISTINCT + col1 ) AS col2, 69 + + COUNT ( * ) * + + 15 + - COUNT ( * ) AS col2 FROM tab1 query I rowsort label-6579 @@ -40653,7 +40653,7 @@ SELECT DISTINCT - MAX ( 56 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 3861 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(43\)\) AS col1" at position 0 and "Int64\(46\) \+ min\(cor0\.col0\) \* Int64\(83\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(43\)\) AS col1" at position 0 and "Int64\(46\) \+ min\(cor0\.col0\) \* Int64\(83\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MAX ( ALL 43 ) AS col1, 46 + + MIN ( col0 ) * + 83 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -46459,7 +46459,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\(\*\) AS col2" at position 1 have the 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 @@ -46470,7 +46470,7 @@ SELECT DISTINCT + - COUNT ( * ) * + + 79 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- count\(\*\)\) \- count\(\(\- \(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(\(\- \(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( ALL ( - - col2 ) ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -49353,7 +49353,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 @@ -58260,7 +58260,7 @@ SELECT ALL + col2 + 95 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, + ( + 78 ) AS col2 FROM tab1 AS cor0 query I rowsort label-9572 diff --git a/data/sqlite/random/aggregates/slt_good_94.slt b/data/sqlite/random/aggregates/slt_good_94.slt index 2a7bf73..ee3102a 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\(34\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. 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\(\*\) 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 @@ -3626,7 +3626,7 @@ SELECT col0 AS col1, - col0 col2 FROM tab0 WHERE NULL = + 16 # Datafusion - Expected - 6 # Datafusion - Expected - -657 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- sum\(\(\- Int64\(\-73\)\)\)\) AS col0" at position 1 and "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\(\*\) \* \(\- sum\(\(\- Int64\(\-73\)\)\)\) AS col0" at position 1 and "Int64\(10\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 6, COUNT ( * ) * - SUM ( - - 73 ) AS col0, 10 AS col0 FROM tab1 query I rowsort @@ -5190,7 +5190,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -5787,7 +5787,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\(\*\) 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 @@ -9873,7 +9873,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\(\*\) AS col1" at position 1 have the 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 @@ -10040,7 +10040,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\(\*\) 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 @@ -11700,7 +11700,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\(\*\) AS col1" at position 1 have the 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 @@ -12944,7 +12944,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\(\*\) AS col1" at position 1 have the 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 @@ -13325,7 +13325,7 @@ SELECT ALL + 0 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0 query I rowsort @@ -17030,7 +17030,7 @@ SELECT ALL * FROM tab0 WHERE + 65 / col0 + - 50 IN ( + - col1, + 84, + col2 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-1\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-1\) 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 DISTINCT + - COUNT ( * ) + - 1 col2, MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0 query I rowsort label-2798 @@ -22436,7 +22436,7 @@ SELECT - col2 * + col0 + + col2 col1 FROM tab2 AS cor0 WHERE NOT 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 query II rowsort @@ -25192,7 +25192,7 @@ SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -3885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(23\)\) AS col1" at position 0 and "Int64\(\-7\) \* count\(\*\) \* sum\(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\(23\)\) AS col1" at position 0 and "Int64\(\-7\) \* count\(Int64\(1\)\) AS count\(\*\) \* sum\(DISTINCT cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 23 AS col1, - 7 * COUNT ( * ) * + SUM ( DISTINCT col0 ) col1 FROM tab2 AS cor0 query I rowsort @@ -34078,7 +34078,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\(\*\) AS col1" at position 1 have the 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 @@ -35696,7 +35696,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\(\*\) 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 @@ -37559,7 +37559,7 @@ SELECT ALL + CAST ( - + 17 AS INTEGER ) * - + 7 + - - ( + COUNT ( * ) ) FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - 249 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(83\) 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\(\*\) \* Int64\(83\) 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 ( * ) * + 83 AS col1, 55 AS col1 FROM tab2 # Datafusion - Datafusion expected results: @@ -38024,7 +38024,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\(\*\)\) \* CAST\(Int64\(72\) AS Int32\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -38807,7 +38807,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -39148,7 +39148,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\(\*\) AS col1" at position 1 have 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 @@ -43969,7 +43969,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\(\*\) AS col1" at position 1 have the 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 @@ -49614,7 +49614,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\(\*\) 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 @@ -50145,7 +50145,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -50175,7 +50175,7 @@ SELECT DISTINCT + 97 * - col1 FROM tab1 # Datafusion - Expected - 15 # Datafusion - Expected - -48 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 1 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 1 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( 15 ), - 48 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort label-8235 @@ -53237,7 +53237,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 765 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-85\)\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-85\)\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * - - 85 AS col2, 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-8739 @@ -53529,7 +53529,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -55896,7 +55896,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\(\*\) AS col0" at position 1 have the same 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 @@ -58605,7 +58605,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\(\*\) AS col1" at position 1 have the 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 792362f..109195c 100644 --- a/data/sqlite/random/aggregates/slt_good_95.slt +++ b/data/sqlite/random/aggregates/slt_good_95.slt @@ -8787,7 +8787,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\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(\*\) / count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -9755,7 +9755,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\(\*\) AS col2" at position 1 have the 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 @@ -13916,7 +13916,7 @@ SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 88 BETWEEN NULL AN # Datafusion - Datafusion expected results: # Datafusion - Expected - 117 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(39\) 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\(\*\) \* Int64\(39\) 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 + COUNT ( * ) * + 39 AS col0, ( + + MAX ( - + col2 ) ) AS col0 FROM tab0 AS cor0 query II rowsort label-2293 @@ -14164,7 +14164,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\(17\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -15097,7 +15097,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\(\*\) 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 @@ -18406,7 +18406,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\(\*\) 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 @@ -22298,7 +22298,7 @@ SELECT - MAX ( ( + col0 ) ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* \(\- 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\(34\) \* \(\- 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 ALL + 34 * - COUNT ( * ) AS col0, - 28 AS col0 FROM tab2 AS cor0 query II rowsort @@ -23299,7 +23299,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -24515,7 +24515,7 @@ SELECT col2 + CAST ( NULL AS INTEGER ) / - ( col0 ) FROM tab2 WHERE NOT + + col1 # 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\(\*\)\)\) 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 ( * ) col2, 35 col2 FROM tab1 AS cor0 query I rowsort @@ -25258,7 +25258,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -27197,7 +27197,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - 52 IS NULL # 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\(\*\)\) AS col1" at position 1 have the 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 tab1 AS cor0 query III rowsort @@ -28892,7 +28892,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\(\*\) AS col0" at position 1 have the 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 @@ -31094,7 +31094,7 @@ SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col0 / col1 ) < 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( + + COUNT ( * ) ), + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-5093 @@ -31142,7 +31142,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -46190,7 +46190,7 @@ SELECT col0 * + col0 + + ( - - col1 ) + 59 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -141 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(48\) \* \(\- 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\(\*\) \+ Int64\(48\) \* \(\- 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 COUNT ( * ) + + + 48 * - + COUNT ( * ) AS col1, 80 AS col1 FROM tab1 query III rowsort @@ -46536,7 +46536,7 @@ SELECT DISTINCT - + ( - MIN ( - 19 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -310 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* Int64\(10\) AS col0" at position 0 and "Int64\(27\) / \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* Int64\(10\) AS col0" at position 0 and "Int64\(27\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 31 * + + 10 AS col0, 27 / - + COUNT ( * ) AS col0 FROM tab1 query II rowsort @@ -47523,7 +47523,7 @@ SELECT ALL - CAST ( + 69 AS FLOAT8 ) / col1 FROM tab2 AS cor0 WHERE NOT + 58 <= # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL IS NULL ) query II rowsort label-7812 @@ -52517,7 +52517,7 @@ SELECT DISTINCT - col1 + + col2 + - 86 + + - col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(72\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(72\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 70 AS col2, 72 * - COUNT ( * ) AS col2 FROM tab2 query III rowsort @@ -56307,7 +56307,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\(\*\) \+ count\(\*\) AS col2" at position 0 and "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: @@ -59100,7 +59100,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -14910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab2\.col2\) AS col0" at position 0 and "Int64\(\-71\) \* count\(\*\) \* 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 "max\(tab2\.col2\) AS col0" at position 0 and "Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MAX ( + col2 ) AS col0, - 71 * + + COUNT ( * ) * 70 AS col0 FROM tab2 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_96.slt b/data/sqlite/random/aggregates/slt_good_96.slt index fa18bde..31e8e1b 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\(\*\) AS col1" at position 1 have the 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 @@ -3275,7 +3275,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 * - col1 BETWEEN col1 AND 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\(\*\)\) AS col2" at position 1 have the 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 tab2 query I rowsort label-535 @@ -9313,7 +9313,7 @@ SELECT ALL * FROM tab0 WHERE + - 17 * - ( - col0 ) + + col1 + 66 + col1 <> ( + c # 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 Float64\)\) AS col0" at position 0 and "\(\- 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 "\(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS FLOAT8 ) AS col0, - COUNT ( * ) - + 21 AS col0 FROM tab0, tab0 AS cor0 query I rowsort label-1531 @@ -10721,7 +10721,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\(\*\) AS col0" at position 1 have the 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 @@ -17762,7 +17762,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\(\*\) AS col0" at position 1 have the 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 @@ -19098,7 +19098,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\(\*\) AS col0" at position 1 have the 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 @@ -24997,7 +24997,7 @@ SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT NULL >= + ( 80 ) # 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 query III rowsort @@ -26655,7 +26655,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\(\*\) 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 @@ -27776,7 +27776,7 @@ SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) + + 50 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ALL - + 63 AS col2, - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 query I rowsort label-4596 @@ -28313,7 +28313,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -33520,7 +33520,7 @@ SELECT DISTINCT + 46 + + 51 AS col1, 79 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS 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 ( 27 AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -40264,7 +40264,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\(67\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -42679,7 +42679,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\(\*\) 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 @@ -44399,7 +44399,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) + + - 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-7361 @@ -56956,7 +56956,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 7ce29f9..27c0332 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\(\*\) AS col0" at position 1 have 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 @@ -5239,7 +5239,7 @@ SELECT * FROM tab2 AS cor0 WHERE + 87 - + - col2 BETWEEN NULL AND 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 "\(\- \(\- count\(\*\)\)\) \+ sum\(\(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\.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 - - COUNT ( * ) + + SUM ( ALL - col1 ) col0, - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT - col1 + + col1 < - CAST ( NULL AS INTEGER ) query I rowsort label-867 @@ -15423,7 +15423,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -15909,7 +15909,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\(\*\)\) AS col1" at position 0 and "count\(\*\) \* \(\- CAST\(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 @@ -20393,7 +20393,7 @@ SELECT ALL - 36 FROM tab2 WHERE NOT ( NOT - col0 IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3009 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- tab1\.col0\)\)\) \* Int64\(\-59\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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\)\)\) \* 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 - MAX ( - col0 ) * - 59 AS col2, - COUNT ( * ) col2 FROM tab1 query III rowsort @@ -27084,7 +27084,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\(\*\) AS Int32\) AS col2" at position 1 have the 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 @@ -29480,7 +29480,7 @@ SELECT ALL + - 3 * + - col0 * + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ \(\- Int64\(49\)\) \- \(\- \(\- CAST\(\(\- \(\- \(\- count\(\*\)\)\)\) AS Int32\)\)\) \* \(\- sum\(Int64\(2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(49\)\) \- \(\- \(\- CAST\(\(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int32\)\)\) \* \(\- sum\(Int64\(2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 AS col0, - COUNT ( * ) + - + 49 - - - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) * - SUM ( + + 2 ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -31249,7 +31249,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\(\*\) AS col1" at position 1 have the 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 @@ -32434,7 +32434,7 @@ SELECT ALL col0 * col1 * col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "\(\- min\(DISTINCT \(\- \(\- cor0\.col1\)\)\)\) \* \(\- 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 "\(\- min\(DISTINCT \(\- \(\- cor0\.col1\)\)\)\) \* \(\- max\(\(\- cor0\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, - MIN ( DISTINCT - - col1 ) * - + MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -36638,7 +36638,7 @@ SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) 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\(\*\)\)\) AS col2" at position 0 and "Int64\(11\) / 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\(11\) / Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - - COUNT ( * ) ) AS col2, 11 / - 1 AS col2 FROM tab1 AS cor0 query I rowsort @@ -44076,7 +44076,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\(\*\) AS col1" at position 1 have the 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 @@ -49198,7 +49198,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\(\*\) AS col0" at position 0 and "Int64\(\-7\) \+ \(\- 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 @@ -50695,7 +50695,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\(\*\) AS col2" at position 1 have the 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 @@ -51479,7 +51479,7 @@ SELECT DISTINCT + col2 AS col2, + 74 FROM tab0 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\(\*\)\) 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 tab2 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_98.slt b/data/sqlite/random/aggregates/slt_good_98.slt index 1aa1329..b701f1d 100644 --- a/data/sqlite/random/aggregates/slt_good_98.slt +++ b/data/sqlite/random/aggregates/slt_good_98.slt @@ -2350,7 +2350,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\(\-85\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -7710,7 +7710,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -7726,7 +7726,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\(\*\) AS col0" at position 1 have the 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 @@ -8559,7 +8559,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\(\*\) AS col1" at position 0 and "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 @@ -9760,7 +9760,7 @@ SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE col2 * 16 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 query III rowsort @@ -13954,7 +13954,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\(\*\)" at position 0 and "CAST\(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 @@ -15520,7 +15520,7 @@ SELECT - 47 + 52 AS col0 FROM tab2 # 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\(\*\)\) AS col0" at position 0 and "min\(DISTINCT \(\- \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "min\(DISTINCT \(\- \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - COUNT ( * ) AS col0, MIN ( DISTINCT - ( - + col1 ) ) col0 FROM tab1 AS cor0 query I rowsort label-2548 @@ -20419,7 +20419,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\(\*\) AS col0" at position 1 have the 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 @@ -20994,7 +20994,7 @@ SELECT 40 FROM tab2 AS cor0 WHERE ( col1 * + col2 ) NOT BETWEEN col1 + col2 AND # 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\(\*\)\) AS col0" at position 0 and "\(\- sum\(\(\- 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 "\(\- sum\(\(\- cor0\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) col0, - SUM ( + - col0 ) col0 FROM tab1 AS cor0 query I rowsort @@ -22268,7 +22268,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\(\*\) AS col1" at position 1 have the 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 @@ -23035,7 +23035,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\(\*\) AS col0" at position 1 have the 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 @@ -27495,7 +27495,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\(\*\) \* 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 @@ -29674,7 +29674,7 @@ SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col0 <= ( - col0 + + + col2 - + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(49\) \* CAST\(count\(cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(49\) \* CAST\(count\(cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2, 49 * + CAST ( + COUNT ( ALL col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -33267,7 +33267,7 @@ SELECT DISTINCT + col0 AS col2, - CAST ( + col2 AS INTEGER ) + + col1 col0 FROM # Datafusion - Expected - 3 # Datafusion - Expected - 75 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\)" at position 0 and "count\(\*\)" at position 2 have the same name\. Consider aliasing \("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 "count\(Int64\(1\)\) AS count\(\*\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), MAX ( col0 ) col0, COUNT ( * ) FROM tab2 query I rowsort label-5463 @@ -34122,7 +34122,7 @@ SELECT CAST ( + + 46 AS INTEGER ) 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 "Int64\(0\) \- \(\- \(\- count\(\*\)\)\) \* Int64\(28\) / Int64\(72\) AS col0" at position 0 and "Int64\(63\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(\*\)\)\) \* Int64\(28\) / Int64\(72\) 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 + + 0 - - - COUNT ( * ) * 28 / 72 AS col0, 63 * + - ( + - COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT + - 89 * + - col1 * - 64 + col1 IS NOT NULL query I rowsort label-5604 @@ -34279,7 +34279,7 @@ SELECT - 18 - col1 + - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(37\) 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\(\*\) \- Int64\(37\) 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 ( * ) - + + 37 AS col2, - 50 AS col2 FROM tab0 AS cor0 query I rowsort @@ -34720,7 +34720,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\(\*\) \+ 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: @@ -41966,7 +41966,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\(\*\) AS col1" at position 1 have the 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 @@ -42144,7 +42144,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\(\*\) AS col0" at position 1 have the 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 @@ -44183,7 +44183,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\(\*\) AS col1" at position 1 have 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 @@ -45946,7 +45946,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\(\*\)\) AS col2" at position 0 and "Int64\(66\) \* \(\- count\(\*\)\) \- count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -48259,7 +48259,7 @@ SELECT + 91 * + 81 + + + 79 * 91 + 70 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab2 query I rowsort @@ -50556,7 +50556,7 @@ SELECT + col0 / - - 77 AS col0 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 "Int64\(\-96\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 AS col1, + ( - + COUNT ( * ) ) AS col1 FROM tab1 query I rowsort label-8323 @@ -55216,7 +55216,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\(\*\) AS col1" at position 1 have 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 @@ -57726,7 +57726,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\(\*\) \+ count\(\*\) AS col1" at position 1 have the 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 2c9f242..e4221e4 100644 --- a/data/sqlite/random/aggregates/slt_good_99.slt +++ b/data/sqlite/random/aggregates/slt_good_99.slt @@ -8524,7 +8524,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\(\*\) / 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 @@ -14757,7 +14757,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\(\*\) AS col2" at position 1 have the same name\. 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 @@ -15604,7 +15604,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT 2 IS NOT 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\(\*\)\) 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 + - COUNT ( * ) AS col2, - 92 AS col2 FROM tab0 AS cor0 query II rowsort @@ -15705,7 +15705,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT IN ( - - col1, col0 / - 80 ) # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-2570 @@ -27924,7 +27924,7 @@ SELECT + + col2 * - - col0 + + col2 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 query III rowsort @@ -32534,7 +32534,7 @@ SELECT DISTINCT + col1 * + - 57 + + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(16\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + 16 * + - COUNT ( * ) col2 FROM tab2 AS cor0 query I rowsort label-5332 @@ -35562,7 +35562,7 @@ SELECT col2 * - + col2 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "\(\- sum\(Int64\(\-89\)\)\) \+ \(\- 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\(\-89\)\)\) \+ \(\- Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col1, - SUM ( - 89 ) + - ( 71 ) AS col1 FROM tab1 AS cor0 query III rowsort label-5830 @@ -36198,7 +36198,7 @@ SELECT + + 44 * - - col2 FROM tab1 cor0 # 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\(\*\)\)\) 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 DISTINCT - - COUNT ( * ) AS col0, + ( 47 ) AS col0 FROM tab1 AS cor0 query I rowsort label-5940 @@ -36270,7 +36270,7 @@ SELECT * 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\(\*\)\) AS col1" at position 0 and "\(\- count\(\(\- \(\- 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 "\(\- count\(\(\- \(\- cor0\.col0\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) col1, ( - COUNT ( - ( - col0 ) ) ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -38170,7 +38170,7 @@ SELECT DISTINCT + 69 / + SUM ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT 53 I # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(max\(cor0\.col2\) AS Int32\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(max\(cor0\.col2\) AS Int32\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + + + CAST ( + MAX ( + col2 ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -39423,7 +39423,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\(\*\) 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 @@ -40291,7 +40291,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\(\*\) AS col1" at position 1 have the 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 @@ -42272,7 +42272,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\(\*\) AS col2" at position 1 have the 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 @@ -43094,7 +43094,7 @@ SELECT - col1 AS col0, col1 FROM tab0 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\(\*\)\) AS col0" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL query I rowsort label-7080 @@ -45921,7 +45921,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <= - - ( col0 ) * - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 2 -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\(81\) / 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\(60\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(81\) / Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 AS col1, - COUNT ( * ) + + 81 / + + 33 AS col1 FROM tab2 cor0 WHERE NOT CAST ( - - 52 AS INTEGER ) IS NOT NULL query II rowsort label-7535 @@ -47242,7 +47242,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\(\*\) 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 @@ -50063,7 +50063,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\(\*\) 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 @@ -53759,7 +53759,7 @@ SELECT * FROM tab0 WHERE NOT NULL < + - col2 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab1 WHERE NOT NULL >= + - 85 / - col1 query I rowsort @@ -53818,7 +53818,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -56248,7 +56248,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\(\*\) 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 @@ -58046,7 +58046,7 @@ SELECT DISTINCT + - 8 AS col1 FROM tab2 WHERE NOT 89 / + col0 NOT BETWEEN + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col2" at position 0 and "max\(tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 0 and "max\(tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2, + MAX ( col0 ) AS col2 FROM tab2 WHERE NOT NULL < + - col0 * - 42 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_0.slt b/data/sqlite/random/expr/slt_good_0.slt index 121aa4a..820da38 100644 --- a/data/sqlite/random/expr/slt_good_0.slt +++ b/data/sqlite/random/expr/slt_good_0.slt @@ -907,7 +907,7 @@ SELECT ALL COALESCE ( - 63, + 83 ) * + + 36 + 44 + 11 * + 89 * + + 65 * - COALES # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / CASE Int64\(26\) WHEN Int64\(\-12\) \* Int64\(96\) THEN Int64\(\-18\) \* count\(\*\) \+ Int64\(15\) END AS col1" at position 0 and "Int64\(58\) \* 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\(1\) / CASE Int64\(26\) WHEN Int64\(\-12\) \* Int64\(96\) THEN Int64\(\-18\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) END AS col1" at position 0 and "Int64\(58\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 1 / CASE + + 26 WHEN - 12 * + 96 THEN + - 18 * + COUNT ( * ) + + 15 END AS col1, 58 * + 6 col1 query I rowsort @@ -1036,7 +1036,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\(\*\) AS col0" at position 1 have the 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 @@ -1854,7 +1854,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\(\*\) \* 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\(\*\)\)\)\) \+ count\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -2529,7 +2529,7 @@ NULL # Datafusion - Expected - 2 # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int32\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int32\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WHEN + 83 THEN NULL ELSE NULL END * 53 AS col2 query I rowsort label-478 @@ -4559,7 +4559,7 @@ SELECT ALL 50 + - 90 + + 84 + - 65 + COUNT ( * ) * + + ( - 32 ) + + 64 * 43 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(19\)\), Int64\(\-53\)\)\) \+ Int64\(47\) \* \(\- count\(\*\)\) \+ Int64\(\-55\) AS col1" at position 0 and "Int64\(7\) \- Int64\(\-32\) \- sum\(Int64\(\-28\)\) \+ 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 "\(\- coalesce\(\(\- Int64\(19\)\), Int64\(\-53\)\)\) \+ Int64\(47\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-55\) AS col1" at position 0 and "Int64\(7\) \- Int64\(\-32\) \- sum\(Int64\(\-28\)\) \+ Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - + 19, - 53 ) + + 47 * - COUNT ( * ) + - 55 AS col1, 7 - + - 32 - SUM ( ALL - 28 ) + - 42 AS col1 query II rowsort label-869 @@ -5600,7 +5600,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\(\*\) 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 @@ -5928,7 +5928,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\(\*\) AS col0" at position 1 have 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 @@ -5954,7 +5954,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\(\*\) 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 @@ -6074,7 +6074,7 @@ SELECT - NULLIF ( + + 84, + 63 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -486 # Datafusion - Expected - -164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(6\) AS col2" at position 0 and "Int64\(72\) / Int64\(\-55\) \- Int64\(91\) \* count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(6\) AS col2" at position 0 and "Int64\(72\) / Int64\(\-55\) \- Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 81 * 6 AS col2, 72 / - 55 - + 91 * + COUNT ( * ) + - 72 AS col2 query I rowsort label-1159 @@ -7424,7 +7424,7 @@ SELECT ALL - 90 + + ( + + 31 ) 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\(32\) \+ Int64\(54\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 DISTINCT + 32 + + + 54 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -7445,7 +7445,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\(\*\) 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 @@ -7967,7 +7967,7 @@ SELECT 0 * COUNT ( * ) * + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -915 # Datafusion - Expected - 7155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(15\) AS col0" at position 0 and "count\(\*\) \+ Int64\(73\) \* \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(15\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) \* \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 61 * + 15 AS col0, COUNT ( * ) + 73 * - - 98 AS col0 query I rowsort @@ -9230,7 +9230,7 @@ SELECT + 0 + - COALESCE ( - 33, 49, + - 88 ) # 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 "nullif\(\(\- count\(\*\)\), Int64\(\-18\) / Int64\(62\)\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-18\) / Int64\(62\)\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + - COUNT ( * ), - 18 / 62 ) AS col1, 20 AS col1 query I rowsort label-1764 @@ -13076,7 +13076,7 @@ SELECT 16 + 27 - - + 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(58\) AS col1" at position 0 and "count\(\*\) \* \(\- \(\- \(\- coalesce\(Int64\(79\), \(\- \(\- nullif\(\(\- count\(\*\)\), Int64\(\-54\)\)\)\), Int64\(57\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- \(\- coalesce\(Int64\(79\), \(\- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-54\)\)\)\), Int64\(57\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 + + 58 AS col1, COUNT ( * ) * - ( - - COALESCE ( + 79, - - NULLIF ( - + COUNT ( * ), - 54 ), 57 ) ) col1 query I rowsort @@ -14005,7 +14005,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -426 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(57\)\) \+ \(\- count\(\*\)\) \+ Int64\(8\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(61\) \* Int64\(79\) \+ CASE Int64\(36\) WHEN Int64\(1\) THEN NULL WHEN Int64\(97\) THEN \(\- Int64\(\-26\)\) 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\(57\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(8\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(61\) \* Int64\(79\) \+ CASE Int64\(36\) WHEN Int64\(1\) THEN NULL WHEN Int64\(97\) THEN \(\- Int64\(\-26\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 57 + - COUNT ( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1 query I rowsort label-2679 @@ -14193,7 +14193,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "sum\(CAST\(NULL AS Float64\)\) / Int64\(92\) \* count\(\*\) \* Int64\(54\) \+ avg\(Int64\(\-75\)\) \* 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\(49\) AS col0" at position 0 and "sum\(CAST\(NULL AS Float64\)\) / Int64\(92\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\) \+ avg\(Int64\(\-75\)\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 49 AS col0, SUM ( CAST ( NULL AS FLOAT8 ) ) / 92 * + + COUNT ( * ) * 54 + + AVG ( - 75 ) * - 51 AS col0 query I rowsort label-2715 @@ -14214,7 +14214,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\(\*\)\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(13\) \+ \(\- 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\(\-42\) \* Int64\(13\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - 42 * + 13 + + - CAST ( NULL AS FLOAT8 ) AS col2 query I rowsort @@ -16681,7 +16681,7 @@ SELECT - 2 + + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "CASE Int64\(41\) WHEN Int64\(\-79\) \+ Int64\(36\) \* Int64\(27\) THEN Int64\(70\) \* Int64\(55\) WHEN Int64\(83\) THEN avg\(Int64\(\-62\)\) WHEN count\(\*\) THEN Int64\(57\) \* Int64\(46\) WHEN Int64\(53\) THEN NULL ELSE Int64\(10\) \* count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "CASE Int64\(41\) WHEN Int64\(\-79\) \+ Int64\(36\) \* Int64\(27\) THEN Int64\(70\) \* Int64\(55\) WHEN Int64\(83\) THEN avg\(Int64\(\-62\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(57\) \* Int64\(46\) WHEN Int64\(53\) THEN NULL ELSE Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 51 AS col1, CASE + 41 WHEN - 79 + + 36 * 27 THEN 70 * + 55 WHEN 83 THEN AVG ( - 62 ) WHEN COUNT ( * ) THEN + 57 * 46 WHEN 53 THEN NULL ELSE 10 * COUNT ( * ) END AS col1 query I rowsort @@ -16830,7 +16830,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\(\*\) AS col2" at position 0 and "\(\- 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 @@ -16921,7 +16921,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\(\*\) 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 @@ -17515,7 +17515,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\(\*\)\) 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 DISTINCT + ( - COUNT ( * ) ) AS col1, - 78 AS col1 query I rowsort label-3355 @@ -18251,7 +18251,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\(\*\) 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\(\-94\)\) WHEN Int64\(19\) THEN nullif\(Int64\(62\), \(\- count\(\*\)\)\) END\), Int64\(\-77\) \+ Int64\(\-71\) \* Int64\(51\)\)\) \* \(\- 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 @@ -18415,7 +18415,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\(\*\) 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\(\*\)\) 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 @@ -19470,7 +19470,7 @@ SELECT DISTINCT - 65 + 23 + - - 91 - - - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 133 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- \(\- Int64\(23\)\) \+ Int64\(18\) AS col0" at position 0 and "count\(\*\) \- Int64\(59\) / Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- \(\- Int64\(23\)\) \+ Int64\(18\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(59\) / Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 - - + 23 + + 18 AS col0, COUNT ( * ) - 59 / + + 64 col0 query I rowsort label-3730 @@ -19526,7 +19526,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\(\*\) AS col2" at position 0 and "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 @@ -21589,7 +21589,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\(\*\) AS col2" at position 1 have 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 @@ -22688,7 +22688,7 @@ SELECT CAST ( 89 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(43\) \+ Int64\(43\) AS col2" at position 0 and "Int64\(\-9\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\) \+ Int64\(43\) 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 ALL + - 58 + + 43 + + 43 AS col2, - 9 + - COUNT ( * ) AS col2 query I rowsort label-4350 @@ -22785,7 +22785,7 @@ SELECT COUNT ( * ) - - 65 AS col0 # Datafusion - Expected - 3 # Datafusion - Expected - 65 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-3\), \(\- max\(\(\- Int64\(\-72\)\)\)\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "\(\- Int64\(51\)\) 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\(\-3\), \(\- max\(\(\- Int64\(\-72\)\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- Int64\(51\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( + - 3, - MAX ( ALL - - 72 ) ) * + ( - COUNT ( * ) ) col2, 65, - + 51 col2 query I rowsort @@ -23061,7 +23061,7 @@ SELECT + 32 - - + 90 AS col2, 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -7819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(84\) \* Int64\(\-93\) \+ Int64\(\-6\) \+ count\(Int64\(\-92\)\) / Int64\(\-11\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\) \* Int64\(\-93\) \+ Int64\(\-6\) \+ count\(Int64\(\-92\)\) / Int64\(\-11\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + - COUNT ( * ) ) col1, 84 * - 93 + - 6 + COUNT ( - 92 ) / - 11 + + - COUNT ( * ) AS col1 query I rowsort label-4421 @@ -23955,7 +23955,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\(\*\) AS col2" at position 1 have the 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 @@ -24095,7 +24095,7 @@ SELECT 64 - - 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6521 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ \(\- count\(\*\)\) \* Int64\(88\) \* Int64\(74\) AS col1" at position 0 and "Int64\(\-59\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\*\)\) \* Int64\(88\) \* Int64\(74\) 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 - 9 + - + COUNT ( * ) * + 88 * + 74 AS col1, ( - 59 ) + - COUNT ( * ) AS col1 query I rowsort @@ -26629,7 +26629,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\(20\) / count\(\*\) AS col0" at position 1 have the 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: @@ -26656,7 +26656,7 @@ SELECT + NULLIF ( - + 63, 30 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1406 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-22\) \* Int64\(68\) \- Int64\(\-72\) \+ \(\- 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\(\-22\) \* Int64\(68\) \- Int64\(\-72\) \+ \(\- Int64\(\-18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col0, - 22 * 68 - - 72 + - - 18 AS col0 query I rowsort @@ -27391,7 +27391,7 @@ SELECT + 36 * - + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 224142 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- Int64\(\-50\)\) \* count\(\*\) \* \(\- Int64\(\-83\)\) \* Int64\(54\) 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\(42\) \+ \(\- Int64\(\-50\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-83\)\) \* Int64\(54\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 + - - 50 * + COUNT ( * ) * - - 83 * + 54 AS col0, 4 AS col0 query I rowsort @@ -29371,7 +29371,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 1344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(21\) \* count\(\*\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 AS col1, 21 * + + COUNT ( * ) * 64 col1 query I rowsort @@ -29598,7 +29598,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\(\*\) AS col2" at position 1 have the 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 @@ -30932,7 +30932,7 @@ SELECT ( + ( 37 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147680 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(30\) \+ \(\- Int64\(\-79\)\) \* Int64\(\-21\) \* Int64\(89\) 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\(\*\) \- Int64\(30\) \+ \(\- Int64\(\-79\)\) \* Int64\(\-21\) \* Int64\(89\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - 30 + - - 79 * - 21 * + 89 AS col2, 86 col2 query I rowsort @@ -32008,7 +32008,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\(\*\) AS col2" at position 1 have the 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 @@ -35935,7 +35935,7 @@ SELECT 7 / - 17 * 42 # 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 "Int64\(1\) \+ \(\- 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\(1\) \+ \(\- 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 1 + - COUNT ( * ) AS col1, 72 AS col1 query I rowsort label-6895 @@ -36237,7 +36237,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\(\*\) 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 @@ -38283,7 +38283,7 @@ SELECT - + 99 - 0 + 15 * - - 75 * + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1051 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* Int64\(21\) \+ \(\- 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 "Int64\(\-50\) \* Int64\(21\) \+ \(\- 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 - 50 * + + 21 + - COUNT ( * ) AS col2, 5 col2 query I rowsort @@ -39712,7 +39712,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\(\*\) AS col2" at position 1 have the 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 @@ -40125,7 +40125,7 @@ SELECT DISTINCT + 78 + 52 + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71760 # Datafusion - Expected - 408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* \(\- Int64\(\-26\)\) \* Int64\(40\) AS col1" at position 0 and "count\(\*\) \* \(\- Int64\(72\)\) \+ Int64\(20\) \* 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\(69\) \* \(\- Int64\(\-26\)\) \* Int64\(40\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(72\)\) \+ Int64\(20\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 69 * - - 26 * + 40 AS col1, COUNT ( * ) * - + 72 + + 20 * + 24 AS col1 query I rowsort @@ -40599,7 +40599,7 @@ SELECT ALL + 83 - + 1 / + + 72 - - - 36 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8706 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / + 30 + + 48 + - - 30 + - + 90 * NULLIF ( + 86, 81 ) + + + 9 + + 27 * - NULLIF ( 39, + CAST ( + + 89 AS FLOAT8 ) ) AS col0, + CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -41500,7 +41500,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(79\) \+ coalesce\(Int64\(71\), \(\- count\(\*\)\) \- Int64\(\-46\)\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(79\) \+ coalesce\(Int64\(71\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-46\)\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 AS col2, 79 + + COALESCE ( + 71, + ( - + COUNT ( * ) ) - - 46 ) + 51 AS col2 query I rowsort @@ -42645,7 +42645,7 @@ NULL # 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 "CASE count\(\*\) WHEN Int64\(50\) THEN Int64\(\-32\) ELSE \(\- \(\- count\(\*\)\)\) END 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 "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(50\) THEN Int64\(\-32\) ELSE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END 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 CASE COUNT ( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT ( * ) END AS col2, + 25 col2 query I rowsort @@ -42732,7 +42732,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\(\*\) AS col2" at position 1 have the 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 @@ -42982,7 +42982,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\(\*\) AS col2" at position 1 have the 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 @@ -43919,7 +43919,7 @@ SELECT - 12 / 47 * + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -109620 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* \(\- Int64\(\-84\)\) \* Int64\(15\) AS col1" at position 0 and "Int64\(24\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-84\)\) \* Int64\(15\) 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 - 87 * - ( + - 84 ) * + + 15 AS col1, + 24 * - + COUNT ( * ) AS col1 query I rowsort label-8420 @@ -45577,7 +45577,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\(\*\) 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 @@ -46376,7 +46376,7 @@ SELECT - SUM ( DISTINCT + 54 ) col0, + 73 AS col1 # 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\(\*\)\) AS col2" at position 1 have the 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 I rowsort label-8893 @@ -48163,7 +48163,7 @@ SELECT ALL 79 * 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) query I rowsort @@ -48190,7 +48190,7 @@ SELECT + 39 + + + 21 + + 9 * - 90 - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int32\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 AS col2, + 46 / + CAST ( - ( + 43 ) AS INTEGER ) + - COUNT ( * ) AS col2 query I rowsort @@ -49376,7 +49376,7 @@ SELECT ALL 2 + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(\*\)\), count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-65\) \* 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 "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-65\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) AS col0, - 65 * + 52 col0 query II rowsort label-9470 @@ -49902,7 +49902,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\(\*\) AS col2" at position 1 have 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 @@ -50290,7 +50290,7 @@ SELECT - 31 * + + 59 * 40 + + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 267491 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-70\)\) \* max\(Int64\(\-86\)\) \* CASE Int64\(\-59\) WHEN count\(\*\) THEN NULL ELSE Int64\(42\) END \+ Int64\(49\) \* Int64\(\-13\) \* \(\- Int64\(23\)\) 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 "max\(Int64\(\-70\)\) \* max\(Int64\(\-86\)\) \* CASE Int64\(\-59\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(42\) END \+ Int64\(49\) \* Int64\(\-13\) \* \(\- Int64\(23\)\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - 70 ) * + MAX ( + - 86 ) * + CASE - 59 WHEN COUNT ( * ) THEN NULL ELSE + 42 END + + 49 * - 13 * - + 23 AS col1, + 96 AS col1 query I rowsort @@ -51019,7 +51019,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\(\*\) 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 4a604e9..eb5f7be 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\(\*\) 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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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\(\*\) AS col1" at position 1 have the 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\(\*\) 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 @@ -4399,7 +4399,7 @@ SELECT ALL - CAST ( - 13 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, - 16 AS col1 query I rowsort @@ -8768,7 +8768,7 @@ SELECT DISTINCT COUNT ( * ), - 8 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) query I rowsort @@ -10476,7 +10476,7 @@ SELECT - 54 / + ( - COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(62\) AS col0" at position 0 and "sum\(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\(\*\) \* Int64\(62\) AS col0" at position 0 and "sum\(Int64\(\-35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 62 AS col0, + ( SUM ( + - 35 ) ) col0 query I rowsort @@ -11372,7 +11372,7 @@ SELECT ALL + COUNT ( DISTINCT - 76 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ), COUNT ( * ) query I rowsort @@ -11408,7 +11408,7 @@ SELECT ALL + COUNT ( * ) / ( 40 ) # 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\(\*\)\) AS col1" at position 0 and "Int64\(\-29\) \+ \(\- 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\(\-29\) \+ \(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col1, - 29 + - + ( ( 45 ) ) AS col1 query I rowsort @@ -13121,7 +13121,7 @@ SELECT DISTINCT COUNT ( * ) * + 93 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) 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 CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -15521,7 +15521,7 @@ SELECT ALL + 20 + - 34 AS col1, + CAST ( - 85 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(98\) \- Int64\(91\) \+ 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 "Int64\(60\) AS col2" at position 0 and "Int64\(98\) \- Int64\(91\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 col2, 98 - + 91 + COUNT ( * ) + 36 AS col2 query II rowsort @@ -20254,7 +20254,7 @@ SELECT ALL - 5 * - 74 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) query I rowsort label-3974 @@ -22682,7 +22682,7 @@ SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( DISTINCT 63 ) # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) query I rowsort @@ -22924,7 +22924,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\(\*\) 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 @@ -23457,7 +23457,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\(\*\) 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 @@ -24848,7 +24848,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -28442,7 +28442,7 @@ SELECT ALL - MIN ( - - 48 ) AS col0 # Datafusion - Expected - -57 # Datafusion - Expected - 1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "Int64\(93\) \* \(\- \(\- 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\(\-57\) AS col1" at position 0 and "Int64\(93\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 57 AS col1, + COUNT ( * ), 93 * - - COUNT ( * ) AS col1 query I rowsort @@ -29320,7 +29320,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\(\*\) AS col0" at position 1 have the 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 @@ -29765,7 +29765,7 @@ SELECT COUNT ( * ) * - 9 AS col0 # 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 "count\(\*\) \+ Int64\(\-6\) 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\(\*\) \+ Int64\(\-6\) 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 ( * ) + - 6 AS col1, 22 AS col1 query I rowsort @@ -30591,7 +30591,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\(\*\) 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 @@ -33647,7 +33647,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\(\*\) AS col0" at position 1 have the 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 @@ -34560,7 +34560,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\(\*\) 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 @@ -38847,7 +38847,7 @@ SELECT ALL - 11 * - 78 AS col1 # 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\(\*\)\) \* \(\- sum\(Int64\(3\)\)\) 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\(\*\)\) \* \(\- sum\(Int64\(3\)\)\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2 query I rowsort label-7612 @@ -41229,7 +41229,7 @@ SELECT COUNT ( * ) * - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(48\), 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 "coalesce\(Int64\(48\), 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 DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0 query I rowsort @@ -42035,7 +42035,7 @@ SELECT 88 AS col1, - 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(98\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 "Int64\(98\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0 query I rowsort @@ -43273,7 +43273,7 @@ SELECT DISTINCT + 11 * + + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) query II rowsort label-8476 @@ -43994,7 +43994,7 @@ SELECT DISTINCT 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -445 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-89\) \* \(\- 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\(86\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-89\) \* \(\- Int64\(\-5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 86 * + - COUNT ( * ) AS col1, - 89 * - - 5 AS col1 query I rowsort @@ -45655,7 +45655,7 @@ SELECT CAST ( - + 82 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0 query I rowsort @@ -46369,7 +46369,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\(\*\) 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 @@ -46675,7 +46675,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\(\*\) 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 @@ -47141,7 +47141,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -47717,7 +47717,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\(\*\) 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 @@ -48080,7 +48080,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\(\*\) 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 @@ -49217,7 +49217,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\(\*\) 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 47ff6ff..b205956 100644 --- a/data/sqlite/random/expr/slt_good_10.slt +++ b/data/sqlite/random/expr/slt_good_10.slt @@ -649,7 +649,7 @@ SELECT DISTINCT 66 + 4 + ( + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / \(\- min\(Int64\(13\)\)\) AS col0" at position 0 and "Int64\(86\) \- \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\) / \(\- min\(Int64\(13\)\)\) AS col0" at position 0 and "Int64\(86\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 82 / - MIN ( 13 ) AS col0, 86 - - - COUNT ( * ) AS col0 query I rowsort @@ -1712,7 +1712,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\(\*\) 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 @@ -1905,7 +1905,7 @@ SELECT + 63, - 13 + + 5 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -702 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(\-32\) \+ \(\- count\(\*\)\) \- Int64\(3\) \* \(\- count\(DISTINCT Int64\(\-22\)\)\) 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\(22\) \* Int64\(\-32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(3\) \* \(\- count\(DISTINCT Int64\(\-22\)\)\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 22 * + - 32 + - COUNT ( * ) - 3 * - COUNT ( DISTINCT - 22 ) AS col0, 27 AS col0 query I rowsort @@ -2734,7 +2734,7 @@ SELECT DISTINCT SUM ( 31 ) * 95 AS col0, - COUNT ( * ) + + - 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5460 # Datafusion - Expected - -1058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(70\) AS col1" at position 0 and "\(\- count\(\*\)\) \* Int64\(46\) \* \(\- nullif\(\(\- Int64\(23\)\), \(\- 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\(78\) \* Int64\(70\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) \* \(\- nullif\(\(\- Int64\(23\)\), \(\- Int64\(27\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 78 * + + 70 AS col1, - COUNT ( * ) * + 46 * + - NULLIF ( - + 23, - ( 27 ) ) AS col1 query II rowsort label-510 @@ -3800,7 +3800,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\(\*\) 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 @@ -3889,7 +3889,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 738 # Datafusion - Expected - -2633 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* count\(\*\) \* Int64\(9\) AS col1" at position 0 and "Int64\(65\) \+ Int64\(\-42\) \* Int64\(66\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(9\) AS col1" at position 0 and "Int64\(65\) \+ Int64\(\-42\) \* Int64\(66\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 * + COUNT ( * ) * + 9 AS col1, 65 + ( - 42 ) * + 66 + + + 74 AS col1 query I rowsort label-730 @@ -4007,7 +4007,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\(\*\) 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 @@ -5236,7 +5236,7 @@ SELECT ALL 68 col0, - 72 + + 74 + 30 * + ( SUM ( ALL + 7 ) ) * ( - 52 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1833 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(27\) \* min\(Int64\(30\)\) \+ coalesce\(Int64\(31\), count\(\*\), Int64\(11\) \+ Int64\(54\)\) \* 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\(20\) AS col2" at position 0 and "Int64\(27\) \* min\(Int64\(30\)\) \+ coalesce\(Int64\(31\), count\(Int64\(1\)\) AS count\(\*\), Int64\(11\) \+ Int64\(54\)\) \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 20 AS col2, 27 * + MIN ( 30 ) + ( COALESCE ( 31, + COUNT ( * ), 11 + 54 ) ) * 33 AS col2 query I rowsort label-990 @@ -5843,7 +5843,7 @@ SELECT - + 61 AS col1, + 40 # 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\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(83\) \+ 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\(\-66\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(83\) \+ Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 66 * - - COUNT ( * ) AS col0, 83 + - 82 AS col0 query I rowsort @@ -6779,7 +6779,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\(\*\) 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 @@ -6801,7 +6801,7 @@ SELECT DISTINCT COALESCE ( - - COALESCE ( 49, + COUNT ( * ) / - + 43 * 0, 67 / + # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(97\) AS col0" at position 0 and "coalesce\(count\(\*\), Int64\(8\) \* Int64\(41\) \* Int64\(6\) \+ Int64\(24\) / Int64\(32\) \* \(\- CAST\(Int64\(\-91\) AS Int32\)\) \* Int64\(97\) \* nullif\(Int64\(25\), Int64\(\-41\) \* Int64\(76\)\) \- Int64\(\-83\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(97\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(8\) \* Int64\(41\) \* Int64\(6\) \+ Int64\(24\) / Int64\(32\) \* \(\- CAST\(Int64\(\-91\) AS Int32\)\) \* Int64\(97\) \* nullif\(Int64\(25\), Int64\(\-41\) \* Int64\(76\)\) \- Int64\(\-83\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - + + 97 AS col0, + COALESCE ( COUNT ( * ), + 8 * 41 * + 6 + 24 / + 32 * - CAST ( + - 91 AS INTEGER ) * + 97 * NULLIF ( + 25, - 41 * 76 ) - - 83 ) * CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -7433,7 +7433,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\(\*\) AS col0" at position 1 have the 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 @@ -8397,7 +8397,7 @@ SELECT ALL ( 54 ) + COUNT ( * ) + - COUNT ( * ) + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6080 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(76\) \* Int64\(80\) AS col2" at position 0 and "count\(\*\) \* \(\- 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\(\*\) \* Int64\(76\) \* Int64\(80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * + 76 * + 80 AS col2, COUNT ( * ) * - - 56 AS col2 query I rowsort label-1592 @@ -9104,7 +9104,7 @@ SELECT ALL + 13 * - NULLIF ( 70, - 44 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(42\)\) AS col1" at position 0 and "\(\- coalesce\(nullif\(Int64\(\-49\), Int64\(83\) \* Int64\(99\) \* Int64\(32\) \+ \(\- Int64\(42\)\) \+ Int64\(26\) \* Int64\(77\) \* \(\- Int64\(\-8\)\) \+ \(\- count\(\*\)\)\), Int64\(17\) \- Int64\(\-62\), nullif\(\(\- Int64\(19\)\), Int64\(88\)\) \* count\(DISTINCT 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 "sum\(Int64\(42\)\) AS col1" at position 0 and "\(\- coalesce\(nullif\(Int64\(\-49\), Int64\(83\) \* Int64\(99\) \* Int64\(32\) \+ \(\- Int64\(42\)\) \+ Int64\(26\) \* Int64\(77\) \* \(\- Int64\(\-8\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(17\) \- Int64\(\-62\), nullif\(\(\- Int64\(19\)\), Int64\(88\)\) \* count\(DISTINCT Int64\(\-20\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( 42 ) AS col1, - COALESCE ( + NULLIF ( - 49, 83 * 99 * 32 + - + 42 + + 26 * ( + 77 ) * - - 8 + - COUNT ( * ) ), 17 - - 62, + NULLIF ( - + 19, + ( 88 ) ) * + COUNT ( DISTINCT - 20 ) ) AS col1 query I rowsort label-1727 @@ -9804,7 +9804,7 @@ SELECT - 95 + 7 * NULLIF ( - CAST ( + 83 AS INTEGER ), - CAST ( NULL AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 2024 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-7\) \+ Int64\(\-29\) \* Int64\(\-72\) \+ Int64\(\-71\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) \+ Int64\(\-29\) \* Int64\(\-72\) \+ Int64\(\-71\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) * + - 7 + - 29 * - 72 + + - 71 AS col2, 66 col2 query II rowsort @@ -10325,7 +10325,7 @@ SELECT ALL + MAX ( DISTINCT - 56 ) # 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\(75\) \* count\(\*\) \* \(\- avg\(DISTINCT Int64\(29\)\)\) \* Int64\(37\) \* \(\- CAST\(NULL AS Float64\)\) / Int64\(19\) \* Int64\(21\) \+ max\(\(\- Int64\(\-25\)\)\) \+ \(\- Int64\(38\)\) \+ \(\- Int64\(32\)\) \* Int64\(28\) \* Int64\(13\) AS col2" at position 0 and "Int64\(\-81\) \+ \(\- 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\(75\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- avg\(DISTINCT Int64\(29\)\)\) \* Int64\(37\) \* \(\- CAST\(NULL AS Float64\)\) / Int64\(19\) \* Int64\(21\) \+ max\(\(\- Int64\(\-25\)\)\) \+ \(\- Int64\(38\)\) \+ \(\- Int64\(32\)\) \* Int64\(28\) \* Int64\(13\) AS col2" at position 0 and "Int64\(\-81\) \+ \(\- Int64\(\-40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 75 * + COUNT ( * ) * - AVG ( DISTINCT + 29 ) * ( + 37 ) * - + CAST ( NULL AS FLOAT8 ) / + 19 * + 21 + + + MAX ( - - 25 ) + - + 38 + - ( + + 32 ) * + 28 * + 13 AS col2, - 81 + - - 40 AS col2 query I rowsort label-1958 @@ -10879,7 +10879,7 @@ SELECT - 83 + + 53 * - ( + 80 ) * + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(10\) AS Int32\)\) \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(56\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(10\) AS Int32\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(56\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 10 AS INTEGER ) + - - COUNT ( * ) + 56 AS col1, 64 AS col1 query I rowsort @@ -11029,7 +11029,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\(\*\)\), min\(Int64\(\-71\)\)\) \* Int64\(69\) \+ Int64\(66\) \* Int64\(92\) END \- Int64\(69\) \- 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 @@ -11458,7 +11458,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\(\*\) AS col1" at position 1 have the 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 @@ -11823,7 +11823,7 @@ SELECT DISTINCT + ( - - 43 ) + + 98 col0 # Datafusion - Expected - -1 # Datafusion - Expected - -1 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(98\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same 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 col0" at 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 ( ALL + 98 ) AS col0, - COUNT ( * ) AS col0, + ( - + ( - ( - 18 ) ) ) query I rowsort label-2245 @@ -11901,7 +11901,7 @@ SELECT - ( 5 ) + - 63 + - + 64 * 56 * 73 - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* sum\(Int64\(1\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-52\) AS col0" at position 0 and "Int64\(97\) \- \(\- nullif\(Int64\(\-4\), Int64\(94\) \+ coalesce\(nullif\(Int64\(\-94\), Int64\(16\)\), nullif\(Int64\(63\), Int64\(66\) \+ count\(\*\)\) \+ \(\- Int64\(96\)\) \+ Int64\(\-45\)\) / Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* sum\(Int64\(1\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-52\) AS col0" at position 0 and "Int64\(97\) \- \(\- nullif\(Int64\(\-4\), Int64\(94\) \+ coalesce\(nullif\(Int64\(\-94\), Int64\(16\)\), nullif\(Int64\(63\), Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(96\)\) \+ Int64\(\-45\)\) / Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 28 * + SUM ( + 1 ) * - CAST ( NULL AS INTEGER ) + - 52 col0, + 97 - - NULLIF ( - 4, + 94 + COALESCE ( + NULLIF ( - 94, + 16 ), + NULLIF ( + 63, 66 + + COUNT ( * ) ) + - + 96 + + - 45 ) / 38 ) AS col0 query II rowsort label-2260 @@ -14785,7 +14785,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\(\*\) AS col0" at position 0 and "Int64\(\-28\) \+ Int64\(36\) \+ \(\- coalesce\(\(\- nullif\(Int64\(\-79\), Int64\(80\)\)\), Int64\(78\) \* \(\- 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 @@ -17072,7 +17072,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\(\*\) 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 @@ -17211,7 +17211,7 @@ SELECT ALL - + 56 * COUNT ( * ) * - 44 * + 18 * + + COUNT ( * ) # 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 "nullif\(count\(\*\), \(\- Int64\(\-29\)\)\) / Int64\(\-33\) \+ Int64\(\-57\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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\(\-29\)\)\) / Int64\(\-33\) \+ 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 NULLIF ( + + COUNT ( * ), - - 29 ) / - 33 + + - 57 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -17441,7 +17441,7 @@ SELECT DISTINCT 4 col2, - ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(\*\)\)\), CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 55 AS col2, + COALESCE ( - - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -18695,7 +18695,7 @@ SELECT COALESCE ( + - ( - + 93 ), + 71 ) * + + 17 + + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-98\) 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\(\*\)\) \+ Int64\(\-98\) 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 ( * ) + - 98 AS col2, 42 AS col2 query II rowsort label-3554 @@ -23663,7 +23663,7 @@ SELECT 76 / 43 # 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\(0\) \+ \(\- Int64\(85\)\) AS col1" at position 0 and "nullif\(count\(\*\), \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(85\)\) AS col1" at position 0 and "nullif\(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 + 0 + - + 85 AS col1, + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: @@ -25020,7 +25020,7 @@ SELECT ( + 23 ) * - 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ \(\- Int64\(\-74\)\) / Int64\(\-81\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-3\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ \(\- Int64\(\-74\)\) / Int64\(\-81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-3\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 56 + - - 74 / - 81 col0, COUNT ( * ) + - 3 * + + 48 AS col0 # Datafusion - Datafusion expected results: @@ -25285,7 +25285,7 @@ SELECT + NULLIF ( - COUNT ( * ), 72 / + - 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-26\)\) 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\(\*\) \* \(\- Int64\(\-26\)\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - - 26 AS col0, 47 AS col0 query I rowsort label-4814 @@ -25643,7 +25643,7 @@ SELECT ALL - COUNT ( * ) + - + 86 + - 44 * - + 41, 40 + 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5248 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- Int64\(56\)\) \+ \(\- Int64\(\-72\)\) AS col0" at position 0 and "Int64\(\-14\) \+ count\(\*\) \+ Int64\(8\) \- Int64\(18\) \* Int64\(0\) / \(\- Int64\(\-1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- Int64\(56\)\) \+ \(\- Int64\(\-72\)\) AS col0" at position 0 and "Int64\(\-14\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) \- Int64\(18\) \* Int64\(0\) / \(\- Int64\(\-1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 * - + 56 + - ( - 72 ) AS col0, - 14 + + COUNT ( * ) + 8 - + 18 * - 0 / - - 1 AS col0 # Datafusion - Types were automatically converted from: @@ -27177,7 +27177,7 @@ SELECT 66 * + 50 + - - CAST ( NULLIF ( ( + + 86 ), COALESCE ( - 90, - - 81 * NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 665 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \- coalesce\(Int64\(\-60\), Int64\(76\) \* \(\- Int64\(1\)\) \+ count\(Int64\(\-67\)\) \+ Int64\(35\) \+ Int64\(61\) \* Int64\(52\) / \(\- Int64\(\-29\)\) \* CAST\(NULL AS Int32\) / Int64\(26\) \- \(\- count\(\*\)\), Int64\(\-1\)\) \* Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \- coalesce\(Int64\(\-60\), Int64\(76\) \* \(\- Int64\(1\)\) \+ count\(Int64\(\-67\)\) \+ Int64\(35\) \+ Int64\(61\) \* Int64\(52\) / \(\- Int64\(\-29\)\) \* CAST\(NULL AS Int32\) / Int64\(26\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-1\)\) \* Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 5 - COALESCE ( ( + - 60 ), + 76 * - + 1 + COUNT ( + - 67 ) + 35 + + 61 * + + 52 / - - 29 * ( + CAST ( NULL AS INTEGER ) ) / 26 - - COUNT ( * ), - 1 ) * 11 AS col2, CAST ( NULL AS INTEGER ) * 36 col2 query I rowsort label-5171 @@ -27715,7 +27715,7 @@ SELECT DISTINCT - ( 25 ) - 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6319 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* count\(\*\) \* \(\- max\(\(\- nullif\(Int64\(89\), Int64\(4\) \+ Int64\(\-97\)\)\)\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(\(\- nullif\(Int64\(89\), Int64\(4\) \+ Int64\(\-97\)\)\)\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 71 * + COUNT ( * ) * - MAX ( - NULLIF ( 89, + 4 + - 97 ) ) AS col1, + 0 AS col1 query I rowsort @@ -28473,7 +28473,7 @@ SELECT ALL - MAX ( DISTINCT + 74 ) * + + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 288 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- Int64\(\-9\)\) AS col0" at position 0 and "Int64\(\-9\) \* Int64\(65\) \- Int64\(10\) / \(\- Int64\(87\)\) \+ \(\- count\(\*\)\) \+ Int64\(95\) \* Int64\(18\) \* Int64\(0\) \+ Int64\(71\) \+ \(\- CASE \(\- Int64\(17\)\) WHEN Int64\(\-4\) \- Int64\(74\) \+ Int64\(87\) \* Int64\(28\) THEN \(\- Int64\(\-20\)\) \* \(\- sum\(Int64\(10\)\)\) WHEN CASE \(\- Int64\(\-40\)\) WHEN count\(\*\) THEN Int64\(86\) END THEN Int64\(69\) \+ Int64\(\-18\) / count\(\*\) END\) \* \(\- count\(\*\)\) \+ sum\(Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- Int64\(\-9\)\) AS col0" at position 0 and "Int64\(\-9\) \* Int64\(65\) \- Int64\(10\) / \(\- Int64\(87\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(95\) \* Int64\(18\) \* Int64\(0\) \+ Int64\(71\) \+ \(\- CASE \(\- Int64\(17\)\) WHEN Int64\(\-4\) \- Int64\(74\) \+ Int64\(87\) \* Int64\(28\) THEN \(\- Int64\(\-20\)\) \* \(\- sum\(Int64\(10\)\)\) WHEN CASE \(\- Int64\(\-40\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(86\) END THEN Int64\(69\) \+ Int64\(\-18\) / count\(Int64\(1\)\) AS count\(\*\) END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 32 * - - 9 AS col0, - 9 * 65 - + 10 / - + 87 + + - COUNT ( * ) + 95 * + 18 * 0 + + 71 + - CASE - + 17 WHEN - 4 - + 74 + 87 * + 28 THEN - - 20 * - SUM ( + 10 ) WHEN + CASE - - 40 WHEN COUNT ( * ) THEN + 86 END THEN 69 + ( - 18 ) / + COUNT ( * ) END * - COUNT ( * ) + ( + ( + + SUM ( - 98 ) ) ) AS col0 query I rowsort @@ -29487,7 +29487,7 @@ SELECT ALL + ( 35 ) col2, 93 * 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(46\) 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\(\*\) \* Int64\(46\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 46 AS col1, 41 AS col1 query I rowsort label-5612 @@ -29508,7 +29508,7 @@ SELECT DISTINCT + 64 * 98 * 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4284 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(68\) \* \(\- Int64\(\-63\)\) AS col2" at position 0 and "count\(\*\) \* 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\(\*\)\) \* Int64\(68\) \* \(\- Int64\(\-63\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) * + 68 * - - 63 AS col2, COUNT ( * ) * + 35 AS col2 query I rowsort @@ -31381,7 +31381,7 @@ SELECT ALL 83 - - + COALESCE ( + + 90, - - 42 ) # 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\(\*\)\) AS col0" at position 0 and "\(\- coalesce\(\(\- \(\- Int64\(15\)\)\), count\(\*\) \* \(\- min\(\(\- Int64\(\-46\)\)\)\) \+ Int64\(\-80\) \* Int64\(\-83\), Int64\(5\)\)\) \+ 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 "\(\- coalesce\(\(\- \(\- Int64\(15\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- Int64\(\-46\)\)\)\) \+ Int64\(\-80\) \* Int64\(\-83\), Int64\(5\)\)\) \+ Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col0, - COALESCE ( - - ( + + 15 ), COUNT ( * ) * - MIN ( - - 46 ) + - 80 * - 83, + 5 ) + 79 col0 query II rowsort @@ -31801,7 +31801,7 @@ SELECT + ( + - 79 ) # Datafusion - Expected - -73 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "nullif\(\(\- CASE Int64\(80\) WHEN Int64\(1\) THEN Int64\(\-79\) WHEN Int64\(52\) THEN Int64\(33\) \* Int64\(45\) ELSE NULL END\), coalesce\(Int64\(28\), coalesce\(Int64\(24\), CAST\(Int64\(85\) AS Int32\), Int64\(66\) \+ Int64\(21\)\) \+ Int64\(52\), \(\- Int64\(\-88\)\) \+ Int64\(46\)\) \* Int64\(3\) \- count\(\*\)\) \* Int64\(34\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "nullif\(\(\- CASE Int64\(80\) WHEN Int64\(1\) THEN Int64\(\-79\) WHEN Int64\(52\) THEN Int64\(33\) \* Int64\(45\) ELSE NULL END\), coalesce\(Int64\(28\), coalesce\(Int64\(24\), CAST\(Int64\(85\) AS Int32\), Int64\(66\) \+ Int64\(21\)\) \+ Int64\(52\), \(\- Int64\(\-88\)\) \+ Int64\(46\)\) \* Int64\(3\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(34\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 73 AS col2, + CAST ( NULL AS INTEGER ) * + 26, + NULLIF ( - CASE + + 80 WHEN 1 THEN - 79 WHEN + 52 THEN + 33 * 45 ELSE NULL END, + COALESCE ( 28, COALESCE ( 24, CAST ( 85 AS INTEGER ), + 66 + 21 ) + 52, - ( - 88 ) + 46 ) * 3 - COUNT ( * ) ) * + 34 col2 query I rowsort label-6058 @@ -32198,7 +32198,7 @@ SELECT DISTINCT - MAX ( ALL + CAST ( + 66 AS INTEGER ) ) * COUNT ( * ) + - 93 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(26\) \+ \(\- \(\- \(\- Int64\(\-1\)\)\)\) \* Int64\(31\) AS col1" at position 0 and "Int64\(44\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(26\) \+ \(\- \(\- \(\- Int64\(\-1\)\)\)\) \* Int64\(31\) AS col1" at position 0 and "Int64\(44\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + + ( 26 ) + - - ( - - 1 ) * 31 AS col1, + 44 + + 31 AS col1 query I rowsort @@ -35773,7 +35773,7 @@ SELECT + 2 + + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8827 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* max\(Int64\(97\)\) AS col0" at position 0 and "Int64\(16\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\) \* max\(Int64\(97\)\) 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 91 * MAX ( + 97 ) AS col0, 16 * + - COUNT ( * ) AS col0 query I rowsort @@ -35836,7 +35836,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\(\*\) AS col1" at position 1 have the same 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 @@ -35923,7 +35923,7 @@ SELECT + + 6 * - 64 + - NULLIF ( COUNT ( * ), + 27 * - 97 ) # Datafusion - Expected - NULL # Datafusion - Expected - -46 # Datafusion - Expected - 6460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE nullif\(Int64\(\-92\), \(\- Int64\(\-61\)\)\) WHEN Int64\(32\) THEN count\(\*\) WHEN Int64\(\-6\) \- Int64\(\-56\) \+ Int64\(61\) THEN NULL END\) / \(\- CAST\(\(\- CAST\(NULL AS Float64\)\) AS Float64\)\) \* \(\- Int64\(\-77\)\) \+ Int64\(\-49\) \+ Int64\(29\) \* Int64\(\-31\) \* Int64\(18\) AS col1" at position 0 and "\(\- \(\- Int64\(\-76\)\)\) \* Int64\(\-85\) 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 nullif\(Int64\(\-92\), \(\- Int64\(\-61\)\)\) WHEN Int64\(32\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-6\) \- Int64\(\-56\) \+ Int64\(61\) THEN NULL END\) / \(\- CAST\(\(\- CAST\(NULL AS Float64\)\) AS Float64\)\) \* \(\- Int64\(\-77\)\) \+ Int64\(\-49\) \+ Int64\(29\) \* Int64\(\-31\) \* Int64\(18\) AS col1" at position 0 and "\(\- \(\- Int64\(\-76\)\)\) \* Int64\(\-85\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CASE + + NULLIF ( - 92, - ( - 61 ) ) WHEN + 32 THEN + COUNT ( * ) WHEN - 6 - + - 56 + 61 THEN NULL END / - CAST ( - + CAST ( NULL AS FLOAT8 ) AS FLOAT8 ) * - - 77 + - 49 + 29 * - 31 * + 18 AS col1, 18 + - COUNT ( * ) - + 97 + - 25 + + COUNT ( * ) + 86 + - - CAST ( 68 AS INTEGER ) + - ( 96 ), - - ( + - 76 ) * + - 85 AS col1 query I rowsort label-6837 @@ -36818,7 +36818,7 @@ SELECT - + 48 + + + 50, + 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 504 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) \* Int64\(\-84\) AS col0" at position 0 and "Int64\(\-23\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-84\) 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 - + 6 * + - 84 AS col0, - 23 * - COUNT ( * ) AS col0 query I rowsort @@ -37860,7 +37860,7 @@ SELECT DISTINCT + 38 col2, ( - + 17 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(32\) \* Int64\(2\) \+ count\(\*\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(32\) \* Int64\(2\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 42 AS col0, 32 * + 2 + + + COUNT ( * ) + 85 AS col0 query I rowsort label-7205 @@ -38562,7 +38562,7 @@ SELECT + + 69 - + 62, 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \+ Int64\(4\) AS col2" at position 0 and "Int64\(22\) \- CASE Int64\(33\) WHEN Int64\(\-49\) \- \(\- Int64\(\-60\)\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(\-97\) THEN NULL ELSE Int64\(0\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \+ Int64\(4\) AS col2" at position 0 and "Int64\(22\) \- CASE Int64\(33\) WHEN Int64\(\-49\) \- \(\- Int64\(\-60\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-97\) THEN NULL ELSE Int64\(0\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 95 + + + 4 AS col2, 22 - CASE + ( 33 ) WHEN - 49 - - - 60 * - - COUNT ( * ) + - 97 THEN NULL ELSE 0 END col2 query I rowsort label-7340 @@ -39598,7 +39598,7 @@ SELECT + COUNT ( * ) AS col2, - COALESCE ( + SUM ( 3 ), - 69 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "Int64\(23\) \+ Int64\(26\) \- Int64\(31\) \+ Int64\(81\) \+ count\(\*\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "Int64\(23\) \+ Int64\(26\) \- Int64\(31\) \+ Int64\(81\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 98 AS col0, + 23 + 26 - + 31 + + + 81 + + COUNT ( * ) * 86 AS col0 query I rowsort @@ -39981,7 +39981,7 @@ SELECT NULLIF ( - 67, + 41 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -971 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-42\), Int64\(\-82\)\) AS col1" at position 0 and "\(\- sum\(Int64\(11\)\)\) \* Int64\(93\) \+ Int64\(15\) \- \(\- \(\- count\(\*\)\)\) \* \(nullif\(\(\- Int64\(35\)\), Int64\(\-98\) \- CAST\(NULL AS Int32\)\) \- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-42\), Int64\(\-82\)\) AS col1" at position 0 and "\(\- sum\(Int64\(11\)\)\) \* Int64\(93\) \+ Int64\(15\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(nullif\(\(\- Int64\(35\)\), Int64\(\-98\) \- CAST\(NULL AS Int32\)\) \- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - 42, - 82 ) AS col1, - SUM ( ALL + 11 ) * + 93 + 15 - - - COUNT ( * ) * ( + NULLIF ( - ( 35 ), - 98 - CAST ( NULL AS INTEGER ) ) - ( 2 ) ) AS col1 query I rowsort label-7613 @@ -40524,7 +40524,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\(\*\) AS col0" at position 1 have the 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 @@ -40822,7 +40822,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\(96\) \* Int64\(47\) AS col0" at position 0 and "count\(\*\) \* Int64\(21\) \* Int64\(\-47\) / count\(\*\) AS col0" at position 1 have the 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 @@ -42242,7 +42242,7 @@ SELECT ALL - + 1 * - 11 * 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / \(\- Int64\(\-80\)\) AS col0" at position 0 and "CAST\(Int64\(55\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(\-80\)\) AS col0" at position 0 and "CAST\(Int64\(55\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / - - 80 AS col0, CAST ( + + 55 AS INTEGER ) col0 query II rowsort @@ -43032,7 +43032,7 @@ SELECT DISTINCT 35 + MIN ( ALL ( - - 69 ) ) AS col0, - 29 + + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* count\(\*\) / \(\- \(\- min\(Int64\(72\)\)\)\) AS col0" at position 0 and "Int64\(20\) \+ 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\(23\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- min\(Int64\(72\)\)\)\) AS col0" at position 0 and "Int64\(20\) \+ Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 23 * COUNT ( * ) / - - MIN ( ALL + 72 ) AS col0, + 20 + 4 AS col0 query I rowsort @@ -43185,7 +43185,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\(\*\) AS col0" at position 1 have the 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 @@ -43619,7 +43619,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\(\*\) 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 @@ -43799,7 +43799,7 @@ SELECT ALL 33, + 88 * ( + - 29 ) + + + 29 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col0" at position 0 and "count\(\*\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 44 AS col0, COUNT ( * ) * + 98 AS col0 query I rowsort @@ -44567,7 +44567,7 @@ SELECT COUNT ( * ) * + 10 / + 35 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98084 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(11\) \+ Int64\(52\) \* min\(\(\- nullif\(Int64\(82\), Int64\(76\) \+ Int64\(60\)\)\)\) \* Int64\(\-23\) 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\(\*\) \+ Int64\(11\) \+ Int64\(52\) \* min\(\(\- nullif\(Int64\(82\), Int64\(76\) \+ Int64\(60\)\)\)\) \* Int64\(\-23\) 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 ( * ) + 11 + 52 * + MIN ( - NULLIF ( + 82, 76 + 60 ) ) * - 23 AS col1, 49 AS col1 query II rowsort @@ -44968,7 +44968,7 @@ SELECT ALL 64 * - + COUNT ( 74 ) * - 14 + 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(\-63\) \* Int64\(3\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(\-63\) \* Int64\(3\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 83 AS col1, - 63 * + 3 + - - COUNT ( * ) col1 query II rowsort label-8564 @@ -45069,7 +45069,7 @@ SELECT DISTINCT - 82 - - ( - - 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72078 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- Int64\(\-8\) \* \(\- Int64\(\-97\)\) \* Int64\(\-93\) AS col1" at position 0 and "\(\- count\(\*\)\) \* \(\- avg\(DISTINCT Int64\(\-31\)\)\) \+ Int64\(31\) \* \(\- \(\- CAST\(\(\- Int64\(\-3\)\) AS Int32\)\)\) \- Int64\(9\) \+ CASE Int64\(29\) WHEN Int64\(11\) \+ Int64\(95\) THEN \(\- Int64\(\-51\)\) ELSE Int64\(\-80\) END \* \(\- CASE Int64\(57\) WHEN Int64\(\-25\) THEN \(\- Int64\(18\)\) \* \(\- Int64\(40\)\) \* \(\- sum\(Int64\(16\)\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- Int64\(\-8\) \* \(\- Int64\(\-97\)\) \* Int64\(\-93\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- avg\(DISTINCT Int64\(\-31\)\)\) \+ Int64\(31\) \* \(\- \(\- CAST\(\(\- Int64\(\-3\)\) AS Int32\)\)\) \- Int64\(9\) \+ CASE Int64\(29\) WHEN Int64\(11\) \+ Int64\(95\) THEN \(\- Int64\(\-51\)\) ELSE Int64\(\-80\) END \* \(\- CASE Int64\(57\) WHEN Int64\(\-25\) THEN \(\- Int64\(18\)\) \* \(\- Int64\(40\)\) \* \(\- sum\(Int64\(16\)\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 - - 8 * - - 97 * + - 93 AS col1, - COUNT ( * ) * - + AVG ( DISTINCT - 31 ) + + 31 * - - CAST ( + + ( - - 3 ) AS INTEGER ) - + 9 + CASE + 29 WHEN + 11 + 95 THEN - - 51 ELSE - 80 END * + - CASE + 57 WHEN - 25 THEN - + 18 * - + 40 * - + SUM ( ALL + 16 ) ELSE NULL END AS col1 query I rowsort label-8583 @@ -46017,7 +46017,7 @@ SELECT ALL 28 + 72 + + 58 * + - 86 + COUNT ( - - 93 ) * + - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5698 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(76\) \* \(\- Int64\(\-74\)\) AS col2" at position 0 and "Int64\(88\) \+ Int64\(30\) \* CASE \(\- Int64\(44\)\) WHEN count\(\*\) THEN NULL WHEN Int64\(12\) THEN \(\- Int64\(76\)\) ELSE \(\- \(\- sum\(CAST\(NULL AS Float64\)\)\)\) 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\(74\) \+ Int64\(76\) \* \(\- Int64\(\-74\)\) AS col2" at position 0 and "Int64\(88\) \+ Int64\(30\) \* CASE \(\- Int64\(44\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(12\) THEN \(\- Int64\(76\)\) ELSE \(\- \(\- sum\(CAST\(NULL AS Float64\)\)\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 + 76 * - - 74 col2, + 88 + 30 * + CASE - + 44 WHEN + ( + COUNT ( * ) ) THEN NULL WHEN + 12 THEN - + 76 ELSE - - SUM ( CAST ( NULL AS FLOAT8 ) ) END AS col2 query I rowsort label-8764 @@ -47854,7 +47854,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -48917,7 +48917,7 @@ SELECT + 12 * + + 40 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1368 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(57\)\) \* Int64\(\-24\) AS col0" at position 0 and "count\(\*\) \+ Int64\(31\) \+ 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\(57\)\) \* Int64\(\-24\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(31\) \+ Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 57 * + - 24 col0, COUNT ( * ) + + 31 + + - 81 AS col0 query II rowsort label-9324 @@ -49254,7 +49254,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\(\*\) AS col2" at position 1 and "coalesce\(Int64\(78\), \(\- Int64\(28\)\), \(\- 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 @@ -49492,7 +49492,7 @@ SELECT - NULLIF ( + 22, COUNT ( ALL 67 ) * + + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 71 -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\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 AS col1, COUNT ( * ) + + + 70 AS col1 query I rowsort @@ -50980,7 +50980,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\(\*\) 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 @@ -51201,7 +51201,7 @@ SELECT 18, 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \- Int64\(69\) AS col2" at position 0 and "Int64\(62\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(69\) AS col2" at position 0 and "Int64\(62\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 - + 69 AS col2, + 62 + - COUNT ( * ) AS col2 query I rowsort @@ -51359,7 +51359,7 @@ SELECT ALL 29 * + 16 AS col1, - 83 col2 # 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 "count\(\*\) \* Int64\(18\) AS col1" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(18\) 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 ALL COUNT ( * ) * + 18 col1, + COUNT ( * ) / ( + 52 ) col1 query I rowsort label-9785 @@ -51979,7 +51979,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\(\*\) 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 d0399c2..9ec56a8 100644 --- a/data/sqlite/random/expr/slt_good_100.slt +++ b/data/sqlite/random/expr/slt_good_100.slt @@ -1025,7 +1025,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\(\*\) \* \(\- coalesce\(\(\- count\(\*\)\), Int64\(\-59\)\)\) \* Int64\(8\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -1109,7 +1109,7 @@ SELECT ALL 28 + 90 + - 18 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-85\) AS Int32\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(\*\) / Int64\(\-36\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-85\) AS Int32\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-36\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - 85 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / - 36 * - 71 AS col2, - 70 query I rowsort label-206 @@ -2427,7 +2427,7 @@ NULL # 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\(\*\)\) AS col1" at position 0 and "\(\- Int64\(21\)\) \- \(\- count\(\*\)\) \* 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\(21\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) col1, - ( + + 21 ) - - COUNT ( * ) * 65 AS col1 query II rowsort @@ -3052,7 +3052,7 @@ SELECT ALL - 66 * - + 85 + + 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3690 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(\-41\) AS col2" at position 0 and "coalesce\(\(\- nullif\(Int64\(83\), Int64\(\-59\)\)\), count\(\*\) \+ 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 "Int64\(90\) \* Int64\(\-41\) AS col2" at position 0 and "coalesce\(\(\- nullif\(Int64\(83\), Int64\(\-59\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 90 * - 41 AS col2, COALESCE ( - NULLIF ( + + 83, - 59 ), COUNT ( * ) + COUNT ( * ) * - 21 ) AS col2 query II rowsort @@ -4057,7 +4057,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\(\*\) 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 @@ -4120,7 +4120,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\(\*\) AS col2" at position 1 have the 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 @@ -4920,7 +4920,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\(\*\) AS col2" at position 1 have the 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 @@ -4931,7 +4931,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\(\*\) AS col1" at position 1 have the 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 @@ -5258,7 +5258,7 @@ SELECT - - ( - 32 ) + ( - + ( - + 74 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(63\) \+ Int64\(\-89\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(87\) \- Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) \+ Int64\(\-89\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(87\) \- Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) + + + 63 + - 89 * + CAST ( NULL AS INTEGER ) col1, + 87 - + 78 AS col1 query I rowsort label-1000 @@ -6039,7 +6039,7 @@ SELECT NULLIF ( 82, + 63 ) + - 77 * - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col0, + 10 + + 9 AS col0 query I rowsort @@ -6610,7 +6610,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\(\*\) AS col2" at position 1 have the 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 @@ -7504,7 +7504,7 @@ SELECT COALESCE ( + 86, - CAST ( NULL AS INTEGER ) ) # Datafusion - Expected - -1299 # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ nullif\(count\(\*\), Int64\(57\)\) \* Int64\(76\) / Int64\(62\) AS col1" at position 1 and "\(\- max\(DISTINCT \(\- Int64\(14\)\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- Int64\(\-45\)\) \+ min\(Int64\(56\)\) \* Int64\(62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(57\)\) \* Int64\(76\) / Int64\(62\) AS col1" at position 1 and "\(\- max\(DISTINCT \(\- Int64\(14\)\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- Int64\(\-45\)\) \+ min\(Int64\(56\)\) \* Int64\(62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 51 * 25 + - 24, + 30 + + + NULLIF ( COUNT ( * ), 57 ) * + 76 / 62 AS col1, - MAX ( DISTINCT - ( + 14 ) ) * - - CAST ( NULL AS INTEGER ) + + - ( - 45 ) + MIN ( ALL 56 ) * 62 AS col1 query II rowsort @@ -8725,7 +8725,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\(\*\)\)\) AS col1" at position 0 and "Int64\(\-96\) / 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\(\-96\) / Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - + ( + COUNT ( * ) ) ) AS col1, - 96 / - 58 AS col1 # Datafusion - Types were automatically converted from: @@ -8894,7 +8894,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4079 # Datafusion - Expected - 272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* Int64\(85\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(97\) \+ sum\(DISTINCT Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* Int64\(85\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(97\) \+ sum\(DISTINCT Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 * 85 + - - COUNT ( * ) AS col0, 79 + 97 + + SUM ( DISTINCT + 96 ) AS col0 query I rowsort @@ -9220,7 +9220,7 @@ SELECT 10 + + - 12 * - + 11 * - 39 * + 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-60\) \+ Int64\(48\) / max\(Int64\(95\)\) \* Int64\(34\) AS col2" at position 0 and "Int64\(\-92\) \+ count\(DISTINCT 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\(\*\) \+ Int64\(\-60\) \+ Int64\(48\) / max\(Int64\(95\)\) \* Int64\(34\) AS col2" at position 0 and "Int64\(\-92\) \+ count\(DISTINCT Int64\(28\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - 60 + + ( 48 ) / MAX ( ALL + 95 ) * 34 AS col2, - 92 + + COUNT ( DISTINCT + 28 ) AS col2 query I rowsort label-1745 @@ -10003,7 +10003,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\(\*\) AS col0" at position 1 have 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 @@ -10262,7 +10262,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col1" at position 0 and "CASE Int64\(21\) WHEN count\(\*\) \+ \(\- sum\(DISTINCT Int64\(33\)\)\) \* nullif\(Int64\(\-77\), Int64\(91\) / Int64\(73\) \* \(\- count\(\*\)\)\) THEN Int64\(77\) ELSE Int64\(\-76\) \- count\(\*\) \+ Int64\(51\) 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\(\-11\) AS col1" at position 0 and "CASE Int64\(21\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- sum\(DISTINCT Int64\(33\)\)\) \* nullif\(Int64\(\-77\), Int64\(91\) / Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(77\) ELSE Int64\(\-76\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 11 AS col1, + CASE + 21 WHEN + COUNT ( * ) + - SUM ( DISTINCT + + 33 ) * + NULLIF ( - 77, + 91 / 73 * - COUNT ( * ) ) THEN 77 ELSE + - 76 - COUNT ( * ) + + 51 END AS col1 query I rowsort label-1944 @@ -11787,7 +11787,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\(\*\) AS col2" at position 1 have the 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 @@ -12010,7 +12010,7 @@ SELECT DISTINCT - 42 * + COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(59\) 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\(\*\) \* Int64\(59\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * + + 59 AS col0, 55 AS col0 query I rowsort @@ -12691,7 +12691,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\(\*\) AS col0" at position 1 have the 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 @@ -13094,7 +13094,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\(\*\) 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 @@ -13428,7 +13428,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "coalesce\(CASE WHEN NOT Int64\(81\) IS NULL THEN Int64\(74\) ELSE Int64\(\-79\) \+ Int64\(28\) \* Int64\(\-99\) \+ \(\- Int64\(\-61\)\) END, avg\(Int64\(15\)\), Int64\(\-29\) \+ count\(\*\) \+ Int64\(13\) \* Int64\(5\)\) / Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "coalesce\(CASE WHEN NOT Int64\(81\) IS NULL THEN Int64\(74\) ELSE Int64\(\-79\) \+ Int64\(28\) \* Int64\(\-99\) \+ \(\- Int64\(\-61\)\) END, avg\(Int64\(15\)\), Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(13\) \* Int64\(5\)\) / Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, COALESCE ( CASE WHEN NOT 81 IS NULL THEN + 74 ELSE - 79 + + 28 * - 99 + - - 61 END, + AVG ( ALL 15 ), - 29 + + COUNT ( * ) + + 13 * + 5 ) / + + 27 AS col2 query I rowsort label-2549 @@ -14031,7 +14031,7 @@ SELECT ALL + 33 * + 43 * + 58 # 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\(\*\)\) AS col0" at position 0 and "count\(\*\) / Int64\(2\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(2\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) col0, COUNT ( * ) / + + 2 * 24 col0 query I rowsort @@ -14444,7 +14444,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\(\*\) 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 @@ -15148,7 +15148,7 @@ SELECT DISTINCT + COALESCE ( - - 99, 6 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(63\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(63\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 18 col1, + 63 * - COUNT ( * ) AS col1 query I rowsort label-2877 @@ -15240,7 +15240,7 @@ SELECT DISTINCT + 3 * 10 + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(38\) AS col2" at position 0 and "Int64\(83\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(38\) 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 + 25 + 38 col2, 83 * - COUNT ( * ) AS col2 query I rowsort @@ -15276,7 +15276,7 @@ SELECT ALL COUNT ( DISTINCT - - 11 ) + - 47 / - - 33 - + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col1" at position 0 and "\(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1, - ( + 45 ) AS col1 query I rowsort @@ -15318,7 +15318,7 @@ SELECT ALL - 44 * + - 95 + + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- coalesce\(min\(Int64\(\-7\)\), \(\- \(\- count\(\*\)\)\) \+ \(\- Int64\(95\)\), Int64\(40\) \* \(\- Int64\(14\)\) \- Int64\(43\) \+ Int64\(\-30\) \+ Int64\(6\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- CASE Int64\(66\) WHEN Int64\(22\) \+ \(\- Int64\(\-47\)\) THEN Int64\(47\) \+ Int64\(81\) ELSE max\(Int64\(36\)\) \* Int64\(92\) END\) \* Int64\(83\) \* count\(\*\) \- Int64\(\-73\) \+ Int64\(\-14\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- coalesce\(min\(Int64\(\-7\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(95\)\), Int64\(40\) \* \(\- Int64\(14\)\) \- Int64\(43\) \+ Int64\(\-30\) \+ Int64\(6\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- CASE Int64\(66\) WHEN Int64\(22\) \+ \(\- Int64\(\-47\)\) THEN Int64\(47\) \+ Int64\(81\) ELSE max\(Int64\(36\)\) \* Int64\(92\) END\) \* Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(\-14\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 * - + COALESCE ( MIN ( - 7 ), - - COUNT ( * ) + - ( 95 ), 40 * ( - + 14 ) - + 43 + - 30 + 6 + + - CAST ( NULL AS INTEGER ) * + - CASE 66 WHEN 22 + - - 47 THEN + + 47 + 81 ELSE + MAX ( 36 ) * + 92 END * + 83 * COUNT ( * ) - + - 73 + - 14 ) AS col1, + 72 AS col1 query I rowsort label-2909 @@ -15573,7 +15573,7 @@ SELECT ALL + 44 + + + NULLIF ( - 24, 35 ) + 27 * + ( + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(96\) / \(\- count\(\*\)\) \+ \(\- count\(DISTINCT Int64\(41\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(96\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(DISTINCT Int64\(41\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 64 AS col2, ( + 96 ) / - COUNT ( * ) + - COUNT ( DISTINCT 41 ) AS col2 query II rowsort @@ -16148,7 +16148,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\(\*\) AS col1" at position 1 have the 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 @@ -16848,7 +16848,7 @@ SELECT ALL + 88 / 69 + + 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -928690 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(5\) \* \(\- sum\(Int64\(38\)\)\) \* Int64\(98\) \+ \(\- Int64\(\-35\)\) \* Int64\(66\) / \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(69\) / Int64\(90\) \* 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\(50\) \* Int64\(5\) \* \(\- sum\(Int64\(38\)\)\) \* Int64\(98\) \+ \(\- Int64\(\-35\)\) \* Int64\(66\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(69\) / Int64\(90\) \* Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 50 * + 5 * - + SUM ( ALL 38 ) * 98 + - - 35 * 66 / - - COUNT ( * ) AS col1, 69 / 90 * - 54 AS col1 query I rowsort label-3196 @@ -17471,7 +17471,7 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - -43 # Datafusion - Expected - -174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- \(\- count\(\*\)\)\), Int64\(30\) \* count\(\*\) \+ Int64\(43\) \* Int64\(36\) \+ Int64\(37\)\)\) 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 "\(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(30\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(43\) \* Int64\(36\) \+ Int64\(37\)\)\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( - - COUNT ( * ), + + 30 * + COUNT ( * ) + 43 * 36 + + + 37 ) AS col0, - 43 AS col0, COUNT ( * ) + - 91 * 29 / - - ( 15 ) query II rowsort label-3314 @@ -18669,7 +18669,7 @@ SELECT ALL 47 / + MIN ( ( NULLIF ( 56, - + 57 ) ) ) # 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\(64\) / Int64\(57\) AS col1" at position 0 and "\(\- Int64\(3\)\) \* Int64\(76\) / Int64\(35\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(57\) AS col1" at position 0 and "\(\- Int64\(3\)\) \* Int64\(76\) / Int64\(35\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 / + + 57 AS col1, - ( 3 ) * + + 76 / + 35 * - ( COUNT ( * ) ) AS col1 query I rowsort label-3542 @@ -18715,7 +18715,7 @@ SELECT - COALESCE ( + 60, - 68 + CAST ( - 4 AS INTEGER ), + + 42 + 18 + + - 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1156 # Datafusion - Expected - 616 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* count\(\*\) \* Int64\(85\) \+ \(\- Int64\(26\)\) \+ Int64\(\-93\) AS col1" at position 0 and "Int64\(28\) \* 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\(\*\) \* Int64\(85\) \+ \(\- Int64\(26\)\) \+ Int64\(\-93\) AS col1" at position 0 and "Int64\(28\) \* Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 15 * COUNT ( * ) * 85 + - + 26 + - 93 AS col1, + 28 * + 22 AS col1 query I rowsort @@ -20120,7 +20120,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\(\*\) AS col1" at position 1 have the 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 @@ -20141,7 +20141,7 @@ SELECT + + COUNT ( ALL + + 92 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(19\) \+ Int64\(18\) AS col0" at position 0 and "Int64\(52\) \+ \(\- CASE Int64\(3\) WHEN Int64\(6\) \* count\(\*\) THEN Int64\(\-25\) / Int64\(82\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(19\) \+ Int64\(18\) AS col0" at position 0 and "Int64\(52\) \+ \(\- CASE Int64\(3\) WHEN Int64\(6\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-25\) / Int64\(82\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + - 98 ) + + 19 + + 18 AS col0, 52 + - CASE ( + 3 ) WHEN + 6 * + COUNT ( * ) THEN - 25 / 82 END col0 query II rowsort @@ -20227,7 +20227,7 @@ SELECT + 17, 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ \(\- Int64\(\-13\)\) AS col1" at position 0 and "count\(\*\) \* 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\(39\) \+ \(\- Int64\(\-13\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 + - - 13 AS col1, + COUNT ( * ) * + - 24 AS col1 query I rowsort label-3844 @@ -20800,7 +20800,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\(\*\) AS col0" at position 1 have the 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 @@ -21920,7 +21920,7 @@ SELECT ALL + 58 * + COUNT ( * ) * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(45\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(45\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, 45 * + + ( 48 ) AS col2 query I rowsort label-4169 @@ -22417,7 +22417,7 @@ SELECT - 92 * + - NULLIF ( - 11, - + AVG ( DISTINCT + - 79 ) ) - - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* count\(DISTINCT Int64\(\-13\)\) \+ Int64\(33\) / \(\- CASE Int64\(41\) WHEN Int64\(72\) \- \(\- Int64\(12\)\) \- count\(\*\) THEN Int64\(72\) \* Int64\(\-65\) \- Int64\(23\) \* \(\- Int64\(41\)\) \* Int64\(\-13\) ELSE NULL END\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* count\(DISTINCT Int64\(\-13\)\) \+ Int64\(33\) / \(\- CASE Int64\(41\) WHEN Int64\(72\) \- \(\- Int64\(12\)\) \- count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(72\) \* Int64\(\-65\) \- Int64\(23\) \* \(\- Int64\(41\)\) \* Int64\(\-13\) ELSE NULL END\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 * COUNT ( DISTINCT + - 13 ) + 33 / - CASE 41 WHEN + 72 - - + 12 - COUNT ( * ) THEN + + 72 * - 65 - 23 * - + 41 * - 13 ELSE NULL END AS col2, 63 + + - 0 AS col2 query I rowsort label-4262 @@ -22669,7 +22669,7 @@ SELECT CASE 39 WHEN 55 THEN 40 ELSE + 39 * + COUNT ( * ) + 94 END * + 0 * + + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -1669 -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\(\-18\) \* \(\- nullif\(\(\- Int64\(94\)\), Int64\(88\)\)\) \+ Int64\(30\) \+ 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\(55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-18\) \* \(\- nullif\(\(\- Int64\(94\)\), Int64\(88\)\)\) \+ Int64\(30\) \+ Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 AS col0, + COUNT ( * ) * - 18 * + ( - NULLIF ( - + 94, + + 88 ) ) + + 30 + - 7 col0 query I rowsort label-4310 @@ -22969,7 +22969,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\(\*\) 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 @@ -23297,7 +23297,7 @@ SELECT MAX ( + - 48 ) - - + 68 + + + 83 * + NULLIF ( - + 88, + COALESCE ( 7, - 5 # Datafusion - Expected - -3 # Datafusion - Expected - -90 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\*\), Int64\(\-88\) \+ \(\- Int64\(\-80\)\), Int64\(\-7\) \+ \(\- Int64\(75\)\)\) \* Int64\(\-3\) \- count\(\*\) / Int64\(89\) AS col2" at position 0 and "Int64\(0\) \* \(\- Int64\(31\)\) \- 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 "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-88\) \+ \(\- Int64\(\-80\)\), Int64\(\-7\) \+ \(\- Int64\(75\)\)\) \* Int64\(\-3\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(89\) AS col2" at position 0 and "Int64\(0\) \* \(\- Int64\(31\)\) \- Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( + ( COUNT ( * ) ), - 88 + - - 80, - 7 + - + 75 ) * - 3 - + COUNT ( * ) / 89 AS col2, + 0 * - + 31 - + 90 AS col2, - - 28 + + 35 AS col2 query II rowsort @@ -23783,7 +23783,7 @@ SELECT ALL - 56 * + 53 + 25 - - NULLIF ( - COUNT ( * ), + - ( - 23 ) ) + 29 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / \(\- count\(\*\)\) AS col1" at position 0 and "count\(Int64\(34\)\) \+ CAST\(Int64\(26\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(34\)\) \+ CAST\(Int64\(26\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 71 / - COUNT ( * ) AS col1, COUNT ( ALL 34 ) + + + CAST ( + 26 AS INTEGER ) AS col1 query II rowsort label-4521 @@ -24735,7 +24735,7 @@ SELECT + SUM ( DISTINCT - + COALESCE ( + ( 91 ), + 44 * + 64 ) ) + + CAST ( + + # 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\(\*\)\) AS col2" at position 0 and "Int64\(98\) \+ 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\(98\) \+ Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + 98 + + 3 AS col2 # Datafusion - Types were automatically converted from: @@ -26068,7 +26068,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 "\(\- count\(\*\)\) \* Int64\(\-68\) \* Int64\(\-81\) \+ Int64\(66\) \+ Int64\(21\) \- \(\- CASE \(\- Int64\(\-21\)\) WHEN Int64\(16\) \- Int64\(67\) \+ Int64\(42\) \+ count\(DISTINCT Int64\(\-69\)\) \* Int64\(68\) \* Int64\(33\) THEN NULL WHEN Int64\(\-48\) THEN Int64\(74\) END\) AS col0" at position 0 and "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\(\*\)\) \* Int64\(\-68\) \* Int64\(\-81\) \+ Int64\(66\) \+ Int64\(21\) \- \(\- CASE \(\- Int64\(\-21\)\) WHEN Int64\(16\) \- Int64\(67\) \+ Int64\(42\) \+ count\(DISTINCT Int64\(\-69\)\) \* Int64\(68\) \* Int64\(33\) THEN NULL WHEN Int64\(\-48\) THEN Int64\(74\) END\) AS col0" at position 0 and "count\(\(\- Int64\(47\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - 68 * - 81 + 66 + + + 21 - - CASE - - 21 WHEN + ( 16 ) - + 67 + + + 42 + COUNT ( DISTINCT - 69 ) * + + 68 * + + 33 THEN NULL WHEN + - 48 THEN + + 74 END AS col0, COUNT ( - + 47 ) AS col0 query I rowsort @@ -26399,7 +26399,7 @@ SELECT ALL - SUM ( ALL - 11 ) / 4 + + 42 * - 73 - - 85 * + + MAX ( + - 68 ) + - # 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 "Int64\(\-92\) / nullif\(Int64\(87\), Int64\(\-52\) \* count\(\*\) \+ \(\- Int64\(\-2\)\)\) AS col2" at position 0 and "sum\(DISTINCT 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\(\-92\) / nullif\(Int64\(87\), Int64\(\-52\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-2\)\)\) AS col2" at position 0 and "sum\(DISTINCT Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 / + NULLIF ( 87, - 52 * COUNT ( * ) + ( - - 2 ) ) AS col2, SUM ( DISTINCT + 16 ) AS col2 # Datafusion - Datafusion expected results: @@ -26480,7 +26480,7 @@ SELECT + + 58 / - 99 * + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 3584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-49\)\) AS col2" at position 0 and "Int64\(30\) \+ count\(\*\) \+ Int64\(15\) \- Int64\(58\) \* Int64\(\-61\) \+ coalesce\(Int64\(\-39\), Int64\(73\)\) / Int64\(55\) / 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\(\-49\)\) AS col2" at position 0 and "Int64\(30\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) \- Int64\(58\) \* Int64\(\-61\) \+ coalesce\(Int64\(\-39\), Int64\(73\)\) / Int64\(55\) / Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - ( - 49 ) AS col2, + 30 + + COUNT ( * ) + + 15 - + 58 * - 61 + + COALESCE ( - 39, + + 73 ) / 55 / 15 AS col2 query I rowsort @@ -26768,7 +26768,7 @@ SELECT ALL 75 col2, 4 * 96 # Datafusion - Expected - -22 # Datafusion - Expected - 1215 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* coalesce\(Int64\(27\), Int64\(\-90\) \+ count\(\*\) \+ \(\- count\(\*\)\), Int64\(62\)\) AS col0" at position 1 and "CAST\(NULL AS Int32\) \* \(\- \(\- Int64\(28\)\)\) \* avg\(Int64\(56\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* coalesce\(Int64\(27\), Int64\(\-90\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(62\)\) AS col0" at position 1 and "CAST\(NULL AS Int32\) \* \(\- \(\- Int64\(28\)\)\) \* avg\(Int64\(56\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22, 45 * COALESCE ( + 27, - 90 + + COUNT ( * ) + + ( - COUNT ( * ) ), 62 ) AS col0, CAST ( NULL AS INTEGER ) * - ( - + 28 ) * AVG ( ALL + + 56 ) AS col0 query II rowsort label-5083 @@ -27404,7 +27404,7 @@ SELECT ALL 92 * - - 91 # 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\(\*\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, - 4 AS col2 query I rowsort @@ -28470,7 +28470,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\(\*\) AS col0" at position 1 have 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 @@ -29565,7 +29565,7 @@ SELECT DISTINCT 99 / + + 56 AS col1, 89 * 9 - - + 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 6041 -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\(69\) \- nullif\(Int64\(79\), \(\- \(\- Int64\(37\)\)\)\) \* Int64\(\-76\) \- Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(69\) \- nullif\(Int64\(79\), \(\- \(\- Int64\(37\)\)\)\) \* Int64\(\-76\) \- Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 62 ) AS col1, ( COUNT ( * ) ) * 69 - + NULLIF ( 79, - ( - + 37 ) ) * + - 76 - + 32 col1 query I rowsort @@ -30077,7 +30077,7 @@ SELECT 2 + + - 62 * - - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- 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 "Int64\(38\) \* \(\- 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 38 * - COUNT ( * ) AS col2, - 52 AS col2 query I rowsort @@ -30143,7 +30143,7 @@ SELECT - 8 + + 57 * + 1 * + 2, 83 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(45\) \* count\(\*\) \+ Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col0, 45 * + COUNT ( * ) + + - 26 AS col0 query II rowsort label-5732 @@ -30413,7 +30413,7 @@ SELECT + - 15 * - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -111720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(84\) \* Int64\(\-19\) \* count\(\*\) \* \(\- 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\(63\) AS col2" at position 0 and "Int64\(84\) \* Int64\(\-19\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 63 AS col2, + 84 * + - 19 * + + COUNT ( * ) * - - 70 AS col2 query I rowsort label-5784 @@ -31339,7 +31339,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\(\*\) 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 @@ -33454,7 +33454,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\(\*\) AS col0" at position 1 have 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 @@ -33771,7 +33771,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\(\*\) AS col2" at position 1 have the 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 @@ -34176,7 +34176,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\(\*\) AS col1" at position 1 have the 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 @@ -34214,7 +34214,7 @@ SELECT 25 * - 79 * AVG ( DISTINCT - - 27 ) * - MAX ( DISTINCT - CAST ( NULL AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - -224 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(\-10\)\) \* Int64\(14\) \- Int64\(84\) 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\(\*\)\) \* \(\- Int64\(\-10\)\) \* Int64\(14\) \- Int64\(84\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - - 10 * + + 14 - + 84 AS col0, 71 AS col0 query I rowsort @@ -34513,7 +34513,7 @@ SELECT + 1 * - 78 * - - 75 * + COALESCE ( - 73, - COUNT ( * ) + - COUNT ( ALL + # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-82\) \* Int64\(81\) AS col1" at position 0 and "Int64\(33\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\(\-82\) \* Int64\(81\) 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 DISTINCT COUNT ( * ) / - 82 * 81 AS col1, + 33 * - - COUNT ( * ) AS col1 query II rowsort label-6560 @@ -35273,7 +35273,7 @@ SELECT 4 * + 0 AS col2 # Datafusion - Expected - 30 # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(6\)\), \(\- count\(\*\)\) \+ Int64\(\-72\) \- \(\- \(\- CAST\(Int64\(0\) AS Int32\)\)\)\) \+ Int64\(36\) AS col1" at position 0 and "Int64\(34\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(6\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-72\) \- \(\- \(\- CAST\(Int64\(0\) AS Int32\)\)\)\) \+ Int64\(36\) AS col1" at position 0 and "Int64\(34\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - + 6, - COUNT ( * ) + - 72 - - ( - + CAST ( + - 0 AS INTEGER ) ) ) + 36 AS col1, 10, 34 * + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -35643,7 +35643,7 @@ SELECT DISTINCT + 77 * - - 80 - - 28 col1, - NULLIF ( - + ( CASE 84 WHEN + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 3584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(\-5\) \- Int64\(\-37\) \* \(\- Int64\(\-97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(\-5\) \- Int64\(\-37\) \* \(\- Int64\(\-97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 12 * + CAST ( - + COUNT ( * ) AS INTEGER ) col0, - 5 - - 37 * - - 97 AS col0 query I rowsort label-6774 @@ -39147,7 +39147,7 @@ SELECT ALL - 56 - + ( - 71 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(29\)\) \+ Int64\(53\) \* Int64\(76\) / Int64\(69\) 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\(\*\) \+ \(\- Int64\(29\)\) \+ Int64\(53\) \* Int64\(76\) / Int64\(69\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - + 29 + + + 53 * 76 / + 69 AS col2, 24 AS col2 query I rowsort label-7443 @@ -39646,7 +39646,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\(\*\) AS col2" at position 1 have the 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 @@ -40456,7 +40456,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\(\*\) 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 @@ -41086,7 +41086,7 @@ SELECT - MAX ( + 32 ), 93 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4469 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ Int64\(\-92\) \- \(\- coalesce\(Int64\(\-66\), count\(DISTINCT Int64\(\-41\)\)\)\) \+ count\(\*\) \* Int64\(58\) \* Int64\(\-73\) AS col0" at position 0 and "Int64\(34\) \+ 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\(77\)\) \+ Int64\(\-92\) \- \(\- coalesce\(Int64\(\-66\), count\(DISTINCT Int64\(\-41\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(58\) \* Int64\(\-73\) AS col0" at position 0 and "Int64\(34\) \+ Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 77 + - 92 - + - COALESCE ( - 66, + COUNT ( DISTINCT - 41 ) ) + + COUNT ( * ) * + + 58 * ( + - 73 ) col0, + ( + 34 ) + + + 24 AS col0 query I rowsort @@ -41347,7 +41347,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\(\*\) AS col0" at position 1 have 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 @@ -41610,7 +41610,7 @@ SELECT ALL MIN ( - - 61 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "coalesce\(Int64\(\-36\), Int64\(69\) \+ coalesce\(Int64\(\-83\), \(\- Int64\(\-99\)\)\) \+ count\(\*\) \+ coalesce\(Int64\(12\), \(\- \(\- Int64\(45\)\)\) \* Int64\(43\) \- count\(\*\) \+ \(\- Int64\(\-21\)\) \+ \(\- Int64\(73\)\) \* Int64\(38\)\) \* Int64\(69\) \* \(\- Int64\(56\)\) \+ Int64\(93\) \* Int64\(73\), 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\(30\) AS col0" at position 0 and "coalesce\(Int64\(\-36\), Int64\(69\) \+ coalesce\(Int64\(\-83\), \(\- Int64\(\-99\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(12\), \(\- \(\- Int64\(45\)\)\) \* Int64\(43\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-21\)\) \+ \(\- Int64\(73\)\) \* Int64\(38\)\) \* Int64\(69\) \* \(\- Int64\(56\)\) \+ Int64\(93\) \* Int64\(73\), Int64\(\-10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 AS col0, + COALESCE ( - 36, ( + + 69 ) + + COALESCE ( - 83, - - 99 ) + COUNT ( * ) + COALESCE ( 12, - + ( - + 45 ) * + 43 - COUNT ( * ) + - ( - 21 ) + - ( + 73 ) * 38 ) * + + ( + 69 ) * - + 56 + + + ( 93 ) * + + 73, - 10 ) AS col0 query II rowsort @@ -41757,7 +41757,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\(\*\) AS col1" at position 1 have the 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 @@ -41853,7 +41853,7 @@ SELECT ALL + 55 - - + 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -117 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(\-65\) AS col1" at position 0 and "Int64\(\-15\) \+ count\(\*\) \+ nullif\(Int64\(\-25\), \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(\*\)\)\) \+ coalesce\(min\(DISTINCT Int64\(86\)\), Int64\(\-59\), \(\- count\(\*\)\) \+ Int64\(\-9\) \* \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(\-65\) AS col1" at position 0 and "Int64\(\-15\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(\-25\), \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ coalesce\(min\(DISTINCT Int64\(86\)\), Int64\(\-59\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-9\) \* \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 52 + + - 65 col1, - 15 + COUNT ( * ) + + NULLIF ( - 25, - + CAST ( NULL AS INTEGER ) * - ( - COUNT ( * ) ) + COALESCE ( + MIN ( DISTINCT + 86 ), - 59, + - COUNT ( * ) + - 9 * - CAST ( NULL AS INTEGER ) ) ) AS col1 query I rowsort label-7956 @@ -42420,7 +42420,7 @@ SELECT - 42 * - NULLIF ( ( 14 ), 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "coalesce\(Int64\(\-72\), Int64\(39\) \* \(\- \(\- count\(\*\)\)\) \+ count\(\*\) \+ Int64\(\-18\) \* 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\(84\) AS col0" at position 0 and "coalesce\(Int64\(\-72\), Int64\(39\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-18\) \* Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 84 AS col0, COALESCE ( - 72, 39 * - - COUNT ( * ) + COUNT ( * ) + - 18 * 21 ) col0 # Datafusion - Types were automatically converted from: @@ -43351,7 +43351,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "Int64\(1\) \* nullif\(Int64\(\-47\), count\(\*\)\) AS col1" at position 1 have the 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\(1\) \* nullif\(Int64\(\-47\), 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, 1 * NULLIF ( - 47, + COUNT ( * ) ) AS col1 # Datafusion - Types were automatically converted from: @@ -43771,7 +43771,7 @@ SELECT + 8 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6298 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* Int64\(\-81\) \+ count\(\*\) \+ Int64\(63\) / Int64\(49\) \+ \(\- CAST\(Int64\(81\) AS Int32\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) / Int64\(49\) \+ \(\- CAST\(Int64\(81\) AS Int32\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 * - 81 + COUNT ( * ) + + + 63 / 49 + + - CAST ( 81 AS INTEGER ) + + 59 AS col2, - 43 col2 query I rowsort @@ -43819,7 +43819,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7644 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- \(\- min\(DISTINCT Int64\(\-2\)\)\)\), count\(\*\)\)\) \* count\(\*\) \* Int64\(78\) \* \(\- Int64\(\-49\)\) AS col2" at position 0 and "\(\- min\(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 "\(\- nullif\(\(\- \(\- min\(DISTINCT Int64\(\-2\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) \* \(\- Int64\(\-49\)\) AS col2" at position 0 and "\(\- min\(Int64\(53\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - - MIN ( DISTINCT - 2 ), COUNT ( * ) ) * + COUNT ( * ) * 78 * - - 49 AS col2, ( - MIN ( 53 ) ) col2 query I rowsort label-8327 @@ -46665,7 +46665,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\(\*\) 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 @@ -46771,7 +46771,7 @@ SELECT - 38 - + - 42 * - 89 * + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4824 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- Int64\(72\)\) AS col0" at position 0 and "Int64\(60\) \* count\(\*\) \- \(\- min\(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\(67\) \* \(\- Int64\(72\)\) AS col0" at position 0 and "Int64\(60\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- min\(Int64\(55\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 67 * - + 72 AS col0, 60 * + + COUNT ( * ) - - + MIN ( 55 ) col0 query I rowsort @@ -47729,7 +47729,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\(\*\) AS col1" at position 1 have the 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 @@ -49085,7 +49085,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 @@ -49101,7 +49101,7 @@ SELECT ALL ( - - 73 ) + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(7\) \* Int64\(20\) \- Int64\(53\) \* coalesce\(Int64\(9\), Int64\(54\)\) \+ Int64\(\-46\) \+ count\(\*\) / \(\- \(\- max\(CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(7\) \* Int64\(20\) \- Int64\(53\) \* coalesce\(Int64\(9\), Int64\(54\)\) \+ Int64\(\-46\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- max\(CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 33 AS col1, 7 * + 20 - + + 53 * + COALESCE ( + 9, + 54 ) + - 46 + COUNT ( * ) / - ( - MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col1 query I rowsort label-9343 @@ -50094,7 +50094,7 @@ SELECT - + 90 AS col1, 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -8633 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(97\) \* 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\(97\) \* Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, + 97 * - 89 AS col0 query II rowsort label-9531 @@ -50357,7 +50357,7 @@ SELECT DISTINCT COUNT ( * ) - - 67 AS col0 # 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\(\*\)\)\) 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 "\(\- \(\- 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 - - ( ( COUNT ( * ) ) ) AS col0, - 33 AS col0 query II rowsort label-9581 @@ -51811,7 +51811,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\(\*\) 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 @@ -52354,7 +52354,7 @@ SELECT - COUNT ( * ) / 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) / \(\- 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\(\-98\) / \(\- 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 - 98 / + - COUNT ( * ) AS col2, + 82 AS col2 query I rowsort label-9958 diff --git a/data/sqlite/random/expr/slt_good_101.slt b/data/sqlite/random/expr/slt_good_101.slt index 49bed08..5fda8b7 100644 --- a/data/sqlite/random/expr/slt_good_101.slt +++ b/data/sqlite/random/expr/slt_good_101.slt @@ -1277,7 +1277,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\(\*\) 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 @@ -3533,7 +3533,7 @@ SELECT ALL - + COUNT ( ALL - 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- CASE Int64\(\-73\) WHEN Int64\(\-20\) \+ avg\(Int64\(61\)\) \+ coalesce\(Int64\(75\), \(\- Int64\(34\)\) \+ Int64\(\-83\)\) THEN Int64\(26\) \* Int64\(\-85\) WHEN \(\- \(\- coalesce\(CASE Int64\(69\) WHEN Int64\(80\) \- Int64\(98\) / count\(\*\) \+ Int64\(64\) \- coalesce\(Int64\(94\), Int64\(12\) \+ CAST\(\(\- Int64\(83\)\) AS Int32\) / Int64\(\-94\), Int64\(\-49\) \+ Int64\(76\)\) / Int64\(35\) THEN NULL WHEN Int64\(18\) \* Int64\(69\) THEN Int64\(\-23\) ELSE Int64\(\-50\) \+ Int64\(53\) END, Int64\(41\) \* Int64\(37\) / Int64\(38\)\)\)\) \* \(\- CAST\(NULL AS Int32\) \+ Int64\(35\)\) \+ count\(\*\) THEN Int64\(55\) \* Int64\(87\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- CASE Int64\(\-73\) WHEN Int64\(\-20\) \+ avg\(Int64\(61\)\) \+ coalesce\(Int64\(75\), \(\- Int64\(34\)\) \+ Int64\(\-83\)\) THEN Int64\(26\) \* Int64\(\-85\) WHEN \(\- \(\- coalesce\(CASE Int64\(69\) WHEN Int64\(80\) \- Int64\(98\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- coalesce\(Int64\(94\), Int64\(12\) \+ CAST\(\(\- Int64\(83\)\) AS Int32\) / Int64\(\-94\), Int64\(\-49\) \+ Int64\(76\)\) / Int64\(35\) THEN NULL WHEN Int64\(18\) \* Int64\(69\) THEN Int64\(\-23\) ELSE Int64\(\-50\) \+ Int64\(53\) END, Int64\(41\) \* Int64\(37\) / Int64\(38\)\)\)\) \* \(\- CAST\(NULL AS Int32\) \+ Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(55\) \* Int64\(87\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 73 AS col0, - CASE - 73 WHEN - 20 + + AVG ( + 61 ) + + COALESCE ( + 75, - + 34 + - 83 ) THEN 26 * - 85 WHEN - - COALESCE ( + CASE 69 WHEN 80 - + + 98 / + + COUNT ( * ) + 64 - + COALESCE ( 94, + 12 + CAST ( - ( 83 ) AS INTEGER ) / - 94, - 49 + 76 ) / 35 THEN NULL WHEN + 18 * 69 THEN - 23 ELSE - 50 + 53 END, 41 * ( 37 / 38 ) ) * - ( CAST ( NULL AS INTEGER ) + 35 ) + COUNT ( * ) THEN 55 * 87 END col0 query I rowsort @@ -3640,7 +3640,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\(\*\) AS col2" at position 1 have the 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 @@ -6152,7 +6152,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\(\*\) AS Int32\)\) \+ Int64\(\-73\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(\-85\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -6530,7 +6530,7 @@ SELECT 23 + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2431 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(14\)\) \- Int64\(54\) \- \(\- Int64\(\-53\)\) \+ \(\- count\(\*\)\) \* Int64\(55\) \* \(\- min\(Int64\(\-42\)\)\) AS col2" at position 0 and "sum\(Int64\(\-18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(14\)\) \- Int64\(54\) \- \(\- Int64\(\-53\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(55\) \* \(\- min\(Int64\(\-42\)\)\) AS col2" at position 0 and "sum\(Int64\(\-18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 14 ) - + 54 - - - 53 + - COUNT ( * ) * 55 * - + MIN ( - 42 ) AS col2, + SUM ( ALL - 18 ) AS col2 query II rowsort label-1244 @@ -6542,7 +6542,7 @@ SELECT ALL 10, + ( COUNT ( * ) ) + - 32 - + + 99 AS col0 # 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\(\*\)\) AS col2" at position 0 and "coalesce\(Int64\(5\), 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 "coalesce\(Int64\(5\), Int64\(79\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, COALESCE ( 5, + 79 ) AS col2 # Datafusion - Datafusion expected results: @@ -6576,7 +6576,7 @@ SELECT 51 * - COUNT ( * ) + 94 * + 17 + + COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -1584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(88\) \* count\(\*\) \* Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 * - COUNT ( * ) AS col1, + 88 * + COUNT ( * ) * - 18 AS col1 # Datafusion - Datafusion expected results: @@ -6620,7 +6620,7 @@ SELECT 40 + - 18 + + 26 + 79 * - - 51 AS col2, - 78 # 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\(36\)\)\) AS col1" at position 0 and "count\(\*\) \* coalesce\(Int64\(\-6\), Int64\(10\)\) \+ 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\(36\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(Int64\(\-6\), Int64\(10\)\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( 36 ) AS col1, + COUNT ( * ) * COALESCE ( - 6, + + 10 ) + + 18 col1 query I rowsort @@ -6636,7 +6636,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60058 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(18\), Int64\(\-84\)\) \+ Int64\(20\) \* nullif\(nullif\(Int64\(38\), \(\- count\(\*\)\)\), Int64\(57\)\) \* Int64\(79\) AS col1" at position 0 and "count\(\*\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(18\), Int64\(\-84\)\) \+ Int64\(20\) \* nullif\(nullif\(Int64\(38\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(57\)\) \* Int64\(79\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( + + 18, - 84 ) + + 20 * + NULLIF ( NULLIF ( 38, - + COUNT ( * ) ), + 57 ) * 79 AS col1, COUNT ( * ) + + 15 AS col1 query I rowsort label-1263 @@ -6657,7 +6657,7 @@ SELECT ALL - 71 + - 11 + + - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1264 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- Int64\(\-79\)\) AS col0" at position 0 and "Int64\(41\) / CASE Int64\(46\) WHEN \(\- CAST\(Int64\(\-5\) AS Int32\)\) \* \(\- CASE sum\(Int64\(53\)\) WHEN \(\- Int64\(\-8\)\) THEN NULL WHEN Int64\(\-77\) / \(\- Int64\(89\)\) \+ CASE \(\- Int64\(\-59\)\) WHEN Int64\(\-86\) \- Int64\(\-96\) \- Int64\(40\) / Int64\(78\) \* Int64\(32\) \* count\(\*\) THEN nullif\(Int64\(\-40\), Int64\(76\)\) \- Int64\(42\) END \+ Int64\(38\) / Int64\(42\) \* Int64\(6\) THEN nullif\(Int64\(50\), Int64\(27\)\) WHEN count\(\*\) \* max\(DISTINCT \(\- Int64\(\-53\)\)\) THEN Int64\(85\) END\) THEN Int64\(\-88\) WHEN Int64\(36\) THEN \(\- avg\(Int64\(36\)\)\) \* Int64\(30\) \+ Int64\(53\) WHEN Int64\(53\) THEN Int64\(92\) \* Int64\(34\) \+ count\(\*\) END \* Int64\(75\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- Int64\(\-79\)\) AS col0" at position 0 and "Int64\(41\) / CASE Int64\(46\) WHEN \(\- CAST\(Int64\(\-5\) AS Int32\)\) \* \(\- CASE sum\(Int64\(53\)\) WHEN \(\- Int64\(\-8\)\) THEN NULL WHEN Int64\(\-77\) / \(\- Int64\(89\)\) \+ CASE \(\- Int64\(\-59\)\) WHEN Int64\(\-86\) \- Int64\(\-96\) \- Int64\(40\) / Int64\(78\) \* Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) THEN nullif\(Int64\(\-40\), Int64\(76\)\) \- Int64\(42\) END \+ Int64\(38\) / Int64\(42\) \* Int64\(6\) THEN nullif\(Int64\(50\), Int64\(27\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* max\(DISTINCT \(\- Int64\(\-53\)\)\) THEN Int64\(85\) END\) THEN Int64\(\-88\) WHEN Int64\(36\) THEN \(\- avg\(Int64\(36\)\)\) \* Int64\(30\) \+ Int64\(53\) WHEN Int64\(53\) THEN Int64\(92\) \* Int64\(34\) \+ count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(75\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 16 * - - 79 AS col0, 41 / CASE 46 WHEN - CAST ( - 5 AS INTEGER ) * - + CASE + SUM ( 53 ) WHEN - - 8 THEN NULL WHEN + - 77 / - + 89 + CASE - - 59 WHEN - 86 - - 96 - + 40 / + 78 * + 32 * COUNT ( * ) THEN + ( + NULLIF ( - 40, + 76 ) ) - 42 END + 38 / + + 42 * + + 6 THEN + NULLIF ( + 50, 27 ) WHEN + COUNT ( * ) * MAX ( DISTINCT ( - - 53 ) ) THEN + 85 END THEN + - 88 WHEN + 36 THEN - AVG ( 36 ) * + 30 + + 53 WHEN 53 THEN 92 * 34 + COUNT ( * ) END * 75 + - 38 AS col0 query I rowsort label-1267 @@ -6673,7 +6673,7 @@ SELECT 53 - + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) * + + 57 - 42 * - + 41 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 124188 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \- Int64\(\-74\) \+ Int64\(51\) \+ \(\- \(\- count\(\*\)\)\) \* count\(\*\) \+ \(\- count\(\*\)\) \+ Int64\(\-31\) \+ \(\- Int64\(\-19\)\) \* Int64\(68\) \* \(\- max\(\(\- CAST\(Int64\(96\) AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(\-73\) \+ Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \- Int64\(\-74\) \+ Int64\(51\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-31\) \+ \(\- Int64\(\-19\)\) \* Int64\(68\) \* \(\- max\(\(\- CAST\(Int64\(96\) AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(\-73\) \+ Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 - - 74 + + ( ( + 51 ) ) + - - COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) + - 31 + - - 19 * 68 * - MAX ( ALL + - CAST ( + 96 AS INTEGER ) ) AS col0, - 73 + - 15 AS col0 query I rowsort label-1270 @@ -7587,7 +7587,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\(\*\) 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 @@ -7696,7 +7696,7 @@ SELECT ALL 18 + + 33 / 49 * - 79 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2128 # Datafusion - Expected - 262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(\-40\) \* Int64\(\-51\) AS col1" at position 0 and "\(\- nullif\(Int64\(41\), \(\- \(\- \(\- Int64\(\-65\)\)\)\) \+ Int64\(88\)\)\) \+ Int64\(89\) \+ Int64\(64\) \+ Int64\(\-22\) / Int64\(15\) \* Int64\(\-90\) \* coalesce\(count\(\*\), Int64\(79\)\) \+ 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\) \+ Int64\(\-40\) \* Int64\(\-51\) AS col1" at position 0 and "\(\- nullif\(Int64\(41\), \(\- \(\- \(\- Int64\(\-65\)\)\)\) \+ Int64\(88\)\)\) \+ Int64\(89\) \+ Int64\(64\) \+ Int64\(\-22\) / Int64\(15\) \* Int64\(\-90\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(79\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 88 + + - 40 * - 51 col1, - NULLIF ( + 41, - - ( - - 65 ) + + ( + 88 ) ) + 89 + 64 + - 22 / 15 * - 90 * COALESCE ( + COUNT ( * ), 79 ) + + 60 AS col1 query I rowsort label-1465 @@ -10286,7 +10286,7 @@ SELECT ALL 96 / + + ( - 95 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "CASE Int64\(20\) WHEN \(\- count\(\*\)\) THEN Int64\(58\) \* count\(\*\) WHEN Int64\(\-23\) THEN Int64\(\-55\) \* Int64\(85\) \* Int64\(65\) END / Int64\(75\) \* Int64\(94\) \+ Int64\(8\) \* 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\(\-83\) AS col0" at position 0 and "CASE Int64\(20\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(58\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-23\) THEN Int64\(\-55\) \* Int64\(85\) \* Int64\(65\) END / Int64\(75\) \* Int64\(94\) \+ Int64\(8\) \* Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 83 AS col0, + CASE 20 WHEN - COUNT ( * ) THEN 58 * + COUNT ( * ) WHEN - 23 THEN + - 55 * + 85 * 65 END / + 75 * 94 + 8 * - 4 AS col0 query I rowsort label-1964 @@ -10460,7 +10460,7 @@ SELECT 44, - 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67456 # Datafusion - Expected - -744 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT \(\- Int64\(\-31\)\)\)\) \* \(\- Int64\(\-34\)\) \* Int64\(\-64\) AS col0" at position 0 and "Int64\(12\) \* \(\- count\(\*\)\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT \(\- Int64\(\-31\)\)\)\) \* \(\- Int64\(\-34\)\) \* Int64\(\-64\) AS col0" at position 0 and "Int64\(12\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( DISTINCT - - 31 ) * - - 34 * - 64 AS col0, 12 * + - COUNT ( * ) * 62 AS col0 query II rowsort @@ -10642,7 +10642,7 @@ SELECT - + COUNT ( + 48 ) 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\(\*\)\)\) 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 ALL - ( - + COUNT ( * ) ) AS col1, - 1 AS col1 query II rowsort label-2030 @@ -10850,7 +10850,7 @@ SELECT + 80 - - - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) \* coalesce\(CAST\(NULL AS Int32\), Int64\(93\), Int64\(88\)\) \+ Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(CAST\(NULL AS Int32\), Int64\(93\), Int64\(88\)\) \+ Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col0, COUNT ( * ) * + COALESCE ( + CAST ( NULL AS INTEGER ), 93, 88 ) + - 40 AS col0 query I rowsort label-2069 @@ -11046,7 +11046,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\(\-82\) \* Int64\(\-34\) \+ Int64\(60\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -12540,7 +12540,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\(\*\) 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 @@ -15159,7 +15159,7 @@ SELECT + + COUNT ( * ) * 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -228 # Datafusion - Expected - 460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-15\) \+ Int64\(\-76\) \* Int64\(3\) AS col2" at position 0 and "Int64\(11\) \* Int64\(49\) \+ 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\(\*\) / Int64\(\-15\) \+ Int64\(\-76\) \* Int64\(3\) AS col2" at position 0 and "Int64\(11\) \* Int64\(49\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) / + + ( - 15 ) + - 76 * + 3 col2, + 11 * 49 + + - 79 AS col2 query I rowsort @@ -16271,7 +16271,7 @@ SELECT + ( 0 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2568 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-14\) \* \(\- Int64\(62\)\) \+ Int64\(68\) \* \(\- Int64\(\-24\)\) \+ Int64\(68\) AS col0" at position 0 and "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\(\*\) \* Int64\(\-14\) \* \(\- Int64\(62\)\) \+ Int64\(68\) \* \(\- Int64\(\-24\)\) \+ Int64\(68\) AS col0" at position 0 and "count\(Int64\(\-85\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - 14 * - + 62 + + + 68 * - - 24 + 68 col0, COUNT ( - 85 ) col0 query I rowsort @@ -16679,7 +16679,7 @@ SELECT DISTINCT ( - CAST ( + - 60 AS INTEGER ) ) + - 56 * 46 * - + 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3096 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- nullif\(Int64\(\-77\), CASE \(\- count\(\*\)\) WHEN count\(\*\) THEN count\(\*\) / CASE \(\- count\(\*\)\) WHEN Int64\(\-28\) \* \(\- Int64\(6\)\) / Int64\(29\) \* Int64\(84\) \+ Int64\(93\) \+ Int64\(14\) \+ Int64\(58\) \+ Int64\(13\) / Int64\(39\) \* Int64\(28\) \+ Int64\(83\) \- Int64\(\-12\) \* Int64\(\-7\) \- Int64\(\-11\) THEN NULL ELSE Int64\(38\) \* Int64\(28\) END / \(\- avg\(\(\- Int64\(\-83\)\)\)\) \- \(\- Int64\(\-41\)\) \+ \(\- Int64\(\-91\)\) \+ \(\- Int64\(\-4\)\) ELSE Int64\(90\) END\)\) \* Int64\(\-40\) / \(\- \(\- \(\- count\(\*\)\)\)\) AS col0" at position 0 and "count\(\*\) \+ 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\(16\) \+ \(\- nullif\(Int64\(\-77\), CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(1\)\) AS count\(\*\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-28\) \* \(\- Int64\(6\)\) / Int64\(29\) \* Int64\(84\) \+ Int64\(93\) \+ Int64\(14\) \+ Int64\(58\) \+ Int64\(13\) / Int64\(39\) \* Int64\(28\) \+ Int64\(83\) \- Int64\(\-12\) \* Int64\(\-7\) \- Int64\(\-11\) THEN NULL ELSE Int64\(38\) \* Int64\(28\) END / \(\- avg\(\(\- Int64\(\-83\)\)\)\) \- \(\- Int64\(\-41\)\) \+ \(\- Int64\(\-91\)\) \+ \(\- Int64\(\-4\)\) ELSE Int64\(90\) END\)\) \* Int64\(\-40\) / \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 16 + - NULLIF ( - 77, CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN + COUNT ( * ) / + CASE - COUNT ( * ) WHEN - 28 * + ( ( + ( - + 6 ) ) ) / 29 * + 84 + + 93 + + + 14 + 58 + 13 / + 39 * 28 + + + 83 - - 12 * - 7 - - 11 THEN NULL ELSE 38 * + 28 END / - AVG ( - - 83 ) - - - 41 + - - 91 + - ( - 4 ) ELSE + + ( + 90 ) END ) * - 40 / - ( - - COUNT ( * ) ) AS col0, + COUNT ( * ) + + 88 AS col0 query I rowsort label-3179 @@ -17404,7 +17404,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\(\*\) AS col2" at position 1 have the 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 @@ -17704,7 +17704,7 @@ SELECT DISTINCT - + 15 - - COUNT ( - CAST ( - CAST ( - + 91 AS INTEGER ) AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - -1064 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(56\) \+ Int64\(56\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(90\) \- \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(56\) \+ Int64\(56\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(90\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 20 * + 56 + 56 AS col0, CAST ( NULL AS INTEGER ) * + 90 - - COUNT ( * ) AS col0 query I rowsort @@ -18446,7 +18446,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\(\*\) 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: @@ -19285,7 +19285,7 @@ SELECT - 23 + + 8 + COUNT ( * ) + - SUM ( + ( - 20 ) ) + + COUNT ( * ) AS col1, # Datafusion - Datafusion expected results: # Datafusion - Expected - 151 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(86\), count\(\*\)\) \+ Int64\(65\) 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 "coalesce\(Int64\(86\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(65\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + 86, + + COUNT ( * ) ) + 65 AS col2, - 70 AS col2 query I rowsort @@ -21370,7 +21370,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "sum\(Int64\(4\)\) \* \(\- nullif\(Int64\(8\), nullif\(Int64\(94\), avg\(DISTINCT Int64\(1\)\) \* Int64\(41\) \+ \(\- Int64\(\-6\)\) \- sum\(DISTINCT Int64\(79\)\) \+ 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\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "sum\(Int64\(4\)\) \* \(\- nullif\(Int64\(8\), nullif\(Int64\(94\), avg\(DISTINCT Int64\(1\)\) \* Int64\(41\) \+ \(\- Int64\(\-6\)\) \- sum\(DISTINCT Int64\(79\)\) \+ Int64\(\-63\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) + + - COUNT ( * ) col1, + SUM ( ALL + 4 ) * - NULLIF ( 8, NULLIF ( 94, + AVG ( DISTINCT + 1 ) * + 41 + - - 6 - + SUM ( DISTINCT + 79 ) + + - 63 ) ) AS col1 query I rowsort label-4078 @@ -21456,7 +21456,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -55 -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\(55\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\*\) \* Int64\(55\) \* \(\- 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 ( * ) * + 55 * + - COUNT ( * ) col1 query I rowsort label-4095 @@ -21560,7 +21560,7 @@ SELECT ALL - - SUM ( 61 ) + MIN ( + + 64 ) # 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\(\*\)\) 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-4114 @@ -22224,7 +22224,7 @@ SELECT + ( - 74 ) + - - COUNT ( * ) * - 93 + + ( - - COALESCE ( + + 18, 64 + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 29 -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\(\-59\) \+ Int64\(79\) \+ Int64\(62\) / 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\(95\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-59\) \+ Int64\(79\) \+ Int64\(62\) / Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 AS col2, COUNT ( * ) + - 59 + 79 + + 62 / 7 AS col2 query II rowsort label-4240 @@ -22865,7 +22865,7 @@ SELECT + 40 + + COUNT ( * ) / + + 42 + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16196 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- coalesce\(Int64\(84\), Int64\(\-28\)\)\), CAST\(Int64\(26\) AS Int32\) \- Int64\(17\) \+ \(\- Int64\(25\)\) \* Int64\(12\) \* count\(\*\) \* Int64\(54\)\)\) / Int64\(\-53\) \- Int64\(\-23\) \- Int64\(63\) \+ \(\- Int64\(58\)\) \* Int64\(7\) \* Int64\(40\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- coalesce\(Int64\(84\), Int64\(\-28\)\)\), CAST\(Int64\(26\) AS Int32\) \- Int64\(17\) \+ \(\- Int64\(25\)\) \* Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\)\)\) / Int64\(\-53\) \- Int64\(\-23\) \- Int64\(63\) \+ \(\- Int64\(58\)\) \* Int64\(7\) \* Int64\(40\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - COALESCE ( 84, - 28 ), + CAST ( + 26 AS INTEGER ) - + 17 + - + 25 * 12 * + COUNT ( * ) * 54 ) / + - 53 - - 23 - + 63 + - + 58 * 7 * 40 + + 85 AS col1, + 26 col1 query II rowsort @@ -23082,7 +23082,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\(\*\) 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 @@ -23751,7 +23751,7 @@ SELECT 65, 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -112 # Datafusion - Expected - 60424 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(\-64\) \- Int64\(85\) AS col0" at position 0 and "Int64\(83\) \* count\(\*\) \* \(\- Int64\(28\)\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(\-64\) \- Int64\(85\) AS col0" at position 0 and "Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(28\)\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 + - 64 - + 85 AS col0, + 83 * COUNT ( * ) * - + 28 * - 26 col0 query I rowsort label-4532 @@ -25072,7 +25072,7 @@ SELECT DISTINCT + CAST ( + 4 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(12\) \- \(\- nullif\(Int64\(57\), count\(\*\)\)\) AS col0" at position 1 have the 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\(92\) \+ Int64\(12\) \- \(\- nullif\(Int64\(57\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 97 AS col0, 92 + 12 - - + NULLIF ( 57, + COUNT ( * ) ) col0 query I rowsort @@ -26391,7 +26391,7 @@ SELECT DISTINCT COALESCE ( - 66, - - 18 * + SUM ( 27 ) ) * + 10 col0 # 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\(\*\)\) 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 @@ -26417,7 +26417,7 @@ SELECT ALL - - 27 + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2553 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(94\) \+ Int64\(26\) \+ max\(Int64\(\-16\)\) \+ Int64\(31\) \* 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\(94\) \+ Int64\(26\) \+ max\(Int64\(\-16\)\) \+ Int64\(31\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col1, 94 + ( 26 ) + + MAX ( - 16 ) + + 31 * 79 AS col1 query I rowsort label-5040 @@ -27003,7 +27003,7 @@ SELECT - 32 * + COUNT ( * ) + + - 14 # 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 "count\(\*\) \- Int64\(87\) \+ \(\- Int64\(\-84\)\) 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\(\*\) \- Int64\(87\) \+ \(\- Int64\(\-84\)\) 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 ( * ) - 87 + - - 84 AS col1, 95 AS col1 query I rowsort @@ -27473,7 +27473,7 @@ SELECT ALL COUNT ( * ) + - - 82 * 8 * SUM ( + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -6058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "coalesce\(Int64\(\-66\), Int64\(\-67\)\) \* Int64\(91\) \* count\(\*\) \- Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "coalesce\(Int64\(\-66\), Int64\(\-67\)\) \* Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 AS col0, COALESCE ( - 66, - 67 ) * 91 * + COUNT ( * ) - + 52 AS col0 query I rowsort @@ -27829,7 +27829,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71760 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(40\) \* count\(\*\) \* Int64\(23\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(40\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 78 * + 40 * + + COUNT ( * ) * 23 AS col1, 67 AS col1 query II rowsort label-5308 @@ -27948,7 +27948,7 @@ SELECT - 50 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2542 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-41\) AS col1" at position 0 and "\(\- coalesce\(\(\- Int64\(52\)\), Int64\(\-29\), Int64\(0\), Int64\(68\) \* Int64\(93\)\)\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-41\) AS col1" at position 0 and "\(\- coalesce\(\(\- Int64\(52\)\), Int64\(\-29\), Int64\(0\), Int64\(68\) \* Int64\(93\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 62 * - 41 AS col1, - COALESCE ( - ( 52 ), - 29, - 0, 68 * 93 ) * - COUNT ( * ) AS col1 query I rowsort @@ -30806,7 +30806,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\(\-39\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -31457,7 +31457,7 @@ SELECT 76 - + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7031 # Datafusion - Expected - -923 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(89\) AS col0" at position 0 and "\(\- count\(\*\)\) \* \(\- max\(nullif\(Int64\(\-20\), Int64\(17\) \* Int64\(87\) \+ Int64\(\-63\) \+ Int64\(\-90\) \* Int64\(\-67\)\)\)\) \* Int64\(42\) \+ \(\- 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\(79\) \* Int64\(89\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- max\(nullif\(Int64\(\-20\), Int64\(17\) \* Int64\(87\) \+ Int64\(\-63\) \+ Int64\(\-90\) \* Int64\(\-67\)\)\)\) \* Int64\(42\) \+ \(\- Int64\(83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 * + 89 AS col0, - COUNT ( * ) * - ( MAX ( ALL + ( + NULLIF ( - 20, + 17 * 87 + - 63 + - 90 * - 67 ) ) ) ) * + 42 + - + 83 col0 query I rowsort @@ -31664,7 +31664,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\(\*\) 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 @@ -31923,7 +31923,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\(\*\) AS col0" at position 1 have the 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 @@ -32062,7 +32062,7 @@ SELECT 1 * 46 AS col0 # Datafusion - Expected - 24 # Datafusion - Expected - -1006 # Datafusion - Expected - 1050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(67\) \* Int64\(\-15\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(67\) \* Int64\(\-15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 AS col2, + 67 * - 15 + - + COUNT ( * ) AS col2, + 75 * + ( + 14 ) query I rowsort label-6108 @@ -33645,7 +33645,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\(\*\) 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 @@ -33810,7 +33810,7 @@ SELECT - + COALESCE ( - + SUM ( ALL - CAST ( NULL AS INTEGER ) ), 12 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69930 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(63\) \* Int64\(\-74\) AS col0" at position 0 and "Int64\(\-20\) \* count\(\*\) / Int64\(41\) \* 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\(\-15\) \* Int64\(63\) \* Int64\(\-74\) AS col0" at position 0 and "Int64\(\-20\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(41\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 15 * + 63 * + - 74 col0, - 20 * COUNT ( * ) / 41 * - 15 AS col0 query I rowsort label-6438 @@ -34762,7 +34762,7 @@ SELECT ALL 0 + + + 43 + + - COALESCE ( - 94, - 33 * - 26 ) + 61 * COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(60\) 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\(\*\) \* Int64\(60\) 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 ( * ) * + 60 AS col0, + 15 AS col0 # Datafusion - Datafusion expected results: @@ -34842,7 +34842,7 @@ SELECT - - 31 + - 80 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(\-7\)\)\) AS col0" at position 0 and "count\(\*\) \+ \(\- Int64\(\-30\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(\-7\)\)\) 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 DISTINCT + + MAX ( DISTINCT - - 7 ) AS col0, + COUNT ( * ) + - - 30 AS col0 query I rowsort @@ -36510,7 +36510,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\(\*\) AS col2" at position 1 have the 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 @@ -36794,7 +36794,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\(\*\) AS col1" at position 1 have the 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 @@ -36810,14 +36810,14 @@ SELECT ALL + - COUNT ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-77\)\) AS col1" at position 0 and "Int64\(48\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(48\) \* \(\- 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, 48 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # 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\(\*\) AS col0" at position 1 have the 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 @@ -37074,7 +37074,7 @@ SELECT ALL COUNT ( ALL 93 ) + 95 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\(\*\)\) AS col0" at position 0 and "Int64\(83\) \+ count\(\*\) \* \(\- 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\(83\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, 83 + + COUNT ( * ) * - + 48 AS col0 query I rowsort @@ -37512,7 +37512,7 @@ SELECT ALL - 4 + ( - + 97 ) * + ( + COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1845 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-62\) WHEN Int64\(8\) THEN \(\- count\(\*\)\) \- Int64\(48\) \- \(\- count\(\*\)\) WHEN \(\- Int64\(36\)\) THEN Int64\(42\) WHEN Int64\(98\) \+ \(\- count\(Int64\(61\)\)\) THEN NULL WHEN Int64\(\-42\) \* Int64\(32\) THEN NULL END AS col1" at position 0 and "Int64\(41\) \* 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 "CASE Int64\(\-62\) WHEN Int64\(8\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(48\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(36\)\) THEN Int64\(42\) WHEN Int64\(98\) \+ \(\- count\(Int64\(61\)\)\) THEN NULL WHEN Int64\(\-42\) \* Int64\(32\) THEN NULL END AS col1" at position 0 and "Int64\(41\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE - 62 WHEN + 8 THEN - COUNT ( * ) - + 48 - - COUNT ( * ) WHEN - + 36 THEN + 42 WHEN + 98 + - COUNT ( + 61 ) THEN NULL WHEN - 42 * 32 THEN NULL END AS col1, + 41 * 45 AS col1 query I rowsort label-7152 @@ -37619,7 +37619,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\(\*\) AS col1" at position 1 have the 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 @@ -38353,7 +38353,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\(\*\) AS col0" at position 0 and "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 @@ -39237,7 +39237,7 @@ SELECT - 52 * + 73 # 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\(\-28\) \* count\(\*\) \+ \(\- nullif\(Int64\(11\), Int64\(\-27\) \- Int64\(34\)\)\) 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\(\-28\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(11\), Int64\(\-27\) \- Int64\(34\)\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 * COUNT ( * ) + - NULLIF ( + 11, - 27 - 34 ) AS col1, 23 col1 query I rowsort @@ -39973,7 +39973,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\(\*\) AS col1" at position 1 have 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 @@ -41252,7 +41252,7 @@ SELECT 98 * - + 43 # 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\(\*\)\) AS col1" at position 1 have the 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 DISTINCT 27 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -43178,7 +43178,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\(\*\) AS col0" at position 1 have the 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 @@ -45174,7 +45174,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\(\*\) AS col0" at position 1 have the 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 @@ -45550,7 +45550,7 @@ SELECT ALL 58 / + - 38, - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # 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 "Int64\(\-12\) / 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\(\*\) \* Int64\(\-77\) AS col2" at position 0 and "Int64\(\-12\) / Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 77 AS col2, ( + - 12 ) / 76 col2 query I rowsort label-8690 @@ -46203,7 +46203,7 @@ SELECT + COUNT ( * ) * - + 69 - - - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) / Int64\(32\) AS col1" at position 0 and "min\(Int64\(89\)\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(32\) AS col1" at position 0 and "min\(Int64\(89\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 85 / + 32 AS col1, MIN ( ( + 89 ) ) + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -46521,7 +46521,7 @@ SELECT + 74 * - 57, - 5 * - - 58 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 133 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(56\) / Int64\(72\) \* CASE Int64\(15\) WHEN Int64\(31\) THEN NULL WHEN \(\- CAST\(Int64\(37\) AS Int32\)\) \* Int64\(\-67\) \* Int64\(\-26\) THEN Int64\(34\) END / \(\- count\(\*\)\) \+ Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(56\) / Int64\(72\) \* CASE Int64\(15\) WHEN Int64\(31\) THEN NULL WHEN \(\- CAST\(Int64\(37\) AS Int32\)\) \* Int64\(\-67\) \* Int64\(\-26\) THEN Int64\(34\) END / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 91 + + + 42 AS col0, 56 / 72 * + CASE + 15 WHEN 31 THEN NULL WHEN - + CAST ( + 37 AS INTEGER ) * - 67 * + - 26 THEN + 34 END / - COUNT ( * ) + - 47 AS col0 query I rowsort label-8875 @@ -46589,7 +46589,7 @@ SELECT ALL - + COALESCE ( - 17, + 26 ) + + - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-59\), Int64\(\-24\) \+ count\(\*\)\) \+ \(\- Int64\(2\)\) 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 "coalesce\(Int64\(\-59\), Int64\(\-24\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(2\)\) 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 + COALESCE ( + - 59, - 24 + + COUNT ( * ) ) + - + 2 AS col1, 70 AS col1 query I rowsort label-8888 @@ -46707,7 +46707,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\(\*\) AS col0" at position 0 and "Int64\(65\) / count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -47110,7 +47110,7 @@ SELECT ALL - COUNT ( + 36 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 13230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ count\(\*\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(\-63\) \* Int64\(\-70\) \* 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\(\-65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(\-63\) \* Int64\(\-70\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 + COUNT ( * ) + 40 AS col2, - 63 * - 70 * + 3 AS col2 query I rowsort @@ -47588,7 +47588,7 @@ SELECT ALL 4 + + 99 # 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 "Int64\(1\) \- \(\- count\(\*\)\) / Int64\(52\) \* Int64\(23\) \* Int64\(46\) \* 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\(\-49\) AS col2" at position 0 and "Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(52\) \* Int64\(23\) \* Int64\(46\) \* Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 49 AS col2, 1 - + - COUNT ( * ) / 52 * + 23 * + 46 * + 30 AS col2 # Datafusion - Types were automatically converted from: @@ -49172,7 +49172,7 @@ SELECT - 30 / 42 + + 88 * 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(75\) \* Int64\(\-50\) \* Int64\(92\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(75\) \* Int64\(\-50\) \* Int64\(92\) \* CAST\(NULL AS 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 - 40 + 75 * - 50 * + 92 * + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col2 query II rowsort label-9378 @@ -50257,7 +50257,7 @@ SELECT ALL 69 + 63 - + + 59 AS 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\(\*\)\) 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 I rowsort @@ -50694,7 +50694,7 @@ SELECT COUNT ( ALL + - 13 ) + + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -2028 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(26\) \* Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(26\) \* Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 33 * + - COUNT ( * ) AS col2, + 26 * - 78 AS col2 query I rowsort label-9668 @@ -51813,7 +51813,7 @@ SELECT - + 33 / 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* count\(\*\) \+ Int64\(27\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(27\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 0 * COUNT ( * ) + 27 AS col2, 5 AS col2 query I rowsort label-9886 @@ -52224,7 +52224,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "min\(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\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "min\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 12 + - + COUNT ( * ) AS col0, ( MIN ( ALL + 22 ) ) 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 713c528..ac3a966 100644 --- a/data/sqlite/random/expr/slt_good_102.slt +++ b/data/sqlite/random/expr/slt_good_102.slt @@ -653,7 +653,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\(\*\) 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 @@ -1772,7 +1772,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\(15\) \+ \(\- \(\- Int64\(94\)\)\) \+ Int64\(10\) \- Int64\(\-40\) \* count\(Int64\(6\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -1808,7 +1808,7 @@ SELECT + COUNT ( * ) * 95 - + 8 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\(9\) / Int64\(\-37\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(9\) / Int64\(\-37\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + + 9 / + - 37 col1, + 69 AS col1 query I rowsort @@ -1969,7 +1969,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\(\*\) 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 @@ -2616,7 +2616,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\(\*\) AS col0" at position 0 and "coalesce\(\(\- Int64\(28\)\), Int64\(29\) \+ \(\- \(\- min\(\(\- Int64\(\-81\)\)\)\)\), \(\- count\(\*\)\) \+ Int64\(27\)\) \* Int64\(\-26\) \* Int64\(\-93\) \+ Int64\(\-88\) \+ Int64\(\-65\) \* Int64\(\-57\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -2743,7 +2743,7 @@ SELECT + 81 AS col1, - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2492 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(31\) \- Int64\(\-56\) \+ count\(\*\) \+ \(\- CAST\(Int64\(45\) AS Int32\)\) AS col0" at position 0 and "Int64\(68\) \+ \(\- CASE \(\- sum\(Int64\(\-58\)\)\) WHEN \(\- Int64\(\-87\)\) \* \(\- count\(\*\)\) THEN NULL ELSE Int64\(44\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(31\) \- Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(45\) AS Int32\)\) AS col0" at position 0 and "Int64\(68\) \+ \(\- CASE \(\- sum\(Int64\(\-58\)\)\) WHEN \(\- Int64\(\-87\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(44\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 80 * 31 - - 56 + COUNT ( * ) + + - CAST ( + 45 AS INTEGER ) col0, 68 + + - CASE - + SUM ( ALL - 58 ) WHEN - - 87 * - COUNT ( * ) THEN NULL ELSE + 44 END col0 query II rowsort label-516 @@ -3690,7 +3690,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\(\*\) 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 @@ -4005,7 +4005,7 @@ SELECT DISTINCT + 27 * - 35 AS col2 # 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\(\*\)\)\) 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 ALL - - COUNT ( * ) AS col2, - 80 AS col2 query I rowsort label-756 @@ -4192,7 +4192,7 @@ SELECT ALL + 85 * - - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -219912 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "coalesce\(Int64\(77\), Int64\(61\)\) \* Int64\(34\) \* \(\- 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 "coalesce\(Int64\(77\), Int64\(61\)\) \* Int64\(34\) \* \(\- Int64\(84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + COALESCE ( + 77, + 61 ) * + 34 * ( + ( - + 84 ) ) AS col2 query II rowsort @@ -5582,7 +5582,7 @@ SELECT + 25 * - 41 + + 59 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-91\), CASE Int64\(94\) WHEN Int64\(99\) \* Int64\(80\) THEN NULL WHEN Int64\(2\) THEN NULL ELSE count\(\*\) END \* Int64\(\-81\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-91\), CASE Int64\(94\) WHEN Int64\(99\) \* Int64\(80\) THEN NULL WHEN Int64\(2\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(\-81\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), - 91, + + CASE + 94 WHEN 99 * 80 THEN NULL WHEN + 2 THEN NULL ELSE + COUNT ( * ) END * + - 81 ) col2, 84 AS col2 query I rowsort label-1055 @@ -9936,7 +9936,7 @@ SELECT + 43 * MAX ( DISTINCT 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -81 -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\(\-83\) \+ \(\- Int64\(32\)\) / 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\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-83\) \+ \(\- Int64\(32\)\) / Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 44 col0, + COUNT ( * ) + + + ( - 83 ) + - + 32 / - 31 col0 query I rowsort label-1882 @@ -10103,7 +10103,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\(\*\) AS col2" at position 1 have the 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 @@ -11270,7 +11270,7 @@ SELECT 13 * + 9 / COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2157 # Datafusion - Expected - 431664 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(\-58\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(92\) \* Int64\(68\) \* \(\- count\(\*\)\) \* 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\(38\) \* Int64\(\-58\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(92\) \* Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 38 * + - 58 + 47 col2, 92 * 68 * - COUNT ( * ) * - 69 col2 query II rowsort label-2136 @@ -11715,7 +11715,7 @@ SELECT ALL - SUM ( ALL + + 91 ), + ( 75 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(40\) \* Int64\(0\) AS col1" at position 0 and "avg\(Int64\(61\)\) \* \(\- count\(\*\)\) \+ Int64\(\-81\) \- Int64\(\-99\) \* Int64\(3\) \* avg\(CAST\(NULL AS Int32\)\) \+ Int64\(95\) \+ Int64\(\-21\) / Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(40\) \* Int64\(0\) AS col1" at position 0 and "avg\(Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-81\) \- Int64\(\-99\) \* Int64\(3\) \* avg\(CAST\(NULL AS Int32\)\) \+ Int64\(95\) \+ Int64\(\-21\) / Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 * + + 40 * - 0 col1, AVG ( + 61 ) * + - COUNT ( * ) + + - 81 - - 99 * 3 * + + AVG ( + CAST ( NULL AS INTEGER ) ) + 95 + + - 21 / 30 AS col1 # Datafusion - Types were automatically converted from: @@ -12606,7 +12606,7 @@ SELECT ALL 64 * + SUM ( DISTINCT 62 ) + - CASE - 18 WHEN - 97 / 45 THEN NULL WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) AS col2" at position 0 and "Int64\(\-86\) \+ Int64\(77\) \* \(\- CAST\(Int64\(29\) AS Int32\)\) \* Int64\(14\) \* Int64\(23\) \+ Int64\(12\) \+ avg\(Int64\(\-77\)\) / \(\- CASE Int64\(\-30\) WHEN Int64\(\-45\) THEN Int64\(95\) \* Int64\(3\) WHEN \(\- coalesce\(CASE count\(\*\) WHEN \(\- Int64\(45\)\) THEN NULL WHEN Int64\(\-82\) \* \(\- max\(\(\- \(\- Int64\(40\)\)\)\)\) THEN NULL WHEN Int64\(65\) THEN Int64\(8\) \* count\(\*\) END, \(\- Int64\(\-7\)\) \* Int64\(\-94\) \+ Int64\(26\) \+ Int64\(63\) \* Int64\(64\)\)\) \+ max\(Int64\(9\)\) \* avg\(Int64\(\-46\) \* Int64\(34\)\) THEN Int64\(\-95\) \+ Int64\(43\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) AS col2" at position 0 and "Int64\(\-86\) \+ Int64\(77\) \* \(\- CAST\(Int64\(29\) AS Int32\)\) \* Int64\(14\) \* Int64\(23\) \+ Int64\(12\) \+ avg\(Int64\(\-77\)\) / \(\- CASE Int64\(\-30\) WHEN Int64\(\-45\) THEN Int64\(95\) \* Int64\(3\) WHEN \(\- coalesce\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(45\)\) THEN NULL WHEN Int64\(\-82\) \* \(\- max\(\(\- \(\- Int64\(40\)\)\)\)\) THEN NULL WHEN Int64\(65\) THEN Int64\(8\) \* count\(Int64\(1\)\) AS count\(\*\) END, \(\- Int64\(\-7\)\) \* Int64\(\-94\) \+ Int64\(26\) \+ Int64\(63\) \* Int64\(64\)\)\) \+ max\(Int64\(9\)\) \* avg\(Int64\(\-46\) \* Int64\(34\)\) THEN Int64\(\-95\) \+ Int64\(43\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + 91 ) AS col2, - 86 + 77 * + - CAST ( + 29 AS INTEGER ) * 14 * + 23 + + 12 + + AVG ( - 77 ) / - + CASE + - 30 WHEN - 45 THEN 95 * 3 WHEN + - COALESCE ( CASE + COUNT ( * ) WHEN - + 45 THEN NULL WHEN - 82 * - MAX ( ALL - - ( + 40 ) ) THEN NULL WHEN 65 THEN 8 * COUNT ( * ) END, - - 7 * + - 94 + + + 26 + 63 * + 64 ) + + MAX ( ALL 9 ) * + AVG ( ALL - 46 * 34 ) THEN - 95 + 43 END AS col2 query II rowsort @@ -12833,7 +12833,7 @@ SELECT DISTINCT + NULLIF ( - 78, 32 ) * - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-54\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(3\) / 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\(Int64\(\-54\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(3\) / Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( - 54 ) * - COUNT ( * ) col2, 3 / - 66 AS col2 query I rowsort label-2435 @@ -13123,7 +13123,7 @@ SELECT DISTINCT + 25 + + + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 687 -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\(\-77\)\)\)\) \* Int64\(\-11\) \+ Int64\(58\) \* Int64\(12\) \+ Int64\(\-19\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-77\)\)\)\) \* Int64\(\-11\) \+ Int64\(58\) \* Int64\(12\) \+ Int64\(\-19\) \+ \(\- 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 ( - - 77 ) * - 11 + + 58 * 12 + + - 19 + - COUNT ( * ) AS col0 query I rowsort @@ -13409,7 +13409,7 @@ SELECT + - 0 + + + 46 * - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-87\) \+ Int64\(3\) \* \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(\-16\)\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-87\) \+ Int64\(3\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-16\)\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 25 + - 87 + + 3 * - COUNT ( * ) AS col2, + COUNT ( * ) * - - 16 + + - CAST ( + 9 AS INTEGER ) AS col2 query I rowsort @@ -14003,7 +14003,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\(\*\) 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 @@ -14100,7 +14100,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\(80\) \* Int64\(1\) \+ Int64\(11\)\) / min\(DISTINCT Int64\(\-34\)\) \+ Int64\(\-74\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have 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 @@ -14474,7 +14474,7 @@ SELECT + 70 / - 24 AS col1, CASE 57 WHEN - - 2 THEN + 25 ELSE - 46 * ( + 4 ) / 3 # 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\(\*\)\) \* \(\- 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\(\*\)\) \* \(\- 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 ( * ) * + - COUNT ( * ) AS col2, 85 AS col2 query I rowsort @@ -16524,7 +16524,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\(\*\) 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 @@ -16936,7 +16936,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\(\*\) 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 @@ -17544,7 +17544,7 @@ SELECT 71 * - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 560 # Datafusion - Expected - 487 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(35\) AS col2" at position 0 and "count\(\*\) \+ Int64\(54\) \* \(\- nullif\(Int64\(\-9\), \(\- avg\(DISTINCT 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\(16\) \* Int64\(35\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(54\) \* \(\- nullif\(Int64\(\-9\), \(\- avg\(DISTINCT Int64\(20\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 16 * + 35 AS col2, COUNT ( * ) + + 54 * + - NULLIF ( - 9, - AVG ( DISTINCT 20 ) ) AS col2 query I rowsort @@ -18921,7 +18921,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\(\*\) 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 @@ -21187,7 +21187,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(84\) \* coalesce\(Int64\(32\), count\(\*\)\) \+ Int64\(26\) \* Int64\(\-81\) \+ \(\- 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\(3\) AS col2" at position 0 and "Int64\(84\) \* coalesce\(Int64\(32\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(26\) \* Int64\(\-81\) \+ \(\- Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 3 AS col2, 84 * COALESCE ( + + 32, COUNT ( * ) ) + 26 * - 81 + - + 57 AS col2 query I rowsort label-4024 @@ -21423,7 +21423,7 @@ SELECT ALL 49 / + 73 col2, + NULLIF ( + 6, 72 + - 43 ) - + NULLIF ( 0, + + SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- count\(\*\)\) / Int64\(2\) \+ Int64\(99\) / Int64\(97\) \+ \(\- coalesce\(Int64\(96\), count\(\*\), CASE Int64\(\-27\) WHEN \(\- CAST\(Int64\(\-93\) AS Int32\)\) \+ Int64\(84\) THEN NULL WHEN \(\- nullif\(coalesce\(Int64\(94\), Int64\(98\) \* Int64\(\-99\)\), Int64\(70\)\)\) \* Int64\(1\) THEN Int64\(72\) \* \(\- Int64\(52\)\) END / Int64\(\-21\) \* Int64\(20\) \- Int64\(42\)\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(2\) \+ Int64\(99\) / Int64\(97\) \+ \(\- coalesce\(Int64\(96\), count\(Int64\(1\)\) AS count\(\*\), CASE Int64\(\-27\) WHEN \(\- CAST\(Int64\(\-93\) AS Int32\)\) \+ Int64\(84\) THEN NULL WHEN \(\- nullif\(coalesce\(Int64\(94\), Int64\(98\) \* Int64\(\-99\)\), Int64\(70\)\)\) \* Int64\(1\) THEN Int64\(72\) \* \(\- Int64\(52\)\) END / Int64\(\-21\) \* Int64\(20\) \- Int64\(42\)\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 97 + + - COUNT ( * ) / + 2 + + 99 / + + 97 + - COALESCE ( + 96, + + COUNT ( * ), CASE - 27 WHEN - + CAST ( - 93 AS INTEGER ) + 84 THEN NULL WHEN - NULLIF ( + + COALESCE ( 94, 98 * - 99 ), + 70 ) * 1 THEN 72 * - + 52 END / - 21 * + 20 - + + 42 ) col0, 7 AS col0 query II rowsort label-4069 @@ -21488,7 +21488,7 @@ SELECT COUNT ( * ) + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "\(\- CASE Int64\(45\) WHEN Int64\(38\) THEN NULL ELSE Int64\(51\) END\) \- \(\- \(\- count\(\*\)\)\) \+ CAST\(NULL AS Int32\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "\(\- CASE Int64\(45\) WHEN Int64\(38\) THEN NULL ELSE Int64\(51\) END\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(NULL AS Int32\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 AS col0, - CASE + 45 WHEN + 38 THEN NULL ELSE + 51 END - - + ( - COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) * 49 AS col0 query I rowsort label-4081 @@ -22732,7 +22732,7 @@ SELECT DISTINCT 85 + - COUNT ( * ) + - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(45\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(66\) \* Int64\(63\) \+ Int64\(2\) \* Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(66\) \* Int64\(63\) \+ Int64\(2\) \* Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 29 + - + CAST ( NULL AS INTEGER ) + 45 + - + COUNT ( * ) col1, 66 * + + 63 + + + 2 * + 81 col1 query I rowsort label-4316 @@ -23289,7 +23289,7 @@ SELECT 77 * - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -38303 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(96\) \* \(\- \(\- Int64\(57\)\)\) \* Int64\(\-7\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(96\) \* \(\- \(\- Int64\(57\)\)\) \* Int64\(\-7\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 83 col2, + 96 * - - ( 57 ) * - 7 - - COUNT ( * ) AS col2 query I rowsort label-4420 @@ -23577,7 +23577,7 @@ SELECT 4 * - + 75 + + ( 86 ) - CAST ( + 17 AS INTEGER ) * 23 AS col2, 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 207 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(3\) AS col0" at position 0 and "Int64\(21\) \* CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(3\) AS col0" at position 0 and "Int64\(21\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 * + 3 AS col0, 21 * CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-4475 @@ -24138,7 +24138,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1424 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(53\), \(\- count\(\*\)\)\) \* Int64\(25\) \+ Int64\(99\) 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 "coalesce\(Int64\(53\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(25\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + ( 53 ), - COUNT ( * ) ) * 25 + 99 col2, 63 col2 query I rowsort label-4581 @@ -24466,7 +24466,7 @@ SELECT 49 + + 56 AS col1 # Datafusion - Expected - 41 # Datafusion - Expected - -5 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(\-25\) \- count\(\*\) \* \(\- Int64\(67\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(\-25\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(67\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 col0, 74 / - 13 AS col2, + - 25 - + COUNT ( * ) * - + 67 AS col0 query I rowsort @@ -26806,7 +26806,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\(\*\) 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 @@ -27741,7 +27741,7 @@ SELECT ALL + 46 * - + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1235 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(19\) AS col1" at position 0 and "count\(\*\) \* \(\- \(\- Int64\(68\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(19\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- Int64\(68\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 65 * + 19 AS col1, COUNT ( * ) * - - ( 68 ) AS col1 query I rowsort label-5271 @@ -27752,7 +27752,7 @@ SELECT 81 + 61 + + 78 / + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 166 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(76\) AS col0" at position 0 and "count\(\*\) \+ \(\- Int64\(\-14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 + + + 76 AS col0, COUNT ( * ) + - - 14 AS col0 query I rowsort label-5273 @@ -27851,7 +27851,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) \+ \(\- Int64\(\-58\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) \+ \(\- Int64\(\-58\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 90 AS INTEGER ) + - - 58 AS col2, + COUNT ( * ) * - 88 col2 query I rowsort @@ -27923,7 +27923,7 @@ SELECT - 92 + + 34 * COUNT ( * ) + MAX ( ALL - + ( - - ( + 99 ) ) ) * 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col1" at position 0 and "Int64\(14\) / \(\- count\(\*\)\) AS col1" at position 1 have the 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 "Int64\(14\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 32 AS col1, 14 / - COUNT ( * ) AS col1 query I rowsort label-5306 @@ -28030,7 +28030,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\(\*\) 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 @@ -28092,7 +28092,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 20623 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-71\) \+ Int64\(\-32\) \+ Int64\(\-64\) \+ Int64\(45\) \* Int64\(11\) \* Int64\(42\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\) \+ Int64\(\-32\) \+ Int64\(\-64\) \+ Int64\(45\) \* Int64\(11\) \* Int64\(42\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - 71 + - 32 + - 64 + + 45 * 11 * + 42 * - - COUNT ( * ) AS col2 query I rowsort @@ -29097,7 +29097,7 @@ SELECT DISTINCT + 96 / 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4440 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) \* Int64\(89\) \* count\(\*\) \- count\(\*\) \- Int64\(9\) 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 "\(\- Int64\(\-50\)\) \* Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(9\) AS col2" at position 0 and "Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 50 * + 89 * + COUNT ( * ) - + COUNT ( * ) - + 9 AS col2, - 18 AS col2 query I rowsort label-5527 @@ -29621,7 +29621,7 @@ SELECT ALL + 16 * MAX ( 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ coalesce\(Int64\(\-13\), Int64\(74\), Int64\(98\) \* 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 "Int64\(44\) \+ coalesce\(Int64\(\-13\), Int64\(74\), Int64\(98\) \* 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 44 + COALESCE ( - 13, + 74, 98 * COUNT ( * ) ) AS col2, + 99 AS col2 query II rowsort label-5625 @@ -30301,7 +30301,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\(\*\) AS col2" at position 1 have the 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 @@ -30463,7 +30463,7 @@ SELECT ALL - + 12 + + + 84 + 98 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-41\) 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\(\*\) \+ Int64\(\-41\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - 41 AS col0, + 24 AS col0 query II rowsort label-5785 @@ -31174,7 +31174,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\(\*\) AS col0" at position 1 have the 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: @@ -31662,7 +31662,7 @@ SELECT ( + + 82 ) + - + COUNT ( * ) * - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-51\)\) \* CASE \(\- count\(\*\)\) WHEN Int64\(21\) \+ Int64\(7\) THEN count\(\*\) WHEN \(\- Int64\(\-46\)\) \* CAST\(NULL AS Int32\) THEN NULL END AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-51\)\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(21\) \+ Int64\(7\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-46\)\) \* CAST\(NULL AS Int32\) THEN NULL END AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( - 51 ) * + CASE - ( COUNT ( * ) ) WHEN + 21 + + 7 THEN + COUNT ( * ) WHEN - - 46 * + CAST ( NULL AS INTEGER ) THEN NULL END AS col2, 6 AS col2 query I rowsort label-6010 @@ -37000,7 +37000,7 @@ SELECT - + SUM ( - 45 ) * CAST ( + + COUNT ( * ) AS INTEGER ) + - 69 - - 74 + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(77\) \+ Int64\(46\) 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\(\*\) \* Int64\(77\) \+ Int64\(46\) 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 ( * ) * 77 + + 46 AS col0, 91 AS col0 query I rowsort label-7032 @@ -37107,7 +37107,7 @@ SELECT - 57 + - 2 # 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\(\*\)\) 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 - COUNT ( * ) AS col2, 9 AS col2 # Datafusion - Datafusion expected results: @@ -37916,7 +37916,7 @@ SELECT ALL 82 + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) \+ \(\- \(\- 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 "\(\- Int64\(35\)\) \+ \(\- \(\- 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 ALL - + 35 + - - COUNT ( * ) col2, - 64 AS col2 query I rowsort @@ -38002,7 +38002,7 @@ SELECT 91 * - 37 * - 33 + NULLIF ( - COUNT ( * ), - 82 ) * + 2 + - - 18 col2 # Datafusion - Expected - 27 # Datafusion - Expected - 74 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \- CAST\(Int64\(\-33\) AS Int32\) \+ Int64\(49\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(\-74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \- CAST\(Int64\(\-33\) AS Int32\) \+ Int64\(49\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 55 - CAST ( - 33 AS INTEGER ) + 49 AS col2, COUNT ( * ) * - - 74 AS col2, - SUM ( DISTINCT 10 ) query I rowsort @@ -38287,7 +38287,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\(\*\) AS col2" at position 1 have the 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 @@ -38512,7 +38512,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(54\) \* \(\- nullif\(\(\- nullif\(Int64\(10\), Int64\(\-82\)\)\), Int64\(\-77\) \+ \(\- count\(\*\)\) \- Int64\(\-69\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(54\) \* \(\- nullif\(\(\- nullif\(Int64\(10\), Int64\(\-82\)\)\), Int64\(\-77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-69\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 15 AS col1, 54 * - NULLIF ( - NULLIF ( + + 10, - 82 ), - 77 + - + ( COUNT ( * ) ) - - 69 ) AS col1 query I rowsort label-7318 @@ -38701,7 +38701,7 @@ SELECT + 36 + + ( 56 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 312 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* count\(\*\) \+ \(\- sum\(\(\- Int64\(65\)\)\)\) \* \(\- Int64\(\-4\)\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- sum\(\(\- Int64\(65\)\)\)\) \* \(\- Int64\(\-4\)\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 * + ( + COUNT ( * ) ) + - SUM ( - + 65 ) * - ( - 4 ) AS col1, + 81 AS col1 query I rowsort label-7354 @@ -39840,7 +39840,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 3279 -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\(\-93\) \+ Int64\(\-10\) \+ \(\- Int64\(\-49\)\) \* \(\- 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\(73\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-93\) \+ Int64\(\-10\) \+ \(\- Int64\(\-49\)\) \* \(\- Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 AS col0, COUNT ( * ) + - 93 + - 10 + - - 49 * - - 69 AS col0 query I rowsort @@ -40047,7 +40047,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\(\*\) 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 @@ -40497,7 +40497,7 @@ SELECT DISTINCT - 41 + 90 / 26, + 77 - - - 55 + ( + + MAX ( + + 19 ) ) / - - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) \* Int64\(22\) AS col1" at position 0 and "count\(\*\) \* Int64\(94\) / coalesce\(\(\- coalesce\(Int64\(46\), Int64\(81\) \+ CAST\(NULL AS Int32\) \* Int64\(93\)\)\), Int64\(96\) \+ \(\- Int64\(62\)\) \+ Int64\(78\) \+ \(\- CAST\(Int64\(49\) AS Int32\)\) \- Int64\(4\) \+ coalesce\(Int64\(54\), Int64\(\-31\)\) \* Int64\(93\) \* \(\- count\(\*\)\), \(\- \(\- count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) \* Int64\(22\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(94\) / coalesce\(\(\- coalesce\(Int64\(46\), Int64\(81\) \+ CAST\(NULL AS Int32\) \* Int64\(93\)\)\), Int64\(96\) \+ \(\- Int64\(62\)\) \+ Int64\(78\) \+ \(\- CAST\(Int64\(49\) AS Int32\)\) \- Int64\(4\) \+ coalesce\(Int64\(54\), Int64\(\-31\)\) \* Int64\(93\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - ( - 4 ) * 22 AS col1, + COUNT ( * ) * 94 / COALESCE ( - COALESCE ( 46, 81 + CAST ( NULL AS INTEGER ) * 93 ), + ( 96 ) + - + 62 + 78 + + - CAST ( 49 AS INTEGER ) - 4 + + COALESCE ( 54, - 31 ) * + 93 * - COUNT ( * ), - ( - COUNT ( * ) ) ) AS col1 query I rowsort label-7692 @@ -41318,7 +41318,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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -42674,7 +42674,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\(\*\) 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: @@ -45694,7 +45694,7 @@ SELECT ALL - + 73 + - + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(74\)\) \* Int64\(\-87\) / Int64\(\-59\) \* Int64\(56\) \+ Int64\(8\) \+ \(\- coalesce\(Int64\(\-74\), Int64\(\-53\)\)\) \+ \(\- \(\- count\(\*\)\)\) \* Int64\(66\) \* Int64\(61\) \* Int64\(98\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \- Int64\(55\) / count\(\*\) \- Int64\(75\) AS col0" at position 0 and "Int64\(30\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(74\)\) \* Int64\(\-87\) / Int64\(\-59\) \* Int64\(56\) \+ Int64\(8\) \+ \(\- coalesce\(Int64\(\-74\), Int64\(\-53\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(66\) \* Int64\(61\) \* Int64\(98\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \- Int64\(55\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(75\) AS col0" at position 0 and "Int64\(30\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + AVG ( + + 74 ) * - 87 / - 59 * + 56 + + 8 + - COALESCE ( - 74, - 53 ) + - - COUNT ( * ) * 66 * + 61 * + 98 / + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + + 55 / + COUNT ( * ) - + + 75 AS col0, 30 * + 35 AS col0 query I rowsort label-8693 @@ -46145,7 +46145,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\(\*\) AS Int32\) / \(\- Int64\(74\)\) \+ \(\- 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 @@ -46205,7 +46205,7 @@ SELECT DISTINCT 92, 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- \(\- Int64\(\-38\)\) \+ Int64\(16\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(67\) \+ CASE Int64\(27\) WHEN \(\- Int64\(75\)\) \+ \(\- min\(Int64\(27\)\)\) THEN Int64\(\-11\) \* Int64\(33\) ELSE NULL END \+ count\(\*\) \* Int64\(24\) \+ \(\- nullif\(\(\- count\(\*\)\), Int64\(41\)\)\) \* nullif\(Int64\(\-11\), \(\- Int64\(5\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- \(\- Int64\(\-38\)\) \+ Int64\(16\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(67\) \+ CASE Int64\(27\) WHEN \(\- Int64\(75\)\) \+ \(\- min\(Int64\(27\)\)\) THEN Int64\(\-11\) \* Int64\(33\) ELSE NULL END \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(24\) \+ \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(41\)\)\) \* nullif\(Int64\(\-11\), \(\- Int64\(5\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 - - - 38 + + 16 * + - COUNT ( * ) AS col2, 67 + CASE 27 WHEN - + 75 + - MIN ( + 27 ) THEN - 11 * 33 ELSE NULL END + + + COUNT ( * ) * + 24 + - NULLIF ( - COUNT ( * ), 41 ) * NULLIF ( + - 11, - + 5 ) AS col2 query II rowsort label-8789 @@ -46561,7 +46561,7 @@ SELECT + - 50 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -175 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(16\) \+ Int64\(\-64\) AS col1" at position 0 and "Int64\(\-84\) \- 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\(\*\)\) \* Int64\(16\) \+ Int64\(\-64\) AS col1" at position 0 and "Int64\(\-84\) \- Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 16 + - 64 AS col1, - 84 - + + 91 AS col1 query II rowsort label-8857 @@ -46970,7 +46970,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\(\*\) AS col1" at position 1 have the 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 @@ -47192,7 +47192,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 4708689 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "\(\- nullif\(Int64\(49\), Int64\(\-98\)\)\) \* count\(\*\) \* Int64\(13\) \* Int64\(88\) \* Int64\(\-84\) \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "\(\- nullif\(Int64\(49\), Int64\(\-98\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(13\) \* Int64\(88\) \* Int64\(\-84\) \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 7 ) AS col1, - ( NULLIF ( 49, - 98 ) ) * + + COUNT ( * ) * 13 * + + 88 * - 84 + - 15 AS col1 query II rowsort label-8976 @@ -47554,7 +47554,7 @@ SELECT DISTINCT 38 * - 24 * - + ( - + 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 2586 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ count\(Int64\(56\)\) AS col2" at position 0 and "Int64\(46\) \* max\(DISTINCT Int64\(56\)\) \+ Int64\(12\) \+ 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\(\*\) \+ count\(Int64\(56\)\) AS col2" at position 0 and "Int64\(46\) \* max\(DISTINCT Int64\(56\)\) \+ Int64\(12\) \+ Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + COUNT ( ALL + 56 ) AS col2, 46 * + MAX ( DISTINCT + + ( + 56 ) ) + 12 + - 2 AS col2 query I rowsort label-9043 @@ -48286,7 +48286,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\(\*\) AS col1" at position 1 have the 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 @@ -48730,7 +48730,7 @@ SELECT DISTINCT + 5 - - CASE + - ( 3 ) WHEN + CASE - 49 WHEN - 28 THEN NULL WHEN # 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\(Int64\(32\)\)\) AS col0" at position 0 and "count\(\*\) \* \(\- count\(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 "\(\- min\(Int64\(32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(\-98\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( + + 32 ) AS col0, COUNT ( * ) * - COUNT ( - 98 ) col0 query II rowsort label-9265 @@ -51903,7 +51903,7 @@ SELECT + + ( - NULLIF ( - ( + 80 ), - + 78 + + - 20 + + + COUNT ( DISTINCT + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-97\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(50\) \+ Int64\(4\) \* Int64\(\-23\) \* Int64\(\-97\) AS col2" at position 0 and "\(\- Int64\(56\)\) \* min\(Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-97\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(50\) \+ Int64\(4\) \* Int64\(\-23\) \* Int64\(\-97\) AS col2" at position 0 and "\(\- Int64\(56\)\) \* min\(Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + - 97 * - - CAST ( NULL AS INTEGER ) * 50 + 4 * + - 23 * - 97 col2, ( - ( 56 ) ) * MIN ( + 12 ) col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_103.slt b/data/sqlite/random/expr/slt_good_103.slt index efefa3c..6a28378 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\(\*\) AS col2" at position 1 have the 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 @@ -816,7 +816,7 @@ SELECT + 25 * + 91 + - + 84 + + 90 * - 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "Int64\(70\) \* Int64\(83\) / Int64\(38\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "Int64\(70\) \* Int64\(83\) / Int64\(38\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + + - 33 AS col0, 70 * + + 83 / + 38 + - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -3323,7 +3323,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 32 -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\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 72 AS col1, COUNT ( * ) + + + 31 AS col1 query I rowsort label-623 @@ -3458,7 +3458,7 @@ SELECT - COUNT ( * ) + + + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / Int64\(23\) \* coalesce\(Int64\(\-85\), Int64\(48\)\) \* Int64\(16\) \* Int64\(32\) / \(\- CASE Int64\(56\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(57\) \* Int64\(14\) THEN \(\- count\(Int64\(10\)\)\) / Int64\(55\) \+ \(\- Int64\(17\)\) END\) \* Int64\(52\) \* \(\- count\(\*\)\) \+ \(\- count\(\*\)\) \- Int64\(44\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / Int64\(23\) \* coalesce\(Int64\(\-85\), Int64\(48\)\) \* Int64\(16\) \* Int64\(32\) / \(\- CASE Int64\(56\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(57\) \* Int64\(14\) THEN \(\- count\(Int64\(10\)\)\) / Int64\(55\) \+ \(\- Int64\(17\)\) END\) \* Int64\(52\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(44\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 / + 23 * ( + COALESCE ( - 85, + 48 ) ) * 16 * + 32 / - CASE 56 WHEN + - ( CAST ( NULL AS INTEGER ) ) + + 57 * 14 THEN + - COUNT ( ALL 10 ) / + 55 + - + 17 END * + 52 * - COUNT ( * ) + - COUNT ( * ) - 44 AS col2, 93 AS col2 query I rowsort label-649 @@ -4011,7 +4011,7 @@ SELECT + ( 82 ) * - 20 * + CAST ( - - COUNT ( * ) AS INTEGER ) + - 79 - + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) / CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(\*\) \* Int64\(\-95\) \+ \(\- count\(Int64\(91\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-95\) \+ \(\- count\(Int64\(91\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * - 95 + - + COUNT ( + 91 ) AS col0 query I rowsort @@ -4499,7 +4499,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\(\*\) AS col2" at position 1 have the 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 @@ -5463,7 +5463,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\(\*\) 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 @@ -5729,7 +5729,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\(\*\) AS col2" at position 1 have the 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 @@ -5777,7 +5777,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\(\*\) 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 @@ -8135,7 +8135,7 @@ SELECT - 90 + - ( - 0 ) * + 73 + + + COUNT ( * ) AS col0, + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-70\), \(\- Int64\(\-56\)\), min\(Int64\(\-99\)\)\) AS col1" at position 0 and "Int64\(43\) \+ Int64\(11\) \* \(\- count\(\*\)\) AS col1" at position 1 have 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\(\-70\), \(\- Int64\(\-56\)\), min\(Int64\(\-99\)\)\) AS col1" at position 0 and "Int64\(43\) \+ Int64\(11\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( - 70, - - 56, + MIN ( + - 99 ) ) AS col1, 43 + + 11 * - COUNT ( * ) AS col1 query I rowsort label-1550 @@ -8592,7 +8592,7 @@ SELECT + SUM ( DISTINCT 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(53\) \* Int64\(\-42\) AS col1" at position 0 and "\(\- CASE Int64\(63\) WHEN \(\- count\(\*\)\) \* Int64\(15\) \+ \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(\-84\) \- Int64\(\-19\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(53\) \* Int64\(\-42\) AS col1" at position 0 and "\(\- CASE Int64\(63\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(\-84\) \- Int64\(\-19\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 52 / + 53 * - 42 AS col1, + ( - CASE + 63 WHEN - COUNT ( * ) * 15 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 84 - + - 19 END ) AS col1 query I rowsort @@ -9581,7 +9581,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -95 -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\(\-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\(16\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 AS col1, - COUNT ( * ) + - 94 AS col1 # Datafusion - Types were automatically converted from: @@ -10313,7 +10313,7 @@ SELECT - 75 / + 33 AS col2 # 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\(\-4\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(42\) \- count\(DISTINCT Int64\(89\)\) \* Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-4\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(42\) \- count\(DISTINCT Int64\(89\)\) \* Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) - - - 4 col0, + COUNT ( * ) * 42 - COUNT ( DISTINCT + 89 ) * - 3 AS col0 query I rowsort @@ -10941,7 +10941,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\(\*\) AS col0" at position 1 have the 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 @@ -11505,7 +11505,7 @@ SELECT 75 / + 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-47\)\), Int64\(\-49\) \* \(\- \(\- count\(\*\)\)\)\) / Int64\(81\) AS col1" at position 0 and "Int64\(54\) \* count\(\*\) \- \(\- CASE \(\- \(\- Int64\(\-53\)\)\) WHEN Int64\(3\) THEN Int64\(\-65\) ELSE NULL END\) \+ 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 "nullif\(\(\- Int64\(\-47\)\), Int64\(\-49\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(81\) AS col1" at position 0 and "Int64\(54\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- CASE \(\- \(\- Int64\(\-53\)\)\) WHEN Int64\(3\) THEN Int64\(\-65\) ELSE NULL END\) \+ Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - - 47, - 49 * - - COUNT ( * ) ) / + + 81 col1, 54 * + COUNT ( * ) - - CASE - + ( - - 53 ) WHEN + 3 THEN + - 65 ELSE NULL END + - 37 AS col1 query I rowsort @@ -12565,7 +12565,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\(\*\) 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 @@ -12870,7 +12870,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\(\*\) AS col1" at position 1 have the 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: @@ -12942,7 +12942,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\(\*\) AS col2" at position 1 have the 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 @@ -12993,7 +12993,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\(\*\) AS col2" at position 1 have the 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 @@ -13583,7 +13583,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\(\*\) AS col1" at position 1 have the 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 @@ -15480,7 +15480,7 @@ SELECT + 11 AS col2, 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-84\), Int64\(\-8\), count\(\*\) \+ Int64\(66\)\)\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-84\), Int64\(\-8\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\)\)\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, - COALESCE ( - 84, ( - 8 ), + COUNT ( * ) + 66 ) + 80 * - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2951 @@ -16088,7 +16088,7 @@ SELECT 35 + + 36 # 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\(\*\)\)\) 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 DISTINCT - - COUNT ( * ) AS col1, + 72 AS col1 query I rowsort label-3068 @@ -17149,7 +17149,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\(\-26\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -18683,7 +18683,7 @@ SELECT + + 50 * - 99 * 83 * - COUNT ( * ) - + 59 - 5 + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "Int64\(33\) \+ count\(\*\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 43 AS col0, 33 + + COUNT ( * ) + + + 47 AS col0 query II rowsort label-3563 @@ -19693,7 +19693,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\(\*\) AS col1" at position 0 and "\(\- CASE WHEN NOT Int64\(56\) NOT IN \(\[Int64\(60\) \- Int64\(90\) \+ CAST\(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 @@ -20692,7 +20692,7 @@ SELECT ALL - 17 + + + 69 # 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\(\*\)\) AS col1" at position 0 and "max\(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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col1, MAX ( DISTINCT - 81 ) AS col1 query I rowsort @@ -21432,7 +21432,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\)\) \* Int64\(2\) \+ count\(\(\- CAST\(NULL AS Float64\)\)\) AS col2" at position 0 and "Int64\(51\) \- count\(\*\) \- Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \* Int64\(2\) \+ count\(\(\- CAST\(NULL AS Float64\)\)\) AS col2" at position 0 and "Int64\(51\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 2 + + + COUNT ( - CAST ( NULL AS FLOAT8 ) ) AS col2, 51 - + + COUNT ( * ) - - 97 AS col2 query I rowsort label-4083 @@ -22101,7 +22101,7 @@ SELECT DISTINCT + 29 * 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2574 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* nullif\(Int64\(39\), \(\- Int64\(65\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* nullif\(Int64\(39\), \(\- 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 + - 66 * + + NULLIF ( 39, - + 65 ) AS col0, - COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -22306,7 +22306,7 @@ SELECT - CAST ( - 59 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 118 # Datafusion - Expected - -4712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(30\) \+ Int64\(46\) \- \(\- count\(\*\)\) \+ nullif\(nullif\(Int64\(\-17\), \(\- Int64\(60\)\) \* Int64\(52\) \* Int64\(54\)\), Int64\(\-41\) \+ CAST\(Int64\(\-35\) AS Float64\) / Int64\(\-32\) \* coalesce\(Int64\(\-93\), Int64\(\-84\) \- count\(\*\) \+ coalesce\(Int64\(\-24\), Int64\(\-52\)\)\)\) \+ Int64\(34\) \* count\(Int64\(\-59\)\) \+ Int64\(\-40\) / \(\- Int64\(\-87\)\) \- Int64\(\-24\) AS col1" at position 0 and "Int64\(\-62\) \* 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\(\*\) \* Int64\(30\) \+ Int64\(46\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ nullif\(nullif\(Int64\(\-17\), \(\- Int64\(60\)\) \* Int64\(52\) \* Int64\(54\)\), Int64\(\-41\) \+ CAST\(Int64\(\-35\) AS Float64\) / Int64\(\-32\) \* coalesce\(Int64\(\-93\), Int64\(\-84\) \- count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(\-24\), Int64\(\-52\)\)\)\) \+ Int64\(34\) \* count\(Int64\(\-59\)\) \+ Int64\(\-40\) / \(\- Int64\(\-87\)\) \- Int64\(\-24\) AS col1" at position 0 and "Int64\(\-62\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 30 + 46 - - COUNT ( * ) + NULLIF ( + ( NULLIF ( - 17, - ( 60 ) * 52 * + 54 ) ), - 41 + ( + CAST ( - 35 AS FLOAT8 ) ) / + - 32 * COALESCE ( - 93, + - 84 - ( ( COUNT ( * ) ) ) + COALESCE ( + - 24, - 52 ) ) ) + + + 34 * COUNT ( ALL - 59 ) + + - 40 / - - 87 - + - 24 AS col1, - 62 * + 76 AS col1 query I rowsort label-4246 @@ -22668,7 +22668,7 @@ SELECT + MAX ( DISTINCT - + 96 ) + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7922 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \- coalesce\(Int64\(81\), count\(\*\) \- Int64\(\-14\) \+ Int64\(99\)\) \* Int64\(97\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \- coalesce\(Int64\(81\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-14\) \+ Int64\(99\)\) \* Int64\(97\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 65 - + COALESCE ( + ( + 81 ), COUNT ( * ) - - 14 + 99 ) * + + 97 AS col1, - 66 AS col1 query I rowsort @@ -23497,7 +23497,7 @@ SELECT DISTINCT - 2 / + + 55 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) \+ count\(\*\) \* nullif\(count\(\*\), Int64\(68\) \* Int64\(99\) \* Int64\(\-20\)\) \+ \(\- Int64\(\-39\)\) / min\(Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(68\) \* Int64\(99\) \* Int64\(\-20\)\) \+ \(\- Int64\(\-39\)\) / min\(Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col0, 90 + COUNT ( * ) * + + NULLIF ( + COUNT ( * ), 68 * 99 * - 20 ) + - - 39 / + MIN ( ALL - 8 ) AS col0 query I rowsort @@ -23549,7 +23549,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\(\*\) 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 @@ -24914,7 +24914,7 @@ SELECT - - COUNT ( ( ( - - 26 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(\-63\) AS col2" at position 0 and "coalesce\(Int64\(\-26\), Int64\(\-95\), count\(\*\), Int64\(33\) \* 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 "Int64\(\-10\) \+ Int64\(\-63\) AS col2" at position 0 and "coalesce\(Int64\(\-26\), Int64\(\-95\), count\(Int64\(1\)\) AS count\(\*\), Int64\(33\) \* Int64\(28\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 10 + - 63 AS col2, COALESCE ( - 26, - 95, + COUNT ( * ), + 33 * + 28 ) AS col2 query I rowsort label-4744 @@ -25803,7 +25803,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\(\*\) AS col1" at position 1 have the 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 @@ -26038,7 +26038,7 @@ SELECT + 28 + - + 80 * - + 55 / - - MIN ( DISTINCT - 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-45\) \+ \(\- coalesce\(\(\- max\(\(\- Int64\(\-61\)\)\)\), CASE Int64\(63\) WHEN count\(\*\) \+ Int64\(58\) THEN count\(\*\) ELSE Int64\(56\) \+ Int64\(\-31\) END \* CAST\(Int64\(68\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-45\) \+ \(\- coalesce\(\(\- max\(\(\- Int64\(\-61\)\)\)\), CASE Int64\(63\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(56\) \+ Int64\(\-31\) END \* CAST\(Int64\(68\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 31 AS col2, + ( + - 45 ) + - + COALESCE ( - MAX ( - - 61 ), CASE + 63 WHEN + + COUNT ( * ) + + 58 THEN COUNT ( * ) ELSE + 56 + - 31 END * CAST ( + 68 AS INTEGER ) ) AS col2 query I rowsort label-4958 @@ -26282,7 +26282,7 @@ SELECT + + 87 / 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(2\)\) \* \(\- count\(\*\)\) \+ Int64\(41\) 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\(2\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(41\) 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 - + 2 * - COUNT ( * ) + + ( 41 ) AS col1, 53 AS col1 query I rowsort @@ -26446,7 +26446,7 @@ SELECT DISTINCT 30 / - + 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "Int64\(4\) \* Int64\(88\) \+ count\(\*\) / Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "Int64\(4\) \* Int64\(88\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 17 AS col1, 4 * + 88 + COUNT ( * ) / ( + 12 ) AS col1 query I rowsort @@ -26603,7 +26603,7 @@ SELECT 26 * + + COUNT ( * ) * - 17 * 92 * - - 47 * + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 859 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- Int64\(22\)\) \* Int64\(39\) 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\(\*\) \- \(\- Int64\(22\)\) \* Int64\(39\) AS col1" at position 0 and "\(\- Int64\(55\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) - - + 22 * + + 39 AS col1, - ( + 55 ) AS col1 query I rowsort @@ -26785,7 +26785,7 @@ SELECT DISTINCT ( - + COUNT ( * ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3133 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \- Int64\(\-65\) \* Int64\(48\) \+ Int64\(84\) AS col0" at position 0 and "Int64\(55\) \* nullif\(count\(\*\), Int64\(\-42\) \- Int64\(92\) \- count\(\*\)\) / Int64\(44\) \+ 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\(\-71\) \- Int64\(\-65\) \* Int64\(48\) \+ Int64\(84\) AS col0" at position 0 and "Int64\(55\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-42\) \- Int64\(92\) \- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(44\) \+ Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 - - 65 * 48 + + 84 col0, 55 * NULLIF ( + COUNT ( * ), - 42 - + + 92 - + COUNT ( * ) ) / 44 + + + 46 AS col0 query I rowsort label-5100 @@ -27035,7 +27035,7 @@ SELECT - COUNT ( - - 84 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "\(\- \(\- CASE min\(Int64\(14\)\) WHEN CASE \(\- Int64\(55\)\) WHEN \(\- count\(\*\)\) THEN coalesce\(Int64\(\-87\), min\(DISTINCT Int64\(\-37\)\), Int64\(39\)\) / \(\- max\(Int64\(\-18\)\)\) \+ Int64\(\-87\) / Int64\(41\) END \* Int64\(\-15\) THEN max\(Int64\(\-46\)\) WHEN \(\- max\(Int64\(\-79\)\)\) \+ coalesce\(count\(Int64\(64\)\) \+ CASE Int64\(99\) \- count\(\*\) / Int64\(63\) WHEN coalesce\(\(\- CASE Int64\(38\) WHEN Int64\(83\) \* min\(DISTINCT Int64\(70\)\) \+ Int64\(10\) THEN Int64\(79\) \* Int64\(49\) ELSE Int64\(14\) \+ Int64\(64\) END\), Int64\(29\) \* Int64\(26\), Int64\(16\) \* Int64\(69\), Int64\(80\) \* Int64\(\-47\)\) \* Int64\(30\) THEN max\(Int64\(78\)\) \+ Int64\(\-56\) ELSE NULL END, Int64\(0\)\) THEN NULL WHEN max\(Int64\(17\)\) THEN NULL ELSE Int64\(9\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "\(\- \(\- CASE min\(Int64\(14\)\) WHEN CASE \(\- Int64\(55\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN coalesce\(Int64\(\-87\), min\(DISTINCT Int64\(\-37\)\), Int64\(39\)\) / \(\- max\(Int64\(\-18\)\)\) \+ Int64\(\-87\) / Int64\(41\) END \* Int64\(\-15\) THEN max\(Int64\(\-46\)\) WHEN \(\- max\(Int64\(\-79\)\)\) \+ coalesce\(count\(Int64\(64\)\) \+ CASE Int64\(99\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(63\) WHEN coalesce\(\(\- CASE Int64\(38\) WHEN Int64\(83\) \* min\(DISTINCT Int64\(70\)\) \+ Int64\(10\) THEN Int64\(79\) \* Int64\(49\) ELSE Int64\(14\) \+ Int64\(64\) END\), Int64\(29\) \* Int64\(26\), Int64\(16\) \* Int64\(69\), Int64\(80\) \* Int64\(\-47\)\) \* Int64\(30\) THEN max\(Int64\(78\)\) \+ Int64\(\-56\) ELSE NULL END, Int64\(0\)\) THEN NULL WHEN max\(Int64\(17\)\) THEN NULL ELSE Int64\(9\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col1, ( - - CASE MIN ( + 14 ) WHEN CASE - + 55 WHEN - + COUNT ( * ) THEN COALESCE ( - 87, + MIN ( DISTINCT - 37 ), + + 39 ) / - MAX ( - 18 ) + - 87 / + 41 END * - 15 THEN MAX ( + - 46 ) WHEN - MAX ( ALL - 79 ) + + COALESCE ( + COUNT ( ALL 64 ) + CASE 99 - COUNT ( * ) / + 63 WHEN COALESCE ( - CASE 38 WHEN 83 * MIN ( DISTINCT + 70 ) + 10 THEN 79 * 49 ELSE 14 + 64 END, 29 * + 26, 16 * + 69, + 80 * - 47 ) * + 30 THEN MAX ( ALL 78 ) + - 56 ELSE NULL END, 0 ) THEN NULL WHEN + MAX ( ALL + 17 ) THEN NULL ELSE 9 END ) AS col1 query I rowsort @@ -27346,7 +27346,7 @@ SELECT ALL 2 / + 27 + + - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 817 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "Int64\(17\) \* Int64\(48\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(17\) \* Int64\(48\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 59 ) AS col2, 17 * + 48 - - COUNT ( * ) AS col2 query II rowsort label-5208 @@ -27472,7 +27472,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\(\*\) AS col1" at position 0 and "count\(Int64\(79\)\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -27586,7 +27586,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\(\*\) 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 @@ -27676,7 +27676,7 @@ SELECT + 46 / + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- \(\- CAST\(Int64\(\-94\) AS Int32\)\)\) AS col0" at position 0 and "\(\- CASE Int64\(\-3\) WHEN Int64\(\-50\) THEN Int64\(93\) ELSE NULL END\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- \(\- CAST\(Int64\(\-94\) AS Int32\)\)\) AS col0" at position 0 and "\(\- CASE Int64\(\-3\) WHEN Int64\(\-50\) THEN Int64\(93\) ELSE NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 + - - CAST ( - 94 AS INTEGER ) AS col0, - CASE - 3 WHEN - 50 THEN + 93 ELSE NULL END + - COUNT ( * ) AS col0 query I rowsort label-5269 @@ -29969,7 +29969,7 @@ SELECT DISTINCT COUNT ( * ) * 36 * - 54 # 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 "\(\- \(\- nullif\(Int64\(88\), \(\- Int64\(\-65\)\)\)\)\) \+ Int64\(\-52\) AS col0" at position 0 and "Int64\(\-37\) \+ Int64\(40\) \+ \(\- Int64\(31\)\) \- \(\- Int64\(60\)\) \* CASE count\(\*\) WHEN \(\- min\(DISTINCT Int64\(58\)\)\) THEN Int64\(24\) \+ Int64\(50\) WHEN \(\- Int64\(\-53\)\) \+ Int64\(\-48\) THEN Int64\(49\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(88\), \(\- Int64\(\-65\)\)\)\)\) \+ Int64\(\-52\) AS col0" at position 0 and "Int64\(\-37\) \+ Int64\(40\) \+ \(\- Int64\(31\)\) \- \(\- Int64\(60\)\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- min\(DISTINCT Int64\(58\)\)\) THEN Int64\(24\) \+ Int64\(50\) WHEN \(\- Int64\(\-53\)\) \+ Int64\(\-48\) THEN Int64\(49\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + - NULLIF ( + 88, - - 65 ) ) + - 52 AS col0, - 37 + + + 40 + - + 31 - - + 60 * + CASE COUNT ( * ) WHEN - + MIN ( DISTINCT + 58 ) THEN + 24 + 50 WHEN - - 53 + + - 48 THEN + + 49 END AS col0 query I rowsort @@ -30416,7 +30416,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\(\*\) 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 @@ -31250,7 +31250,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\(\*\) 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 @@ -33322,7 +33322,7 @@ SELECT ALL 97 * - 3 * - 75 AS col0 # 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, - COUNT ( * ) + + 46 AS col0 query I rowsort @@ -33679,7 +33679,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\(\*\) AS col0" at position 1 have the 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 @@ -34363,7 +34363,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\(\*\) 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 @@ -35129,7 +35129,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\(\*\) AS col0" at position 1 have the 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 @@ -35382,7 +35382,7 @@ SELECT + 44 + - 0 + MAX ( + 91 ) - - 86 * - + 38 + 78 * - 86 * + 92 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 391 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(\-93\)\) \* Int64\(4\) AS col1" at position 0 and "count\(\*\) \+ \(\- CASE Int64\(\-83\) WHEN \(\- Int64\(\-94\)\) THEN \(\- count\(\*\)\) \* Int64\(\-67\) \+ Int64\(76\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-93\)\) \* Int64\(4\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(\-83\) WHEN \(\- Int64\(\-94\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-67\) \+ Int64\(76\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 20 + - + COUNT ( * ) + - - 93 * 4 AS col1, COUNT ( * ) + - + CASE - 83 WHEN - - 94 THEN - COUNT ( * ) * + ( - 67 ) + 76 END AS col1 query I rowsort @@ -36058,7 +36058,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\(\*\) 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 @@ -36172,7 +36172,7 @@ SELECT ALL + 52 - + + SUM ( 44 ) + + COUNT ( * ) * - + 34 * 66 # 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\(\*\)\) AS col1" at position 0 and "count\(DISTINCT 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\(DISTINCT Int64\(21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, COUNT ( DISTINCT 21 ) AS col1 query I rowsort @@ -36924,7 +36924,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5009 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(63\), count\(\*\) \* Int64\(\-3\) \+ Int64\(64\), Int64\(\-46\) \+ Int64\(\-18\) \- \(\- Int64\(\-3\)\) \* Int64\(\-26\) / \(\- Int64\(\-47\)\), count\(DISTINCT CAST\(Int64\(71\) AS Int32\)\)\) \* \(\- Int64\(\-78\)\) \+ Int64\(95\) AS col2" at position 0 and "Int64\(44\) \- Int64\(\-30\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(63\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-3\) \+ Int64\(64\), Int64\(\-46\) \+ Int64\(\-18\) \- \(\- Int64\(\-3\)\) \* Int64\(\-26\) / \(\- Int64\(\-47\)\), count\(DISTINCT CAST\(Int64\(71\) AS Int32\)\)\) \* \(\- Int64\(\-78\)\) \+ Int64\(95\) AS col2" at position 0 and "Int64\(44\) \- Int64\(\-30\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( + + 63, + + COUNT ( * ) * - 3 + + 64, - 46 + - 18 - - ( + - 3 ) * - 26 / - ( - 47 ), + COUNT ( DISTINCT + CAST ( + 71 AS INTEGER ) ) ) * - - 78 + + 95 AS col2, 44 - - 30 + + - 30 AS col2 query I rowsort label-7033 @@ -38900,7 +38900,7 @@ SELECT DISTINCT - 73 + 68 + COUNT ( + 41 ) + + COUNT ( * ) + - 84 * + COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(67\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-16\) \* 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\(\*\)\) / Int64\(67\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-16\) \* Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / + + 67 AS col1, 7 * + - 16 * - 15 AS col1 query I rowsort label-7412 @@ -40306,7 +40306,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\(\*\) AS col1" at position 1 have 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: @@ -40434,7 +40434,7 @@ SELECT ALL + 29 + - - 46 + 11, ( + - COUNT ( * ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "CASE Int64\(27\) WHEN count\(\*\) \* Int64\(\-69\) \+ Int64\(10\) THEN Int64\(50\) \* Int64\(\-4\) \+ Int64\(\-75\) \+ Int64\(\-32\) \+ Int64\(\-89\) / Int64\(18\) \* \(\- count\(\*\)\) \* Int64\(39\) \+ sum\(\(\- Int64\(\-59\)\)\) \+ Int64\(91\) END \* Int64\(44\) \* Int64\(68\) \* 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\(73\) AS col1" at position 0 and "CASE Int64\(27\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-69\) \+ Int64\(10\) THEN Int64\(50\) \* Int64\(\-4\) \+ Int64\(\-75\) \+ Int64\(\-32\) \+ Int64\(\-89\) / Int64\(18\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(39\) \+ sum\(\(\- Int64\(\-59\)\)\) \+ Int64\(91\) END \* Int64\(44\) \* Int64\(68\) \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 73 AS col1, CASE + 27 WHEN + + COUNT ( * ) * - 69 + + 10 THEN + + 50 * - 4 + + - 75 + - 32 + - 89 / + 18 * - + COUNT ( * ) * 39 + SUM ( - - 59 ) + + + 91 END * 44 * 68 * - 94 AS col1 query I rowsort label-7702 @@ -40529,7 +40529,7 @@ SELECT + 26 + - + 60 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\(\*\)\)\) 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\(1\)\) AS count\(\*\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - - COUNT ( * ) ) AS col0, + COUNT ( * ) * 57 AS col0 query I rowsort label-7719 @@ -41660,7 +41660,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\(\*\) 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 @@ -41985,7 +41985,7 @@ SELECT MAX ( DISTINCT + 74 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-52\) \- Int64\(96\) AS col2" at position 0 and "Int64\(33\) \+ CASE count\(\*\) WHEN Int64\(\-20\) THEN nullif\(count\(\*\), Int64\(\-18\) \* count\(Int64\(\-16\) \* Int64\(87\)\)\) WHEN CAST\(NULL AS Int32\) / Int64\(\-18\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) \- Int64\(96\) AS col2" at position 0 and "Int64\(33\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-20\) THEN nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-18\) \* count\(Int64\(\-16\) \* Int64\(87\)\)\) WHEN CAST\(NULL AS Int32\) / Int64\(\-18\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - 52 - + 96 AS col2, + 33 + CASE COUNT ( * ) WHEN - 20 THEN NULLIF ( + COUNT ( * ), - 18 * COUNT ( - 16 * 87 ) ) WHEN CAST ( NULL AS INTEGER ) / - 18 THEN NULL END AS col2 query I rowsort @@ -44149,7 +44149,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\(\*\) 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 @@ -44968,7 +44968,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\(\*\) AS col0" at position 1 have the 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 @@ -45066,7 +45066,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\(\*\) 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 @@ -45712,7 +45712,7 @@ SELECT + 85 * - 83 # 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\(\*\)\) 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 ( * ) col0, 21 AS col0 query II rowsort @@ -46985,7 +46985,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\(\*\) 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 @@ -47613,7 +47613,7 @@ SELECT ALL - COUNT ( * ) / 11 * COUNT ( * ) * + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-92\)\) / \(\- 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 "\(\- Int64\(\-92\)\) / \(\- 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 - - 92 / - COUNT ( * ) AS col2, 39 AS col2 query I rowsort label-9074 @@ -48164,7 +48164,7 @@ SELECT ALL 54 - + 23 # 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\(\*\)\) 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 - COUNT ( * ) AS col0, - ( + 38 ) AS col0 query I rowsort label-9179 @@ -49913,7 +49913,7 @@ SELECT 32 * 75 * + - 47 * 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -9 -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\(\-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\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 AS col1, COUNT ( * ) * - 9 AS col1 query II rowsort @@ -50519,7 +50519,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\(\*\) AS col0" at position 1 have the 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 @@ -51008,7 +51008,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\(\*\) AS col1" at position 1 have the 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 @@ -51142,13 +51142,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\(\*\) 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\(\*\) AS col2" at position 1 have the 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 @@ -51630,7 +51630,7 @@ SELECT ALL - 96 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "\(\- count\(\*\)\) / \(\- CASE Int64\(20\) WHEN \(\- coalesce\(count\(\*\), Int64\(13\)\)\) THEN NULL ELSE \(\- Int64\(\-59\)\) / count\(\*\) \+ Int64\(8\) 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\(42\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- CASE Int64\(20\) WHEN \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(13\)\)\) THEN NULL ELSE \(\- Int64\(\-59\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 AS col2, - COUNT ( * ) / - + CASE + 20 WHEN - COALESCE ( + COUNT ( * ), 13 ) THEN NULL ELSE - - 59 / + COUNT ( * ) + + 8 END AS col2 query I rowsort label-9849 diff --git a/data/sqlite/random/expr/slt_good_104.slt b/data/sqlite/random/expr/slt_good_104.slt index 76a09f8..fc640cc 100644 --- a/data/sqlite/random/expr/slt_good_104.slt +++ b/data/sqlite/random/expr/slt_good_104.slt @@ -45,7 +45,7 @@ SELECT 83 + + - CAST ( - COALESCE ( 63, + AVG ( + 86 ) * - 86 / - - 48 ) AS INTE # 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\(\*\) \* \(\- 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\(\*\) \* \(\- 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 ( * ) * - + COUNT ( * ) AS col1, CAST ( NULL AS FLOAT8 ) col1 query I rowsort @@ -750,7 +750,7 @@ SELECT - 98 + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(0\) \+ \(\- CASE Int64\(12\) WHEN \(\- nullif\(CASE count\(\*\) WHEN Int64\(13\) THEN count\(\*\) \+ CAST\(\(\- count\(\*\)\) AS Int32\) \- Int64\(21\) WHEN Int64\(63\) THEN NULL WHEN Int64\(46\) \- Int64\(24\) \+ \(\- Int64\(39\)\) \* Int64\(88\) \* coalesce\(Int64\(87\), Int64\(9\)\) \* Int64\(11\) \+ Int64\(61\) / CAST\(NULL AS Int32\) THEN NULL ELSE NULL END, Int64\(\-63\)\)\) THEN Int64\(91\) \+ Int64\(23\) ELSE Int64\(60\) \* Int64\(\-61\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(0\) \+ \(\- CASE Int64\(12\) WHEN \(\- nullif\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(13\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- Int64\(21\) WHEN Int64\(63\) THEN NULL WHEN Int64\(46\) \- Int64\(24\) \+ \(\- Int64\(39\)\) \* Int64\(88\) \* coalesce\(Int64\(87\), Int64\(9\)\) \* Int64\(11\) \+ Int64\(61\) / CAST\(NULL AS Int32\) THEN NULL ELSE NULL END, Int64\(\-63\)\)\) THEN Int64\(91\) \+ Int64\(23\) ELSE Int64\(60\) \* Int64\(\-61\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 50 AS col2, 0 + - CASE 12 WHEN - NULLIF ( CASE COUNT ( * ) WHEN 13 THEN COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) - 21 WHEN + + 63 THEN NULL WHEN 46 - + 24 + - + 39 * 88 * + COALESCE ( 87, + 9 ) * 11 + 61 / + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END, - 63 ) THEN 91 + + 23 ELSE 60 * - 61 END AS col2 query I rowsort label-134 @@ -874,7 +874,7 @@ 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 "Int64\(54\) / Int64\(\-74\) AS col2" at position 0 and "count\(\*\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) / Int64\(\-74\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54 / - 74 AS col2, + COUNT ( * ) * + 72 AS col2 query I rowsort label-158 @@ -1047,7 +1047,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\(\*\) 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 @@ -2090,7 +2090,7 @@ SELECT 1 / + + 7 AS col0, 24 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) / nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-61\)\) AS col0" at position 0 and "Int64\(20\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) / nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-61\)\) AS col0" at position 0 and "Int64\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - 56 ) / NULLIF ( - CAST ( NULL AS INTEGER ), - 61 ) AS col0, 20 + - COUNT ( * ) AS col0, - + 94 * - NULLIF ( 39, + 26 ) / - 55 + CAST ( NULL AS INTEGER ) - + 48 query I rowsort label-386 @@ -2546,7 +2546,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\(\*\)\) AS col1" at position 1 and "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 @@ -3280,7 +3280,7 @@ SELECT 53 - - 64 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-18\) \- Int64\(61\) / \(\- CAST\(Int64\(93\) AS Int32\)\) \+ \(\- Int64\(\-28\)\) \+ Int64\(33\) / CASE Int64\(97\) WHEN \(\- Int64\(\-68\)\) \+ Int64\(\-9\) THEN Int64\(17\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-18\) \- Int64\(61\) / \(\- CAST\(Int64\(93\) AS Int32\)\) \+ \(\- Int64\(\-28\)\) \+ Int64\(33\) / CASE Int64\(97\) WHEN \(\- Int64\(\-68\)\) \+ Int64\(\-9\) THEN Int64\(17\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 4 col1, + COUNT ( * ) + - 18 - + 61 / - CAST ( + 93 AS INTEGER ) + - - 28 + 33 / + + ( + CASE 97 WHEN + ( - - 68 ) + - 9 THEN + 17 ELSE NULL END ) AS col1 query II rowsort @@ -3571,7 +3571,7 @@ SELECT ALL + 36 col0, 73 # Datafusion - Expected - -57 # Datafusion - Expected - -25565 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(\-57\), \(\- \(\- count\(\*\)\)\)\)\)\) AS col0" at position 0 and "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 "\(\- \(\- nullif\(Int64\(\-57\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - NULLIF ( - 57, - - COUNT ( * ) ) AS col0, + 11 + 16 + - 32 * + ( - 17 ) - 8 * + 99 * 33 AS col2, + ( 69 ) AS col0 query I rowsort label-666 @@ -3880,7 +3880,7 @@ SELECT ALL - 80 * 61 * + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(\-67\)\)\)\) AS col2" at position 0 and "Int64\(\-9\) \* CASE \(\- Int64\(\-4\)\) WHEN Int64\(\-50\) THEN \(\- Int64\(59\)\) \* \(\- Int64\(\-46\)\) \+ Int64\(99\) WHEN Int64\(\-70\) THEN Int64\(\-76\) \- \(\- min\(Int64\(\-91\)\)\) \+ Int64\(88\) \+ Int64\(34\) \* Int64\(33\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(\*\)\) \+ \(\- Int64\(33\)\) \+ coalesce\(\(\- \(\- CASE Int64\(\-5\) WHEN count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(98\) \* Int64\(24\) \+ Int64\(\-35\) THEN \(\- min\(Int64\(46\)\)\) WHEN Int64\(47\) \+ Int64\(4\) \* sum\(CASE Int64\(99\) WHEN Int64\(14\) THEN Int64\(33\) ELSE Int64\(5\) END\) THEN NULL END\) \* CAST\(\(\- count\(\*\)\) AS Int32\) \+ Int64\(20\) THEN count\(\*\) \* Int64\(\-70\) \+ Int64\(\-80\) \* \(\- CAST\(CASE Int64\(74\) WHEN \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \* CAST\(count\(Int64\(67\)\) \* avg\(Int64\(17\)\) \+ Int64\(\-9\) AS Int32\) \+ Int64\(24\) \* Int64\(\-65\) THEN NULL WHEN count\(\*\) THEN \(\- count\(\*\)\) ELSE Int64\(1\) END AS Int32\)\) ELSE NULL END\)\), Int64\(83\), Int64\(38\)\) WHEN Int64\(95\) \- coalesce\(Int64\(51\), Int64\(32\), Int64\(73\) \+ Int64\(50\)\) \* Int64\(27\) THEN NULL ELSE \(\- count\(Int64\(3\)\)\) END \+ \(\- coalesce\(count\(\*\), Int64\(\-81\) \- count\(\(\- CAST\(Int64\(\-16\) AS Int32\)\)\) \* Int64\(69\)\) \+ Int64\(19\)\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(\-67\)\)\)\) AS col2" at position 0 and "Int64\(\-9\) \* CASE \(\- Int64\(\-4\)\) WHEN Int64\(\-50\) THEN \(\- Int64\(59\)\) \* \(\- Int64\(\-46\)\) \+ Int64\(99\) WHEN Int64\(\-70\) THEN Int64\(\-76\) \- \(\- min\(Int64\(\-91\)\)\) \+ Int64\(88\) \+ Int64\(34\) \* Int64\(33\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(33\)\) \+ coalesce\(\(\- \(\- CASE Int64\(\-5\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(98\) \* Int64\(24\) \+ Int64\(\-35\) THEN \(\- min\(Int64\(46\)\)\) WHEN Int64\(47\) \+ Int64\(4\) \* sum\(CASE Int64\(99\) WHEN Int64\(14\) THEN Int64\(33\) ELSE Int64\(5\) END\) THEN NULL END\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(20\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-70\) \+ Int64\(\-80\) \* \(\- CAST\(CASE Int64\(74\) WHEN \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* CAST\(count\(Int64\(67\)\) \* avg\(Int64\(17\)\) \+ Int64\(\-9\) AS Int32\) \+ Int64\(24\) \* Int64\(\-65\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(1\) END AS Int32\)\) ELSE NULL END\)\), Int64\(83\), Int64\(38\)\) WHEN Int64\(95\) \- coalesce\(Int64\(51\), Int64\(32\), Int64\(73\) \+ Int64\(50\)\) \* Int64\(27\) THEN NULL ELSE \(\- count\(Int64\(3\)\)\) END \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\) \- count\(\(\- CAST\(Int64\(\-16\) AS Int32\)\)\) \* Int64\(69\)\) \+ Int64\(19\)\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - SUM ( ( - - 67 ) ) AS col2, - 9 * CASE - - 4 WHEN - 50 THEN - ( 59 ) * - - 46 + 99 WHEN - 70 THEN - 76 - - MIN ( ALL - 91 ) + + + 88 + ( + + 34 ) * + 33 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - + 33 + + COALESCE ( - - CASE - 5 WHEN + COUNT ( * ) * - + CASE + + 62 WHEN 98 * + + ( 24 ) + - 35 THEN - MIN ( + + 46 ) WHEN + 47 + 4 * + SUM ( ALL CASE 99 WHEN 14 THEN ( 33 ) ELSE 5 END ) THEN NULL END * CAST ( - COUNT ( * ) AS INTEGER ) + + 20 THEN + COUNT ( * ) * - 70 + - 80 * - CAST ( + CASE 74 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( COUNT ( 67 ) * AVG ( ALL 17 ) + - 9 AS INTEGER ) + + 24 * ( - 65 ) THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) ELSE 1 END AS INTEGER ) ELSE NULL END, 83, 38 ) WHEN + 95 - + COALESCE ( + 51, 32, 73 + 50 ) * + 27 THEN NULL ELSE - COUNT ( 3 ) END + - ( + COALESCE ( COUNT ( * ), - 81 - COUNT ( ALL - CAST ( - 16 AS INTEGER ) ) * 69 ) + 19 ) * - 24 AS col2 query I rowsort @@ -3973,7 +3973,7 @@ SELECT + ( 87 ) + - - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -447370 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(55\) \* Int64\(98\) AS col2" at position 0 and "count\(\*\) / Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(55\) \* Int64\(98\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 83 * 55 * 98 AS col2, COUNT ( * ) / - 83 AS col2 query I rowsort @@ -4079,7 +4079,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\(\*\) 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 @@ -4159,7 +4159,7 @@ SELECT + 40, - 55 / - ( - - COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\*\), Int64\(\-38\)\) \- Int64\(87\) 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 "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-38\)\) \- Int64\(87\) 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 COALESCE ( + + COUNT ( * ), - 38 ) - + 87 AS col0, + 30 AS col0 query I rowsort @@ -4468,7 +4468,7 @@ SELECT ALL + 19, - 8 * - 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 201 # Datafusion - Expected - -283290 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(93\) \- max\(Int64\(\-83\)\) \+ Int64\(\-8\) \+ Int64\(33\) AS col0" at position 0 and "Int64\(\-71\) \* Int64\(95\) \* 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\(\*\) \* Int64\(93\) \- max\(Int64\(\-83\)\) \+ Int64\(\-8\) \+ Int64\(33\) AS col0" at position 0 and "Int64\(\-71\) \* Int64\(95\) \* Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 93 - MAX ( - 83 ) + - 8 + + 33 AS col0, - 71 * + + 95 * + 42 AS col0 query II rowsort @@ -4590,7 +4590,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\(\*\) AS col0" at position 1 have the 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 @@ -5266,7 +5266,7 @@ SELECT + 27 * + + 38 + 45 * - - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5963 # Datafusion - Expected - -8282690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(\-89\) AS col1" at position 0 and "Int64\(66\) \* CASE \(\- coalesce\(Int64\(60\), Int64\(21\) \+ Int64\(62\) \+ Int64\(91\) \+ Int64\(16\) \* Int64\(\-84\)\)\) WHEN Int64\(49\) THEN Int64\(71\) ELSE count\(\*\) \* Int64\(\-46\) \+ \(\- Int64\(52\)\) \* Int64\(68\) \+ \(\- Int64\(\-96\)\) END \* Int64\(36\) \+ Int64\(21\) \+ 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\(67\) \* Int64\(\-89\) AS col1" at position 0 and "Int64\(66\) \* CASE \(\- coalesce\(Int64\(60\), Int64\(21\) \+ Int64\(62\) \+ Int64\(91\) \+ Int64\(16\) \* Int64\(\-84\)\)\) WHEN Int64\(49\) THEN Int64\(71\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-46\) \+ \(\- Int64\(52\)\) \* Int64\(68\) \+ \(\- Int64\(\-96\)\) END \* Int64\(36\) \+ Int64\(21\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 67 * + - 89 AS col1, + 66 * + CASE - COALESCE ( + 60, + 21 + + 62 + 91 + 16 * - 84 ) WHEN + 49 THEN + 71 ELSE COUNT ( * ) * - 46 + ( - + ( + 52 ) ) * + 68 + - - 96 END * 36 + + 21 + 25 AS col1 query I rowsort label-990 @@ -8642,7 +8642,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* count\(\*\) \+ Int64\(74\) AS col2" at position 1 and "\(\- CASE Int64\(\-1\) WHEN Int64\(\-86\) / \(\- Int64\(41\)\) THEN \(\- Int64\(\-72\)\) \* count\(Int64\(\-7\)\) \+ Int64\(15\) WHEN \(\- count\(Int64\(74\)\)\) \- \(\- \(\- coalesce\(coalesce\(Int64\(46\), Int64\(0\) \+ Int64\(62\)\), \(\- count\(\*\)\) \+ Int64\(89\), Int64\(\-29\) / Int64\(\-17\)\)\)\) THEN NULL END\) \* Int64\(64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(74\) AS col2" at position 1 and "\(\- CASE Int64\(\-1\) WHEN Int64\(\-86\) / \(\- Int64\(41\)\) THEN \(\- Int64\(\-72\)\) \* count\(Int64\(\-7\)\) \+ Int64\(15\) WHEN \(\- count\(Int64\(74\)\)\) \- \(\- \(\- coalesce\(coalesce\(Int64\(46\), Int64\(0\) \+ Int64\(62\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(89\), Int64\(\-29\) / Int64\(\-17\)\)\)\) THEN NULL END\) \* Int64\(64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), - 6 * COUNT ( * ) + + 74 AS col2, - + CASE - 1 WHEN - 86 / - + 41 THEN - - 72 * COUNT ( ALL ( - 7 ) ) + + + 15 WHEN - COUNT ( + 74 ) - - - COALESCE ( + COALESCE ( 46, + 0 + + 62 ), + ( - COUNT ( * ) ) + 89, - 29 / - 17 ) THEN NULL END * + 64 AS col2 # Datafusion - Datafusion expected results: @@ -9489,7 +9489,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7690 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(94\) \+ Int64\(45\) \- nullif\(Int64\(60\), \(\- Int64\(81\)\)\) \* \(\- Int64\(55\)\) \- count\(\*\) / \(\- Int64\(35\)\) \* \(\- count\(\*\)\) \+ Int64\(17\) \+ Int64\(88\) \* Int64\(15\) AS col0" at position 0 and "CASE Int64\(69\) WHEN coalesce\(Int64\(81\), Int64\(\-95\) \* Int64\(\-36\) \- Int64\(\-58\) \* Int64\(45\)\) \* Int64\(53\) THEN NULL WHEN Int64\(97\) \* CAST\(NULL AS Int32\) THEN NULL WHEN count\(\*\) THEN Int64\(96\) WHEN Int64\(33\) THEN Int64\(72\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(94\) \+ Int64\(45\) \- nullif\(Int64\(60\), \(\- Int64\(81\)\)\) \* \(\- Int64\(55\)\) \- count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(35\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(17\) \+ Int64\(88\) \* Int64\(15\) AS col0" at position 0 and "CASE Int64\(69\) WHEN coalesce\(Int64\(81\), Int64\(\-95\) \* Int64\(\-36\) \- Int64\(\-58\) \* Int64\(45\)\) \* Int64\(53\) THEN NULL WHEN Int64\(97\) \* CAST\(NULL AS Int32\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(96\) WHEN Int64\(33\) THEN Int64\(72\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 32 * 94 + 45 - + + NULLIF ( 60, - + 81 ) * - ( + 55 ) - COUNT ( * ) / + - ( + 35 ) * + - COUNT ( * ) + + + 17 + 88 * 15 AS col0, + CASE 69 WHEN COALESCE ( + 81, + - 95 * + - 36 - - 58 * 45 ) * 53 THEN NULL WHEN + 97 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN + 96 WHEN 33 THEN ( 72 ) END AS col0 query I rowsort label-1797 @@ -9701,7 +9701,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\(\*\) AS Int32\)\)\) AS col0" at position 1 have the 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: @@ -9731,7 +9731,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(28\) \- Int64\(53\) AS col1" at position 0 and "CASE \(\- count\(\*\)\) WHEN Int64\(32\) THEN \(\- avg\(Int64\(86\)\)\) WHEN Int64\(43\) \* Int64\(66\) \+ Int64\(6\) \+ CAST\(NULL AS Int32\) \- Int64\(29\) THEN sum\(Int64\(4\)\) \- Int64\(\-5\) WHEN Int64\(88\) \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(6\) \* Int64\(79\) \- \(\- sum\(Int64\(73\)\)\) THEN coalesce\(Int64\(62\), Int64\(\-18\) \* Int64\(75\)\) \* Int64\(13\) \+ \(\- CAST\(NULL AS Int32\)\) ELSE NULL END \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(28\) \- Int64\(53\) AS col1" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(32\) THEN \(\- avg\(Int64\(86\)\)\) WHEN Int64\(43\) \* Int64\(66\) \+ Int64\(6\) \+ CAST\(NULL AS Int32\) \- Int64\(29\) THEN sum\(Int64\(4\)\) \- Int64\(\-5\) WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(6\) \* Int64\(79\) \- \(\- sum\(Int64\(73\)\)\) THEN coalesce\(Int64\(62\), Int64\(\-18\) \* Int64\(75\)\) \* Int64\(13\) \+ \(\- CAST\(NULL AS Int32\)\) ELSE NULL END \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 28 - + 53 col1, CASE - + COUNT ( * ) WHEN 32 THEN - + AVG ( 86 ) WHEN 43 * 66 + + 6 + ( + CAST ( NULL AS INTEGER ) ) - 29 THEN + + SUM ( ALL + + 4 ) - + - 5 WHEN 88 + - - COUNT ( * ) + 6 * + ( + 79 ) - - + SUM ( 73 ) THEN COALESCE ( 62, - 18 * 75 ) * 13 + - CAST ( NULL AS INTEGER ) ELSE NULL END + - 77 AS col1 query I rowsort label-1843 @@ -9889,7 +9889,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\(\*\) AS col2" at position 1 have the 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 @@ -10205,7 +10205,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\(\*\) 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 @@ -10500,7 +10500,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\(\*\) AS col0" at position 1 have the 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 @@ -10910,7 +10910,7 @@ SELECT ALL 69 AS col0, 27 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2472 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) / \(\- \(\- count\(DISTINCT Int64\(\-33\)\)\)\) / coalesce\(count\(Int64\(55\)\), Int64\(38\) \+ Int64\(42\) \- Int64\(53\) \* Int64\(65\), count\(\*\)\) \- \(\- Int64\(\-82\)\) \* Int64\(31\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) / \(\- \(\- count\(DISTINCT Int64\(\-33\)\)\)\) / coalesce\(count\(Int64\(55\)\), Int64\(38\) \+ Int64\(42\) \- Int64\(53\) \* Int64\(65\), count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-82\)\) \* Int64\(31\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 70 / - - COUNT ( DISTINCT - 33 ) / + COALESCE ( + COUNT ( ALL 55 ), + 38 + + 42 - + + 53 * 65, + COUNT ( * ) ) - - - 82 * + 31 col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -11090,7 +11090,7 @@ SELECT + 63 * + - 99 - + 2 AS col2 # Datafusion - Expected - 88 # Datafusion - Expected - 70 # Datafusion - Expected - -1035 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(95\) AS col0" at position 0 and "Int64\(71\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\) AS col0" at position 0 and "Int64\(71\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 7 + 95 AS col0, + 71 + + - COUNT ( * ) col0, + + 45 * - 23 AS col1 query II rowsort label-2102 @@ -11271,7 +11271,7 @@ SELECT DISTINCT + - 95 + - + 47 + - - 84 AS col2, 43 + ( + 53 ) + + 5 * - 66 + - # 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 "\(\- Int64\(\-6\)\) \+ \(\- Int64\(3\)\) AS col1" at position 0 and "Int64\(63\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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\(3\)\) 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 - - 6 + - + 3 col1, 63 - - COUNT ( * ) AS col1 query I rowsort label-2137 @@ -11391,7 +11391,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\(\*\) AS col0" at position 1 have the 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 @@ -12014,7 +12014,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\(\*\) 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 @@ -12808,7 +12808,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\(\*\) AS col2" at position 1 have the 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 @@ -13287,7 +13287,7 @@ SELECT - 14 + + - NULLIF ( + - 88, + CAST ( - NULLIF ( + 93, + 69 + - 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 "coalesce\(\(\- count\(\*\)\), Int64\(19\) \+ Int64\(12\)\) 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 "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(19\) \+ Int64\(12\)\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + - COUNT ( * ), 19 + + 12 ) AS col1, - 62 AS col1 query II rowsort label-2521 @@ -14289,7 +14289,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -15469,7 +15469,7 @@ SELECT 90 * 96 + - - 69 / - 14 * COUNT ( * ), + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3128 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(\-68\) AS col0" at position 0 and "Int64\(\-3\) \* \(\- CASE \(\- count\(\*\)\) WHEN Int64\(\-7\) \* Int64\(\-55\) THEN \(\- count\(Int64\(84\)\)\) ELSE NULL END\) \+ coalesce\(Int64\(\-56\), Int64\(23\) / Int64\(32\) \+ Int64\(53\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(\-68\) AS col0" at position 0 and "Int64\(\-3\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-7\) \* Int64\(\-55\) THEN \(\- count\(Int64\(84\)\)\) ELSE NULL END\) \+ coalesce\(Int64\(\-56\), Int64\(23\) / Int64\(32\) \+ Int64\(53\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 46 * + - 68 AS col0, - 3 * - CASE - COUNT ( * ) WHEN - 7 * - 55 THEN - COUNT ( 84 ) ELSE NULL END + + COALESCE ( - 56, 23 / + 32 + + 53 ) AS col0 query I rowsort @@ -16323,7 +16323,7 @@ SELECT + COUNT ( DISTINCT + 82 ) * + 3 * - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 442 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-73\) AS col0" at position 0 and "Int64\(5\) \* Int64\(83\) \+ \(\- max\(DISTINCT Int64\(\-27\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-73\) AS col0" at position 0 and "Int64\(5\) \* Int64\(83\) \+ \(\- max\(DISTINCT Int64\(\-27\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + + COUNT ( * ) ) / - 73 col0, 5 * 83 + - MAX ( DISTINCT - 27 ) col0 query II rowsort @@ -17083,7 +17083,7 @@ SELECT ALL - 66 / - 50 + + 38 AS col2 # 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 "nullif\(count\(\*\), Int64\(98\)\) 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 "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(98\)\) 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 + NULLIF ( + + COUNT ( * ), 98 ) AS col1, + 52 AS col1 query I rowsort label-3248 @@ -17812,7 +17812,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\(\*\) AS col1" at position 1 have 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 @@ -19067,7 +19067,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\(\*\) AS col0" at position 1 have the 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 @@ -19859,7 +19859,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\(\*\) 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 @@ -20844,7 +20844,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 @@ -20953,7 +20953,7 @@ SELECT + 42 AS col0, NULLIF ( 48, 74 * + 3 * - - 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7821 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(99\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "count\(DISTINCT 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\(\-79\) \* Int64\(99\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(DISTINCT Int64\(\-3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 * 99 * - - COUNT ( * ) AS col2, COUNT ( DISTINCT - 3 ) AS col2 query I rowsort @@ -21541,7 +21541,7 @@ SELECT DISTINCT ( + 30 ) * - 73 - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-25\) \+ count\(\*\) \* Int64\(9\) AS col1" at position 0 and "Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-25\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(9\) AS col1" at position 0 and "Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 46 + - 25 + + COUNT ( * ) * 9 AS col1, - 77 AS col1 query I rowsort @@ -21706,7 +21706,7 @@ SELECT ALL 99 + 18 AS col2 # 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\(\*\) \+ \(\- sum\(DISTINCT Int64\(10\)\)\) AS col0" at position 0 and "Int64\(\-28\) \+ 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\(\*\) \+ \(\- sum\(DISTINCT Int64\(10\)\)\) AS col0" at position 0 and "Int64\(\-28\) \+ Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - SUM ( DISTINCT + 10 ) col0, - 28 + 10 AS col0 query I rowsort label-4135 @@ -25678,7 +25678,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\(\*\) 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 @@ -25841,7 +25841,7 @@ SELECT COUNT ( * ) * - COUNT ( * ) + ( COUNT ( 25 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4167 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* \(\- count\(\*\)\) \* Int64\(83\) \+ Int64\(66\) 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\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(83\) \+ Int64\(66\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 51 * - COUNT ( * ) * 83 + + 66 AS col1, 92 AS col1 query II rowsort label-4924 @@ -26525,7 +26525,7 @@ SELECT DISTINCT - MIN ( DISTINCT - 91 ) - + ( + - 96 ) AS col2, 33 * - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) / Int64\(57\) \* Int64\(67\) AS col0" at position 0 and "count\(\*\) \* Int64\(\-6\) \+ 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\(23\) / Int64\(57\) \* Int64\(67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-6\) \+ Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 23 / 57 * + 67 AS col0, COUNT ( * ) * - 6 + + 92 col0 # Datafusion - Datafusion expected results: @@ -28286,7 +28286,7 @@ SELECT - + 32 * 62 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-90\) \+ Int64\(\-88\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-90\) \+ Int64\(\-88\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + - 90 + - 88 * 93 AS col0 query II rowsort label-5389 @@ -28609,7 +28609,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\(\*\) AS col2" at position 0 and "min\(\(\- Int64\(\-28\)\)\) \+ \(\- nullif\(Int64\(\-99\), Int64\(9\) \* Int64\(\-49\) \* \(\- Int64\(12\)\) \- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -29379,7 +29379,7 @@ SELECT ALL - + ( 0 ) - + 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4140 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(46\) AS col1" at position 0 and "count\(\*\) \* \(\- 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\(90\) \* Int64\(46\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 90 * + 46 AS col1, COUNT ( * ) * - + 67 AS col1 query I rowsort @@ -30209,7 +30209,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- \(\- count\(\*\)\)\) \+ \(\- Int64\(\-5\)\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Float64\) \* Int64\(27\) \* Int64\(\-70\) \- Int64\(\-42\) \* \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-5\)\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Float64\) \* Int64\(27\) \* Int64\(\-70\) \- Int64\(\-42\) \* \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 85 * - - COUNT ( * ) + - ( - 5 ) AS col1, ( + CAST ( + + CAST ( NULL AS INTEGER ) AS FLOAT8 ) ) * + 27 * - 70 - - 42 * - + 93 col1 query I rowsort @@ -31721,7 +31721,7 @@ SELECT ALL + + 73 + - - NULLIF ( + + 94, - 3 * - COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -99 -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\(\-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\(10\) 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 + 10 AS col1, COUNT ( * ) * - 99 AS col1 query I rowsort @@ -32320,7 +32320,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\(\*\) 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 @@ -32626,7 +32626,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\(\*\) AS col1" at position 1 have the 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 @@ -33019,7 +33019,7 @@ SELECT 29 + 42 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -132 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \- Int64\(28\) \- nullif\(Int64\(65\), count\(\*\)\) AS col2" at position 0 and "Int64\(0\) \* nullif\(\(\- sum\(Int64\(\-40\)\)\), 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\(\-39\) \- Int64\(28\) \- nullif\(Int64\(65\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(0\) \* nullif\(\(\- sum\(Int64\(\-40\)\)\), Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 39 - 28 - NULLIF ( + 65, COUNT ( * ) ) AS col2, + 0 * + NULLIF ( - SUM ( ALL - 40 ), + 34 ) AS col2 query I rowsort @@ -33138,7 +33138,7 @@ SELECT COUNT ( * ) * + 29 * 30 AS col2 # 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\(\-40\) AS col0" at position 0 and "Int64\(0\) \* CASE Int64\(64\) WHEN \(\- Int64\(61\)\) \* Int64\(40\) \+ \(\- \(\- count\(\*\)\)\) THEN NULL ELSE \(\- count\(\*\)\) \- Int64\(50\) \* min\(Int64\(\-56\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "Int64\(0\) \* CASE Int64\(64\) WHEN \(\- Int64\(61\)\) \* Int64\(40\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(50\) \* min\(Int64\(\-56\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 40 AS col0, - 0 * CASE + + 64 WHEN - + 61 * 40 + - - COUNT ( * ) THEN NULL ELSE - COUNT ( * ) - + 50 * + MIN ( ( - 56 ) ) END AS col0 query I rowsort label-6315 @@ -33279,7 +33279,7 @@ NULL # 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\(\-4\) 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\(\*\) \+ Int64\(\-4\) 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 ( * ) + - 4 col1, - 72 AS col1 query I rowsort label-6342 @@ -33714,7 +33714,7 @@ SELECT DISTINCT 14 * 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(0\)\)\) \- count\(\*\) \+ count\(\*\) \+ Int64\(26\) 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 "min\(\(\- Int64\(0\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(26\) 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 MIN ( - - 0 ) - + COUNT ( * ) + + COUNT ( * ) + 26 AS col2, 22 AS col2 query I rowsort label-6424 @@ -37731,7 +37731,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\(\*\) AS col1" at position 1 have the 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 @@ -38433,7 +38433,7 @@ SELECT + ( - + 39 ) * + 8, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1838 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(30\), Int64\(60\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Float64\)\) / \(\- count\(\*\)\) \+ \(\- max\(DISTINCT Int64\(\-52\)\)\) \* Int64\(55\)\) \* CASE Int64\(20\) WHEN Int64\(94\) \- \(\- CAST\(Int64\(12\) AS Int32\)\) THEN Int64\(\-95\) \+ \(\- Int64\(\-26\)\) \* Int64\(\-24\) WHEN \(\- count\(\*\)\) THEN Int64\(68\) WHEN Int64\(\-2\) \+ \(\- Int64\(83\)\) THEN coalesce\(Int64\(16\), Int64\(25\) \+ Int64\(14\) \+ Int64\(49\) \* Int64\(\-82\) \* Int64\(39\)\) / \(\- \(\- count\(\*\)\)\) END \- Int64\(\-67\) AS col1" at position 0 and "Int64\(\-87\) \+ Int64\(77\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(30\), Int64\(60\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Float64\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(DISTINCT Int64\(\-52\)\)\) \* Int64\(55\)\) \* CASE Int64\(20\) WHEN Int64\(94\) \- \(\- CAST\(Int64\(12\) AS Int32\)\) THEN Int64\(\-95\) \+ \(\- Int64\(\-26\)\) \* Int64\(\-24\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(68\) WHEN Int64\(\-2\) \+ \(\- Int64\(83\)\) THEN coalesce\(Int64\(16\), Int64\(25\) \+ Int64\(14\) \+ Int64\(49\) \* Int64\(\-82\) \* Int64\(39\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END \- Int64\(\-67\) AS col1" at position 0 and "Int64\(\-87\) \+ Int64\(77\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( 30, + + 60 / - CAST ( + CAST ( NULL AS INTEGER ) AS FLOAT8 ) / - COUNT ( * ) + - MAX ( DISTINCT - 52 ) * 55 ) * + CASE + 20 WHEN + 94 - + - CAST ( + 12 AS INTEGER ) THEN + - 95 + - - 26 * + - 24 WHEN - COUNT ( * ) THEN + + 68 WHEN + - 2 + - ( + ( + + 83 ) ) THEN + COALESCE ( + 16, 25 + 14 + + 49 * + - 82 * + 39 ) / - - COUNT ( * ) END - - 67 AS col1, - 87 + + + 77 * + 25 AS col1 query I rowsort label-7319 @@ -38701,7 +38701,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\(\*\) 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 @@ -38959,7 +38959,7 @@ SELECT DISTINCT + ( - + COUNT ( * ) ) * + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(38\) \+ Int64\(28\) \* Int64\(\-16\) \+ \(\- Int64\(43\)\) / nullif\(count\(\*\), \(\- max\(\(\- Int64\(42\)\)\)\)\) 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 "Int64\(15\) \* Int64\(38\) \+ Int64\(28\) \* Int64\(\-16\) \+ \(\- Int64\(43\)\) / nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- max\(\(\- Int64\(42\)\)\)\)\) 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 + 15 * + 38 + 28 * - 16 + - ( 43 ) / + NULLIF ( + COUNT ( * ), - MAX ( - + 42 ) ) AS col0, + 21 AS col0 query I rowsort label-7420 @@ -39148,7 +39148,7 @@ SELECT ALL + 4, 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col0" at position 0 and "Int64\(35\) \+ Int64\(\-78\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(35\) \+ Int64\(\-78\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 53 col0, 35 + - 78 * - COUNT ( * ) AS col0 query II rowsort @@ -39231,7 +39231,7 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - 1416 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\)" at position 0 and "\(\- count\(\*\)\)" at position 2 have the same name\. Consider aliasing \("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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), 24 * MAX ( + 59 ) AS col1, - + ( + + COUNT ( * ) ) query I rowsort label-7470 @@ -39741,7 +39741,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\(\*\) 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 @@ -39778,7 +39778,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\(\*\) 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 @@ -40379,7 +40379,7 @@ SELECT COUNT ( DISTINCT + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "count\(\*\) \+ Int64\(84\) / \(\- 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\(3\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(84\) / \(\- Int64\(6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 3 AS col1, + COUNT ( * ) + + 84 / - ( + 6 ) AS col1 query I rowsort label-7691 @@ -42954,7 +42954,7 @@ SELECT ( - NULLIF ( - 66, 93 + COUNT ( * ) + + CAST ( 83 AS INTEGER ) + + 32 - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(84\) 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\(\*\) \+ Int64\(84\) 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 ( * ) + 84 AS col0, + 36 AS col0 query I rowsort @@ -43100,7 +43100,7 @@ SELECT ALL - COUNT ( * ) * - ( + 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "CASE WHEN NOT Int64\(\-43\) NOT IN \(\[Int64\(33\) \* Int64\(65\), Int64\(\-31\)\]\) THEN NULL WHEN Int64\(\-41\) IN \(\[Int64\(73\) \* CASE Int64\(33\) WHEN Int64\(\-25\) THEN \(\- CAST\(NULL AS Int32\)\) ELSE NULL END\]\) THEN Int64\(64\) WHEN NOT CAST\(CASE Int64\(52\) WHEN count\(\*\) THEN NULL WHEN Int64\(51\) THEN Int64\(\-68\) ELSE NULL END AS Int32\) = Int64\(50\) THEN NULL END \* Int64\(11\) \+ nullif\(Int64\(\-3\) \+ Int64\(51\), Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "CASE WHEN NOT Int64\(\-43\) NOT IN \(\[Int64\(33\) \* Int64\(65\), Int64\(\-31\)\]\) THEN NULL WHEN Int64\(\-41\) IN \(\[Int64\(73\) \* CASE Int64\(33\) WHEN Int64\(\-25\) THEN \(\- CAST\(NULL AS Int32\)\) ELSE NULL END\]\) THEN Int64\(64\) WHEN NOT CAST\(CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(51\) THEN Int64\(\-68\) ELSE NULL END AS Int32\) = Int64\(50\) THEN NULL END \* Int64\(11\) \+ nullif\(Int64\(\-3\) \+ Int64\(51\), Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 5 ) AS col1, + CASE WHEN NOT - 43 NOT IN ( + + 33 * 65, - 31 ) THEN NULL WHEN ( + ( - 41 ) ) IN ( 73 * CASE + + 33 WHEN - 25 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) THEN 64 WHEN NOT ( + CAST ( + CASE + 52 WHEN COUNT ( * ) THEN NULL WHEN 51 THEN - 68 ELSE NULL END AS INTEGER ) ) = 50 THEN NULL END * 11 + NULLIF ( ( - 3 ) + 51, 32 ) AS col1 query II rowsort label-8213 @@ -43178,7 +43178,7 @@ SELECT ALL 54 + + - COALESCE ( + 20, - + COUNT ( * ) ) + - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 6611 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(\-95\) \+ \(\- Int64\(71\)\) \+ \(\- \(\- count\(\*\)\)\) \- Int64\(\-88\) \* 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\(82\) AS col0" at position 0 and "Int64\(\-95\) \+ \(\- Int64\(71\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-88\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 AS col0, - 95 + - + 71 + ( - - COUNT ( * ) ) - + - 88 * + 77 col0 query I rowsort label-8228 @@ -43291,7 +43291,7 @@ SELECT + 29 + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 2660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col1" at position 0 and "Int64\(\-30\) \* Int64\(\-91\) \+ count\(\*\) \* \(\- Int64\(70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col1" at position 0 and "Int64\(\-30\) \* Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 62 AS col1, - 30 * - 91 + + COUNT ( * ) * - + 70 AS col1 query II rowsort @@ -44885,7 +44885,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\(\*\) 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 @@ -45021,7 +45021,7 @@ SELECT - + 54 * - 3 + + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-60\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(\*\)\)\), \(\- CASE \(\- count\(Int64\(43\)\)\) WHEN Int64\(25\) THEN \(\- count\(\*\)\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-60\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- CASE \(\- count\(Int64\(43\)\)\) WHEN Int64\(25\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + MAX ( + - CAST ( NULL AS INTEGER ) ) * - 60 AS col1, COALESCE ( ( - - COUNT ( * ) ), - CASE + - COUNT ( 43 ) WHEN 25 THEN - + COUNT ( * ) END ) AS col1 query I rowsort @@ -45478,7 +45478,7 @@ SELECT ALL - 97 * - 37 # 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\(\*\)\) AS col0" at position 0 and "Int64\(40\) / 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\(40\) / Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) col0, + 40 / 11 AS col0 query I rowsort label-8666 @@ -45547,7 +45547,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(51\) 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\(\*\) \* Int64\(51\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * 51 AS col0, + 54 AS col0 query I rowsort label-8679 @@ -45692,7 +45692,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -8439 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-33\) \+ \(\- count\(\*\)\) \* \(\- Int64\(\-20\)\) \* Int64\(69\) \+ Int64\(\-96\) \* Int64\(67\) 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\(19\) \* Int64\(\-33\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-20\)\) \* Int64\(69\) \+ Int64\(\-96\) \* Int64\(67\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 19 * - 33 + - + COUNT ( * ) * - - 20 * 69 + - 96 * + 67 AS col2, 6 AS col2 # Datafusion - Datafusion expected results: @@ -47279,7 +47279,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\(\*\) 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 @@ -47682,7 +47682,7 @@ SELECT ALL 24 * - - COUNT ( - 99 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / CASE \(\- sum\(Int64\(26\)\)\) WHEN \(\- coalesce\(Int64\(73\), Int64\(\-98\) \+ Int64\(\-35\) \* \(\- nullif\(Int64\(\-73\), Int64\(41\)\)\), \(\- avg\(Int64\(\-60\)\)\)\)\) \* CAST\(\(\- Int64\(\-59\)\) AS Int32\) THEN \(\- \(\- min\(\(\- Int64\(\-23\)\)\)\)\) / Int64\(\-69\) \* Int64\(\-59\) \* Int64\(\-97\) \* \(\- Int64\(\-80\)\) WHEN Int64\(\-96\) THEN Int64\(\-85\) \* Int64\(70\) \* Int64\(3\) \- Int64\(\-76\) \+ \(\- Int64\(6\)\) \+ \(\- Int64\(32\)\) \+ Int64\(\-95\) \+ \(\- count\(\*\)\) \* \(\- Int64\(\-27\)\) \* Int64\(95\) END AS col0" at position 0 and "Int64\(\-39\) \+ Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / CASE \(\- sum\(Int64\(26\)\)\) WHEN \(\- coalesce\(Int64\(73\), Int64\(\-98\) \+ Int64\(\-35\) \* \(\- nullif\(Int64\(\-73\), Int64\(41\)\)\), \(\- avg\(Int64\(\-60\)\)\)\)\) \* CAST\(\(\- Int64\(\-59\)\) AS Int32\) THEN \(\- \(\- min\(\(\- Int64\(\-23\)\)\)\)\) / Int64\(\-69\) \* Int64\(\-59\) \* Int64\(\-97\) \* \(\- Int64\(\-80\)\) WHEN Int64\(\-96\) THEN Int64\(\-85\) \* Int64\(70\) \* Int64\(3\) \- Int64\(\-76\) \+ \(\- Int64\(6\)\) \+ \(\- Int64\(32\)\) \+ Int64\(\-95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-27\)\) \* Int64\(95\) END AS col0" at position 0 and "Int64\(\-39\) \+ Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 / + CASE - SUM ( + 26 ) WHEN - COALESCE ( 73, - 98 + + - 35 * - + NULLIF ( ( - 73 ), 41 ), - AVG ( - 60 ) ) * CAST ( - - 59 AS INTEGER ) THEN - - MIN ( - - 23 ) / - 69 * - 59 * - 97 * - - 80 WHEN + - 96 THEN - 85 * + 70 * 3 - - 76 + - + 6 + - + 32 + + - 95 + + - COUNT ( * ) * - - 27 * + 95 END AS col0, - 39 + - 68 col0 query II rowsort @@ -48037,7 +48037,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29535 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(\-26\) \* Int64\(\-71\) \* count\(\*\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "count\(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\(\-16\) \* Int64\(\-26\) \* Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(\-15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 * - 26 * - 71 * COUNT ( * ) + - - COUNT ( * ) AS col2, COUNT ( - 15 ) AS col2 query I rowsort label-9155 @@ -49693,7 +49693,7 @@ SELECT DISTINCT 99 + - - 40 + 80 * + + 97 AS col2 # 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 col2" at position 0 and "\(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\)\) \* \(\- 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, - COUNT ( * ) * - COUNT ( * ) AS col2 query II rowsort label-9474 @@ -50725,7 +50725,7 @@ SELECT + 68 - + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- \(\- count\(\*\)\) \* Int64\(62\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(62\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 42 - - COUNT ( * ) * + 62 AS col2, + 47 AS col2 query I rowsort @@ -51172,7 +51172,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\(\*\) AS col2" at position 1 have the 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 @@ -51234,7 +51234,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\(\*\) AS col1" at position 1 have the 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 @@ -52018,7 +52018,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\(\*\) AS col1" at position 1 have the 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 @@ -52358,7 +52358,7 @@ SELECT DISTINCT COUNT ( * ) - + ( 15 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(73\) 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\(\*\)\) \- Int64\(73\) 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 ( * ) - + 73 AS col1, 8 AS col1 query I rowsort label-9985 diff --git a/data/sqlite/random/expr/slt_good_105.slt b/data/sqlite/random/expr/slt_good_105.slt index d129695..04822ca 100644 --- a/data/sqlite/random/expr/slt_good_105.slt +++ b/data/sqlite/random/expr/slt_good_105.slt @@ -823,7 +823,7 @@ SELECT + + 10 col1 # Datafusion - Expected - NULL # Datafusion - Expected - 29 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / count\(\*\) \+ CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-90\), Int64\(82\)\)\) \+ Int64\(\-68\) AS col0" at position 0 and "\(\- Int64\(6\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-90\), Int64\(82\)\)\) \+ Int64\(\-68\) AS col0" at position 0 and "\(\- Int64\(6\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - + COALESCE ( - 90, 82 ) + - 68 AS col0, 29, - + 6 AS col0 query I rowsort label-148 @@ -975,7 +975,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\(\*\)\) AS col1" at position 0 and "Int64\(23\) \+ 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\(23\) \+ Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, + 23 + 94 col1 query I rowsort @@ -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\(\*\) AS col1" at position 1 have the 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 @@ -1324,7 +1324,7 @@ SELECT ALL NULLIF ( - 20, + 27 ) # 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\(\*\)\) 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 query I rowsort label-244 @@ -2990,7 +2990,7 @@ SELECT ALL 40 + + - NULLIF ( + 47, + + COALESCE ( + 44, - + ( - + COALESCE ( + 1 # 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\(\*\)\) AS col1" at position 1 have the 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 ALL - 16 AS col1, - COUNT ( * ) col1 query I rowsort label-561 @@ -3039,7 +3039,7 @@ SELECT + 53 AS col1, + ( - 37 ) col0 # Datafusion - Expected - -1 # Datafusion - Expected - -75 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(9\) \+ Int64\(\-1\) 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\(9\) \+ Int64\(\-1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, - 75, + 9 + + - 1 AS col2 query I rowsort @@ -6781,7 +6781,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\(\*\) AS col0" at position 1 have the 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 @@ -7434,7 +7434,7 @@ SELECT ALL 22 / + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4019 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(63\) \* \(\- Int64\(64\)\) \+ Int64\(12\) AS col2" at position 0 and "Int64\(55\) / \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) \* \(\- Int64\(64\)\) \+ Int64\(12\) AS col2" at position 0 and "Int64\(55\) / \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + 63 * - + 64 + 12 col2, 55 / - - 99 AS col2 query I rowsort label-1413 @@ -7874,7 +7874,7 @@ SELECT + COUNT ( ALL + 93 ) * + 68 * - 99 AS col0, 67 * 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1740 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- Int64\(\-29\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(62\) / \(\- Int64\(18\)\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- Int64\(\-29\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(62\) / \(\- Int64\(18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + 60 ) * - + ( + - 29 ) AS col1, CAST ( NULL AS INTEGER ) + 62 / - + 18 + - COUNT ( * ) AS col1 query I rowsort @@ -8879,7 +8879,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\(\*\) AS col1" at position 1 have the 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 @@ -8941,7 +8941,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\(\*\) 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 @@ -9468,7 +9468,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\(\*\) 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 @@ -10183,7 +10183,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\(\*\) 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 @@ -12575,7 +12575,7 @@ SELECT DISTINCT + ( SUM ( ALL - + 29 ) ) + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -543 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(54\) \+ \(\- CASE \(\- Int64\(\-50\)\) WHEN Int64\(22\) \* \(\- \(\- sum\(Int64\(74\)\)\)\) \* \(\- Int64\(\-65\)\) \+ Int64\(38\) \+ Int64\(\-42\) \- Int64\(61\) \+ nullif\(Int64\(\-42\), Int64\(80\) \+ Int64\(\-10\) \+ \(\- Int64\(15\)\) \+ coalesce\(Int64\(30\), Int64\(10\)\) \+ \(\- Int64\(97\)\) \+ \(\- avg\(DISTINCT Int64\(97\)\)\) \+ Int64\(79\)\) \* Int64\(\-38\) \* avg\(Int64\(\-32\)\) \* count\(DISTINCT Int64\(\-26\)\) THEN Int64\(14\) WHEN Int64\(\-46\) \+ Int64\(86\) \+ Int64\(59\) \* Int64\(65\) \+ Int64\(\-7\) THEN NULL ELSE \(\- count\(\*\)\) \+ Int64\(63\) \* Int64\(9\) \+ Int64\(2\) \* Int64\(84\) \- Int64\(85\) \- 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\(38\) AS col1" at position 0 and "Int64\(54\) \+ \(\- CASE \(\- Int64\(\-50\)\) WHEN Int64\(22\) \* \(\- \(\- sum\(Int64\(74\)\)\)\) \* \(\- Int64\(\-65\)\) \+ Int64\(38\) \+ Int64\(\-42\) \- Int64\(61\) \+ nullif\(Int64\(\-42\), Int64\(80\) \+ Int64\(\-10\) \+ \(\- Int64\(15\)\) \+ coalesce\(Int64\(30\), Int64\(10\)\) \+ \(\- Int64\(97\)\) \+ \(\- avg\(DISTINCT Int64\(97\)\)\) \+ Int64\(79\)\) \* Int64\(\-38\) \* avg\(Int64\(\-32\)\) \* count\(DISTINCT Int64\(\-26\)\) THEN Int64\(14\) WHEN Int64\(\-46\) \+ Int64\(86\) \+ Int64\(59\) \* Int64\(65\) \+ Int64\(\-7\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(63\) \* Int64\(9\) \+ Int64\(2\) \* Int64\(84\) \- Int64\(85\) \- Int64\(52\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 AS col1, 54 + - CASE + ( - ( - 50 ) ) WHEN 22 * - - SUM ( ALL 74 ) * - - 65 + 38 + - 42 - ( + + 61 ) + + NULLIF ( - 42, 80 + - 10 + - + 15 + + COALESCE ( 30, 10 ) + - + 97 + - AVG ( DISTINCT + 97 ) + 79 ) * + - 38 * + + AVG ( ALL - 32 ) * COUNT ( DISTINCT + - 26 ) THEN + 14 WHEN ( - 46 ) + + 86 + 59 * + + 65 + - 7 THEN NULL ELSE + - COUNT ( * ) + 63 * 9 + + 2 * + 84 - + ( + 85 ) - + 52 END AS col1 query II rowsort label-2388 @@ -13122,7 +13122,7 @@ SELECT 45 + - + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- count\(\*\)\) 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 "Int64\(29\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 29 * - + COUNT ( * ) AS col2, + 36 AS col2 query I rowsort label-2490 @@ -14680,13 +14680,13 @@ 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\(\*\) AS col1" at position 1 have the 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: # Datafusion - Expected - -13 # Datafusion - Expected - 238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "Int64\(73\) \+ Int64\(56\) \+ Int64\(32\) \+ Int64\(\-77\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "Int64\(73\) \+ Int64\(56\) \+ Int64\(32\) \+ Int64\(\-77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 13 AS col1, + 73 + 56 + + 32 + - 77 * - COUNT ( * ) AS col1 query I rowsort label-2793 @@ -14778,7 +14778,7 @@ SELECT ALL + + ( - ( 41 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 14 -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\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(5\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 5 AS col1, + 14 AS col1 query I rowsort label-2811 @@ -15918,7 +15918,7 @@ SELECT DISTINCT 94 / + 94 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(22\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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 "Int64\(22\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 27 AS col2, 22 + - - COUNT ( * ) AS col2 query I rowsort @@ -16247,7 +16247,7 @@ SELECT 95 * + NULLIF ( + 17, + - NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( AL # Datafusion - Expected - 32 # Datafusion - Expected - -1458 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(24\), count\(\*\) \* \(\- count\(Int64\(31\)\)\) \+ Int64\(84\) \+ Int64\(43\) \+ Int64\(\-89\) \* Int64\(29\) \* Int64\(77\) / Int64\(24\)\) \* \(\- \(\- Int64\(\-58\)\)\) \+ Int64\(\-66\) AS col1" at position 1 and "nullif\(Int64\(\-38\), 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 "coalesce\(Int64\(24\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(31\)\)\) \+ Int64\(84\) \+ Int64\(43\) \+ Int64\(\-89\) \* Int64\(29\) \* Int64\(77\) / Int64\(24\)\) \* \(\- \(\- Int64\(\-58\)\)\) \+ Int64\(\-66\) AS col1" at position 1 and "nullif\(Int64\(\-38\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 32, COALESCE ( 24, + COUNT ( * ) * - COUNT ( + 31 ) + + + 84 + 43 + + - 89 * + 29 * + 77 / + ( 24 ) ) * - - ( + - 58 ) + - 66 AS col1, + NULLIF ( - 38, COUNT ( * ) ) AS col1 query I rowsort @@ -16906,7 +16906,7 @@ SELECT 18 + + 17 + - - 74 * - 10 * 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -35 -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\(38\) \- 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\(33\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(38\) \- Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 33 AS col1, + COUNT ( * ) * + 38 - + 73 AS col1 query I rowsort label-3212 @@ -17061,7 +17061,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\(\*\) 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 @@ -17126,7 +17126,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\(\*\) 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 @@ -17748,7 +17748,7 @@ SELECT - SUM ( DISTINCT - 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(NULL AS Int32\) \* \(\- sum\(Int64\(55\)\)\) AS col2" at position 0 and "count\(\(\- Int64\(\-64\)\)\) \+ \(\- nullif\(Int64\(23\), Int64\(26\) \+ Int64\(\-65\) \+ \(\- Int64\(\-44\)\)\)\) \- Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* \(\- sum\(Int64\(55\)\)\) AS col2" at position 0 and "count\(\(\- Int64\(\-64\)\)\) \+ \(\- nullif\(Int64\(23\), Int64\(26\) \+ Int64\(\-65\) \+ \(\- Int64\(\-44\)\)\)\) \- Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - + SUM ( + 55 ) AS col2, COUNT ( - - 64 ) + - NULLIF ( + + 23, 26 + - 65 + - ( - 44 ) ) - + 31 AS col2 query I rowsort label-3367 @@ -18194,7 +18194,7 @@ SELECT - NULLIF ( + 59, - 31 ) - + MAX ( - 47 ) + 38 + 40 + - COUNT ( * ) / - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- count\(\*\)\) \* \(\- Int64\(39\)\) \+ \(\- Int64\(54\)\) AS col0" at position 0 and "Int64\(87\) \* 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\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(39\)\) \+ \(\- Int64\(54\)\) AS col0" at position 0 and "Int64\(87\) \* Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - COUNT ( * ) * - + 39 + - + 54 AS col0, 87 * - 10 AS col0 query I rowsort @@ -18985,7 +18985,7 @@ SELECT MAX ( DISTINCT 42 ) AS col2 # Datafusion - Expected - -15 # Datafusion - Expected - 22 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-15\), \(\- Int64\(68\)\) / Int64\(\-41\) \* Int64\(10\) \* \(\- sum\(Int64\(31\)\)\) \* \(\- coalesce\(Int64\(2\), max\(Int64\(\-72\)\) \* Int64\(\-70\) \+ Int64\(22\) \+ count\(Int64\(\-79\)\) \* \(\- count\(DISTINCT Int64\(31\)\)\), Int64\(\-64\) \* count\(\*\)\)\) \* Int64\(\-19\) / Int64\(\-67\) \* Int64\(45\) \+ Int64\(71\), Int64\(43\)\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-58\), Int64\(\-71\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-15\), \(\- Int64\(68\)\) / Int64\(\-41\) \* Int64\(10\) \* \(\- sum\(Int64\(31\)\)\) \* \(\- coalesce\(Int64\(2\), max\(Int64\(\-72\)\) \* Int64\(\-70\) \+ Int64\(22\) \+ count\(Int64\(\-79\)\) \* \(\- count\(DISTINCT Int64\(31\)\)\), Int64\(\-64\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-19\) / Int64\(\-67\) \* Int64\(45\) \+ Int64\(71\), Int64\(43\)\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-58\), Int64\(\-71\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - 15, - + 68 / - 41 * + 10 * - SUM ( ALL + + 31 ) * - COALESCE ( + ( + 2 ), MAX ( ALL - 72 ) * - 70 + + + 22 + COUNT ( - 79 ) * - + COUNT ( DISTINCT + + 31 ), - 64 * COUNT ( * ) ) * - 19 / - 67 * + 45 + 71, + + 43 ) AS col1, ( 22 ) AS col0, - + COALESCE ( + - 58, - 71 ) AS col1 query I rowsort label-3604 @@ -20577,7 +20577,7 @@ SELECT - - COUNT ( * ) * 5 + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "count\(\*\) \+ nullif\(Int64\(\-14\), coalesce\(\(\- \(\- Int64\(48\)\)\), nullif\(Int64\(88\), CAST\(Int64\(\-22\) AS Int32\) \+ Int64\(98\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(\-14\), coalesce\(\(\- \(\- Int64\(48\)\)\), nullif\(Int64\(88\), CAST\(Int64\(\-22\) AS Int32\) \+ Int64\(98\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 82 col0, + COUNT ( * ) + + NULLIF ( - 14, COALESCE ( - ( - + 48 ), + NULLIF ( 88, CAST ( - 22 AS INTEGER ) + 98 ) ) ) AS col0 query I rowsort label-3910 @@ -21229,7 +21229,7 @@ SELECT NULLIF ( - 3, COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- CAST\(Int64\(37\) AS Int32\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(37\) AS Int32\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) + - + ( + CAST ( + 37 AS INTEGER ) ) AS col1, + 69 AS col1 query II rowsort label-4036 @@ -21349,7 +21349,7 @@ SELECT ALL + 79 + - MAX ( - 77 ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- \(\- count\(\*\)\)\) \* Int64\(94\) \+ \(\- nullif\(Int64\(\-31\), count\(\*\)\)\) \+ Int64\(36\) \+ Int64\(\-48\) \- Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(94\) \+ \(\- nullif\(Int64\(\-31\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(36\) \+ Int64\(\-48\) \- Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 98 + - CAST ( NULL AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * 94 + + - NULLIF ( - 31, + COUNT ( * ) ) + + ( + 36 ) + - 48 - + 35 col1 query I rowsort @@ -23619,7 +23619,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\(\*\) AS col1" at position 1 have the 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 @@ -26105,7 +26105,7 @@ SELECT ALL COALESCE ( + 80, + CAST ( NULL AS INTEGER ) + + + 85 + + 35 ) / - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 29 AS col2, + COUNT ( * ) + + - COUNT ( * ) AS col2 query II rowsort @@ -26520,7 +26520,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\(\*\) 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 @@ -27133,7 +27133,7 @@ SELECT - + 1 AS col1, + ( 71 ) + - + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8252 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- Int64\(\-93\)\) \+ \(\- Int64\(\-50\)\) \+ Int64\(18\) \+ Int64\(92\) \+ Int64\(92\) / \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(9\) \+ \(\- Int64\(38\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- Int64\(\-93\)\) \+ \(\- Int64\(\-50\)\) \+ Int64\(18\) \+ Int64\(92\) \+ Int64\(92\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(9\) \+ \(\- Int64\(38\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 * - - 93 + - - 50 + + 18 + 92 + + 92 / - COUNT ( * ) AS col2, 9 + - + 38 AS col2 query I rowsort label-5160 @@ -27351,7 +27351,7 @@ SELECT + 32 * - - 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141512 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(\-98\) \* Int64\(38\) AS col2" at position 0 and "count\(\*\) \+ Int64\(44\) / coalesce\(CASE Int64\(85\) WHEN Int64\(\-90\) THEN NULL WHEN Int64\(20\) \+ Int64\(15\) \* Int64\(\-45\) THEN \(\- count\(\*\)\) WHEN Int64\(15\) \- nullif\(Int64\(\-61\), count\(Int64\(54\)\)\) THEN Int64\(\-69\) / \(\- count\(Int64\(78\)\)\) ELSE NULL END, \(\- nullif\(Int64\(8\), \(\- Int64\(\-67\)\) \+ Int64\(94\)\)\)\) \+ 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\(\-38\) \* Int64\(\-98\) \* Int64\(38\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(44\) / coalesce\(CASE Int64\(85\) WHEN Int64\(\-90\) THEN NULL WHEN Int64\(20\) \+ Int64\(15\) \* Int64\(\-45\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(15\) \- nullif\(Int64\(\-61\), count\(Int64\(54\)\)\) THEN Int64\(\-69\) / \(\- count\(Int64\(78\)\)\) ELSE NULL END, \(\- nullif\(Int64\(8\), \(\- Int64\(\-67\)\) \+ Int64\(94\)\)\)\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 38 * - 98 * + 38 AS col2, COUNT ( * ) + 44 / COALESCE ( + CASE 85 WHEN + - 90 THEN NULL WHEN + 20 + + 15 * - 45 THEN - COUNT ( * ) WHEN 15 - + NULLIF ( + - 61, COUNT ( ALL + 54 ) ) THEN + - 69 / - COUNT ( + 78 ) ELSE NULL END, - NULLIF ( + 8, - - 67 + + 94 ) ) + + 32 AS col2 query I rowsort label-5200 @@ -27398,7 +27398,7 @@ SELECT DISTINCT 10 * - 82 * - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(21\) WHEN CAST\(Int64\(35\) AS Int32\) THEN NULL ELSE \(\- count\(\*\)\) END AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(21\) WHEN CAST\(Int64\(35\) AS Int32\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE 21 WHEN + CAST ( + 35 AS INTEGER ) THEN NULL ELSE + ( + - COUNT ( * ) ) END AS col1, - 20 AS col1 query I rowsort label-5209 @@ -28609,7 +28609,7 @@ SELECT ALL 51 + - 74 AS col0 # Datafusion - Expected - 42 # Datafusion - Expected - 56 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- coalesce\(\(\- count\(\*\)\), Int64\(\-27\) \* Int64\(20\)\)\) AS col1" at position 1 and "Int64\(64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-27\) \* Int64\(20\)\)\) AS col1" at position 1 and "Int64\(64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 42 AS col0, 55 + - COALESCE ( - COUNT ( * ), - 27 * 20 ) AS col1, + 64 AS col1 query I rowsort @@ -28826,7 +28826,7 @@ SELECT - 46 AS col0, + 18 # Datafusion - Expected - 48 # Datafusion - Expected - -27810449 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(82\) \* \(\- Int64\(\-82\)\) \* \(\- Int64\(\-94\)\) \* Int64\(\-44\) \+ Int64\(15\) \+ \(\- count\(\*\)\) / Int64\(57\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(82\) \* \(\- Int64\(\-82\)\) \* \(\- Int64\(\-94\)\) \* Int64\(\-44\) \+ Int64\(15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(57\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 48 AS col1, + 82 * - - 82 * - - 94 * - 44 + 15 + - COUNT ( * ) / + 57 * + 74 AS col1, + - 68 query I rowsort @@ -29077,7 +29077,7 @@ SELECT + 43 * + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(53\) WHEN \(\- count\(\*\)\) \* Int64\(74\) THEN NULL WHEN Int64\(87\) \- Int64\(84\) \* Int64\(\-16\) \* Int64\(8\) THEN NULL WHEN nullif\(Int64\(53\), Int64\(7\) \* Int64\(22\) \* Int64\(26\) \+ \(\- Int64\(\-95\)\)\) \* \(\- coalesce\(Int64\(\-47\), \(\- Int64\(\-65\)\) \* Int64\(53\)\)\) \* Int64\(94\) THEN Int64\(78\) END\) 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 "\(\- CASE Int64\(53\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(74\) THEN NULL WHEN Int64\(87\) \- Int64\(84\) \* Int64\(\-16\) \* Int64\(8\) THEN NULL WHEN nullif\(Int64\(53\), Int64\(7\) \* Int64\(22\) \* Int64\(26\) \+ \(\- Int64\(\-95\)\)\) \* \(\- coalesce\(Int64\(\-47\), \(\- Int64\(\-65\)\) \* Int64\(53\)\)\) \* Int64\(94\) THEN Int64\(78\) END\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CASE + 53 WHEN - COUNT ( * ) * + 74 THEN NULL WHEN + 87 - 84 * + - 16 * + 8 THEN NULL WHEN NULLIF ( + 53, + 7 * + 22 * + 26 + - - 95 ) * - COALESCE ( - 47, - - 65 * + + 53 ) * 94 THEN 78 END AS col0, + 37 AS col0 query I rowsort label-5530 @@ -29336,7 +29336,7 @@ SELECT DISTINCT COUNT ( - + 41 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(\-15\) AS col1" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(\-15\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 + - 15 AS col1, + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) * - COUNT ( * ) AS col1 query I rowsort label-5579 @@ -30116,7 +30116,7 @@ SELECT DISTINCT + 85 * - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 96 * - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * + - 14 AS col0 query I rowsort label-5727 @@ -30802,7 +30802,7 @@ SELECT ALL + 26 + - COUNT ( * ) + COUNT ( * ) * + CAST ( + 7 AS INTEGER ) col1 # 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\(\*\)\) AS col1" at position 0 and "Int64\(70\) \+ min\(DISTINCT Int64\(42\)\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(70\) \+ min\(DISTINCT Int64\(42\)\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col1, 70 + + MIN ( DISTINCT 42 ) - 14 AS col1 # Datafusion - Datafusion expected results: @@ -31287,7 +31287,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- 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 "Int64\(18\) \* \(\- 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 + 18 * - COUNT ( * ) AS col0, 35 AS col0 query I rowsort @@ -31981,7 +31981,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\(\*\) AS col0" at position 1 have the 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 @@ -32098,7 +32098,7 @@ SELECT - 54 AS col1, + 96 + - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1577 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-19\)\) \* Int64\(83\) AS col0" at position 0 and "coalesce\(\(\- nullif\(Int64\(97\), Int64\(\-74\) \- coalesce\(\(\- Int64\(\-14\)\), Int64\(\-85\)\)\)\), Int64\(0\), \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-19\)\) \* Int64\(83\) AS col0" at position 0 and "coalesce\(\(\- nullif\(Int64\(97\), Int64\(\-74\) \- coalesce\(\(\- Int64\(\-14\)\), Int64\(\-85\)\)\)\), Int64\(0\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - 19 ) * + 83 AS col0, COALESCE ( - NULLIF ( ( + 97 ), - 74 - + COALESCE ( - - 14, - 85 ) ), + 0, - COUNT ( * ) ) AS col0 query I rowsort label-6111 @@ -32398,7 +32398,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-69\) 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\(\*\)\) \* Int64\(\-69\) 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 ( * ) * + - 69 AS col2, 83 col2 query I rowsort label-6166 @@ -33054,7 +33054,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "\(\- count\(\*\)\) \* 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\(10\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 10 AS col2, ( - COUNT ( * ) ) * + 8 AS col2 query I rowsort label-6292 @@ -33724,7 +33724,7 @@ SELECT 4 * + 24 + 67 + + + CASE 42 WHEN + ( 40 ) THEN NULL ELSE - 76 END AS col0 # 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 "count\(\*\) / \(\- CASE Int64\(92\) WHEN Int64\(10\) THEN count\(\*\) END\) 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\(\*\) / \(\- CASE Int64\(92\) WHEN Int64\(10\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) 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 ( * ) / - CASE + 92 WHEN + 10 THEN COUNT ( * ) END AS col0, - 98 AS col0 query I rowsort label-6421 @@ -34220,7 +34220,7 @@ SELECT 79 + + 71 AS col0 # 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\(0\) AS col0" at position 0 and "Int64\(61\) \- 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\(\*\)\) \* Int64\(0\) AS col0" at position 0 and "Int64\(61\) \- Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + COUNT ( * ) ) * 0 AS col0, 61 - + 40 AS col0 query I rowsort @@ -35674,7 +35674,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\(\*\) 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 @@ -35685,7 +35685,7 @@ SELECT - - COUNT ( * ) - + 4 * + COUNT ( * ) # 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\(\*\)\) AS col1" at position 1 have the 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 - - 94 AS col1, ( - COUNT ( * ) ) AS col1 query I rowsort @@ -35717,7 +35717,7 @@ SELECT ALL + COUNT ( * ) * ( 18 ) # Datafusion - Expected - -79 # Datafusion - Expected - -25 # Datafusion - Expected - 79 -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\(56\) \+ 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\(\-79\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(56\) \+ Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 79 ) AS col1, COUNT ( * ) + + 56 + - 82 AS col1, ( + + 43 ) + + 36 + - COUNT ( * ) - - COUNT ( * ) query II rowsort @@ -35982,7 +35982,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\(\*\) AS col0" at position 1 have the 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 @@ -36315,7 +36315,7 @@ SELECT + 3 + - COUNT ( ALL + 47 ) * + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 704 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) \* min\(Int64\(11\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) \* min\(Int64\(11\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 64 * MIN ( ALL + 11 ) AS col2, COUNT ( * ) * + 65 AS col2 query I rowsort @@ -37514,7 +37514,7 @@ SELECT + - 6 * - 46 col0, 32 # 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 "coalesce\(\(\- count\(\*\)\), Int64\(6\)\) 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 "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(6\)\) 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 + COALESCE ( + - COUNT ( * ), + 6 ) AS col0, 48 AS col0 query I rowsort label-7137 @@ -37901,7 +37901,7 @@ SELECT 23 AS col0, CASE - 48 WHEN - - 14 THEN NULL ELSE - + 78 END AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4463 # Datafusion - Expected - 2870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \- Int64\(\-94\) \* Int64\(\-30\) \+ Int64\(\-20\) / Int64\(\-41\) \- Int64\(\-23\) \+ \(\- Int64\(42\)\) \* count\(\*\) \* Int64\(40\) AS col2" at position 0 and "Int64\(41\) \* 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\(14\) \- Int64\(\-94\) \* Int64\(\-30\) \+ Int64\(\-20\) / Int64\(\-41\) \- Int64\(\-23\) \+ \(\- Int64\(42\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(40\) AS col2" at position 0 and "Int64\(41\) \* Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 - + - 94 * - 30 + + - 20 / + ( + - 41 ) - - 23 + - + 42 * + COUNT ( * ) * 40 AS col2, 41 * 70 AS col2 query I rowsort @@ -40159,7 +40159,7 @@ SELECT DISTINCT 87 * 6 + - 85 * + + 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -658 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- count\(\*\) \* Int64\(14\) AS col2" at position 0 and "Int64\(23\) \* \(\- Int64\(0\)\) / Int64\(31\) \+ \(\- Int64\(\-14\)\) \* 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\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) AS col2" at position 0 and "Int64\(23\) \* \(\- Int64\(0\)\) / Int64\(31\) \+ \(\- Int64\(\-14\)\) \* Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - COUNT ( * ) * 14 AS col2, 23 * - ( 0 ) / 31 + - - 14 * - 47 AS col2 query I rowsort @@ -40544,7 +40544,7 @@ SELECT 2 * - - 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ \(\- \(\- 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 "Int64\(9\) \+ \(\- \(\- 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 9 + - ( - COUNT ( * ) ) AS col0, + 23 col0 query II rowsort label-7720 @@ -42427,7 +42427,7 @@ SELECT - + COUNT ( * ) * - 82 + + COUNT ( * ) * - 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 3527 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(60\), nullif\(count\(\*\), Int64\(\-29\)\) \* Int64\(96\)\) AS col1" at position 0 and "Int64\(45\) \* Int64\(77\) \+ 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 "nullif\(Int64\(60\), nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-29\)\) \* Int64\(96\)\) AS col1" at position 0 and "Int64\(45\) \* Int64\(77\) \+ Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( 60, + NULLIF ( + + COUNT ( * ), - 29 ) * 96 ) AS col1, 45 * + 77 + + 62 AS col1 query I rowsort label-8075 @@ -43530,7 +43530,7 @@ NULL # 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 "count\(\*\) \+ Int64\(55\) AS col1" at position 0 and "Int64\(35\) \+ 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\(\*\) \+ Int64\(55\) AS col1" at position 0 and "Int64\(35\) \+ Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + 55 AS col1, + 35 + - 34 col1 query I rowsort label-8282 @@ -43682,7 +43682,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\(\*\) 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 @@ -44602,7 +44602,7 @@ SELECT DISTINCT + CAST ( 22 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(\-18\) WHEN Int64\(\-32\) THEN Int64\(58\) ELSE Int64\(3\) \+ Int64\(74\) END AS Int32\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(\-18\) WHEN Int64\(\-32\) THEN Int64\(58\) ELSE Int64\(3\) \+ Int64\(74\) END AS 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 ( + CASE + - 18 WHEN - 32 THEN + 58 ELSE + 3 + 74 END AS INTEGER ) AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -44669,7 +44669,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\(\*\) \+ count\(\*\) \+ Int64\(\-40\) \* Int64\(45\) \* Int64\(58\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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: @@ -46390,7 +46390,7 @@ SELECT ALL SUM ( ALL + ( 85 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5518 # Datafusion - Expected - 352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(\-56\)\) \* Int64\(98\) AS col2" at position 0 and "Int64\(4\) \* Int64\(88\) \+ Int64\(\-5\) \* nullif\(min\(\(\- Int64\(94\)\)\), Int64\(\-85\) \* Int64\(46\) \* \(\- \(\- coalesce\(Int64\(\-44\), Int64\(11\)\)\)\)\) \* Int64\(\-98\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-56\)\) \* Int64\(98\) AS col2" at position 0 and "Int64\(4\) \* Int64\(88\) \+ Int64\(\-5\) \* nullif\(min\(\(\- Int64\(94\)\)\), Int64\(\-85\) \* Int64\(46\) \* \(\- \(\- coalesce\(Int64\(\-44\), Int64\(11\)\)\)\)\) \* Int64\(\-98\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 31 + + - COUNT ( * ) + - - 56 * 98 AS col2, 4 * 88 + + - 5 * + NULLIF ( + MIN ( - + 94 ), + ( - 85 ) * + 46 * - - COALESCE ( - 44, 11 ) ) * + - 98 * + + 0 AS col2 query II rowsort @@ -50433,7 +50433,7 @@ SELECT DISTINCT + + 63 * - COUNT ( * ) - - + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4446 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-57\) AS col1" at position 0 and "sum\(DISTINCT CAST\(NULL AS Int32\)\) \* count\(\*\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-57\) AS col1" at position 0 and "sum\(DISTINCT CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 78 * - 57 AS col1, + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + 64 AS col1 query II rowsort label-9600 @@ -51172,7 +51172,7 @@ SELECT DISTINCT 3 * + ( - 22 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* coalesce\(\(\- count\(\*\)\), \(\- Int64\(\-42\)\) \* Int64\(83\) / Int64\(\-84\), Int64\(65\)\) / Int64\(\-88\) \* Int64\(34\) \+ \(\- Int64\(89\)\) AS col2" at position 0 and "Int64\(17\) \* 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\(67\) \* coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-42\)\) \* Int64\(83\) / Int64\(\-84\), Int64\(65\)\) / Int64\(\-88\) \* Int64\(34\) \+ \(\- Int64\(89\)\) AS col2" at position 0 and "Int64\(17\) \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 67 * + COALESCE ( - + COUNT ( * ), + ( - - 42 ) * + 83 / - 84, 65 ) / - 88 * 34 + - + 89 AS col2, 17 * 33 AS col2 query I rowsort label-9739 @@ -51913,7 +51913,7 @@ SELECT - CASE - 75 WHEN + 93 THEN NULL WHEN - 62 THEN + + ( AVG ( DISTINCT 27 ) # Datafusion - Expected - -99 # Datafusion - Expected - 47 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(47\)\) AS col1" at position 1 and "\(\- count\(\*\)\) \* 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 "min\(Int64\(47\)\) AS col1" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(54\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 99, MIN ( 47 ) AS col1, - COUNT ( * ) * 54 col1 # Datafusion - Datafusion expected results: @@ -52133,7 +52133,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\(\*\) 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 @@ -52402,7 +52402,7 @@ SELECT DISTINCT 91 * + + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1764 # Datafusion - Expected - -901 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(28\)\) \* Int64\(\-63\) AS col2" at position 0 and "Int64\(17\) \* count\(\*\) \* CAST\(min\(Int64\(\-53\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(28\)\) \* Int64\(\-63\) AS col2" at position 0 and "Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(min\(Int64\(\-53\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( 28 ) * + - 63 col2, 17 * COUNT ( * ) * + CAST ( + MIN ( + - 53 ) AS INTEGER ) AS col2 query I rowsort label-9972 @@ -52475,7 +52475,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\(\*\) 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 2eccae8..b51feaf 100644 --- a/data/sqlite/random/expr/slt_good_106.slt +++ b/data/sqlite/random/expr/slt_good_106.slt @@ -121,7 +121,7 @@ SELECT 78 - CAST ( - - 52 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8261 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-79\) \+ Int64\(85\) \* Int64\(\-47\) AS col0" at position 0 and "\(\- 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\(54\) \* Int64\(\-79\) \+ Int64\(85\) \* Int64\(\-47\) 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 + 54 * - 79 + 85 * - 47 AS col0, - COUNT ( * ) + + 80 col0 query I rowsort @@ -2397,7 +2397,7 @@ SELECT 88 AS col1, - 35 # 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 "\(\- Int64\(\-77\)\) / \(\- sum\(Int64\(\-55\)\)\) AS col1" at position 0 and "Int64\(\-55\) / Int64\(51\) \* \(\- count\(\*\)\) \+ Int64\(71\) \+ 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\(\-77\)\) / \(\- sum\(Int64\(\-55\)\)\) AS col1" at position 0 and "Int64\(\-55\) / Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(71\) \+ Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 77 / - SUM ( - 55 ) col1, - 55 / + + 51 * + - ( + COUNT ( * ) ) + 71 + - 64 AS col1 query I rowsort label-451 @@ -2423,7 +2423,7 @@ SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / + ( - 20 ) - 63 * - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(1\) \- \(\- coalesce\(Int64\(\-12\), Int64\(48\) / Int64\(78\) \+ count\(\*\)\)\) \+ count\(\*\) / Int64\(\-90\) \* \(\- 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\(46\) AS col1" at position 0 and "Int64\(1\) \- \(\- coalesce\(Int64\(\-12\), Int64\(48\) / Int64\(78\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-90\) \* \(\- Int64\(\-72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 46 col1, 1 - - ( COALESCE ( - 12, + + 48 / 78 + COUNT ( * ) ) ) + ( + COUNT ( * ) ) / - 90 * - - 72 AS col1 query I rowsort @@ -3987,7 +3987,7 @@ SELECT - NULLIF ( + + 38, + + 20 ) # 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\(89\) AS col1" at position 0 and "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\(89\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 89 AS col1, COUNT ( * ) / 76 AS col1 query II rowsort @@ -5813,7 +5813,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\(\*\) AS col1" at position 1 have the 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 @@ -6179,7 +6179,7 @@ SELECT DISTINCT 2 + - + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / Int64\(81\) \+ Int64\(\-20\) / Int64\(81\) \+ Int64\(\-33\) \+ Int64\(14\) \* \(\- count\(\*\)\) AS col0" at position 0 and "max\(Int64\(16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / Int64\(81\) \+ Int64\(\-20\) / Int64\(81\) \+ Int64\(\-33\) \+ Int64\(14\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "max\(Int64\(16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 85 / + 81 + ( - 20 ) / + 81 + - 33 + + 14 * - COUNT ( * ) AS col0, MAX ( 16 ) AS col0 query I rowsort label-1179 @@ -6471,7 +6471,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\(\*\) 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 @@ -6719,7 +6719,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\(\-91\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-31\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -7154,7 +7154,7 @@ SELECT 50 * - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 3060 -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\(34\) \* Int64\(85\) \+ \(\- Int64\(\-79\)\) \+ Int64\(37\) \+ Int64\(\-92\) \* Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \* Int64\(85\) \+ \(\- Int64\(\-79\)\) \+ Int64\(37\) \+ Int64\(\-92\) \* Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 41 AS col1, COUNT ( * ) / + + 34 * 85 + - - 79 + 37 + - 92 * - 32 AS col1 query II rowsort label-1366 @@ -8537,7 +8537,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\(\*\) AS col2" at position 1 have 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 @@ -9690,7 +9690,7 @@ SELECT + 0 * - 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(90\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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\(90\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 AS col2, + 90 * - - COUNT ( * ) col2 query I rowsort @@ -9727,7 +9727,7 @@ SELECT - SUM ( + + 6 ) / - SUM ( DISTINCT 40 ) * + 31 # 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 "Int64\(0\) AS col1" at position 0 and "count\(\*\) \* 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\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 0 AS col1, COUNT ( * ) * - 61 AS col1 query II rowsort @@ -11326,7 +11326,7 @@ SELECT 82 + + 81 AS col2 # Datafusion - Expected - 73 # Datafusion - Expected - 2 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(\-8\) \+ Int64\(\-20\) 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\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-8\) \+ Int64\(\-20\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 73 * - COUNT ( * ) AS col2, 92 / + 33 AS col0, COUNT ( * ) + - 8 + - 20 AS col2 query I rowsort @@ -13967,7 +13967,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\(\*\) AS col0" at position 1 have the 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 @@ -14970,7 +14970,7 @@ SELECT ALL 6 * + - ( 66 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(57\)\)\)\) \* \(\- Int64\(30\)\) \* count\(\*\) \* CAST\(\(\- sum\(Int64\(5\)\)\) AS Int32\) \* Int64\(77\) \* Int64\(32\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-64\) \* \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(57\)\)\)\) \* \(\- Int64\(30\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(\(\- sum\(Int64\(5\)\)\) AS Int32\) \* Int64\(77\) \* Int64\(32\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-64\) \* \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - MAX ( 57 ) * - + 30 * + + COUNT ( * ) * + + CAST ( + - SUM ( ALL + + 5 ) AS INTEGER ) * + 77 * 32 + + + CAST ( NULL AS INTEGER ) AS col2, - 64 * - - 58 AS col2 query I rowsort @@ -15032,7 +15032,7 @@ SELECT 4 * + 57 * 55 * + 14 # 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\(\*\)\) \* count\(Int64\(\-38\)\) 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\(\*\)\) \* count\(Int64\(\-38\)\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * COUNT ( - 38 ) AS col2, 80 AS col2 query II rowsort label-2876 @@ -15171,7 +15171,7 @@ SELECT + + 68 * + 23 / - + COUNT ( * ) - + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "Int64\(\-14\) \* nullif\(Int64\(56\), \(\- Int64\(10\)\) \* nullif\(Int64\(\-39\), \(\- CASE Int64\(\-75\) WHEN Int64\(30\) \* Int64\(63\) \* \(\- Int64\(\-86\)\) \- Int64\(43\) \+ \(\- nullif\(Int64\(13\), \(\- Int64\(\-42\)\) \* Int64\(31\)\)\) THEN NULL WHEN Int64\(32\) \+ Int64\(65\) \* nullif\(Int64\(71\), Int64\(8\) \* Int64\(57\) \+ \(\- CASE count\(\*\) \+ Int64\(\-30\) \* CAST\(Int64\(\-76\) AS Int32\) WHEN nullif\(Int64\(29\), Int64\(28\)\) \+ Int64\(9\) THEN nullif\(Int64\(13\), Int64\(\-94\) \+ Int64\(\-75\)\) ELSE NULL END\)\) \* count\(\*\) THEN Int64\(85\) \* Int64\(47\) END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "Int64\(\-14\) \* nullif\(Int64\(56\), \(\- Int64\(10\)\) \* nullif\(Int64\(\-39\), \(\- CASE Int64\(\-75\) WHEN Int64\(30\) \* Int64\(63\) \* \(\- Int64\(\-86\)\) \- Int64\(43\) \+ \(\- nullif\(Int64\(13\), \(\- Int64\(\-42\)\) \* Int64\(31\)\)\) THEN NULL WHEN Int64\(32\) \+ Int64\(65\) \* nullif\(Int64\(71\), Int64\(8\) \* Int64\(57\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) \* CAST\(Int64\(\-76\) AS Int32\) WHEN nullif\(Int64\(29\), Int64\(28\)\) \+ Int64\(9\) THEN nullif\(Int64\(13\), Int64\(\-94\) \+ Int64\(\-75\)\) ELSE NULL END\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(85\) \* Int64\(47\) END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 AS col2, + ( - 14 ) * + NULLIF ( + 56, - + 10 * NULLIF ( + - 39, - CASE - 75 WHEN 30 * 63 * - - 86 - 43 + - NULLIF ( 13, - ( + - 42 ) * 31 ) THEN NULL WHEN 32 + 65 * ( NULLIF ( 71, 8 * 57 + - CASE COUNT ( * ) + - 30 * + CAST ( - 76 AS INTEGER ) WHEN NULLIF ( + 29, 28 ) + 9 THEN + NULLIF ( 13, - 94 + - 75 ) ELSE NULL END ) * COUNT ( * ) ) THEN 85 * 47 END ) ) AS col2 # Datafusion - Types were automatically converted from: @@ -15268,7 +15268,7 @@ SELECT DISTINCT 16 + + 43 * + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- coalesce\(Int64\(\-99\), \(\- Int64\(5\)\), \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(68\)\)\) AS col2" at position 0 and "Int64\(98\) \* Int64\(\-95\) \+ \(\- count\(\*\)\) \* Int64\(\-19\) \* CASE CAST\(Int64\(83\) AS Float64\) WHEN Int64\(88\) \* Int64\(88\) THEN Int64\(37\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- coalesce\(Int64\(\-99\), \(\- Int64\(5\)\), \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(68\)\)\) AS col2" at position 0 and "Int64\(98\) \* Int64\(\-95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-19\) \* CASE CAST\(Int64\(83\) AS Float64\) WHEN Int64\(88\) \* Int64\(88\) THEN Int64\(37\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 39 ) - - + COALESCE ( - 99, - + 5, ( - + ( - + CAST ( NULL AS INTEGER ) ) ) * + 68 ) AS col2, 98 * - 95 + - COUNT ( * ) * - 19 * + CASE + CAST ( 83 AS FLOAT8 ) WHEN 88 * + 88 THEN 37 END col2 query I rowsort @@ -15454,7 +15454,7 @@ SELECT + 36 * COALESCE ( CASE - 58 WHEN - - COALESCE ( + 3, + 68 ) + 47 THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7824 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* CAST\(\(\- nullif\(\(\- Int64\(85\)\), Int64\(\-19\) \* \(\- \(\- count\(\*\)\)\)\)\) AS Int32\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(42\) \+ Int64\(8\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* CAST\(\(\- nullif\(\(\- Int64\(85\)\), Int64\(\-19\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS Int32\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(42\) \+ Int64\(8\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 92 * + + CAST ( - NULLIF ( - + 85, - 19 * - - COUNT ( * ) ) AS INTEGER ) + + 4 AS col0, 42 + 8 + 44 AS col0 query I rowsort label-2955 @@ -16549,7 +16549,7 @@ SELECT 32 * + 58 * ( - + 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(29\)\) \- Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(29\)\) \- Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 67 * - + COUNT ( * ) AS col0, - ( 29 ) - + 86 AS col0 query I rowsort @@ -16749,7 +16749,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\(\*\) AS col1" at position 1 have the 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 @@ -17156,7 +17156,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(57\) WHEN Int64\(57\) \* \(\- Int64\(\-29\)\) THEN NULL WHEN Int64\(11\) / Int64\(47\) THEN Int64\(\-8\) \+ \(\- Int64\(66\)\) \+ sum\(Int64\(8\)\) ELSE NULL END AS col0" at position 0 and "Int64\(\-96\) \* coalesce\(count\(\*\), \(\- Int64\(\-25\)\) \* Int64\(80\) \* Int64\(77\) \+ \(\- Int64\(3\)\) \+ Int64\(15\)\) \* \(\- \(\- nullif\(Int64\(\-98\), Int64\(\-83\) \- \(\- Int64\(61\)\) \+ Int64\(86\) \* Int64\(\-36\) \* 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 "CASE Int64\(57\) WHEN Int64\(57\) \* \(\- Int64\(\-29\)\) THEN NULL WHEN Int64\(11\) / Int64\(47\) THEN Int64\(\-8\) \+ \(\- Int64\(66\)\) \+ sum\(Int64\(8\)\) ELSE NULL END AS col0" at position 0 and "Int64\(\-96\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(\-25\)\) \* Int64\(80\) \* Int64\(77\) \+ \(\- Int64\(3\)\) \+ Int64\(15\)\) \* \(\- \(\- nullif\(Int64\(\-98\), Int64\(\-83\) \- \(\- Int64\(61\)\) \+ Int64\(86\) \* Int64\(\-36\) \* Int64\(14\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CASE + 57 WHEN + 57 * - - 29 THEN NULL WHEN 11 / 47 THEN - 8 + - + 66 + SUM ( + 8 ) ELSE NULL END AS col0, - 96 * + COALESCE ( + COUNT ( * ), - - 25 * + 80 * 77 + - + 3 + + 15 ) * - - NULLIF ( - 98, - 83 - - + 61 + 86 * + - 36 * + 14 ) AS col0 query I rowsort @@ -18306,7 +18306,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \- Int64\(11\) / \(\- CASE Int64\(38\) WHEN \(\- count\(\*\)\) \* count\(\*\) THEN Int64\(24\) \* CASE count\(\*\) WHEN \(\- Int64\(28\)\) THEN Int64\(73\) WHEN \(\- Int64\(\-50\)\) \* CAST\(Int64\(\-93\) AS Int32\) \- Int64\(\-5\) \+ Int64\(1\) \* count\(\*\) \* Int64\(\-90\) THEN NULL END END\) \- max\(Int64\(2\)\) \* Int64\(97\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \- Int64\(11\) / \(\- CASE Int64\(38\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(24\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(28\)\) THEN Int64\(73\) WHEN \(\- Int64\(\-50\)\) \* CAST\(Int64\(\-93\) AS Int32\) \- Int64\(\-5\) \+ Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-90\) THEN NULL END END\) \- max\(Int64\(2\)\) \* Int64\(97\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 10 - + 11 / - CASE 38 WHEN + - COUNT ( * ) * COUNT ( * ) THEN + 24 * + CASE + COUNT ( * ) WHEN - ( 28 ) THEN 73 WHEN - - 50 * + CAST ( - 93 AS INTEGER ) - - 5 + 1 * COUNT ( * ) * - 90 THEN NULL END END - + + MAX ( 2 ) * 97 AS col2, + 45 col2 query I rowsort @@ -19971,7 +19971,7 @@ SELECT + MAX ( + 35 ) - + CAST ( 21 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(\-55\) WHEN \(\- Int64\(98\)\) \* Int64\(80\) THEN Int64\(33\) \+ \(\- \(\- count\(\*\)\)\) ELSE Int64\(\-44\) END\)\) AS col2" at position 0 and "sum\(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 "\(\- \(\- CASE Int64\(\-55\) WHEN \(\- Int64\(98\)\) \* Int64\(80\) THEN Int64\(33\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) ELSE Int64\(\-44\) END\)\) AS col2" at position 0 and "sum\(Int64\(\-7\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( + + CASE - 55 WHEN - + 98 * ( + 80 ) THEN 33 + - - COUNT ( * ) ELSE - 44 END ) AS col2, + SUM ( ALL - 7 ) col2 query I rowsort @@ -20276,7 +20276,7 @@ SELECT - COUNT ( * ) / - CASE + - 71 WHEN + ( - 65 ) * + + MAX ( - 66 ) * 55 THE # Datafusion - Datafusion expected results: # Datafusion - Expected - -179315 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* Int64\(\-79\) \- Int64\(34\) \- Int64\(4\) \+ count\(\*\) \+ Int64\(61\) \* \(\- \(\- max\(nullif\(\(\- nullif\(Int64\(47\), Int64\(56\) / Int64\(69\) \+ Int64\(\-13\) \* Int64\(79\)\)\), Int64\(50\)\)\)\)\) \* Int64\(63\) 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 "Int64\(\-17\) \* Int64\(\-79\) \- Int64\(34\) \- Int64\(4\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(61\) \* \(\- \(\- max\(nullif\(\(\- nullif\(Int64\(47\), Int64\(56\) / Int64\(69\) \+ Int64\(\-13\) \* Int64\(79\)\)\), Int64\(50\)\)\)\)\) \* Int64\(63\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 17 * - 79 - + 34 - + + 4 + COUNT ( * ) + + 61 * - - MAX ( + + NULLIF ( - + NULLIF ( + 47, + + 56 / + + 69 + - 13 * + 79 ), 50 ) ) * 63 AS col1, 46 AS col1 query I rowsort label-3869 @@ -20334,7 +20334,7 @@ SELECT + 56 * + 23 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\(\*\)\) AS col1" at position 0 and "Int64\(\-40\) \- 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\(\*\)\) AS col1" at position 0 and "Int64\(\-40\) \- Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) col1, - 40 - + - 42 AS col1 query I rowsort label-3880 @@ -20469,7 +20469,7 @@ SELECT ALL - MIN ( ALL - 39 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(15\)\)\)\) \+ \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(\-54\)\) 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\(15\)\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-54\)\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( ALL 15 ) + - - COUNT ( * ) * - - 54 AS col1, + 97 AS col1 query I rowsort label-3905 @@ -21619,7 +21619,7 @@ SELECT ALL - 64 * COUNT ( - 45 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -12 -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\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 9 AS col2, + COUNT ( * ) + + - 13 AS col2 query I rowsort label-4130 @@ -24144,7 +24144,7 @@ SELECT ALL - 64 / + - 6 # Datafusion - Expected - 6 # Datafusion - Expected - -1692 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(\-22\) \+ \(\- Int64\(64\)\) AS col1" at position 1 and "Int64\(86\) \+ \(\- 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\(74\) \* Int64\(\-22\) \+ \(\- Int64\(64\)\) AS col1" at position 1 and "Int64\(86\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 + + 60 / - - 59, + 74 * - 22 + - + 64 AS col1, + 86 + - COUNT ( * ) AS col1 query I rowsort @@ -24317,7 +24317,7 @@ SELECT ALL - COALESCE ( + 4, + + 86 - + 18 + 84, + COALESCE ( 7, 27 + - - 62 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(66\) \* count\(\*\) \+ CASE \(\- Int64\(76\)\) WHEN Int64\(76\) THEN Int64\(\-79\) \* nullif\(Int64\(67\), CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\) \+ Int64\(44\) \+ \(\- Int64\(\-82\)\) \* Int64\(\-1\) \* coalesce\(Int64\(\-42\), Int64\(30\) \* \(\- count\(\*\)\) \* Int64\(\-85\) \* Int64\(\-99\)\)\) \- Int64\(15\) END \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CASE \(\- Int64\(76\)\) WHEN Int64\(76\) THEN Int64\(\-79\) \* nullif\(Int64\(67\), CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) \+ Int64\(44\) \+ \(\- Int64\(\-82\)\) \* Int64\(\-1\) \* coalesce\(Int64\(\-42\), Int64\(30\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-85\) \* Int64\(\-99\)\)\) \- Int64\(15\) END \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 47 AS col2, + 66 * COUNT ( * ) + + CASE - + 76 WHEN + 76 THEN - 79 * NULLIF ( + 67, + CAST ( - - COUNT ( * ) AS INTEGER ) + 44 + ( - ( - 82 ) ) * - 1 * + COALESCE ( - 42, + 30 * - COUNT ( * ) * + - 85 * - 99 ) ) - + 15 END * - 27 col2 query I rowsort label-4639 @@ -24988,7 +24988,7 @@ SELECT ALL + COUNT ( ALL - 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4104 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \* nullif\(Int64\(57\), count\(\*\) \* Int64\(\-87\) \* Int64\(98\) \* \(\- Int64\(\-94\)\) \* Int64\(\-98\) \+ \(\- Int64\(40\)\)\) AS col2" at position 0 and "count\(\*\) \+ 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\(\-72\) \* nullif\(Int64\(57\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-87\) \* Int64\(98\) \* \(\- Int64\(\-94\)\) \* Int64\(\-98\) \+ \(\- Int64\(40\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 72 * NULLIF ( + + 57, COUNT ( * ) * + - 87 * + 98 * - - 94 * - 98 + - ( + 40 ) ) AS col2, COUNT ( * ) + - 61 AS col2 query II rowsort label-4768 @@ -25447,7 +25447,7 @@ SELECT ALL - 39 + - MIN ( - 52 ) - + + 11 AS 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\(\*\)\) AS col2" at position 1 have the 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 + 17 AS col2, - COUNT ( * ) AS col2 query I rowsort label-4855 @@ -27032,7 +27032,7 @@ SELECT - + COALESCE ( COUNT ( * ), - 50 * 58 ) * + 54 * 72 + NULLIF ( + 45, CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(97\), count\(\*\) \* Int64\(\-22\) \+ Int64\(30\)\) 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 "nullif\(Int64\(97\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-22\) \+ Int64\(30\)\) 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 NULLIF ( 97, + + COUNT ( * ) * - 22 + 30 ) col0, + 29 AS col0 query I rowsort label-5160 @@ -27392,7 +27392,7 @@ SELECT - NULLIF ( - - 33, COUNT ( 45 ) ) 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\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-18\), coalesce\(Int64\(30\), 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 "\(\- nullif\(Int64\(\-18\), coalesce\(Int64\(30\), Int64\(63\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col1, - NULLIF ( - 18, + COALESCE ( + 30, + 63 ) ) AS col1 query I rowsort @@ -27772,7 +27772,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\(\*\) AS col1" at position 1 have the 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: @@ -28004,7 +28004,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\(\-81\)\) \* \(\- CAST\(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 @@ -30042,7 +30042,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\(\*\)\)\) AS col1" at position 0 and "Int64\(94\) \- count\(\*\) AS col1" at position 1 have 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 @@ -31517,7 +31517,7 @@ SELECT ( + 31 ) AS col0, 86 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\(\*\)\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - COUNT ( * ) ) AS col1, - 91 AS col1 query I rowsort label-6020 @@ -32735,7 +32735,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\(\*\) 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 @@ -33633,7 +33633,7 @@ SELECT ALL + 47 * - + 46 * 34 - - 53 - + - COUNT ( * ) + - NULLIF ( 9, - - 45 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(61\) / CASE Int64\(\-6\) WHEN CAST\(Int64\(\-80\) AS Int32\) \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(70\) THEN Int64\(\-83\) \+ \(\- Int64\(45\)\) ELSE NULL END \* \(\- Int64\(4\)\) \+ Int64\(1\) \* count\(\*\) / Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(61\) / CASE Int64\(\-6\) WHEN CAST\(Int64\(\-80\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(70\) THEN Int64\(\-83\) \+ \(\- Int64\(45\)\) ELSE NULL END \* \(\- Int64\(4\)\) \+ Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 99 AS col2, + 61 / CASE + - 6 WHEN CAST ( + - 80 AS INTEGER ) + - - COUNT ( * ) + + 70 THEN - 83 + - + 45 ELSE NULL END * - + 4 + + 1 * + COUNT ( * ) / 73 AS col2 query I rowsort label-6418 @@ -33886,7 +33886,7 @@ SELECT + 82 + + + COALESCE ( + 48, - - COALESCE ( - 51, COUNT ( * ), - + 2 ) ) A # Datafusion - Expected - NULL # Datafusion - Expected - 31 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(3\) WHEN CAST\(NULL AS Int32\) \+ Int64\(66\) THEN Int64\(15\) \+ Int64\(\-51\) WHEN \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(\-65\)\) THEN NULL WHEN \(\- min\(Int64\(60\)\)\) \* Int64\(\-36\) \- Int64\(49\) THEN Int64\(49\) \* Int64\(\-15\) \+ Int64\(\-16\) END / Int64\(25\) \* Int64\(\-79\) \* Int64\(\-27\) \- Int64\(\-41\) \+ Int64\(\-43\) \* \(\- count\(\*\)\) / Int64\(\-74\) / Int64\(18\) AS col2" at position 0 and "\(\- Int64\(\-31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(3\) WHEN CAST\(NULL AS Int32\) \+ Int64\(66\) THEN Int64\(15\) \+ Int64\(\-51\) WHEN \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(\-65\)\) THEN NULL WHEN \(\- min\(Int64\(60\)\)\) \* Int64\(\-36\) \- Int64\(49\) THEN Int64\(49\) \* Int64\(\-15\) \+ Int64\(\-16\) END / Int64\(25\) \* Int64\(\-79\) \* Int64\(\-27\) \- Int64\(\-41\) \+ Int64\(\-43\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-74\) / Int64\(18\) AS col2" at position 0 and "\(\- Int64\(\-31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + 3 WHEN CAST ( NULL AS INTEGER ) + + + 66 THEN 15 + - 51 WHEN - CAST ( NULL AS INTEGER ) - - - 65 THEN NULL WHEN - MIN ( 60 ) * + - 36 - 49 THEN + 49 * - 15 + - 16 END / + 25 * + ( - 79 ) * - 27 - - 41 + - 43 * + - COUNT ( * ) / - 74 / 18 AS col2, - ( - 31 ) AS col2, + - 54 col1 query I rowsort label-6466 @@ -34162,7 +34162,7 @@ SELECT DISTINCT - 93 col0, - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(58\) \* max\(Int64\(20\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(58\) \* max\(Int64\(20\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 AS col2, ( 58 ) * + MAX ( + 20 ) * - COUNT ( * ) AS col2 query I rowsort @@ -34194,7 +34194,7 @@ SELECT + + 52 col1, 52 # 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\(\*\)\)\) AS col2" at position 1 have the 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 query I rowsort label-6523 @@ -34856,7 +34856,7 @@ SELECT ALL + 33 + + + ( 47 ) # 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 "Int64\(33\) \+ \(\- Int64\(83\)\) \- \(\- count\(\*\)\) \* Int64\(\-25\) AS col1" at position 0 and "Int64\(51\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ \(\- Int64\(83\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-25\) AS col1" at position 0 and "Int64\(51\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 33 + - + 83 - + - COUNT ( * ) * - 25 col1, 51 + + - 18 AS col1 query I rowsort label-6648 @@ -34951,7 +34951,7 @@ SELECT 67 + - 76 * 24 * 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-77\) 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\(\*\) \* Int64\(\-77\) 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 ( * ) * + - 77 AS col2, 90 AS col2 query I rowsort label-6666 @@ -35013,7 +35013,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\(\*\) AS col1" at position 1 have the 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 @@ -35145,7 +35145,7 @@ SELECT - 19 * + - 7 * COUNT ( * ) # Datafusion - Expected - -88 # Datafusion - Expected - 36 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(14\) \+ \(\- Int64\(88\)\) 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\(\*\) / Int64\(14\) \+ \(\- Int64\(88\)\) 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 ( * ) / + ( + 14 ) + + + ( - + 88 ) AS col0, + 36 AS col0, 64 col1 query I rowsort @@ -35401,7 +35401,7 @@ SELECT - 61 + 63 * 40 AS col1 # Datafusion - Expected - -27 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-28\) AS col2" at position 0 and "CASE Int64\(13\) WHEN CASE nullif\(Int64\(34\), CAST\(NULL AS Int32\)\) WHEN Int64\(\-27\) \* \(\- Int64\(\-29\)\) THEN NULL ELSE count\(Int64\(8\)\) \* \(\- count\(\*\)\) \* Int64\(\-47\) \+ \(\- Int64\(\-76\)\) END THEN Int64\(6\) \+ Int64\(\-97\) \+ Int64\(93\) \+ Int64\(79\) \+ \(\- count\(\*\)\) \- Int64\(26\) \* Int64\(5\) \* Int64\(99\) WHEN Int64\(34\) \+ Int64\(\-79\) \* Int64\(49\) / Int64\(41\) \+ max\(Int64\(99\)\) THEN Int64\(\-76\) WHEN Int64\(46\) \* Int64\(\-40\) THEN Int64\(52\) / Int64\(\-39\) \* Int64\(\-34\) \* Int64\(76\) ELSE NULL END \+ Int64\(\-78\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-28\) AS col2" at position 0 and "CASE Int64\(13\) WHEN CASE nullif\(Int64\(34\), CAST\(NULL AS Int32\)\) WHEN Int64\(\-27\) \* \(\- Int64\(\-29\)\) THEN NULL ELSE count\(Int64\(8\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-47\) \+ \(\- Int64\(\-76\)\) END THEN Int64\(6\) \+ Int64\(\-97\) \+ Int64\(93\) \+ Int64\(79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(26\) \* Int64\(5\) \* Int64\(99\) WHEN Int64\(34\) \+ Int64\(\-79\) \* Int64\(49\) / Int64\(41\) \+ max\(Int64\(99\)\) THEN Int64\(\-76\) WHEN Int64\(46\) \* Int64\(\-40\) THEN Int64\(52\) / Int64\(\-39\) \* Int64\(\-34\) \* Int64\(76\) ELSE NULL END \+ Int64\(\-78\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - 28 AS col2, COUNT ( * ) AS col0, CASE + 13 WHEN CASE + NULLIF ( + + 34, CAST ( NULL AS INTEGER ) ) WHEN - 27 * - - 29 THEN NULL ELSE COUNT ( + 8 ) * ( - COUNT ( * ) ) * - 47 + - - 76 END THEN 6 + + - 97 + + + 93 + + 79 + - COUNT ( * ) - 26 * 5 * + 99 WHEN + 34 + - 79 * 49 / + 41 + MAX ( ALL + + 99 ) THEN + - 76 WHEN + + 46 * - 40 THEN + 52 / + - 39 * + - 34 * 76 ELSE NULL END + - 78 col2 query I rowsort label-6752 @@ -35902,7 +35902,7 @@ SELECT DISTINCT - 53 AS col1, - ( - 29 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "Int64\(73\) / nullif\(\(\- count\(\*\)\), count\(\*\)\) \+ \(\- 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\(\-65\) AS col0" at position 0 and "Int64\(73\) / nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 AS col0, 73 / NULLIF ( - COUNT ( * ), COUNT ( * ) ) + + + ( - - 0 ) AS col0 query II rowsort @@ -36139,7 +36139,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\(\*\) AS col0" at position 1 have the 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 @@ -36912,7 +36912,7 @@ SELECT ALL + ( + 23 ) # 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\(\*\)\) 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 "\(\- 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 ALL + - COUNT ( * ) AS col2, 64 AS col2 query II rowsort @@ -38816,7 +38816,7 @@ SELECT + - 40 * - + 16 * - 45 * 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(26\), Int64\(\-44\) \* 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 "nullif\(Int64\(26\), Int64\(\-44\) \* 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 + NULLIF ( 26, - 44 * + COUNT ( * ) ) AS col0, 39 col0 query I rowsort label-7402 @@ -38854,7 +38854,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\(53\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -38921,7 +38921,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4062043 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* \(\- Int64\(32\)\) \* \(\- Int64\(\-41\)\) \* Int64\(36\) \+ Int64\(91\) AS col0" at position 0 and "count\(\*\) \- \(\- Int64\(\-17\)\) \+ 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\(\-86\) \* \(\- Int64\(32\)\) \* \(\- Int64\(\-41\)\) \* Int64\(36\) \+ Int64\(91\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-17\)\) \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 86 * - + 32 * - - 41 * + 36 + + 91 AS col0, COUNT ( * ) - - - 17 + 15 AS col0 query I rowsort label-7422 @@ -40146,7 +40146,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5005 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(77\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 65 * 77 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -40968,7 +40968,7 @@ SELECT + - 15 - 63 * - + 13 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-79\) 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\(\*\)\) \* Int64\(\-79\) 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 ( * ) * - 79 AS col2, 91 AS col2 query I rowsort label-7814 @@ -43196,7 +43196,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\(\*\)\) AS col0" at position 1 have the 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 DISTINCT 59 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -45480,7 +45480,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\(\*\) AS col2" at position 1 have the 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 @@ -45823,7 +45823,7 @@ SELECT + 67 + + 5 + + COUNT ( * ) 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\(0\) 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\(\*\) \+ Int64\(0\) 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 ( * ) + 0 AS col2, 42 AS col2 query I rowsort @@ -46727,7 +46727,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(33\)\)\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(14\) \+ Int64\(5\) \* CASE Int64\(27\) \+ \(\- count\(\*\)\) WHEN Int64\(95\) \+ Int64\(76\) THEN Int64\(24\) / min\(Int64\(\-9\)\) \* Int64\(96\) \+ Int64\(75\) \* count\(\*\) WHEN Int64\(24\) THEN Int64\(67\) \+ Int64\(85\) \* Int64\(\-9\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(33\)\)\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(14\) \+ Int64\(5\) \* CASE Int64\(27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(95\) \+ Int64\(76\) THEN Int64\(24\) / min\(Int64\(\-9\)\) \* Int64\(96\) \+ Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(24\) THEN Int64\(67\) \+ Int64\(85\) \* Int64\(\-9\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - ( 33 ) AS col0, 18 + 14 + 5 * CASE 27 + - COUNT ( * ) WHEN + 95 + + 76 THEN 24 / ( + MIN ( - 9 ) * + 96 ) + 75 * COUNT ( * ) WHEN 24 THEN 67 + + 85 * - 9 END AS col0 query I rowsort @@ -46763,7 +46763,7 @@ SELECT - 53 * - + 37 + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 5980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(91\) AS col2" at position 0 and "CAST\(Int64\(92\) AS Int32\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) AS col2" at position 0 and "CAST\(Int64\(92\) AS Int32\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + + 91 AS col2, + CAST ( 92 AS INTEGER ) * 65 AS col2 query I rowsort @@ -48367,7 +48367,7 @@ SELECT DISTINCT 18 + - 26 + - - 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-10\)\) AS col2" at position 0 and "Int64\(25\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-10\)\) AS col2" at position 0 and "Int64\(25\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 10 AS col2, 25 * - - COUNT ( * ) AS col2 query I rowsort @@ -48847,7 +48847,7 @@ SELECT COALESCE ( - 33, + COUNT ( * ) ) AS col0 # Datafusion - Expected - 56 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(48\) \+ Int64\(\-76\) \* \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 and "count\(\*\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) \+ Int64\(\-76\) \* \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + 48 + - 60 + 68, COUNT ( * ) * + + 48 + ( + - 76 ) * - - CAST ( NULL AS FLOAT8 ) AS col1, + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9324 @@ -48900,7 +48900,7 @@ SELECT + - 91 * - 42 - + MAX ( DISTINCT - + 3 ) + - - 10 * - 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col0" at position 0 and "Int64\(23\) \- nullif\(Int64\(96\), \(\- \(\- CASE Int64\(\-61\) WHEN Int64\(6\) THEN Int64\(\-19\) \- count\(\*\) WHEN \(\- nullif\(\(\- Int64\(\-80\)\), Int64\(\-29\) \* Int64\(\-96\)\)\) \* Int64\(12\) \+ \(\- Int64\(\-53\)\) THEN NULL END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col0" at position 0 and "Int64\(23\) \- nullif\(Int64\(96\), \(\- \(\- CASE Int64\(\-61\) WHEN Int64\(6\) THEN Int64\(\-19\) \- count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- nullif\(\(\- Int64\(\-80\)\), Int64\(\-29\) \* Int64\(\-96\)\)\) \* Int64\(12\) \+ \(\- Int64\(\-53\)\) THEN NULL END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 64 AS col0, 23 - NULLIF ( 96, - - CASE - 61 WHEN 6 THEN + - 19 - + + COUNT ( * ) WHEN + - NULLIF ( + - ( - 80 ), - 29 * - 96 ) * 12 + - ( - 53 ) THEN NULL END ) AS col0 query II rowsort label-9334 @@ -50773,7 +50773,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\(\*\) 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 @@ -51333,7 +51333,7 @@ NULL # Datafusion - Expected - 80 # Datafusion - Expected - 2633 # Datafusion - Expected - -59 -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\(28\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(28\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 80 col0, + COUNT ( * ) + 28 * + 94 AS col0, - 59 col1 query I rowsort label-9795 @@ -51374,7 +51374,7 @@ SELECT ALL + 90 * - 98 * + CAST ( + + 73 AS INTEGER ) * - - COUNT ( * ) + - 16 c # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(77\), nullif\(count\(\*\), Int64\(52\)\) / sum\(DISTINCT Int64\(78\)\) \* \(\- max\(Int64\(18\)\)\) \+ Int64\(1\) \+ Int64\(15\) \* Int64\(\-13\), Int64\(16\)\) 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 "coalesce\(Int64\(77\), nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(52\)\) / sum\(DISTINCT Int64\(78\)\) \* \(\- max\(Int64\(18\)\)\) \+ Int64\(1\) \+ Int64\(15\) \* Int64\(\-13\), Int64\(16\)\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COALESCE ( + ( 77 ), NULLIF ( COUNT ( * ), + 52 ) / + + SUM ( DISTINCT + 78 ) * + - MAX ( ALL + 18 ) + + 1 + 15 * - 13, 16 ) AS col1, - 92 AS col1 query I rowsort label-9803 diff --git a/data/sqlite/random/expr/slt_good_107.slt b/data/sqlite/random/expr/slt_good_107.slt index f59d92e..8630338 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\(\*\)\) \* nullif\(Int64\(\-81\), Int64\(37\) \- Int64\(87\) \* \(\- count\(\*\)\) \* Int64\(\-17\) \- Int64\(\-12\)\) \+ Int64\(80\) \+ Int64\(76\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -950,7 +950,7 @@ SELECT ALL - 45 * + ( + + 56 ) * - 92 * 45 + + + 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-79\) WHEN \(\- count\(\*\)\) THEN Int64\(47\) \* Int64\(\-90\) ELSE NULL END AS col2" at position 0 and "Int64\(72\) \* CAST\(Int64\(87\) AS Int32\) \* \(\- count\(\*\)\) \* \(\- count\(\*\)\) \* Int64\(15\) \+ coalesce\(Int64\(\-35\), Int64\(56\) \* Int64\(\-6\) \- Int64\(55\) \+ Int64\(62\) \+ Int64\(46\) \* Int64\(83\) \* \(\- count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-79\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(47\) \* Int64\(\-90\) ELSE NULL END AS col2" at position 0 and "Int64\(72\) \* CAST\(Int64\(87\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ coalesce\(Int64\(\-35\), Int64\(56\) \* Int64\(\-6\) \- Int64\(55\) \+ Int64\(62\) \+ Int64\(46\) \* Int64\(83\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE - 79 WHEN - COUNT ( * ) THEN 47 * - 90 ELSE NULL END AS col2, 72 * + CAST ( + 87 AS INTEGER ) * - COUNT ( * ) * - COUNT ( * ) * 15 + COALESCE ( + - 35, 56 * - 6 - + 55 + + 62 + + + 46 * 83 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) + + ( 99 ) AS col2 query I rowsort @@ -3972,7 +3972,7 @@ SELECT + 46 * - 65 + - 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\(\*\)\) 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 col1 query I rowsort @@ -4008,7 +4008,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\(\*\) AS col2" at position 1 have the 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 @@ -5309,7 +5309,7 @@ SELECT ALL + 84 AS col0, - 79 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) \* min\(Int64\(\-90\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) \* min\(Int64\(\-90\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * MIN ( + - 90 ) AS col2, COUNT ( * ) * ( + 86 ) AS col2 query I rowsort label-1009 @@ -6372,7 +6372,7 @@ SELECT COUNT ( + 20 ) + - - NULLIF ( 67, + COUNT ( * ) - - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -228938 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-84\) \* Int64\(29\) \+ Int64\(46\) AS col2" at position 0 and "nullif\(coalesce\(Int64\(21\), Int64\(1\) \* Int64\(\-42\)\), \(\- count\(\*\)\)\) AS col2" at position 1 have the 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\(\-84\) \* Int64\(29\) \+ Int64\(46\) AS col2" at position 0 and "nullif\(coalesce\(Int64\(21\), Int64\(1\) \* Int64\(\-42\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 94 ) * - 84 * 29 + + 46 AS col2, NULLIF ( COALESCE ( + 21, + 1 * + - 42 ), - + COUNT ( * ) ) AS col2 query I rowsort label-1212 @@ -6480,7 +6480,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\(\*\) AS col0" at position 1 have the 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 @@ -6727,7 +6727,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\(\*\) AS col2" at position 1 have the 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 @@ -7072,7 +7072,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -152076 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "coalesce\(\(\- \(\- nullif\(Int64\(58\), Int64\(18\)\)\)\), \(\- count\(\*\)\)\) \* Int64\(\-46\) \* 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\(20\) AS col0" at position 0 and "coalesce\(\(\- \(\- nullif\(Int64\(58\), Int64\(18\)\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-46\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 AS col0, COALESCE ( - - NULLIF ( 58, 18 ), - COUNT ( * ) ) * - 46 * + 57 AS col0 query I rowsort label-1346 @@ -7453,7 +7453,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2335 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(70\) \* \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(70\) \* \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) AS col1, + 25 + + 70 * - + ( + - 33 ) AS col1 query I rowsort @@ -10274,7 +10274,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\(\*\) AS col2" at position 1 have the 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 @@ -10593,7 +10593,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\(\*\) AS col2" at position 1 have the 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 @@ -10702,13 +10702,13 @@ SELECT 22 * 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- \(\- count\(\(\- Int64\(\-87\)\)\)\)\) AS col2" at position 0 and "Int64\(45\) \* Int64\(24\) \+ 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\(\*\) \+ \(\- \(\- count\(\(\- Int64\(\-87\)\)\)\)\) AS col2" at position 0 and "Int64\(45\) \* Int64\(24\) \+ Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. 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\(\*\) AS col2" at position 1 have the 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 @@ -12469,7 +12469,7 @@ SELECT 44 + - 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "coalesce\(Int64\(46\), \(\- max\(Int64\(47\)\)\)\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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 "coalesce\(Int64\(46\), \(\- max\(Int64\(47\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 84 col1, COALESCE ( + 46, - MAX ( ALL 47 ) ) + - COUNT ( * ) AS col1 query II rowsort @@ -14587,7 +14587,7 @@ SELECT CAST ( COUNT ( * ) AS INTEGER ) / + - 18 / COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(44\) \+ Int64\(30\) AS col0" at position 0 and "Int64\(\-45\) \+ 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\(\*\) \* Int64\(44\) \+ Int64\(30\) AS col0" at position 0 and "Int64\(\-45\) \+ Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 44 + + 30 AS col0, - 45 + + 73 AS col0 query II rowsort label-2780 @@ -14771,7 +14771,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\(\*\) 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 @@ -16229,19 +16229,19 @@ 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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: # Datafusion - Expected - 34 # Datafusion - Expected - 3483 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) \* count\(\*\) \- Int64\(\-43\) / 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 "Int64\(34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-43\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 col2, COUNT ( * ) + - + ( + + COUNT ( * ) ) * + COUNT ( * ) - + - 43 / COUNT ( * ) * - - 81 AS col2 query I rowsort @@ -16788,7 +16788,7 @@ SELECT ALL - ( - 44 ) - - - 30 + - 87 / 9 + 24 * 11 / 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(83\) WHEN count\(\*\) \* Int64\(8\) \+ Int64\(50\) THEN NULL WHEN avg\(DISTINCT Int64\(\-9\)\) \* Int64\(67\) \+ Int64\(\-14\) THEN Int64\(\-8\) \* Int64\(85\) \+ nullif\(Int64\(52\), \(\- Int64\(\-11\)\) \+ Int64\(83\) \+ Int64\(\-64\)\) \* Int64\(65\) \- \(\- count\(\*\)\) \* Int64\(95\) END\) \+ \(\- Int64\(41\)\) AS col1" at position 0 and "Int64\(92\) \+ Int64\(\-86\) \+ \(\- 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 "\(\- CASE Int64\(83\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(8\) \+ Int64\(50\) THEN NULL WHEN avg\(DISTINCT Int64\(\-9\)\) \* Int64\(67\) \+ Int64\(\-14\) THEN Int64\(\-8\) \* Int64\(85\) \+ nullif\(Int64\(52\), \(\- Int64\(\-11\)\) \+ Int64\(83\) \+ Int64\(\-64\)\) \* Int64\(65\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(95\) END\) \+ \(\- Int64\(41\)\) AS col1" at position 0 and "Int64\(92\) \+ Int64\(\-86\) \+ \(\- Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE + 83 WHEN + COUNT ( * ) * 8 + 50 THEN NULL WHEN AVG ( DISTINCT - 9 ) * + + 67 + - 14 THEN - 8 * + 85 + + NULLIF ( 52, - - 11 + 83 + + - 64 ) * 65 - - COUNT ( * ) * + 95 END + - + 41 AS col1, 92 + - 86 + - ( + 92 ) AS col1 query I rowsort @@ -17186,7 +17186,7 @@ SELECT 36 + 48 / - 59 AS col0, SUM ( ALL - 26 ) * + - 30 + 41 + COUNT ( - 38 ) c # Datafusion - Expected - -61 # Datafusion - Expected - 94 # Datafusion - Expected - -4579208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* count\(\*\) \- Int64\(97\) AS col2" at position 0 and "Int64\(16\) \* Int64\(\-53\) \* Int64\(90\) \* Int64\(60\) \+ Int64\(\-8\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(97\) AS col2" at position 0 and "Int64\(16\) \* Int64\(\-53\) \* Int64\(90\) \* Int64\(60\) \+ Int64\(\-8\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 * COUNT ( * ) - 97 AS col2, 94 AS col1, 16 * + - 53 * + 90 * + 60 + - 8 AS col2 query I rowsort @@ -17631,7 +17631,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\(\*\) 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 @@ -21651,7 +21651,7 @@ SELECT 62 * + ( - 1 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \- Int64\(51\) AS col1" at position 0 and "CASE Int64\(\-40\) WHEN Int64\(15\) THEN NULL WHEN count\(\*\) THEN Int64\(\-56\) \- count\(\*\) ELSE NULL END \+ Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \- Int64\(51\) AS col1" at position 0 and "CASE Int64\(\-40\) WHEN Int64\(15\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-56\) \- count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END \+ Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) - 51 AS col1, + CASE - 40 WHEN 15 THEN NULL WHEN + COUNT ( * ) THEN - 56 - COUNT ( * ) ELSE NULL END + + - 94 AS col1 query I rowsort @@ -22140,7 +22140,7 @@ SELECT 71 * - ( + 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(30\) \+ \(\- Int64\(\-31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(30\) \+ \(\- Int64\(\-31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / + 30 + - - 31 AS col1 query I rowsort @@ -22533,7 +22533,7 @@ NULL # 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\(80\)\) \* \(\- \(\- 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\(80\)\) \* \(\- \(\- 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 ( 80 ) * - - COUNT ( * ) AS col0, - 5 col0 query II rowsort @@ -23299,7 +23299,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -23408,7 +23408,7 @@ SELECT - - MAX ( DISTINCT + - 14 ) + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -463378 -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\(50\) \- Int64\(\-77\) \- \(\- Int64\(69\)\) \* Int64\(92\) \* \(\- Int64\(73\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(50\) \- Int64\(\-77\) \- \(\- Int64\(69\)\) \* Int64\(92\) \* \(\- Int64\(73\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 30 AS col0, - COUNT ( * ) - + 50 - + - 77 - + - ( 69 ) * 92 * - + 73 AS col0 query I rowsort label-4454 @@ -24631,7 +24631,7 @@ SELECT ALL + + 62 / 25 + + + COUNT ( * ) / + - 70 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\(14\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 14 col0, - COUNT ( * ) AS col0 query II rowsort label-4683 @@ -24697,7 +24697,7 @@ SELECT ALL 54 * - - 93 * + - 29 * COUNT ( * ) # Datafusion - Expected - 28 # Datafusion - Expected - -40 # Datafusion - Expected - 739508 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(33\), Int64\(\-81\) / Int64\(65\) \+ \(\- Int64\(\-18\)\) \+ \(\- Int64\(\-77\)\) \* count\(\*\)\) \+ \(\- Int64\(73\)\) AS col2" at position 1 and "Int64\(77\) \* Int64\(98\) \* Int64\(98\) \- Int64\(66\) / \(\- Int64\(\-86\)\) 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\(33\), Int64\(\-81\) / Int64\(65\) \+ \(\- Int64\(\-18\)\) \+ \(\- Int64\(\-77\)\) \* count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(73\)\) AS col2" at position 1 and "Int64\(77\) \* Int64\(98\) \* Int64\(98\) \- Int64\(66\) / \(\- Int64\(\-86\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 28 AS col1, NULLIF ( + 33, - 81 / + 65 + - - 18 + - - 77 * COUNT ( * ) ) + - + 73 col2, 77 * 98 * 98 - + 66 / - - 86 AS col2 query I rowsort @@ -26304,7 +26304,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\(\*\) 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 @@ -27943,7 +27943,7 @@ SELECT 0 - + + 97 + 22 * - 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 537 # Datafusion - Expected - 334 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-67\) \* \(\- Int64\(8\)\) AS col1" at position 0 and "Int64\(\-47\) \+ coalesce\(Int64\(\-69\), Int64\(\-82\)\) \- Int64\(6\) \* \(\- Int64\(\-62\)\) \* \(\- count\(\*\)\) \+ Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-67\) \* \(\- Int64\(8\)\) AS col1" at position 0 and "Int64\(\-47\) \+ coalesce\(Int64\(\-69\), Int64\(\-82\)\) \- Int64\(6\) \* \(\- Int64\(\-62\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + - 67 * - + 8 AS col1, - 47 + COALESCE ( - 69, - 82 ) - 6 * - ( - 62 ) * - COUNT ( * ) + + 78 AS col1 query I rowsort @@ -30267,7 +30267,7 @@ SELECT - 12 + - + 16 # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, - 24 AS col2 query I rowsort label-5761 @@ -31574,7 +31574,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\(\*\) 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 @@ -32575,7 +32575,7 @@ SELECT - ( - 20 ) + - 1 col2 # 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 col1" at position 0 and "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 "\(\- Int64\(59\)\) 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 - + 59 AS col1, COUNT ( * ) / - - 20 AS col1 query I rowsort label-6196 @@ -33253,7 +33253,7 @@ SELECT 36 + NULLIF ( - NULLIF ( - 94, - - 56 / COUNT ( * ) ), - 37 + - 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1128 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* coalesce\(Int64\(34\), \(\- count\(\*\)\)\) \+ Int64\(74\) AS col2" at position 0 and "Int64\(15\) / \(\- 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\(31\) \* coalesce\(Int64\(34\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(74\) AS col2" at position 0 and "Int64\(15\) / \(\- Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 31 * COALESCE ( 34, - COUNT ( * ) ) + + 74 AS col2, 15 / - + ( 15 ) AS col2 query I rowsort @@ -36147,7 +36147,7 @@ SELECT 64 * 25 * - 42, + 62 + 95 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2470 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(26\) \* 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\(26\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) col0, 26 * + 95 col0 query I rowsort label-6874 @@ -38078,7 +38078,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\(\*\) AS col0" at position 1 have the 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 @@ -38377,7 +38377,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\(\*\) AS col0" at position 1 have the 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 @@ -39031,7 +39031,7 @@ SELECT - 79 * - 43 AS col2 # Datafusion - Expected - 23 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- Int64\(\-62\)\) \+ Int64\(\-53\) \+ Int64\(60\) \- Int64\(18\) \* Int64\(42\) / Int64\(\-53\) / CASE Int64\(36\) WHEN Int64\(34\) THEN Int64\(\-7\) WHEN Int64\(\-63\) \+ coalesce\(Int64\(35\), \(\- count\(\*\)\), sum\(CAST\(NULL AS Int32\)\) \- Int64\(75\)\) THEN NULL END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- Int64\(\-62\)\) \+ Int64\(\-53\) \+ Int64\(60\) \- Int64\(18\) \* Int64\(42\) / Int64\(\-53\) / CASE Int64\(36\) WHEN Int64\(34\) THEN Int64\(\-7\) WHEN Int64\(\-63\) \+ coalesce\(Int64\(35\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), sum\(CAST\(NULL AS Int32\)\) \- Int64\(75\)\) THEN NULL END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 AS col1, 18 / + 10, ( - - 62 ) + - 53 + + ( + + 60 ) - + 18 * + 42 / - 53 / CASE 36 WHEN 34 THEN - 7 WHEN - 63 + + COALESCE ( 35, - COUNT ( * ), SUM ( ALL CAST ( NULL AS INTEGER ) ) - 75 ) THEN NULL END col1 query I rowsort label-7428 @@ -40056,7 +40056,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\(\*\) AS col0" at position 1 have the 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: @@ -40104,7 +40104,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 866 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \+ Int64\(\-30\) \* Int64\(\-31\) AS col0" at position 0 and "coalesce\(\(\- count\(\*\)\), Int64\(\-46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \+ Int64\(\-30\) \* Int64\(\-31\) AS col0" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 64 + - 30 * - 31 AS col0, COALESCE ( + - COUNT ( * ), + ( + - 46 ) ) AS col0 query II rowsort label-7632 @@ -41020,7 +41020,7 @@ SELECT - 63 + ( 36 ) - 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(36\), \(\- Int64\(\-25\)\) \* count\(\*\) \- Int64\(\-50\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-52\)\) WHEN \(\- Int64\(15\)\) / Int64\(1\) \- Int64\(74\) / Int64\(77\) THEN Int64\(\-57\) \* Int64\(90\) \+ Int64\(62\) ELSE NULL END \- CAST\(NULL AS Int32\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(36\), \(\- Int64\(\-25\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-50\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-52\)\) WHEN \(\- Int64\(15\)\) / Int64\(1\) \- Int64\(74\) / Int64\(77\) THEN Int64\(\-57\) \* Int64\(90\) \+ Int64\(62\) ELSE NULL END \- CAST\(NULL AS Int32\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( 36, - - 25 * + COUNT ( * ) - - 50 ) col0, + CASE - - 52 WHEN - + 15 / + 1 - + 74 / 77 THEN - 57 * + + 90 + + 62 ELSE NULL END - + + CAST ( NULL AS INTEGER ) * 34 AS col0 query II rowsort @@ -41667,7 +41667,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\(\*\) 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 @@ -41953,7 +41953,7 @@ SELECT ALL + 12 + - + 12 + + 1 + + + 27 * 81 + + 93 / 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1191 # Datafusion - Expected - 167152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \+ Int64\(78\) \* Int64\(16\) AS col2" at position 0 and "Int64\(96\) \* Int64\(54\) \* \(\- coalesce\(Int64\(\-31\), Int64\(94\), \(\- Int64\(45\)\)\)\) \- Int64\(\-58\) \+ Int64\(48\) \+ Int64\(95\) \* \(\- coalesce\(count\(\*\), Int64\(\-26\), Int64\(26\), Int64\(\-87\)\)\) \+ Int64\(85\) \* Int64\(59\) \- Int64\(28\) \+ \(\- count\(\*\)\) \* Int64\(\-50\) \* 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\(\-57\) \+ Int64\(78\) \* Int64\(16\) AS col2" at position 0 and "Int64\(96\) \* Int64\(54\) \* \(\- coalesce\(Int64\(\-31\), Int64\(94\), \(\- Int64\(45\)\)\)\) \- Int64\(\-58\) \+ Int64\(48\) \+ Int64\(95\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-26\), Int64\(26\), Int64\(\-87\)\)\) \+ Int64\(85\) \* Int64\(59\) \- Int64\(28\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-50\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 57 + 78 * 16 AS col2, 96 * + 54 * ( + - COALESCE ( - 31, + 94, + - ( 45 ) ) ) - - 58 + 48 + + 95 * - COALESCE ( COUNT ( * ), - 26, 26, - 87 ) + + 85 * + 59 - + 28 + - COUNT ( * ) * - 50 * 29 AS col2 query I rowsort label-7985 @@ -42797,7 +42797,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\(\*\) AS col1" at position 1 have the 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 @@ -43673,7 +43673,7 @@ SELECT ALL + 2 + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \+ CASE Int64\(11\) WHEN Int64\(74\) THEN NULL ELSE CAST\(NULL AS Int32\) END \* Int64\(41\) \- count\(\*\) \- \(\- count\(\*\)\) \* Int64\(20\) AS col0" at position 0 and "\(\- Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \+ CASE Int64\(11\) WHEN Int64\(74\) THEN NULL ELSE CAST\(NULL AS Int32\) END \* Int64\(41\) \- count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(20\) AS col0" at position 0 and "\(\- Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 71 + + ( + CASE ( 11 ) WHEN 74 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) * 41 - + ( + + COUNT ( * ) ) - - COUNT ( * ) * 20 AS col0, - ( - 25 ) AS col0 query I rowsort @@ -44464,7 +44464,7 @@ SELECT SUM ( - - 95 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2605 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* count\(\*\) \* \(\- count\(\*\)\) \* Int64\(42\) \+ \(\- nullif\(Int64\(\-84\), \(\- Int64\(41\)\)\)\) \+ Int64\(41\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(42\) \+ \(\- nullif\(Int64\(\-84\), \(\- Int64\(41\)\)\)\) \+ Int64\(41\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 65 * + COUNT ( * ) * - COUNT ( * ) * + 42 + - NULLIF ( + - 84, - + 41 ) + + 41 AS col2, + 78 col2 query I rowsort label-8463 @@ -44797,7 +44797,7 @@ SELECT ALL + 93 * CAST ( - 28 AS INTEGER ) AS col2 # Datafusion - Expected - 29 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- max\(Int64\(38\)\)\), \(\- CASE \(\- Int64\(89\)\) WHEN Int64\(85\) / CAST\(\(\- count\(\*\)\) AS Int32\) THEN Int64\(8\) \+ Int64\(75\) \+ Int64\(1\) \* Int64\(\-17\) \- Int64\(\-63\) END\)\)\) \+ Int64\(\-9\) AS col1" at position 0 and "Int64\(13\) \+ min\(DISTINCT Int64\(30\)\) \- \(\- CASE Int64\(4\) WHEN Int64\(\-93\) \- \(\- count\(\*\)\) THEN \(\- \(\- sum\(Int64\(\-42\)\)\)\) WHEN \(\- Int64\(84\)\) \* Int64\(27\) \+ Int64\(\-59\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- max\(Int64\(38\)\)\), \(\- CASE \(\- Int64\(89\)\) WHEN Int64\(85\) / CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) THEN Int64\(8\) \+ Int64\(75\) \+ Int64\(1\) \* Int64\(\-17\) \- Int64\(\-63\) END\)\)\) \+ Int64\(\-9\) AS col1" at position 0 and "Int64\(13\) \+ min\(DISTINCT Int64\(30\)\) \- \(\- CASE Int64\(4\) WHEN Int64\(\-93\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- \(\- sum\(Int64\(\-42\)\)\)\) WHEN \(\- Int64\(84\)\) \* Int64\(27\) \+ Int64\(\-59\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - MAX ( 38 ), - + CASE - + ( 89 ) WHEN + + 85 / + CAST ( - + COUNT ( * ) AS INTEGER ) THEN + 8 + 75 + 1 * + - 17 - - 63 END ) + - 9 col1, + 13 + MIN ( DISTINCT + + 30 ) - - + CASE + 4 WHEN - 93 - - COUNT ( * ) THEN - - SUM ( + - 42 ) WHEN - ( + 84 ) * 27 + - 59 THEN NULL END col1, 5 query I rowsort @@ -46131,7 +46131,7 @@ SELECT ALL COALESCE ( - - 19, + ( + 41 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -107 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ \(\- Int64\(68\)\) AS col1" at position 0 and "Int64\(4\) / \(\- CASE Int64\(82\) WHEN \(\- nullif\(Int64\(29\), Int64\(\-74\) / count\(DISTINCT Int64\(15\) \* Int64\(35\)\)\)\) / Int64\(10\) THEN count\(\*\) \* \(\- count\(\*\)\) WHEN CAST\(NULL AS Int32\) THEN NULL END\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ \(\- Int64\(68\)\) AS col1" at position 0 and "Int64\(4\) / \(\- CASE Int64\(82\) WHEN \(\- nullif\(Int64\(29\), Int64\(\-74\) / count\(DISTINCT Int64\(15\) \* Int64\(35\)\)\)\) / Int64\(10\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CAST\(NULL AS Int32\) THEN NULL END\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 39 + - + 68 col1, + 4 / - CASE 82 WHEN - NULLIF ( 29, - 74 / COUNT ( DISTINCT 15 * ( + 35 ) ) ) / 10 THEN + COUNT ( * ) * - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END + 74 AS col1 query I rowsort label-8787 @@ -46382,7 +46382,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\(\*\) AS col0" at position 1 have the 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: @@ -46616,7 +46616,7 @@ SELECT CASE + COUNT ( * ) WHEN - + COUNT ( * ) + - - COUNT ( * ) + - - 57 THEN C # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-98\)\), count\(\*\)\) AS col0" at position 0 and "Int64\(93\) \- Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-98\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(93\) \- Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - - 98, + COUNT ( * ) ) AS col0, 93 - 14 AS col0 query I rowsort label-8880 @@ -47128,7 +47128,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\(\*\) 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 @@ -47257,7 +47257,7 @@ SELECT CAST ( + 98 AS INTEGER ) AS col0, + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 5060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / \(\- Int64\(33\)\) \- \(\- Int64\(\-57\)\) / \(\- \(\- count\(\*\)\)\) \+ Int64\(\-81\) / Int64\(89\) AS col1" at position 0 and "Int64\(55\) \* CAST\(\(\- Int64\(\-46\)\) AS Int32\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / \(\- Int64\(33\)\) \- \(\- Int64\(\-57\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-81\) / Int64\(89\) AS col1" at position 0 and "Int64\(55\) \* CAST\(\(\- Int64\(\-46\)\) AS Int32\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 58 / - ( 33 ) - - - 57 / - - COUNT ( * ) + - 81 / 89 AS col1, 55 * CAST ( - - 46 AS INTEGER ) * + 2 col1 query I rowsort label-9002 @@ -47344,7 +47344,7 @@ SELECT 30 * 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -675 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-63\)\) \* Int64\(\-9\) \+ Int64\(29\) \+ \(\- Int64\(42\)\) \+ Int64\(\-44\) \+ Int64\(\-32\) \* \(\- count\(\*\)\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(69\) / Int64\(23\) \* max\(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\(\-63\)\) \* Int64\(\-9\) \+ Int64\(29\) \+ \(\- Int64\(42\)\) \+ Int64\(\-44\) \+ Int64\(\-32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(69\) / Int64\(23\) \* max\(Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 63 * - 9 + 29 + - + 42 + ( - 44 ) + - 32 * - COUNT ( * ) + - 83 AS col2, 69 / 23 * + MAX ( - 30 ) AS col2 query I rowsort @@ -49138,7 +49138,7 @@ SELECT - 61 AS col1, 47 AS col0 # 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\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) \* \(\- 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 ( * ) * - COUNT ( * ) AS col2 query I rowsort @@ -50014,7 +50014,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -50061,7 +50061,7 @@ SELECT DISTINCT + ( + 38 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -3031 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \+ count\(\*\) \- \(\- max\(Int64\(66\)\)\) AS col1" at position 0 and "Int64\(\-86\) \+ \(\- Int64\(31\)\) \+ Int64\(47\) \* 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\(\-61\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- max\(Int64\(66\)\)\) AS col1" at position 0 and "Int64\(\-86\) \+ \(\- Int64\(31\)\) \+ Int64\(47\) \* Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 61 + + COUNT ( * ) - - MAX ( ALL + + 66 ) AS col1, - 86 + - + 31 + 47 * - 62 AS col1 query II rowsort @@ -50348,7 +50348,7 @@ SELECT COUNT ( * ) + + - 98 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col2, 78 AS col2 query II rowsort @@ -51485,7 +51485,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1224 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(17\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 + 72 * + 17 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -52405,7 +52405,7 @@ SELECT - 56 - - + 28 * MAX ( ALL - 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 157 # Datafusion - Expected - 822 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(76\)\) \+ Int64\(81\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(82\) \- Int64\(18\) \+ count\(\*\) \+ Int64\(\-44\) \* sum\(Int64\(54\)\) / \(\- Int64\(50\)\) \+ Int64\(\-37\) \* 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 "sum\(Int64\(76\)\) \+ Int64\(81\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(82\) \- Int64\(18\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-44\) \* sum\(Int64\(54\)\) / \(\- Int64\(50\)\) \+ Int64\(\-37\) \* Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + SUM ( 76 ) + + 81 AS col0, 81 + + 82 - ( + 18 ) + + ( COUNT ( * ) ) + - 44 * SUM ( + 54 ) / - + 50 + + - 37 * - 17 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 b4f01e3..813bc71 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\(\*\) AS col2" at position 1 have the 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 @@ -1422,7 +1422,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\(\*\) AS col2" at position 1 have the same name\. 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 @@ -2962,7 +2962,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\(\*\) 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 @@ -3695,7 +3695,7 @@ SELECT ALL + 72, + 89 + + 78 AS col0 # Datafusion - Expected - 24 # Datafusion - Expected - -494375 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(21\)\)\) \* \(\- nullif\(Int64\(5\), Int64\(37\)\)\) \* Int64\(\-55\) \* \(\- count\(\*\)\) \* Int64\(\-86\) \- \(\- Int64\(91\)\) \* Int64\(25\) AS col2" at position 1 and "\(\- Int64\(\-27\)\) 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\(21\)\)\) \* \(\- nullif\(Int64\(5\), Int64\(37\)\)\) \* Int64\(\-55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-86\) \- \(\- Int64\(91\)\) \* Int64\(25\) AS col2" at position 1 and "\(\- Int64\(\-27\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 24 AS col0, MAX ( - + 21 ) * + + ( - NULLIF ( + 5, ( 37 ) ) ) * - 55 * - COUNT ( * ) * - 86 - - ( 91 ) * + 25 AS col2, - - 27 AS col2 # Datafusion - Types were automatically converted from: @@ -4978,7 +4978,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\(\*\) 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 @@ -5299,7 +5299,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\(\*\) 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 @@ -6290,7 +6290,7 @@ SELECT ALL COUNT ( * ) AS col2, - 1 + ( 96 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-39\)\) AS col1" at position 0 and "CASE Int64\(69\) WHEN Int64\(14\) \+ Int64\(25\) THEN count\(\*\) WHEN \(\- Int64\(\-33\)\) THEN sum\(Int64\(\-74\)\) 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 "min\(Int64\(\-39\)\) AS col1" at position 0 and "CASE Int64\(69\) WHEN Int64\(14\) \+ Int64\(25\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-33\)\) THEN sum\(Int64\(\-74\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( - 39 ) AS col1, + CASE + 69 WHEN 14 + + + 25 THEN + ( COUNT ( * ) ) WHEN - - 33 THEN + SUM ( + - 74 ) END AS col1 query I rowsort label-1195 @@ -6865,7 +6865,7 @@ SELECT - COUNT ( * ) + + - 26 * - 83 * - 63 AS col2, + ( - - 24 ) / - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(27\) 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\(\*\)\) \* Int64\(27\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ) * 27 AS col2, + 17 AS col2 # Datafusion - Datafusion expected results: @@ -7911,7 +7911,7 @@ SELECT - 92 + - 99 - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- 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 "Int64\(\-62\) \* \(\- 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 - 62 * - COUNT ( * ) AS col1, - 79 col1 query I rowsort @@ -8756,7 +8756,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\(\*\) / count\(\*\) AS col0" at position 1 have the 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 @@ -8813,7 +8813,7 @@ SELECT ALL + 74 + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- CAST\(\(\- Int64\(\-75\)\) AS Int32\)\) \- Int64\(17\) \* \(\- count\(\*\)\) AS col1" at position 0 and "CASE \(\- count\(\*\)\) WHEN Int64\(15\) THEN Int64\(69\) ELSE count\(\*\) \* Int64\(\-71\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- CAST\(\(\- Int64\(\-75\)\) AS Int32\)\) \- Int64\(17\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(15\) THEN Int64\(69\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-71\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 + - CAST ( - - 75 AS INTEGER ) - 17 * - COUNT ( * ) col1, CASE - COUNT ( * ) WHEN 15 THEN 69 ELSE COUNT ( * ) * + - 71 END AS col1 query I rowsort label-1676 @@ -9927,7 +9927,7 @@ SELECT - 21 * + 38 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-94\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-94\) \* \(\- 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, - 94 * - COUNT ( * ) AS col0 query I rowsort @@ -11363,7 +11363,7 @@ SELECT ALL - 84 - - COUNT ( * ) * 17 - - 86 * - - 38 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -12334,7 +12334,7 @@ SELECT DISTINCT + 24 / - 20 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(coalesce\(Int64\(\-51\), Int64\(47\) / nullif\(Int64\(\-90\), Int64\(60\)\) \+ max\(Int64\(\-80\)\)\), Int64\(\-69\), count\(\*\) / Int64\(27\) \+ Int64\(90\)\) AS col0" at position 0 and "Int64\(85\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(coalesce\(Int64\(\-51\), Int64\(47\) / nullif\(Int64\(\-90\), Int64\(60\)\) \+ max\(Int64\(\-80\)\)\), Int64\(\-69\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(27\) \+ Int64\(90\)\) 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 + COALESCE ( + COALESCE ( + - 51, + 47 / NULLIF ( - 90, + 60 ) + MAX ( ALL - 80 ) ), - 69, COUNT ( * ) / 27 + + 90 ) col0, 85 * - + COUNT ( * ) AS col0 query I rowsort label-2350 @@ -12606,7 +12606,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\(\*\) AS col2" at position 1 have the 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 @@ -12628,7 +12628,7 @@ SELECT ALL - ( - - NULLIF ( - COUNT ( ALL - - 95 ), + + 30 - - COUNT ( * ) - - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(53\)\) AS col1" at position 0 and "nullif\(Int64\(\-67\), Int64\(27\)\) \+ Int64\(36\) \* 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\(\*\) \+ \(\- Int64\(53\)\) AS col1" at position 0 and "nullif\(Int64\(\-67\), Int64\(27\)\) \+ Int64\(36\) \* count\(Int64\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - + 53 AS col1, + NULLIF ( - 67, + 27 ) + 36 * + COUNT ( - 21 ) AS col1 query I rowsort @@ -13622,7 +13622,7 @@ SELECT DISTINCT 85 * + COALESCE ( 26, 39 * 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -1208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(23\), Int64\(\-38\)\) \* count\(\*\) \+ \(\- CAST\(CASE \(\- count\(Int64\(44\)\)\) WHEN Int64\(\-96\) THEN NULL WHEN CAST\(NULL AS Float64\) \+ Int64\(13\) \+ \(\- Int64\(\-85\)\) \+ Int64\(58\) / Int64\(56\) THEN NULL ELSE Int64\(94\) END AS Int32\)\) AS col2" at position 0 and "Int64\(\-94\) \* nullif\(Int64\(13\), Int64\(40\)\) \+ Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(23\), Int64\(\-38\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(CASE \(\- count\(Int64\(44\)\)\) WHEN Int64\(\-96\) THEN NULL WHEN CAST\(NULL AS Float64\) \+ Int64\(13\) \+ \(\- Int64\(\-85\)\) \+ Int64\(58\) / Int64\(56\) THEN NULL ELSE Int64\(94\) END AS Int32\)\) AS col2" at position 0 and "Int64\(\-94\) \* nullif\(Int64\(13\), Int64\(40\)\) \+ Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( 23, - 38 ) * + COUNT ( * ) + - + CAST ( + CASE - COUNT ( ALL 44 ) WHEN - 96 THEN NULL WHEN + CAST ( NULL AS FLOAT8 ) + 13 + - - 85 + + + 58 / 56 THEN NULL ELSE 94 END AS INTEGER ) AS col2, - 94 * + NULLIF ( ( 13 ), + 40 ) + + 14 AS col2 query I rowsort label-2593 @@ -13979,7 +13979,7 @@ SELECT 47 + - + ( - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(11\), Int64\(\-30\)\)\) AS col1" at position 0 and "\(\- CASE \(\- count\(\*\)\) WHEN Int64\(8\) THEN CAST\(NULL AS Int32\) \+ Int64\(\-96\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(11\), Int64\(\-30\)\)\) AS col1" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(8\) THEN CAST\(NULL AS Int32\) \+ Int64\(\-96\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( 11, + - 30 ) AS col1, - CASE - + COUNT ( * ) WHEN + 8 THEN + CAST ( NULL AS INTEGER ) + - 96 ELSE NULL END AS col1 # Datafusion - Datafusion expected results: @@ -15441,7 +15441,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\(\*\) AS col1" at position 1 have the 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 @@ -16179,7 +16179,7 @@ SELECT COALESCE ( - - COUNT ( * ), 23 * 82 ) - + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "CASE Int64\(37\) WHEN Int64\(\-41\) THEN NULL ELSE Int64\(37\) END \* \(\- coalesce\(Int64\(42\), \(\- count\(\*\)\)\)\) \+ Int64\(20\) \* Int64\(84\) \+ \(\- Int64\(60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "CASE Int64\(37\) WHEN Int64\(\-41\) THEN NULL ELSE Int64\(37\) END \* \(\- coalesce\(Int64\(42\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(20\) \* Int64\(84\) \+ \(\- Int64\(60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 0 AS col0, + CASE + + 37 WHEN ( - 41 ) THEN NULL ELSE 37 END * + - COALESCE ( + 42, - COUNT ( * ) ) + + 20 * + 84 + - + 60 AS col0 query I rowsort label-3080 @@ -17285,7 +17285,7 @@ SELECT DISTINCT NULLIF ( 48, + 0 ) * + 60 + + 98 - + - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* avg\(\(\- Int64\(39\)\)\) \+ CASE \(\- Int64\(88\)\) WHEN count\(\*\) THEN Int64\(22\) \+ \(\- Int64\(0\)\) END \* \(\- 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 "Int64\(68\) \* avg\(\(\- Int64\(39\)\)\) \+ CASE \(\- Int64\(88\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(22\) \+ \(\- Int64\(0\)\) END \* \(\- 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 68 * + AVG ( ALL - + 39 ) + + CASE - ( 88 ) WHEN COUNT ( * ) THEN + + 22 + - + 0 END * - + COUNT ( * ) AS col2, 65 AS col2 query I rowsort @@ -18620,7 +18620,7 @@ SELECT + 53 / - 44 + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-20\)\)\) AS col1" at position 0 and "Int64\(80\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-20\)\)\) AS col1" at position 0 and "Int64\(80\) \* \(\- 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, 80 * ( - COUNT ( * ) ) AS col1 query I rowsort label-3548 @@ -19614,7 +19614,7 @@ SELECT 60 * COUNT ( * ) + MAX ( DISTINCT 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(24\) AS Int32\) \+ Int64\(\-8\) AS col1" at position 0 and "Int64\(\-74\) \- \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(24\) AS Int32\) \+ Int64\(\-8\) AS col1" at position 0 and "Int64\(\-74\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( 24 AS INTEGER ) + - 8 col1, - 74 - - COUNT ( * ) AS col1 query I rowsort @@ -20057,7 +20057,7 @@ SELECT DISTINCT 1 * + 72 / - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) / Int64\(25\) \* Int64\(54\) AS col2" at position 0 and "CASE Int64\(6\) WHEN avg\(Int64\(73\)\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(45\) THEN NULL WHEN Int64\(\-15\) THEN Int64\(59\) ELSE NULL END \* Int64\(74\) / Int64\(\-41\) \+ Int64\(12\) / coalesce\(Int64\(21\) \* \(\- count\(Int64\(\-35\)\)\), Int64\(70\) \* Int64\(32\) \+ 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\(\-42\) / Int64\(25\) \* Int64\(54\) AS col2" at position 0 and "CASE Int64\(6\) WHEN avg\(Int64\(73\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(45\) THEN NULL WHEN Int64\(\-15\) THEN Int64\(59\) ELSE NULL END \* Int64\(74\) / Int64\(\-41\) \+ Int64\(12\) / coalesce\(Int64\(21\) \* \(\- count\(Int64\(\-35\)\)\), Int64\(70\) \* Int64\(32\) \+ Int64\(74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 42 / 25 * 54 AS col2, CASE 6 WHEN AVG ( + 73 ) * - - COUNT ( * ) * + 45 THEN NULL WHEN - 15 THEN 59 ELSE NULL END * 74 / - 41 + 12 / COALESCE ( 21 * - COUNT ( - 35 ), + 70 * 32 + + 74 ) AS col2 query I rowsort @@ -21981,7 +21981,7 @@ SELECT ALL - 15 / COALESCE ( - - ( + 71 ), CAST ( - 99 AS INTEGER ), + 96 / + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -13 -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\(\-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\(\-91\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 91 AS col0, + COUNT ( * ) + - 14 AS col0 query I rowsort @@ -24930,7 +24930,7 @@ SELECT ALL 4 * + 76 + + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "CASE \(\- max\(DISTINCT Int64\(2\)\)\) WHEN count\(\*\) \+ Int64\(\-37\) THEN NULL WHEN Int64\(82\) \+ Int64\(60\) \* Int64\(\-41\) THEN \(\- count\(Int64\(33\)\)\) ELSE Int64\(49\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "CASE \(\- max\(DISTINCT Int64\(2\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) THEN NULL WHEN Int64\(82\) \+ Int64\(60\) \* Int64\(\-41\) THEN \(\- count\(Int64\(33\)\)\) ELSE Int64\(49\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 AS col2, CASE - MAX ( DISTINCT + 2 ) WHEN + COUNT ( * ) + - 37 THEN NULL WHEN 82 + + 60 * - 41 THEN + - COUNT ( ALL + 33 ) ELSE 49 END AS col2 query I rowsort label-4756 @@ -25079,7 +25079,7 @@ SELECT DISTINCT + 34 / + - ( 6 ) + + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / count\(\*\) \+ Int64\(53\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(62\) \+ count\(\*\) \+ sum\(Int64\(\-81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(62\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(Int64\(\-81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 / ( COUNT ( * ) ) + 53 + + 68 AS col2, ( + + 62 ) + + COUNT ( * ) + + ( SUM ( ALL - 81 ) ) AS col2 query I rowsort label-4785 @@ -25808,7 +25808,7 @@ SELECT - + 57 * + - COUNT ( ALL - - 5 ) - + 29 AS col2, - COUNT ( * ) * 25 / + 8 # Datafusion - Expected - -74 # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 1 and "sum\(\(\- Int64\(23\)\)\) \* CASE Int64\(6\) WHEN Int64\(97\) \* Int64\(47\) THEN \(\- count\(\*\)\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 1 and "sum\(\(\- Int64\(23\)\)\) \* CASE Int64\(6\) WHEN Int64\(97\) \* Int64\(47\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 74, + 12 col0, SUM ( ALL - + 23 ) * CASE 6 WHEN 97 * + 47 THEN + - COUNT ( * ) END AS col0 query I rowsort @@ -28109,7 +28109,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\(\*\) 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 @@ -28807,7 +28807,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4446 # Datafusion - Expected - -125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* \(\- Int64\(\-57\)\) AS col2" at position 0 and "Int64\(57\) \+ Int64\(\-96\) \+ max\(Int64\(\-82\)\) \* count\(\*\) \+ Int64\(64\) \+ 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\(78\) \* \(\- Int64\(\-57\)\) AS col2" at position 0 and "Int64\(57\) \+ Int64\(\-96\) \+ max\(Int64\(\-82\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \+ Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 78 * - - 57 AS col2, 57 + - 96 + MAX ( - 82 ) * + COUNT ( * ) + 64 + + - 68 col2 query I rowsort label-5498 @@ -29814,7 +29814,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\(\*\) 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 @@ -30495,7 +30495,7 @@ SELECT - ( + - 10 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "sum\(Int64\(15\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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 "sum\(Int64\(15\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 AS col0, SUM ( + 15 ) + - COUNT ( * ) AS col0 query II rowsort @@ -31116,7 +31116,7 @@ SELECT DISTINCT + + 77 - + + 53 + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3773 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(77\) AS col0" at position 0 and "CASE Int64\(\-76\) WHEN count\(\*\) / Int64\(\-89\) \+ Int64\(\-4\) \+ Int64\(0\) \* Int64\(\-93\) \* Int64\(21\) \* Int64\(18\) THEN Int64\(87\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(77\) AS col0" at position 0 and "CASE Int64\(\-76\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-89\) \+ Int64\(\-4\) \+ Int64\(0\) \* Int64\(\-93\) \* Int64\(21\) \* Int64\(18\) THEN Int64\(87\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 49 * 77 AS col0, CASE - 76 WHEN COUNT ( * ) / - 89 + - 4 + 0 * - 93 * 21 * 18 THEN 87 END AS col0 query I rowsort label-5939 @@ -31795,7 +31795,7 @@ SELECT - 27 * - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(50\)\)\) AS col0" at position 0 and "Int64\(80\) \* CASE Int64\(\-64\) WHEN \(\- Int64\(\-14\)\) THEN NULL WHEN Int64\(52\) \+ Int64\(21\) \+ Int64\(\-26\) \+ \(\- Int64\(90\)\) THEN count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(50\)\)\) AS col0" at position 0 and "Int64\(80\) \* CASE Int64\(\-64\) WHEN \(\- Int64\(\-14\)\) THEN NULL WHEN Int64\(52\) \+ Int64\(21\) \+ Int64\(\-26\) \+ \(\- Int64\(90\)\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( DISTINCT - + 50 ) AS col0, 80 * CASE - 64 WHEN - + ( + - 14 ) THEN NULL WHEN + 52 + + 21 + - 26 + - ( 90 ) THEN COUNT ( * ) END AS col0 query I rowsort label-6068 @@ -31946,7 +31946,7 @@ SELECT DISTINCT - 24 AS col2, 85 + 9 + + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(36\) \+ Int64\(\-99\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(36\) \+ Int64\(\-99\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 27 col2, + 36 + - 99 + - COUNT ( * ) AS col2 query I rowsort @@ -31984,7 +31984,7 @@ SELECT ALL - - 97 + + COUNT ( ALL 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 1512 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ \(\- count\(\*\)\) \* Int64\(75\) AS col0" at position 0 and "Int64\(72\) \* 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\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) AS col0" at position 0 and "Int64\(72\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45 + - COUNT ( * ) * + 75 AS col0, + 72 * + 21 col0 # Datafusion - Types were automatically converted from: @@ -32601,7 +32601,7 @@ SELECT ( NULLIF ( - 28, + 49 - 45 + + 98 * + 68 * CAST ( NULL AS INTEGER ) * - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(50\) 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\(\*\) \+ Int64\(50\) 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 COUNT ( * ) + + + 50 AS col1, + 96 col1 query I rowsort label-6222 @@ -33836,7 +33836,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\(\*\) 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 @@ -35849,7 +35849,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\(\*\) AS col0" at position 1 have the 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 @@ -36492,7 +36492,7 @@ SELECT ALL 69 + COUNT ( * ) + + - 65 + - - 1 / - 66 AS col1, + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7654 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* count\(\*\) \* Int64\(89\) AS col0" at position 0 and "CASE Int64\(96\) WHEN Int64\(\-15\) \+ count\(Int64\(8\)\) THEN CAST\(Int64\(15\) AS Int32\) \* Int64\(25\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(89\) AS col0" at position 0 and "CASE Int64\(96\) WHEN Int64\(\-15\) \+ count\(Int64\(8\)\) THEN CAST\(Int64\(15\) AS Int32\) \* Int64\(25\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 86 ) * + COUNT ( * ) * + + 89 AS col0, CASE 96 WHEN + - 15 + COUNT ( ( + 8 ) ) THEN CAST ( 15 AS INTEGER ) * + 25 END AS col0 query II rowsort @@ -37406,7 +37406,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\(\*\) 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 @@ -37662,7 +37662,7 @@ SELECT - NULLIF ( 49, - 46 * 4 ) + + + NULLIF ( 77, - - 9 ) * - 81 * + - 89 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 1320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(43\)\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(30\) \* \(\- 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 "sum\(DISTINCT Int64\(43\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(30\) \* \(\- Int64\(\-44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( DISTINCT 43 ) + - - COUNT ( * ) AS col2, + 30 * - - 44 AS col2 query I rowsort @@ -38241,7 +38241,7 @@ SELECT + 69 * 81 * - 73 # 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 "nullif\(\(\- count\(\*\)\), Int64\(78\) / Int64\(73\) \+ avg\(Int64\(\-21\)\) \- min\(DISTINCT Int64\(78\)\)\) 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\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(78\) / Int64\(73\) \+ avg\(Int64\(\-21\)\) \- min\(DISTINCT Int64\(78\)\)\) 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 ( - COUNT ( * ), ( + 78 ) / 73 + AVG ( - 21 ) - + MIN ( DISTINCT 78 ) ) AS col0, - 42 AS col0 query I rowsort label-7300 @@ -38399,7 +38399,7 @@ SELECT - 12 + - 92 * 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-54\) WHEN Int64\(\-99\) / Int64\(\-33\) THEN Int64\(98\) \+ Int64\(80\) \- \(\- count\(\*\)\) ELSE \(\- count\(Int64\(62\)\)\) \+ count\(\*\) END 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 "CASE Int64\(\-54\) WHEN Int64\(\-99\) / Int64\(\-33\) THEN Int64\(98\) \+ Int64\(80\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE \(\- count\(Int64\(62\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - 54 WHEN - 99 / + - 33 THEN 98 + + 80 - - COUNT ( * ) ELSE - COUNT ( + 62 ) + + COUNT ( * ) END AS col0, 57 AS col0 query I rowsort label-7330 @@ -38610,7 +38610,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\(79\) \+ count\(\*\) AS col2" at position 0 and "Int64\(88\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -38982,7 +38982,7 @@ SELECT MAX ( ALL + + 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* nullif\(Int64\(90\), \(\- Int64\(52\)\) \+ CAST\(NULL AS Int32\) / Int64\(\-60\)\) AS col2" at position 0 and "Int64\(\-20\) \+ Int64\(34\) \* \(\- Int64\(\-75\)\) \+ Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(90\), \(\- Int64\(52\)\) \+ CAST\(NULL AS Int32\) / Int64\(\-60\)\) AS col2" at position 0 and "Int64\(\-20\) \+ Int64\(34\) \* \(\- Int64\(\-75\)\) \+ Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * NULLIF ( 90, - ( 52 ) + + ( + CAST ( NULL AS INTEGER ) ) / + - 60 ) AS col2, - 20 + + + 34 * - - 75 + + - 11 col2 query I rowsort @@ -39323,7 +39323,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\(\*\) 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 @@ -40501,7 +40501,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\(\*\) \* count\(\*\) AS col2" at position 1 have 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 @@ -41458,7 +41458,7 @@ SELECT ALL 96 - - - CAST ( - 44 AS INTEGER ) * - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) \+ \(\- coalesce\(Int64\(46\), count\(\*\)\)\) / Int64\(43\) AS col2" at position 0 and "count\(Int64\(89\)\) \- \(\- \(\- count\(\*\)\)\) \+ \(\- \(\- count\(\*\)\)\) \* count\(\*\) \* Int64\(\-24\) \- Int64\(34\) \+ 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\(68\)\) \+ \(\- coalesce\(Int64\(46\), count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(43\) AS col2" at position 0 and "count\(Int64\(89\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-24\) \- Int64\(34\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 68 + - COALESCE ( 46, + COUNT ( * ) ) / + 43 AS col2, + COUNT ( + 89 ) - - ( + - COUNT ( * ) ) + - ( - COUNT ( * ) ) * + COUNT ( * ) * + + ( - 24 ) - + 34 + 32 AS col2 query II rowsort label-7910 @@ -41626,7 +41626,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\(\*\) AS col1" at position 1 have the 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: @@ -41888,7 +41888,7 @@ SELECT ALL + 63 + - + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(66\) \+ Int64\(\-84\) \+ Int64\(86\) AS col2" at position 0 and "\(\- min\(\(\- CASE Int64\(43\) WHEN Int64\(77\) \* \(\- Int64\(\-11\)\) THEN Int64\(56\) WHEN Int64\(99\) \+ Int64\(15\) \- Int64\(17\) \+ Int64\(\-87\) \+ Int64\(88\) \- Int64\(23\) THEN NULL END\)\)\) / \(\- 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\(\*\) / Int64\(66\) \+ Int64\(\-84\) \+ Int64\(86\) AS col2" at position 0 and "\(\- min\(\(\- CASE Int64\(43\) WHEN Int64\(77\) \* \(\- Int64\(\-11\)\) THEN Int64\(56\) WHEN Int64\(99\) \+ Int64\(15\) \- Int64\(17\) \+ Int64\(\-87\) \+ Int64\(88\) \- Int64\(23\) THEN NULL END\)\)\) / \(\- Int64\(89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + + COUNT ( * ) ) / + 66 + - 84 + + 86 AS col2, - MIN ( - ( + CASE 43 WHEN + 77 * - - 11 THEN + 56 WHEN + 99 + + 15 - + 17 + - 87 + + 88 - 23 THEN NULL END ) ) / - + 89 AS col2 query I rowsort @@ -42172,7 +42172,7 @@ SELECT - COALESCE ( - + 34, + 63 * + + 93 + + + ( + + NULLIF ( - COUNT ( * ), NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(25\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(25\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( + 25 ) AS col2, + COUNT ( * ) + + 46 AS col2 query I rowsort label-8046 @@ -42411,7 +42411,7 @@ SELECT - 30, + ( 63 ) col2 # Datafusion - Expected - 62 # Datafusion - Expected - 0 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(74\) \+ Int64\(\-13\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(74\) \+ Int64\(\-13\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + COUNT ( * ) ) + + 74 + - 13 AS col1, + 13 / - - 37, + 77 AS col1 query II rowsort label-8091 @@ -43361,7 +43361,7 @@ SELECT - - ( 1 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(\-43\)\) AS col1" at position 0 and "coalesce\(\(\- Int64\(66\)\), count\(\*\)\) AS col1" at position 1 have the 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\(\-43\)\) AS col1" at position 0 and "coalesce\(\(\- Int64\(66\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 + - + ( + - 43 ) AS col1, COALESCE ( - + 66, + COUNT ( * ) ) AS col1 query I rowsort @@ -44805,7 +44805,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\(\*\) AS col2" at position 0 and "CASE Int64\(65\) WHEN Int64\(\-79\) \+ Int64\(61\) THEN 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 @@ -45221,7 +45221,7 @@ SELECT + MIN ( + + 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5222 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* \(\- Int64\(\-85\)\) \+ nullif\(Int64\(\-37\), Int64\(95\)\) AS col1" at position 0 and "Int64\(97\) \+ \(\- Int64\(24\)\) \+ nullif\(\(\- Int64\(\-52\)\), \(\- nullif\(Int64\(47\), CASE \(\- coalesce\(\(\- nullif\(Int64\(83\), min\(DISTINCT Int64\(\-12\)\)\)\), Int64\(80\)\)\) WHEN min\(Int64\(13\)\) THEN Int64\(88\) \+ Int64\(53\) \* Int64\(74\) ELSE min\(DISTINCT Int64\(35\)\) \+ count\(\*\) END \* CAST\(\(\- CASE Int64\(95\) WHEN Int64\(\-99\) THEN NULL ELSE max\(Int64\(\-60\)\) / Int64\(\-50\) END\) AS Int32\) \+ Int64\(\-99\)\)\) \* Int64\(73\)\) / Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* \(\- Int64\(\-85\)\) \+ nullif\(Int64\(\-37\), Int64\(95\)\) AS col1" at position 0 and "Int64\(97\) \+ \(\- Int64\(24\)\) \+ nullif\(\(\- Int64\(\-52\)\), \(\- nullif\(Int64\(47\), CASE \(\- coalesce\(\(\- nullif\(Int64\(83\), min\(DISTINCT Int64\(\-12\)\)\)\), Int64\(80\)\)\) WHEN min\(Int64\(13\)\) THEN Int64\(88\) \+ Int64\(53\) \* Int64\(74\) ELSE min\(DISTINCT Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) END \* CAST\(\(\- CASE Int64\(95\) WHEN Int64\(\-99\) THEN NULL ELSE max\(Int64\(\-60\)\) / Int64\(\-50\) END\) AS Int32\) \+ Int64\(\-99\)\)\) \* Int64\(73\)\) / Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 61 * - - 85 + + NULLIF ( - 37, 95 ) AS col1, 97 + - + 24 + NULLIF ( - - 52, - NULLIF ( + 47, + CASE - COALESCE ( - NULLIF ( 83, MIN ( DISTINCT - 12 ) ), 80 ) WHEN MIN ( + 13 ) THEN 88 + 53 * + 74 ELSE + MIN ( DISTINCT + 35 ) + COUNT ( * ) END * + CAST ( - CASE 95 WHEN - 99 THEN NULL ELSE MAX ( - 60 ) / - 50 END AS INTEGER ) + - 99 ) * 73 ) / - 35 AS col1 query I rowsort label-8629 @@ -45528,7 +45528,7 @@ SELECT DISTINCT 49 AS col1, + 74 AS col1 # Datafusion - Expected - 54 # Datafusion - Expected - 8 # 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\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) 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 54 AS col0, 8 AS col1, - COUNT ( * ) AS col0 query I rowsort @@ -45693,7 +45693,7 @@ SELECT 84 + + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -142 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ Int64\(\-57\) AS col1" at position 0 and "\(\- count\(\*\)\) \* Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ Int64\(\-57\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 85 + - 57 AS col1, - COUNT ( * ) * + 77 col1 query II rowsort label-8719 @@ -46340,7 +46340,7 @@ SELECT ALL - CASE + 81 WHEN - + 27 THEN + + 34 * + + 91 + 18 + - - NULLIF ( ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -1081 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "count\(\*\) \* Int64\(47\) \* CAST\(Int64\(\-23\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) \* CAST\(Int64\(\-23\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 28 AS col2, + COUNT ( * ) * + 47 * ( + CAST ( - 23 AS INTEGER ) ) AS col2 query II rowsort @@ -46484,7 +46484,7 @@ SELECT - 16 + 25 * + COUNT ( ( + 41 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3034 # Datafusion - Expected - 819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(82\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ Int64\(41\) \* 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\(37\) \* Int64\(82\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(41\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 37 * + 82 AS col1, - COUNT ( * ) + + 41 * 20 AS col1 query I rowsort @@ -50164,7 +50164,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\(\*\) AS col1" at position 0 and "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 @@ -50298,7 +50298,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\(\*\) \+ count\(\*\) AS col1" at position 0 and "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 @@ -50915,7 +50915,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\(\*\) 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 @@ -51072,7 +51072,7 @@ SELECT ALL - ( - + ( + - COUNT ( * ) ) ) AS col1, 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 85001374 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "max\(Int64\(\-41\)\) \+ count\(Int64\(17\)\) \+ \(\- Int64\(\-95\)\) \+ Int64\(\-27\) / Int64\(\-28\) \- Int64\(81\) \+ \(\- Int64\(28\)\) / \(\- Int64\(\-93\)\) \+ Int64\(\-53\) \* Int64\(36\) \* Int64\(\-25\) \* \(Int64\(22\) \* Int64\(82\) \+ Int64\(\-89\) / 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 "max\(Int64\(\-41\)\) \+ count\(Int64\(17\)\) \+ \(\- Int64\(\-95\)\) \+ Int64\(\-27\) / Int64\(\-28\) \- Int64\(81\) \+ \(\- Int64\(28\)\) / \(\- Int64\(\-93\)\) \+ Int64\(\-53\) \* Int64\(36\) \* Int64\(\-25\) \* \(Int64\(22\) \* Int64\(82\) \+ Int64\(\-89\) / Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, MAX ( - 41 ) + + COUNT ( ALL 17 ) + - - 95 + - 27 / - 28 - 81 + - + 28 / - ( - 93 ) + - 53 * 36 * - 25 * ( + 22 * + 82 + - 89 / + 4 ) AS col0 query I rowsort label-9750 @@ -51114,7 +51114,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "\(\- max\(DISTINCT coalesce\(Int64\(21\), \(\- Int64\(89\)\)\)\)\) \+ \(\- count\(\*\)\) \+ Int64\(72\) / CASE Int64\(61\) WHEN Int64\(9\) THEN Int64\(82\) ELSE NULL END / Int64\(7\) \+ Int64\(27\) \- Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "\(\- max\(DISTINCT coalesce\(Int64\(21\), \(\- Int64\(89\)\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(72\) / CASE Int64\(61\) WHEN Int64\(9\) THEN Int64\(82\) ELSE NULL END / Int64\(7\) \+ Int64\(27\) \- Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 16 AS col0, - MAX ( DISTINCT COALESCE ( 21, - + 89 ) ) + - COUNT ( * ) + 72 / + CASE 61 WHEN 9 THEN 82 ELSE NULL END / + + 7 + + 27 - + 86 AS col0 query II rowsort @@ -51673,7 +51673,7 @@ SELECT ALL + COUNT ( * ) - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 138 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) \- count\(\*\) \- Int64\(\-81\) 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\(\-58\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-81\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 58 - COUNT ( * ) - - 81 AS col1, 53 AS col1 query I rowsort label-9864 @@ -51966,7 +51966,7 @@ SELECT 70 * 46 # 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\(\*\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(28\) \+ 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(28\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col1, 28 + 21 AS col1 query I rowsort label-9920 diff --git a/data/sqlite/random/expr/slt_good_109.slt b/data/sqlite/random/expr/slt_good_109.slt index 74e4e7b..f014614 100644 --- a/data/sqlite/random/expr/slt_good_109.slt +++ b/data/sqlite/random/expr/slt_good_109.slt @@ -2200,7 +2200,7 @@ SELECT + MIN ( - + 68 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ nullif\(\(\- CASE Int64\(\-45\) WHEN count\(\*\) / \(\- count\(\*\)\) THEN Int64\(\-31\) ELSE NULL END\), Int64\(86\) \* Int64\(32\)\) \* Int64\(\-7\) \* Int64\(\-13\) AS col1" at position 0 and "Int64\(71\) \+ CASE Int64\(48\) WHEN Int64\(79\) THEN coalesce\(Int64\(\-5\), \(\- count\(\*\)\) \+ Int64\(58\)\) / \(\- coalesce\(count\(\*\), Int64\(\-33\) \- \(\- Int64\(\-32\)\) \- count\(\*\) \- count\(\*\) \+ Int64\(\-88\)\)\) WHEN Int64\(48\) 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\(84\) \+ nullif\(\(\- CASE Int64\(\-45\) WHEN count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-31\) ELSE NULL END\), Int64\(86\) \* Int64\(32\)\) \* Int64\(\-7\) \* Int64\(\-13\) AS col1" at position 0 and "Int64\(71\) \+ CASE Int64\(48\) WHEN Int64\(79\) THEN coalesce\(Int64\(\-5\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(58\)\) / \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-33\) \- \(\- Int64\(\-32\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-88\)\)\) WHEN Int64\(48\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT ( * ) / - COUNT ( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT ( * ) + + 58 ) / - COALESCE ( COUNT ( * ), + ( + - 33 ) - - - 32 - + + COUNT ( * ) - + + COUNT ( * ) + - 88 ) WHEN + 48 THEN NULL END AS col1 query I rowsort @@ -3134,7 +3134,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\(\*\) 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 @@ -4479,7 +4479,7 @@ SELECT 65 * ( + - 60 ) + - CAST ( + 39 AS INTEGER ) + 12 - - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-41\)\), \(\- Int64\(95\)\) \+ Int64\(\-72\) \* Int64\(14\), \(\- count\(\*\)\) \* Int64\(50\) \* \(\- Int64\(92\)\)\) AS col2" at position 0 and "sum\(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 "coalesce\(\(\- Int64\(\-41\)\), \(\- Int64\(95\)\) \+ Int64\(\-72\) \* Int64\(14\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(50\) \* \(\- Int64\(92\)\)\) AS col2" at position 0 and "sum\(Int64\(\-82\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + + COALESCE ( - ( - 41 ), + ( - + 95 ) + + - 72 * + + 14, - COUNT ( * ) * + 50 * - + 92 ) ) AS col2, + SUM ( - 82 ) AS col2 query I rowsort label-848 @@ -5026,7 +5026,7 @@ SELECT 97 + - 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 93 -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\(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\(71\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 71 col2, COUNT ( * ) + 92 AS col2 query I rowsort label-953 @@ -7192,7 +7192,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\(\*\) AS col0" at position 1 have the 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 @@ -7999,7 +7999,7 @@ SELECT - - CAST ( - 33 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -168 # Datafusion - Expected - -2164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-2\) AS col0" at position 0 and "Int64\(27\) \* Int64\(\-80\) \+ count\(\*\) \* count\(\*\) \+ 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\(84\) \* Int64\(\-2\) AS col0" at position 0 and "Int64\(27\) \* Int64\(\-80\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 84 * - 2 col0, 27 * - 80 + + COUNT ( * ) * COUNT ( * ) + - 5 AS col0 query I rowsort label-1529 @@ -8176,7 +8176,7 @@ SELECT ALL + - 77 + - + 21 / - - COUNT ( * ) + + + 29 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4408 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(\-16\)\)\) \* \(\- Int64\(54\)\) \- min\(Int64\(46\)\) \* \(\- Int64\(\-97\)\) AS col0" at position 0 and "Int64\(\-64\) \+ Int64\(89\) \+ \(\- 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\(DISTINCT Int64\(\-16\)\)\) \* \(\- Int64\(54\)\) \- min\(Int64\(46\)\) \* \(\- Int64\(\-97\)\) AS col0" at position 0 and "Int64\(\-64\) \+ Int64\(89\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( DISTINCT + - 16 ) * - ( + + 54 ) - + MIN ( + 46 ) * - ( - 97 ) AS col0, - 64 + 89 + - COUNT ( * ) + 38 AS col0 query I rowsort label-1563 @@ -8591,7 +8591,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\(\*\) 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 @@ -8883,7 +8883,7 @@ SELECT ALL 41 AS col0, - 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 6216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col1" at position 0 and "Int64\(74\) \* Int64\(\-84\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(74\) \* Int64\(\-84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 AS col1, + 74 * + - 84 * - + COUNT ( * ) AS col1 query I rowsort label-1697 @@ -10572,7 +10572,7 @@ SELECT DISTINCT 56 + - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(53\), Int64\(34\) \+ CASE Int64\(55\) WHEN Int64\(74\) \+ Int64\(\-19\) THEN NULL WHEN Int64\(68\) THEN NULL WHEN Int64\(30\) THEN count\(Int64\(14\)\) \* count\(\*\) END \* \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(53\), Int64\(34\) \+ CASE Int64\(55\) WHEN Int64\(74\) \+ Int64\(\-19\) THEN NULL WHEN Int64\(68\) THEN NULL WHEN Int64\(30\) THEN count\(Int64\(14\)\) \* count\(Int64\(1\)\) AS count\(\*\) END \* \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( + 53, + 34 + CASE + ( + 55 ) WHEN + 74 + - 19 THEN NULL WHEN 68 THEN NULL WHEN 30 THEN COUNT ( ALL 14 ) * ( COUNT ( * ) ) END * - CAST ( NULL AS INTEGER ) ) AS col2, 13 AS col2 query I rowsort @@ -11434,7 +11434,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ count\(\*\) \- Int64\(59\) \* \(\- count\(\*\)\) \* count\(\*\) \+ Int64\(79\) \- Int64\(66\) 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\(31\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(59\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\) \- Int64\(66\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 + + COUNT ( * ) - + + 59 * - COUNT ( * ) * ( COUNT ( * ) ) + 79 - + 66 AS col1, 30 AS col1 query II rowsort @@ -12302,7 +12302,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\(\*\) WHEN Int64\(61\) THEN Int64\(\-79\) ELSE NULL END\) \+ Int64\(61\) \- Int64\(\-65\) / count\(\*\) AS col0" at position 1 have 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 @@ -13457,7 +13457,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\(\*\) AS col0" at position 1 have the 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 @@ -13580,7 +13580,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\(\*\) AS col0" at position 1 have the 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 @@ -13796,7 +13796,7 @@ SELECT - ( ( - 63 ) ) + - SUM ( - 10 ) + + - 18 + COUNT ( * ) - - 87 * + COALESC # Datafusion - Expected - 68 # Datafusion - Expected - -7968 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(96\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-23\) THEN Int64\(88\) \+ Int64\(92\) \+ Int64\(39\) \* count\(\*\) ELSE \(\- count\(\*\)\) \* Int64\(\-83\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(96\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-23\) THEN Int64\(88\) \+ Int64\(92\) \+ Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-83\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 AS col1, 96 * - CASE + + CAST ( NULL AS INTEGER ) WHEN - 23 THEN 88 + + 92 + 39 * + COUNT ( * ) ELSE + - COUNT ( * ) * + - 83 END col1, 81 AS col1 query I rowsort label-2638 @@ -14341,7 +14341,7 @@ SELECT + COUNT ( * ) * + 15 * + - 30 + + 85 + - MIN ( + 68 ) + - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* CAST\(\(\- CASE Int64\(\-31\) WHEN Int64\(56\) THEN count\(\*\) END\) AS Int32\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* CAST\(\(\- CASE Int64\(\-31\) WHEN Int64\(56\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + - CASE - 31 WHEN + 56 THEN + COUNT ( * ) END AS INTEGER ) AS col0, 32 AS col0 query I rowsort @@ -17091,7 +17091,7 @@ SELECT DISTINCT + 44 - 90 AS col1, NULLIF ( + + 25, - - 90 + ( - COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5402700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* count\(\*\) \* Int64\(29\) \* Int64\(54\) \* Int64\(69\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \* Int64\(54\) \* Int64\(69\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 * + + COUNT ( * ) * 29 * 54 * + 69 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -17951,7 +17951,7 @@ SELECT DISTINCT + 56 - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(94\) / \(\- CASE CASE Int64\(48\) WHEN Int64\(\-38\) THEN NULL WHEN Int64\(32\) THEN Int64\(\-90\) \* Int64\(\-92\) ELSE NULL END WHEN \(\- Int64\(59\)\) \* Int64\(\-91\) \+ Int64\(\-80\) THEN \(\- max\(DISTINCT coalesce\(Int64\(57\), Int64\(53\)\)\)\) WHEN \(\- count\(\*\)\) / Int64\(75\) THEN Int64\(41\) END\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(94\) / \(\- CASE CASE Int64\(48\) WHEN Int64\(\-38\) THEN NULL WHEN Int64\(32\) THEN Int64\(\-90\) \* Int64\(\-92\) ELSE NULL END WHEN \(\- Int64\(59\)\) \* Int64\(\-91\) \+ Int64\(\-80\) THEN \(\- max\(DISTINCT coalesce\(Int64\(57\), Int64\(53\)\)\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(75\) THEN Int64\(41\) END\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 66 AS col1, 94 / + - CASE + CASE 48 WHEN - 38 THEN NULL WHEN + 32 THEN - 90 * - 92 ELSE NULL END WHEN - + 59 * - 91 + - 80 THEN - MAX ( DISTINCT COALESCE ( 57, 53 ) ) WHEN - COUNT ( * ) / 75 THEN 41 END * 89 AS col1 query I rowsort @@ -18122,7 +18122,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\(\*\) AS col0" at position 1 have the 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 @@ -18474,7 +18474,7 @@ SELECT - 27 * 92 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 395 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- Int64\(79\)\) AS col0" at position 0 and "coalesce\(min\(\(\- Int64\(84\)\)\), \(\- CAST\(NULL AS Int32\)\) / CAST\(NULL AS Int32\) \- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- Int64\(79\)\) AS col0" at position 0 and "coalesce\(min\(\(\- Int64\(84\)\)\), \(\- CAST\(NULL AS 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 - 5 * - + 79 col0, + COALESCE ( MIN ( ALL - + 84 ), - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) - COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: @@ -18907,7 +18907,7 @@ SELECT DISTINCT + - 69 * 85 * + 82 + + 26 - 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4535 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-35\) WHEN \(\- \(\- count\(\*\)\)\) \- Int64\(\-94\) \* Int64\(18\) THEN Int64\(\-35\) END AS col0" at position 0 and "Int64\(79\) \* \(\- min\(Int64\(57\)\)\) \+ Int64\(2\) \* \(\- coalesce\(\(\- Int64\(\-16\)\), \(\- count\(\*\)\)\)\) AS col0" at position 1 have 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 \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-94\) \* Int64\(18\) THEN Int64\(\-35\) END AS col0" at position 0 and "Int64\(79\) \* \(\- min\(Int64\(57\)\)\) \+ Int64\(2\) \* \(\- coalesce\(\(\- Int64\(\-16\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - 35 WHEN - + ( - COUNT ( * ) ) - - 94 * 18 THEN - 35 END AS col0, + 79 * + - ( + MIN ( + 57 ) ) + 2 * - COALESCE ( - - 16, - + COUNT ( * ) ) AS col0 query I rowsort @@ -19277,7 +19277,7 @@ SELECT ALL + ( + 65 ) / - - 46 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\(26\) / Int64\(8\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(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 26 / + 8 AS col2, - COUNT ( * ) AS col2 query I rowsort label-3687 @@ -19818,7 +19818,7 @@ SELECT + + COUNT ( * ) + + COUNT ( * ) + + - 18 + - + 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(91\) \+ Int64\(\-72\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-84\) \* Int64\(68\) \* \(\- \(\- count\(\*\)\)\) \+ \(\- Int64\(26\)\) AS col0" at position 0 and "Int64\(64\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(91\) \+ Int64\(\-72\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-84\) \* Int64\(68\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(26\)\) AS col0" at position 0 and "Int64\(64\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 53 / 91 + - 72 + + CAST ( NULL AS INTEGER ) + - 84 * + 68 * - - COUNT ( * ) + - + 26 col0, 64 - + 50 AS col0 query I rowsort label-3788 @@ -20807,7 +20807,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 165 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(33\) AS col0" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(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 5 * 33 AS col0, - ( + - COUNT ( * ) ) AS col0 query I rowsort @@ -21480,7 +21480,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-91\)\)\) AS col0" at position 0 and "coalesce\(\(\- Int64\(41\)\), Int64\(\-38\) \* \(\- 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 "sum\(\(\- Int64\(\-91\)\)\) AS col0" at position 0 and "coalesce\(\(\- Int64\(41\)\), Int64\(\-38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(15\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - ( - 91 ) ) AS col0, COALESCE ( - + 41, - 38 * - + COUNT ( * ) + 15 ) AS col0 query II rowsort label-4104 @@ -22987,7 +22987,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\(\*\) 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 @@ -24146,7 +24146,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\(\*\) 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 @@ -26016,7 +26016,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\(\*\)\), \(\- CASE Int64\(69\) WHEN Int64\(77\) \+ Int64\(0\) \* Int64\(22\) THEN Int64\(45\) \* 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\(\*\) END\)\) \+ \(\- CAST\(CAST\(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 @@ -26497,7 +26497,7 @@ SELECT DISTINCT + 55 + + 88 + - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(37\) AS col1" at position 0 and "Int64\(85\) \+ \(\- Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(37\) AS col1" at position 0 and "Int64\(85\) \+ \(\- Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 37 AS col1, + 85 + - + 52 AS col1 query I rowsort @@ -27834,7 +27834,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\(\*\) 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 @@ -29077,7 +29077,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -283 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \- Int64\(93\) \+ \(\- Int64\(79\)\) \+ Int64\(\-63\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \- Int64\(93\) \+ \(\- Int64\(79\)\) \+ Int64\(\-63\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( - 48 ) * - CAST ( - COUNT ( * ) AS INTEGER ) - 93 + - + 79 + - 63 AS col0, + CAST ( NULL AS FLOAT8 ) * + - 29 AS col0 query I rowsort label-5560 @@ -29164,7 +29164,7 @@ SELECT 63 + - + ( 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 19593 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(57\) \* Int64\(49\) \* Int64\(7\) \+ \(\- \(\- 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 "Int64\(40\) AS col2" at position 0 and "Int64\(57\) \* Int64\(49\) \* Int64\(7\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 AS col2, 57 * 49 * ( + 7 ) + - - COUNT ( * ) + + 41 col2 query I rowsort @@ -30437,7 +30437,7 @@ SELECT DISTINCT 0 * - + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-93\), Int64\(37\) \+ Int64\(67\) \+ Int64\(\-45\) / \(\- count\(\*\)\) \* Int64\(91\)\) \+ Int64\(52\) AS col0" at position 0 and "\(\- coalesce\(Int64\(99\), Int64\(80\), \(\- count\(\*\)\) \* \(\- coalesce\(Int64\(\-43\), Int64\(12\) \+ Int64\(9\)\)\) \* \(\- Int64\(0\)\) \+ \(\- Int64\(80\)\) \+ Int64\(32\) \+ \(\- CAST\(NULL AS Int32\)\), Int64\(\-60\)\)\) \+ Int64\(14\) \- Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-93\), Int64\(37\) \+ Int64\(67\) \+ Int64\(\-45\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(91\)\) \+ Int64\(52\) AS col0" at position 0 and "\(\- coalesce\(Int64\(99\), Int64\(80\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(Int64\(\-43\), Int64\(12\) \+ Int64\(9\)\)\) \* \(\- Int64\(0\)\) \+ \(\- Int64\(80\)\) \+ Int64\(32\) \+ \(\- CAST\(NULL AS Int32\)\), Int64\(\-60\)\)\) \+ Int64\(14\) \- Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( - 93, + 37 + + 67 + + ( - 45 ) / - + COUNT ( * ) * 91 ) + + 52 AS col0, - COALESCE ( + 99, + 80, - + COUNT ( * ) * - COALESCE ( - 43, 12 + 9 ) * - ( + 0 ) + + ( - + 80 ) + 32 + - CAST ( NULL AS INTEGER ), + - 60 ) + + 14 - - 42 AS col0 query I rowsort label-5814 @@ -30875,7 +30875,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\(\*\) AS col2" at position 1 have the 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 @@ -31195,7 +31195,7 @@ SELECT ALL + 35 * + 4 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\(12\) \+ Int64\(53\) \+ Int64\(68\) / Int64\(5\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(53\) \+ Int64\(68\) / 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 12 + + 53 + + + 68 / + 5 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -32647,7 +32647,7 @@ SELECT DISTINCT + 73 - + 39 * + - ( + 59 ) * 52 AS col2 # Datafusion - Expected - 36 # Datafusion - Expected - 18 # Datafusion - Expected - -5234 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(18\) AS col2" at position 1 and "Int64\(72\) \* Int64\(\-74\) \- Int64\(\-94\) 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\(18\) AS col2" at position 1 and "Int64\(72\) \* Int64\(\-74\) \- Int64\(\-94\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 AS col0, COUNT ( * ) * + ( + 18 ) AS col2, + 72 * - 74 - - 94 AS col2 query I rowsort label-6236 @@ -32908,7 +32908,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\(\*\) 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 @@ -33736,7 +33736,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\(\*\) 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 @@ -33979,7 +33979,7 @@ SELECT + 99 * 80 # 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\)\) AS col0" at position 0 and "count\(\*\) / \(\- Int64\(74\)\) \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(43\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(74\)\) \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 43 AS col0, COUNT ( * ) / - + 74 * - 86 AS col0 # Datafusion - Types were automatically converted from: @@ -37454,7 +37454,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\(\*\) AS col0" at position 0 and "Int64\(34\) \+ Int64\(14\) / count\(\*\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -37711,7 +37711,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\(\*\)\) \+ count\(\*\) AS col2" at position 0 and "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 @@ -37839,7 +37839,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\(\*\) 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 @@ -40513,7 +40513,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\(\*\) AS col2" at position 1 have the 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 @@ -40883,7 +40883,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(17\) AS col2" at position 0 and "min\(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\(\*\) \* Int64\(17\) AS col2" at position 0 and "min\(Int64\(20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + + 17 AS col2, MIN ( ALL + 20 ) AS col2 # Datafusion - Datafusion expected results: @@ -41406,7 +41406,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\(\*\) 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 @@ -41424,7 +41424,7 @@ SELECT COUNT ( DISTINCT + 44 ) AS col1, - SUM ( DISTINCT 76 ) + + 91 col0, 63 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-96\)\) WHEN Int64\(37\) \+ Int64\(\-40\) \* count\(\*\) / \(\- sum\(DISTINCT \(\- Int64\(10\)\)\)\) THEN NULL ELSE Int64\(24\) END 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 "CASE \(\- Int64\(\-96\)\) WHEN Int64\(37\) \+ Int64\(\-40\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- sum\(DISTINCT \(\- Int64\(10\)\)\)\) THEN NULL ELSE Int64\(24\) END AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE - ( - 96 ) WHEN 37 + + + ( - 40 ) * + COUNT ( * ) / - SUM ( DISTINCT - + 10 ) THEN NULL ELSE 24 END AS col0, 75 AS col0 query I rowsort label-7912 @@ -42171,7 +42171,7 @@ SELECT + 38 AS col1, + 72 AS col0 # 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\(\-34\)\) \+ Int64\(10\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 - - 34 + + + 10 AS col0, - COUNT ( * ) col0 query I rowsort @@ -43115,7 +43115,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\(\*\) 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 @@ -43279,7 +43279,7 @@ SELECT 52 + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(62\) / Int64\(29\) \+ Int64\(91\) \+ 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\(49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(62\) / Int64\(29\) \+ Int64\(91\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 49 * - + COUNT ( * ) AS col1, ( + + 62 ) / + 29 + + 91 + + + 41 AS col1 query I rowsort label-8267 @@ -44442,7 +44442,7 @@ SELECT DISTINCT COUNT ( DISTINCT - 45 ) * + 64 # 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\(\*\)\) 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 query I rowsort label-8494 @@ -46190,7 +46190,7 @@ SELECT ALL - - ( COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7098 # Datafusion - Expected - 3324181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(78\) AS col1" at position 0 and "Int64\(\-76\) \* Int64\(27\) \* \(\- max\(DISTINCT Int64\(\-45\)\)\) \* CAST\(\(\- Int64\(36\)\) AS Int32\) \+ \(\- coalesce\(Int64\(59\), Int64\(97\) \+ count\(\*\) \* CAST\(NULL AS Int32\), \(\- min\(Int64\(42\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(78\) AS col1" at position 0 and "Int64\(\-76\) \* Int64\(27\) \* \(\- max\(DISTINCT Int64\(\-45\)\)\) \* CAST\(\(\- Int64\(36\)\) AS Int32\) \+ \(\- coalesce\(Int64\(59\), Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\), \(\- min\(Int64\(42\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 91 * + 78 AS col1, - 76 * 27 * - MAX ( DISTINCT - 45 ) * + CAST ( - + 36 AS INTEGER ) + + - COALESCE ( 59, + + 97 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ), - MIN ( 42 ) ) col1 query I rowsort label-8829 @@ -47252,7 +47252,7 @@ SELECT DISTINCT + 12 / 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(42\) / \(\- 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\(\*\) \* Int64\(42\) / \(\- 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 ( * ) * + 42 / - + COUNT ( * ) AS col2, - 99 AS col2 query I rowsort @@ -48546,7 +48546,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\(\*\) AS col0" at position 1 have the 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 @@ -48698,7 +48698,7 @@ SELECT ( + + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "\(\- \(\- CASE Int64\(94\) WHEN Int64\(\-36\) \* Int64\(23\) \+ Int64\(58\) THEN NULL ELSE count\(\*\) END\)\) \* 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\(97\)\) AS col1" at position 0 and "\(\- \(\- CASE Int64\(94\) WHEN Int64\(\-36\) \* Int64\(23\) \+ Int64\(58\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END\)\) \* Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + 97 ) AS col1, - ( - CASE + 94 WHEN - 36 * 23 + + 58 THEN NULL ELSE + COUNT ( * ) END ) * - 53 col1 query I rowsort @@ -49185,7 +49185,7 @@ SELECT + - AVG ( DISTINCT 7 ) / - + 55 / + - CASE + 4 WHEN + - ( 87 ) - 68 + 62 # 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\(\*\) AS col0" at position 1 have the 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 @@ -49196,7 +49196,7 @@ SELECT - - 44 + - 79 + + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / CASE Int64\(\-86\) WHEN Int64\(66\) \+ Int64\(\-94\) \* Int64\(\-45\) THEN count\(Int64\(\-30\)\) ELSE NULL END AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / CASE Int64\(\-86\) WHEN Int64\(66\) \+ Int64\(\-94\) \* Int64\(\-45\) THEN count\(Int64\(\-30\)\) ELSE NULL END AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / CASE - 86 WHEN + 66 + - 94 * - 45 THEN COUNT ( - 30 ) ELSE NULL END AS col2, + 48 AS col2 query I rowsort label-9406 @@ -49709,7 +49709,7 @@ SELECT COALESCE ( + 77, ( - 42 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(22\) AS col2" at position 0 and "count\(\*\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(\*\)\) THEN Int64\(62\) ELSE Int64\(36\) \+ CASE count\(\*\) WHEN Int64\(15\) THEN Int64\(\-68\) \* \(\- CAST\(\(\- \(\- CASE Int64\(\-25\) WHEN Int64\(\-63\) \* count\(\*\) THEN Int64\(84\) WHEN \(\- CAST\(Int64\(33\) AS Int32\)\) \* Int64\(\-80\) THEN NULL END\)\) AS Int32\)\) WHEN Int64\(\-30\) THEN NULL ELSE NULL END END\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(22\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(62\) ELSE Int64\(36\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(15\) THEN Int64\(\-68\) \* \(\- CAST\(\(\- \(\- CASE Int64\(\-25\) WHEN Int64\(\-63\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(84\) WHEN \(\- CAST\(Int64\(33\) AS Int32\)\) \* Int64\(\-80\) THEN NULL END\)\) AS Int32\)\) WHEN Int64\(\-30\) THEN NULL ELSE NULL END END\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 5 * + 22 AS col2, COUNT ( * ) + + - CASE + + 66 WHEN - + COUNT ( * ) THEN + + 62 ELSE 36 + CASE + COUNT ( * ) WHEN + 15 THEN - 68 * - CAST ( - - CASE - 25 WHEN - 63 * + + COUNT ( * ) THEN + 84 WHEN - + CAST ( 33 AS INTEGER ) * - 80 THEN NULL END AS INTEGER ) WHEN - 30 THEN NULL ELSE NULL END END + - 70 col2 query I rowsort label-9504 @@ -51359,7 +51359,7 @@ SELECT DISTINCT 47 - + 59 * + 92 AS col0 # 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\(74\) AS col0" at position 0 and "coalesce\(Int64\(85\), \(\- \(\- count\(\*\)\)\), Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "coalesce\(Int64\(85\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 AS col0, COALESCE ( + 85, - ( + - COUNT ( * ) ), - 81 ) AS col0 query I rowsort @@ -51663,7 +51663,7 @@ SELECT 68 * - 71 - - COALESCE ( 64, + 14 / 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 7990 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-94\) \* CAST\(\(\- count\(\*\)\) AS Int32\) \* \(\- Int64\(\-85\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-94\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* \(\- Int64\(\-85\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 AS col0, - 94 * + CAST ( - COUNT ( * ) AS INTEGER ) * - - 85 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_11.slt b/data/sqlite/random/expr/slt_good_11.slt index efbb3e7..ba38763 100644 --- a/data/sqlite/random/expr/slt_good_11.slt +++ b/data/sqlite/random/expr/slt_good_11.slt @@ -745,7 +745,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\(\*\) 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 @@ -1602,7 +1602,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\(\*\) 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 @@ -1929,7 +1929,7 @@ SELECT - 42 + SUM ( + 14 ) * 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -55174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(\-9\) \* Int64\(15\) \+ Int64\(\-32\) / Int64\(42\) \+ count\(\*\) \+ CAST\(\(\- Int64\(8\)\) AS Int32\) \* Int64\(86\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(\-9\) \* Int64\(15\) \+ Int64\(\-32\) / Int64\(42\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(8\)\) AS Int32\) \* Int64\(86\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 81 AS col0, + ( + - 9 ) * 15 + + - 32 / 42 + ( + COUNT ( * ) ) + + CAST ( - + 8 AS INTEGER ) * + 86 * 80 AS col0 query I rowsort label-362 @@ -2307,7 +2307,7 @@ SELECT DISTINCT - 27 * + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ \(\- count\(\*\)\) \- coalesce\(Int64\(51\), Int64\(8\) \* CAST\(NULL AS Int32\)\) / max\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- coalesce\(Int64\(51\), Int64\(8\) \* CAST\(NULL AS Int32\)\) / max\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 54 + - + COUNT ( * ) - COALESCE ( 51, + + 8 * CAST ( NULL AS INTEGER ) ) / MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0, 95 col0 query I rowsort label-433 @@ -2623,7 +2623,7 @@ SELECT + COUNT ( * ) + - + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-38\), \(\- CAST\(coalesce\(Int64\(16\), Int64\(76\) \+ Int64\(28\) \+ count\(\*\)\) AS Float64\)\)\)\) AS col0" at position 0 and "Int64\(41\) \+ 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 "\(\- nullif\(Int64\(\-38\), \(\- CAST\(coalesce\(Int64\(16\), Int64\(76\) \+ Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS Float64\)\)\)\) AS col0" at position 0 and "Int64\(41\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - 38, - CAST ( + + COALESCE ( + 16, 76 + 28 + COUNT ( * ) ) AS FLOAT8 ) ) AS col0, 41 + + 12 AS col0 query I rowsort @@ -6829,7 +6829,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 2783 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(62\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-39\) \- Int64\(31\) \* Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(62\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-39\) \- Int64\(31\) \* Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 32 + + 62 AS col1, COUNT ( * ) + - 39 - 31 * - 91 col1 query II rowsort label-1304 @@ -8185,7 +8185,7 @@ SELECT CAST ( MAX ( + 25 ) AS INTEGER ) + - COUNT ( * ) + - - 25 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(33\) / \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(\-23\)\) \* Int64\(10\) \+ Int64\(\-40\) / Int64\(44\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(33\) / \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-23\)\) \* Int64\(10\) \+ Int64\(\-40\) / Int64\(44\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 26 * + 33 / - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - - 23 * + + 10 + - 40 / 44 col1, 53 AS col1 # Datafusion - Types were automatically converted from: @@ -8704,7 +8704,7 @@ SELECT - 22 * 54 * - 51 AS col1 # 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\(\*\)\) AS col0" at position 0 and "count\(\*\) \- 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 "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, COUNT ( * ) - + 98 AS col0 query II rowsort label-1658 @@ -8783,7 +8783,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(coalesce\(Int64\(89\), count\(\*\)\), Int64\(23\) \+ \(\- \(\- Int64\(4\)\)\)\) AS col2" at position 0 and "Int64\(50\) \- 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 "nullif\(coalesce\(Int64\(89\), count\(Int64\(1\)\) AS count\(\*\)\), Int64\(23\) \+ \(\- \(\- Int64\(4\)\)\)\) AS col2" at position 0 and "Int64\(50\) \- Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + ( COALESCE ( 89, + COUNT ( * ) ) ), + 23 + - ( - + ( 4 ) ) ) AS col2, 50 - + 58 AS col2 query I rowsort label-1672 @@ -10154,7 +10154,7 @@ SELECT - 1 + + 88 # Datafusion - Expected - -1 # Datafusion - Expected - 26 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-1\), nullif\(CAST\(NULL AS Int32\), sum\(Int64\(63\)\) \- \(\- CASE Int64\(\-70\) WHEN Int64\(14\) THEN NULL WHEN nullif\(Int64\(14\), Int64\(53\)\) \+ Int64\(54\) THEN \(\- count\(\*\)\) / Int64\(75\) END\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(39\)\) \* count\(\*\) \+ Int64\(\-97\) \* Int64\(92\) \+ count\(\*\) \+ \(\- count\(\*\)\) / \(\- count\(\*\)\) \+ Int64\(61\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-1\), nullif\(CAST\(NULL AS Int32\), sum\(Int64\(63\)\) \- \(\- CASE Int64\(\-70\) WHEN Int64\(14\) THEN NULL WHEN nullif\(Int64\(14\), Int64\(53\)\) \+ Int64\(54\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(75\) END\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(39\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) \* Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(61\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( - 1, + NULLIF ( + + CAST ( NULL AS INTEGER ), + SUM ( 63 ) - - CASE - 70 WHEN + 14 THEN NULL WHEN + NULLIF ( + 14, + + 53 ) + + + 54 THEN - + COUNT ( * ) / 75 END + + - CAST ( NULL AS INTEGER ) * + 39 ) * + COUNT ( * ) + - 97 * + 92 + COUNT ( * ) + - COUNT ( * ) / - COUNT ( * ) + 61 ) AS col0, 26 AS col0, 37 query I rowsort label-1931 @@ -11997,7 +11997,7 @@ SELECT - NULLIF ( + - 61, + + 45 ) * + - 50 - + 6 + 48 * 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2448 # Datafusion - Expected - 63901 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-72\)\) \* Int64\(\-34\) AS col0" at position 0 and "Int64\(13\) \- \(\- coalesce\(\(\- CASE Int64\(64\) WHEN Int64\(\-27\) \+ coalesce\(count\(\*\), Int64\(\-80\) \+ Int64\(14\)\) THEN count\(\*\) ELSE nullif\(Int64\(\-44\), max\(Int64\(\-70\)\)\) \* Int64\(66\) END\), Int64\(96\) \* Int64\(88\)\)\) \* coalesce\(Int64\(22\), Int64\(88\) \* count\(\*\)\) AS col0" at position 1 have 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\(\-72\)\) \* Int64\(\-34\) AS col0" at position 0 and "Int64\(13\) \- \(\- coalesce\(\(\- CASE Int64\(64\) WHEN Int64\(\-27\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-80\) \+ Int64\(14\)\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE nullif\(Int64\(\-44\), max\(Int64\(\-70\)\)\) \* Int64\(66\) END\), Int64\(96\) \* Int64\(88\)\)\) \* coalesce\(Int64\(22\), Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MAX ( - 72 ) * - 34 AS col0, + ( + + 13 ) - - COALESCE ( - CASE 64 WHEN - 27 + COALESCE ( COUNT ( * ), - 80 + 14 ) THEN + COUNT ( * ) ELSE NULLIF ( - 44, + MAX ( - 70 ) ) * 66 END, 96 * 88 ) * COALESCE ( 22, 88 * COUNT ( * ) ) AS col0 query I rowsort label-2285 @@ -12426,7 +12426,7 @@ SELECT DISTINCT + NULLIF ( + 0, 93 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(12\) 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\(\*\)\) \* Int64\(12\) 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 ( * ) * 12 col1, + 92 AS col1 query I rowsort label-2367 @@ -13311,7 +13311,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\(\*\) 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 @@ -13660,7 +13660,7 @@ SELECT 92 + COUNT ( + - 53 ) + + - 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(49\) / Int64\(\-23\) AS col0" at position 0 and "Int64\(\-23\) / Int64\(\-41\) \* 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\(\*\) \* Int64\(49\) / Int64\(\-23\) AS col0" at position 0 and "Int64\(\-23\) / Int64\(\-41\) \* Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 49 / - 23 AS col0, - 23 / - 41 * - 67 AS col0 query II rowsort label-2602 @@ -14895,7 +14895,7 @@ SELECT DISTINCT 89 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) * + + 77 + 61 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 ) col0 query I rowsort @@ -15527,7 +15527,7 @@ SELECT - 82 * 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 74 -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\(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\(31\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 AS col1, COUNT ( * ) + + 73 col1 query I rowsort label-2955 @@ -16307,7 +16307,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 \(\- count\(\*\)\) WHEN Int64\(89\) THEN \(\- Int64\(36\)\) \* Int64\(\-33\) \* Int64\(11\) \* Int64\(96\) \+ Int64\(\-86\) \+ Int64\(\-36\) END AS col0" at position 0 and "\(\- nullif\(count\(\*\), Int64\(73\) \+ 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 "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(89\) THEN \(\- Int64\(36\)\) \* Int64\(\-33\) \* Int64\(11\) \* Int64\(96\) \+ Int64\(\-86\) \+ Int64\(\-36\) END AS col0" at position 0 and "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(73\) \+ Int64\(2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - COUNT ( * ) WHEN + 89 THEN - + 36 * - 33 * 11 * 96 + - 86 + - 36 END AS col0, - NULLIF ( COUNT ( * ), 73 + + 2 ) AS col0 query I rowsort @@ -17772,7 +17772,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\(\*\) 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 @@ -18258,7 +18258,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(42\)\) AS col1" at position 0 and "\(\- min\(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\(\*\)\) \* \(\- Int64\(42\)\) AS col1" at position 0 and "\(\- min\(Int64\(36\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) * - + 42 AS col1, - MIN ( ALL 36 ) AS col1 query I rowsort label-3475 @@ -22042,7 +22042,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(\*\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 * + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * 86 AS col1 query II rowsort label-4196 @@ -22973,7 +22973,7 @@ SELECT 39, - 52 / + 78 * - 97 * + - COUNT ( * ) AS 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\(\*\)\) 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 I rowsort label-4372 @@ -23471,7 +23471,7 @@ SELECT ALL + 61 * - 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4689 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(NULL AS Int32\) WHEN \(\- CAST\(Int64\(\-13\) AS Float64\)\) \+ Int64\(\-79\) \* Int64\(28\) \+ Int64\(91\) THEN NULL WHEN count\(\*\) THEN \(\- Int64\(16\)\) WHEN Int64\(\-45\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END\) AS col2" at position 0 and "Int64\(41\) \* Int64\(24\) \+ Int64\(97\) \+ Int64\(86\) \* Int64\(42\) \+ CAST\(Int64\(\-8\) AS Int32\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(NULL AS Int32\) WHEN \(\- CAST\(Int64\(\-13\) AS Float64\)\) \+ Int64\(\-79\) \* Int64\(28\) \+ Int64\(91\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(16\)\) WHEN Int64\(\-45\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END\) AS col2" at position 0 and "Int64\(41\) \* Int64\(24\) \+ Int64\(97\) \+ Int64\(86\) \* Int64\(42\) \+ CAST\(Int64\(\-8\) AS Int32\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + ( + - CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( - 13 AS FLOAT8 ) + - 79 * + 28 + + 91 THEN NULL WHEN + COUNT ( * ) THEN - + 16 WHEN - 45 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END ) ) AS col2, 41 * + 24 + + 97 + + 86 * 42 + CAST ( - 8 AS INTEGER ) - + - 4 AS col2 query II rowsort label-4467 @@ -24533,7 +24533,7 @@ SELECT DISTINCT COUNT ( * ) * + 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(38\) 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\(\*\) \+ Int64\(38\) 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 ( * ) + + 38 col0, 53 col0 query I rowsort label-4669 @@ -25458,7 +25458,7 @@ SELECT ALL - - 3 * - 11 * - MIN ( - 31 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ count\(Int64\(73\)\) 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\(73\)\) 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 ( ALL 73 ) AS col1, 61 col1 query II rowsort label-4840 @@ -25475,7 +25475,7 @@ SELECT DISTINCT - + 36 + + - 6 - 52 * + COUNT ( * ) + - 24 + - + 50 + + 36 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "\(\- CASE count\(\*\) WHEN Int64\(76\) THEN Int64\(35\) WHEN Int64\(24\) THEN NULL WHEN Int64\(19\) THEN NULL ELSE Int64\(\-27\) END\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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 "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(76\) THEN Int64\(35\) WHEN Int64\(24\) THEN NULL WHEN Int64\(19\) THEN NULL ELSE Int64\(\-27\) END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 23 AS col0, - CASE + + COUNT ( * ) WHEN 76 THEN 35 WHEN + + 24 THEN NULL WHEN + 19 THEN NULL ELSE - 27 END * - COUNT ( * ) AS col0 query I rowsort label-4843 @@ -25895,7 +25895,7 @@ SELECT NULLIF ( 2, - - ( - 32 ) * + + 34 * + COUNT ( - - 50 ) + 35 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -231143 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(\-52\) \* \(\- count\(\*\)\) \* \(\- sum\(Int64\(78\)\)\) \+ Int64\(49\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(\-52\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- sum\(Int64\(78\)\)\) \+ Int64\(49\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 57 ) * - 52 * - COUNT ( * ) * - SUM ( + + 78 ) + 49 AS col0, ( 64 ) AS col0 query II rowsort label-4922 @@ -26305,7 +26305,7 @@ SELECT 17 + + COUNT ( * ) - + 86 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(37\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(3\) \+ \(\- \(\- max\(Int64\(26\)\)\)\) \+ Int64\(\-83\) \* Int64\(\-54\) \+ Int64\(53\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(37\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(3\) \+ \(\- \(\- max\(Int64\(26\)\)\)\) \+ Int64\(\-83\) \* Int64\(\-54\) \+ Int64\(53\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) - + 37 - - - CAST ( NULL AS INTEGER ) * + + 3 + - - MAX ( 26 ) + - 83 * - 54 + 53 AS col2, 19 AS col2, + - 25 + - CAST ( COUNT ( * ) AS INTEGER ) * 74 AS col2 query I rowsort @@ -26363,7 +26363,7 @@ SELECT ALL ( - COUNT ( * ) ) + - - 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 360 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* Int64\(\-4\) AS col0" at position 0 and "\(\- CASE \(\- \(\- count\(\*\)\)\) WHEN Int64\(46\) THEN \(\- Int64\(59\)\) END\) \* \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* Int64\(\-4\) AS col0" at position 0 and "\(\- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(46\) THEN \(\- Int64\(59\)\) END\) \* \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 * - 4 col0, - CASE - - COUNT ( * ) WHEN + 46 THEN - + 59 END * - - 38 AS col0 query I rowsort @@ -29385,7 +29385,7 @@ SELECT ALL + 14 * + - 68 + + + 20 + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \- Int64\(88\) \* \(\- coalesce\(\(\- count\(\*\)\), Int64\(98\) \+ \(\- count\(\*\)\), Int64\(90\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \- Int64\(88\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(98\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(90\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 AS col1, - CAST ( NULL AS FLOAT8 ) - + 88 * - COALESCE ( - COUNT ( * ), 98 + - COUNT ( * ), + 90 ) AS col1 query I rowsort @@ -29675,7 +29675,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\(\*\) 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 @@ -31192,7 +31192,7 @@ SELECT + ( + 78 ) AS col1, - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(14\) AS col1" at position 0 and "count\(\*\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(14\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 3 / + 14 AS col1, COUNT ( * ) * + 44 AS col1 query I rowsort label-5936 @@ -32258,7 +32258,7 @@ SELECT CAST ( + 68 AS INTEGER ) * + - 78 + 87 * - 60 # 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\(\*\) / \(\- nullif\(Int64\(\-13\), Int64\(12\)\)\) AS col1" at position 0 and "Int64\(\-80\) / 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\(\*\) / \(\- nullif\(Int64\(\-13\), Int64\(12\)\)\) AS col1" at position 0 and "Int64\(\-80\) / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / - + NULLIF ( - 13, + 12 ) AS col1, - 80 / + 52 AS col1 query I rowsort label-6141 @@ -33725,7 +33725,7 @@ SELECT + ( + 42 ) * 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) / \(\- count\(\*\)\) \+ Int64\(17\) \+ \(\- \(\- coalesce\(Int64\(78\), sum\(\(\- \(\- Int64\(\-47\)\)\)\), \(\- nullif\(Int64\(24\), Int64\(75\) \- nullif\(Int64\(22\), Int64\(9\)\)\)\)\)\)\) AS col1" at position 0 and "\(\- Int64\(\-6\)\) \* Int64\(\-93\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(17\) \+ \(\- \(\- coalesce\(Int64\(78\), sum\(\(\- \(\- Int64\(\-47\)\)\)\), \(\- nullif\(Int64\(24\), Int64\(75\) \- nullif\(Int64\(22\), Int64\(9\)\)\)\)\)\)\) AS col1" at position 0 and "\(\- Int64\(\-6\)\) \* Int64\(\-93\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 15 ) / - + COUNT ( * ) + 17 + - - COALESCE ( 78, + SUM ( ALL - ( - - 47 ) ), - + ( + + NULLIF ( + 24, 75 - + NULLIF ( ( 22 ), + 9 ) ) ) ) AS col1, - ( - 6 ) * + - 93 + - 0 AS col1 query I rowsort @@ -35330,7 +35330,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\(\*\) AS col2" at position 0 and "Int64\(\-98\) \* nullif\(\(\- Int64\(\-52\)\), count\(\*\) \* \(\- 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 @@ -35581,7 +35581,7 @@ SELECT - NULLIF ( ( + 12 ), - 84 ) AS col2 # Datafusion - Expected - 72 # Datafusion - Expected - -16 # 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\(\*\)\) \* sum\(Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 AS col2, - COUNT ( * ) * + SUM ( + 16 ) col2, + COUNT ( DISTINCT 1 ) AS col0 query II rowsort @@ -37816,7 +37816,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\(\*\) AS col1" at position 1 have the 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 @@ -38109,7 +38109,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\(\*\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-30\) \+ Int64\(3\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -39027,7 +39027,7 @@ SELECT 54 + + 57 + + 13 + + + 66 * + + 65 AS col0 # Datafusion - Expected - -1080 # Datafusion - Expected - 72 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* count\(\*\) \* Int64\(\-45\) AS col2" at position 0 and "Int64\(53\) \+ \(\- 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 "Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-45\) AS col2" at position 0 and "Int64\(53\) \+ \(\- Int64\(89\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 * COUNT ( * ) * - 45 AS col2, 72 AS col0, 53 + - + 89 col2 # Datafusion - Datafusion expected results: @@ -39306,7 +39306,7 @@ SELECT CASE + 70 WHEN - 94 * + 2 + - - MAX ( 70 ) THEN - 96 WHEN - 47 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 161 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-78\) \+ Int64\(83\) AS col1" at position 0 and "\(\- Int64\(\-46\)\) \+ nullif\(Int64\(43\), Int64\(\-62\) \* CAST\(NULL AS Int32\) \* Int64\(82\) \+ Int64\(\-34\) \* Int64\(33\) \+ Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-78\) \+ Int64\(83\) AS col1" at position 0 and "\(\- Int64\(\-46\)\) \+ nullif\(Int64\(43\), Int64\(\-62\) \* CAST\(NULL AS Int32\) \* Int64\(82\) \+ Int64\(\-34\) \* Int64\(33\) \+ Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + - 78 + + 83 AS col1, - ( - 46 ) + NULLIF ( + 43, - 62 * CAST ( NULL AS INTEGER ) * 82 + - 34 * + 33 + + ( + 47 ) ) AS col1 query I rowsort label-7481 @@ -39639,7 +39639,7 @@ SELECT ALL ( - 5 ) * - 2 col0 # Datafusion - Expected - -29 # Datafusion - Expected - 144 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) \- Int64\(\-97\) \+ Int64\(35\) \- Int64\(68\) \+ \(\- 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 "\(\- Int64\(92\)\) \- Int64\(\-97\) \+ Int64\(35\) \- Int64\(68\) \+ \(\- 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 - ( 92 ) - + - 97 + + 35 - ( + 68 ) + - + COUNT ( * ) AS col0, + ( - 18 ) * - 8, - 7 AS col0 # Datafusion - Datafusion expected results: @@ -40069,7 +40069,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\(\*\) AS col1" at position 1 have the 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 @@ -40181,7 +40181,7 @@ SELECT ALL + 9 - + + 91 + + 78 + - + 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "nullif\(count\(\*\), Int64\(\-17\)\) \* 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\(36\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-17\)\) \* Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 36 AS col1, NULLIF ( + COUNT ( * ), + - 17 ) * - 85 col1 query I rowsort @@ -40709,7 +40709,7 @@ SELECT 67 + + + COALESCE ( - - 70, 73 ) * - NULLIF ( + 16, 92 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "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\(11\) 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 + + 11 AS col1, COUNT ( * ) / + 55 col1 query I rowsort @@ -41610,7 +41610,7 @@ SELECT ALL + - COUNT ( * ) + + 47 AS col1, + ( 25 ) + + 62 - MAX ( DISTINCT + + # Datafusion - Expected - -59 # Datafusion - Expected - -73 # Datafusion - Expected - 19 -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\(29\) / min\(\(\- Int64\(85\)\)\) \+ \(\- 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\(\-59\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) / min\(\(\- Int64\(85\)\)\) \+ \(\- Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 59 ) AS col1, COUNT ( * ) * 29 / + MIN ( ALL - + 85 ) + - + 73 AS col1, 19 AS col0 query I rowsort @@ -44025,7 +44025,7 @@ SELECT + 19 / + 59 * + + MAX ( + ( CAST ( + - 10 AS INTEGER ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- count\(\*\)\) \+ \(\- Int64\(\-33\)\) / Int64\(40\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-33\)\) / Int64\(40\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 58 * - COUNT ( * ) + - - 33 / + 40 AS col1, + 89 AS col1 query I rowsort @@ -45846,7 +45846,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\(\*\) \* min\(Int64\(34\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -46413,7 +46413,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\(\*\) 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 @@ -46709,7 +46709,7 @@ SELECT - 8 + 79 AS col0 # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 - + 84 AS col0, ( - COUNT ( * ) ) col0, - - 11 + - 97 * - COUNT ( * ) * + 43 * + 27 - - CAST ( NULL AS INTEGER ) + + ( - 63 ) AS col0 query I rowsort @@ -46765,7 +46765,7 @@ SELECT ALL + 19 + - 96 + + + 5 + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2170 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-62\)\) \* Int64\(35\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-3\), \(\- CASE count\(\*\) WHEN avg\(\(\- Int64\(97\)\)\) \+ Int64\(\-80\) THEN Int64\(89\) \* CAST\(NULL AS Float64\) \+ Int64\(\-68\) / Int64\(57\) 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\(Int64\(\-62\)\) \* Int64\(35\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-3\), \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN avg\(\(\- Int64\(97\)\)\) \+ Int64\(\-80\) THEN Int64\(89\) \* CAST\(NULL AS Float64\) \+ Int64\(\-68\) / Int64\(57\) ELSE NULL END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MIN ( ALL + - 62 ) * 35 AS col2, - NULLIF ( - 3, - CASE COUNT ( * ) WHEN + AVG ( - + 97 ) + - 80 THEN + 89 * + CAST ( NULL AS FLOAT8 ) + - 68 / + 57 ELSE NULL END ) AS col2 query I rowsort label-8910 @@ -47458,7 +47458,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\(\*\) 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 @@ -47805,7 +47805,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\(\*\) AS col2" at position 1 have the 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 @@ -47894,7 +47894,7 @@ SELECT DISTINCT - COUNT ( ALL + + 39 ) * + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-50\)\) AS col2" at position 0 and "Int64\(63\) \+ count\(\*\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-50\)\) AS col2" at position 0 and "Int64\(63\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - 50 ) col2, 63 + + COUNT ( * ) * 66 AS col2 query I rowsort @@ -49434,7 +49434,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -1980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "\(\- nullif\(Int64\(11\), coalesce\(CAST\(Int64\(33\) AS Int32\), Int64\(68\) \* Int64\(\-21\) \+ Int64\(\-27\) \+ Int64\(82\)\)\)\) \* coalesce\(CASE \(\- max\(Int64\(76\)\)\) WHEN Int64\(81\) THEN \(\- count\(Int64\(77\)\)\) \+ count\(\*\) ELSE CASE \(\- Int64\(9\)\) WHEN Int64\(61\) THEN NULL WHEN Int64\(\-37\) THEN Int64\(96\) \+ Int64\(20\) \+ CAST\(NULL AS Int32\) END \- Int64\(\-61\) \+ Int64\(84\) END, Int64\(94\) \+ Int64\(86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "\(\- nullif\(Int64\(11\), coalesce\(CAST\(Int64\(33\) AS Int32\), Int64\(68\) \* Int64\(\-21\) \+ Int64\(\-27\) \+ Int64\(82\)\)\)\) \* coalesce\(CASE \(\- max\(Int64\(76\)\)\) WHEN Int64\(81\) THEN \(\- count\(Int64\(77\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) ELSE CASE \(\- Int64\(9\)\) WHEN Int64\(61\) THEN NULL WHEN Int64\(\-37\) THEN Int64\(96\) \+ Int64\(20\) \+ CAST\(NULL AS Int32\) END \- Int64\(\-61\) \+ Int64\(84\) END, Int64\(94\) \+ Int64\(86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col0, - NULLIF ( 11, COALESCE ( CAST ( 33 AS INTEGER ), 68 * - 21 + + - 27 + 82 ) ) * COALESCE ( + CASE - MAX ( + 76 ) WHEN + 81 THEN - COUNT ( ALL 77 ) + + COUNT ( * ) ELSE CASE + - ( 9 ) WHEN + ( + 61 ) THEN NULL WHEN - 37 THEN 96 + 20 + CAST ( NULL AS INTEGER ) END - + ( - 61 + 84 ) END, 94 + 86 ) AS col0 query I rowsort label-9420 @@ -49503,7 +49503,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\(\*\) AS col2" at position 1 have the 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 @@ -50076,7 +50076,7 @@ SELECT + 33 * - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4878 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(68\) \+ \(\- Int64\(\-50\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(68\) \+ \(\- 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 71 * 68 + - - 50 AS col1, - COUNT ( * ) AS col1 query I rowsort label-9542 @@ -50170,7 +50170,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\(\*\) 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 @@ -50412,7 +50412,7 @@ SELECT ALL ( ( - 35 ) ) * 66 * - - 93 + + ( - + CAST ( - 31 AS INTEGER ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2922 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* Int64\(52\) \+ Int64\(42\) \* count\(\(\- Int64\(5\)\)\) AS col2" at position 0 and "count\(\*\) \+ coalesce\(count\(\*\), Int64\(13\) \+ 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\(\-57\) \* Int64\(52\) \+ Int64\(42\) \* count\(\(\- Int64\(5\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(13\) \+ Int64\(67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 57 * + 52 + + + 42 * + + COUNT ( - + 5 ) AS col2, COUNT ( * ) + COALESCE ( + COUNT ( * ), + 13 + + 67 ) AS col2 query I rowsort @@ -51832,7 +51832,7 @@ SELECT ALL 18 - + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -1059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "CASE \(\- Int64\(38\)\) WHEN Int64\(\-68\) \* Int64\(18\) THEN CAST\(Int64\(\-61\) AS Int32\) WHEN Int64\(99\) THEN \(\- Int64\(6\)\) ELSE \(\- coalesce\(Int64\(49\), Int64\(94\), Int64\(\-14\), Int64\(51\) \* \(\- count\(\*\)\)\)\) \- \(\- Int64\(23\)\) \+ count\(\*\) / Int64\(\-50\) END \* Int64\(38\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "CASE \(\- Int64\(38\)\) WHEN Int64\(\-68\) \* Int64\(18\) THEN CAST\(Int64\(\-61\) AS Int32\) WHEN Int64\(99\) THEN \(\- Int64\(6\)\) ELSE \(\- coalesce\(Int64\(49\), Int64\(94\), Int64\(\-14\), Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- \(\- Int64\(23\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-50\) END \* Int64\(38\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 56 col0, + CASE - + ( 38 ) WHEN - 68 * + 18 THEN + CAST ( - 61 AS INTEGER ) WHEN 99 THEN - ( + 6 ) ELSE - + COALESCE ( + + 49, 94, - 14, + + 51 * + - COUNT ( * ) ) - - + 23 + + COUNT ( * ) / - 50 END * + + 38 + - 71 col0 query I rowsort label-9878 @@ -52333,7 +52333,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 ba060bf..f98a248 100644 --- a/data/sqlite/random/expr/slt_good_110.slt +++ b/data/sqlite/random/expr/slt_good_110.slt @@ -190,7 +190,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4316 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-83\)\) \* Int64\(\-52\) AS col2" at position 0 and "nullif\(Int64\(20\), \(\- CASE Int64\(0\) WHEN count\(Int64\(14\)\) THEN Int64\(15\) \* count\(\*\) \+ Int64\(87\) WHEN Int64\(37\) \+ avg\(DISTINCT Int64\(3\)\) \* Int64\(72\) 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\(\-83\)\) \* Int64\(\-52\) AS col2" at position 0 and "nullif\(Int64\(20\), \(\- CASE Int64\(0\) WHEN count\(Int64\(14\)\) THEN Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) WHEN Int64\(37\) \+ avg\(DISTINCT Int64\(3\)\) \* Int64\(72\) THEN NULL ELSE NULL END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 83 * - 52 AS col2, NULLIF ( 20, - CASE 0 WHEN + COUNT ( 14 ) THEN 15 * + COUNT ( * ) + 87 WHEN 37 + + AVG ( DISTINCT 3 ) * 72 THEN NULL ELSE NULL END ) AS col2 query I rowsort label-30 @@ -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\(\*\) AS col0" at position 1 have the 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 @@ -658,7 +658,7 @@ SELECT 42 * - 68 * + CAST ( + 6 AS INTEGER ) + - - 75 + + COUNT ( * ) * COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -6574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(97\) \* count\(\*\) \* Int64\(\-68\) \+ 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\(80\) AS col0" at position 0 and "Int64\(97\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-68\) \+ Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 AS col0, 97 * COUNT ( * ) * - 68 + + 22 AS col0 query I rowsort label-120 @@ -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\(\*\) AS col1" at position 1 have the 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\(\*\) 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 @@ -1529,7 +1529,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 34 -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\(33\) \+ Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\) \+ Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 58 AS col0, COUNT ( * ) * 33 + + 1 AS col0 query I rowsort @@ -1725,7 +1725,7 @@ SELECT - COUNT ( * ) + 24 / + 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -53 -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\(\-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\(\-70\)\) 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 - ( - 70 ) AS col1, + COUNT ( * ) + - 54 AS col1 query I rowsort @@ -1830,7 +1830,7 @@ SELECT - 50 * 71 + 20 * + - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* count\(\*\) \+ \(\- Int64\(82\)\) 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\(45\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(82\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45 * + COUNT ( * ) + - + 82 AS col2, 97 AS col2 # Datafusion - Types were automatically converted from: @@ -2189,7 +2189,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\(\*\) AS col2" at position 1 have the 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 @@ -2390,7 +2390,7 @@ SELECT - 12 * - + COUNT ( * ) / COALESCE ( COUNT ( * ), CAST ( + 72 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(14\) 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\(\*\) \* Int64\(14\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + ( + 14 ) col0, 67 AS col0 query I rowsort label-451 @@ -3534,7 +3534,7 @@ SELECT DISTINCT 46 / - 73 AS col2, 94 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(92\) AS col2" at position 0 and "CASE nullif\(Int64\(\-12\), coalesce\(count\(\*\), \(\- coalesce\(sum\(Int64\(\-82\)\), CASE \(\- Int64\(95\)\) WHEN Int64\(65\) THEN Int64\(\-93\) \+ \(\- min\(Int64\(23\)\)\) \+ CAST\(count\(Int64\(34\)\) AS Int32\) \* Int64\(\-18\) \- Int64\(\-78\) ELSE Int64\(80\) END\)\)\)\) WHEN Int64\(21\) THEN CASE Int64\(\-96\) WHEN Int64\(69\) \* Int64\(\-72\) THEN count\(Int64\(\-34\)\) \* Int64\(47\) WHEN Int64\(84\) \+ Int64\(82\) THEN NULL ELSE NULL END \* Int64\(10\) \+ Int64\(\-1\) \* Int64\(43\) ELSE Int64\(22\) END \* \(\- nullif\(Int64\(3\), Int64\(82\) \+ Int64\(8\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(92\) AS col2" at position 0 and "CASE nullif\(Int64\(\-12\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- coalesce\(sum\(Int64\(\-82\)\), CASE \(\- Int64\(95\)\) WHEN Int64\(65\) THEN Int64\(\-93\) \+ \(\- min\(Int64\(23\)\)\) \+ CAST\(count\(Int64\(34\)\) AS Int32\) \* Int64\(\-18\) \- Int64\(\-78\) ELSE Int64\(80\) END\)\)\)\) WHEN Int64\(21\) THEN CASE Int64\(\-96\) WHEN Int64\(69\) \* Int64\(\-72\) THEN count\(Int64\(\-34\)\) \* Int64\(47\) WHEN Int64\(84\) \+ Int64\(82\) THEN NULL ELSE NULL END \* Int64\(10\) \+ Int64\(\-1\) \* Int64\(43\) ELSE Int64\(22\) END \* \(\- nullif\(Int64\(3\), Int64\(82\) \+ Int64\(8\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 + + 92 AS col2, CASE + NULLIF ( + ( - 12 ), + COALESCE ( + COUNT ( * ), - COALESCE ( + SUM ( + - 82 ), + CASE - + 95 WHEN 65 THEN - 93 + + - MIN ( ALL 23 ) + + CAST ( + COUNT ( 34 ) AS INTEGER ) * - 18 - - 78 ELSE + + 80 END ) ) ) WHEN 21 THEN CASE - 96 WHEN ( + 69 ) * - 72 THEN COUNT ( - 34 ) * 47 WHEN + 84 + + 82 THEN NULL ELSE NULL END * + 10 + - 1 * + ( 43 ) ELSE + 22 END * - ( + NULLIF ( 3, 82 + + 8 ) ) AS col2 query I rowsort @@ -3719,7 +3719,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\(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\(\*\) \+ count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -4185,7 +4185,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\(\*\) 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 @@ -4847,7 +4847,7 @@ SELECT ALL + COUNT ( ALL - 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -682 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(48\) \+ Int64\(87\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(\-45\)\) / Int64\(\-80\) \* \(\- Int64\(\-65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(48\) \+ Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(\-45\)\) / Int64\(\-80\) \* \(\- Int64\(\-65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 * + 48 + 87 + - + COUNT ( * ) AS col2, MAX ( DISTINCT - 45 ) / - 80 * - - 65 AS col2 query I rowsort label-915 @@ -5548,7 +5548,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -400 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-87\) \+ \(\- min\(DISTINCT CAST\(NULL AS Int32\)\)\) \+ Int64\(31\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-87\) \+ \(\- min\(DISTINCT CAST\(NULL AS Int32\)\)\) \+ Int64\(31\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col1, 10 * + - 40, - 87 + - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + + 31 AS col1 query I rowsort @@ -5704,7 +5704,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\(\*\) 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 @@ -7618,7 +7618,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\(\*\) 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 @@ -10216,7 +10216,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(64\) \+ \(\- nullif\(Int64\(39\), \(\- count\(\*\)\) \* Int64\(62\) \- count\(\*\) \+ Int64\(\-45\) \* Int64\(46\) \* Int64\(\-75\)\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(64\) \+ \(\- nullif\(Int64\(39\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(62\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-45\) \* Int64\(46\) \* Int64\(\-75\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 + + + 64 + + - NULLIF ( + 39, + - COUNT ( * ) * + 62 - COUNT ( * ) + + - 45 * + + 46 * + - 75 ) AS col2, + COUNT ( * ) * 18 AS col2 query I rowsort label-1941 @@ -10904,7 +10904,7 @@ SELECT ALL - 93 * - + 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1782 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(\-96\) \+ Int64\(77\) \* Int64\(22\) \- Int64\(9\) 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\(\*\) \- Int64\(\-96\) \+ Int64\(77\) \* Int64\(22\) \- Int64\(9\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + COUNT ( * ) ) - - 96 + + + 77 * 22 - 9 AS col0, 0 AS col0 query II rowsort label-2071 @@ -11528,7 +11528,7 @@ SELECT ALL + 48 * - 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- \(\- count\(\*\)\) \+ \(\- Int64\(\-7\)\) / Int64\(\-33\) \+ Int64\(17\) \+ Int64\(\-62\) 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 "Int64\(18\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-7\)\) / Int64\(\-33\) \+ Int64\(17\) \+ Int64\(\-62\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 18 - - COUNT ( * ) + - - 7 / - 33 + 17 + - 62 AS col2, + 91 AS col2 query I rowsort @@ -11733,7 +11733,7 @@ SELECT ALL + 44 + - 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 940 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(count\(\*\), Int64\(44\)\)\) \+ Int64\(\-82\) AS col0" at position 0 and "Int64\(10\) \* 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 "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(44\)\)\) \+ Int64\(\-82\) AS col0" at position 0 and "Int64\(10\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( + COUNT ( * ), 44 ) + - 82 AS col0, 10 * + 94 AS col0 query I rowsort @@ -13827,7 +13827,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\(\*\) AS col1" at position 1 have the 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 @@ -13930,7 +13930,7 @@ SELECT ALL - + NULLIF ( + - 7, + 48 * + ( 13 ) + + 21 + - 70 / + 77 ) + + + 34 - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- count\(\*\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- \(\- sum\(Int64\(68\)\)\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- \(\- sum\(Int64\(68\)\)\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col2, - ( + ( - SUM ( ALL + + 68 ) ) ) * + - 0 AS col2 query II rowsort @@ -14048,7 +14048,7 @@ SELECT NULLIF ( - - 83, - COUNT ( * ) ) + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(13\), count\(\*\) \* Int64\(47\) \+ Int64\(54\), \(\- \(\- nullif\(Int64\(2\), Int64\(\-52\) \* Int64\(35\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\)\)\) \+ Int64\(43\) \- Int64\(14\) \- Int64\(98\) \* Int64\(90\) \* Int64\(\-7\) \* \(\- Int64\(75\)\) \* \(\- Int64\(16\)\)\)\) \* Int64\(\-5\) \+ Int64\(\-56\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-73\)\), count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(13\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) \+ Int64\(54\), \(\- \(\- nullif\(Int64\(2\), Int64\(\-52\) \* Int64\(35\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\)\)\) \+ Int64\(43\) \- Int64\(14\) \- Int64\(98\) \* Int64\(90\) \* Int64\(\-7\) \* \(\- Int64\(75\)\) \* \(\- Int64\(16\)\)\)\) \* Int64\(\-5\) \+ Int64\(\-56\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-73\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + 13, + + COUNT ( * ) * 47 + + 54, - - NULLIF ( 2, - 52 * 35 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 43 - + + 14 - + 98 * 90 * - 7 * - ( + 75 ) * - + 16 ) * ( - 5 ) + - 56 col1, + NULLIF ( - - 73, COUNT ( * ) ) AS col1 # Datafusion - Types were automatically converted from: @@ -14713,7 +14713,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\(\-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\(\*\) AS col0" at position 1 have 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 @@ -14753,7 +14753,7 @@ SELECT ALL - 94 + - 53 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 0 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-84\)\) AS col0" at position 0 and "\(\- 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\(DISTINCT Int64\(\-84\)\) 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 ( DISTINCT + - 84 ) AS col0, + 58 / - 55 + COUNT ( * ) AS col2, - COUNT ( * ) AS col0 query I rowsort @@ -15101,7 +15101,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\(\*\) AS col0" at position 1 have the 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 @@ -15851,7 +15851,7 @@ SELECT DISTINCT - 64 col0, + 95 + + 97 - - 39 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 query I rowsort @@ -16138,7 +16138,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -18341,7 +18341,7 @@ SELECT + 94 * + - CASE - AVG ( DISTINCT ( + 89 ) ) WHEN + + 69 * - 75 THEN 34 EL # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-80\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-80\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + - 80 AS col0, + 64 AS col0 query I rowsort label-3486 @@ -18399,7 +18399,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\(\*\) AS col2" at position 1 have the 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 @@ -20405,7 +20405,7 @@ SELECT ALL - 11 - + 25 / ( + 85 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2576 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(\*\) WHEN Int64\(56\) THEN CASE Int64\(\-77\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN NULL WHEN Int64\(2\) THEN \(\- Int64\(62\)\) \* Int64\(85\) \* \(\- Int64\(35\)\) ELSE \(\- Int64\(\-37\)\) \* Int64\(51\) \+ Int64\(75\) / Int64\(72\) END WHEN Int64\(85\) THEN NULL ELSE Int64\(28\) END \* Int64\(\-92\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(56\) THEN CASE Int64\(\-77\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN NULL WHEN Int64\(2\) THEN \(\- Int64\(62\)\) \* Int64\(85\) \* \(\- Int64\(35\)\) ELSE \(\- Int64\(\-37\)\) \* Int64\(51\) \+ Int64\(75\) / Int64\(72\) END WHEN Int64\(85\) THEN NULL ELSE Int64\(28\) END \* Int64\(\-92\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + + ( + COUNT ( * ) ) WHEN 56 THEN + CASE - 77 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 2 THEN - + 62 * + 85 * - ( + 35 ) ELSE - - 37 * 51 + + + 75 / 72 END WHEN + 85 THEN NULL ELSE 28 END * - 92 AS col0, 0 AS col0 query I rowsort label-3878 @@ -20755,7 +20755,7 @@ SELECT ALL NULLIF ( - - 38, COUNT ( DISTINCT + 83 ) + + 49 ) * + - 47 * - + 99 # Datafusion - Expected - 12 # Datafusion - Expected - 4973 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(12\), Int64\(79\)\) AS col1" at position 0 and "count\(\*\) \+ 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 "nullif\(Int64\(12\), Int64\(79\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + NULLIF ( + 12, 79 ) AS col1, - 50 * - + 98 + 73, + + COUNT ( * ) + - 98 AS col1 query II rowsort label-3945 @@ -22431,7 +22431,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\(\*\) 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 @@ -23859,7 +23859,7 @@ SELECT DISTINCT 86 AS col1, - 79 - + 44 * - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(94\) \* Int64\(83\) \* \(\- CASE count\(\*\) WHEN count\(\*\) \* Int64\(\-93\) THEN count\(\*\) 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\(37\) AS col0" at position 0 and "Int64\(94\) \* Int64\(83\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-93\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 37 AS col0, 94 * 83 * - CASE COUNT ( * ) WHEN + COUNT ( * ) * - 93 THEN COUNT ( * ) ELSE NULL END AS col0 query I rowsort label-4539 @@ -24069,7 +24069,7 @@ SELECT DISTINCT + 52 + 93 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -34650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-66\) \* \(\- Int64\(\-25\)\) \* 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\(\-66\) \* \(\- Int64\(\-25\)\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( COUNT ( * ) ) AS col2, - 66 * - - 25 * 21 AS col2 query I rowsort label-4579 @@ -26412,7 +26412,7 @@ SELECT ( - 85 ) * - COALESCE ( - - 38, COUNT ( * ), MAX ( + + 27 ) ) * + - 82 co # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 6675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(75\) \* 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\(75\) \* Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, + 75 * 89 AS col2 query I rowsort label-5032 @@ -26495,7 +26495,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\(\*\) 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 @@ -27161,7 +27161,7 @@ SELECT - 13 * + 86 - - - 73 # Datafusion - Expected - -4187 # Datafusion - Expected - -78 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(0\) \- \(\- count\(\*\)\) \* Int64\(\-45\) \* \(\- count\(\*\)\) \* Int64\(\-95\) AS col2" at position 0 and "Int64\(\-25\) 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\(88\) \+ Int64\(0\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-45\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-95\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 88 + - 0 - - COUNT ( * ) * - 45 * - COUNT ( * ) * ( - 95 ) AS col2, - 78, + - 25 col2 query I rowsort @@ -27807,7 +27807,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\(\*\) 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 @@ -28400,7 +28400,7 @@ SELECT ALL 79 * + - 97 * - 46 * + ( 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(76\)\) 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\(\*\) \+ \(\- Int64\(76\)\) AS col2" at position 0 and "Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + - + 76 AS col2, + ( + ( - 66 ) ) AS col2 query I rowsort label-5411 @@ -29076,7 +29076,7 @@ SELECT 28 * ( - + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -5544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(66\) \* Int64\(\-84\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 "Int64\(66\) \* Int64\(\-84\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 52 col0, 66 * - 84 * - - COUNT ( * ) AS col0 query I rowsort label-5539 @@ -29377,7 +29377,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 152421 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(\*\)\), \(\- count\(\*\)\), Int64\(38\) \+ Int64\(60\)\) AS col2" at position 0 and "Int64\(\-69\) \* \(\- Int64\(47\)\) \* \(\- 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 "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(38\) \+ Int64\(60\)\) AS col2" at position 0 and "Int64\(\-69\) \* \(\- Int64\(47\)\) \* \(\- Int64\(\-47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( - COUNT ( * ), - COUNT ( * ), 38 + 60 ) AS col2, - 69 * - ( 47 ) * - - 47 AS col2 query I rowsort @@ -30354,7 +30354,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\(\*\) 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 @@ -30548,7 +30548,7 @@ SELECT ( 12 ) * + 93 + - 77 * + ( + + COUNT ( * ) ) * + - COUNT ( * ) * + 83 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(23\), count\(\(\- Int64\(\-21\)\)\) \* Int64\(5\) \+ count\(\*\) \* Int64\(44\)\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(23\), count\(\(\- Int64\(\-21\)\)\) \* Int64\(5\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\)\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + NULLIF ( 23, COUNT ( - - 21 ) * 5 + COUNT ( * ) * 44 ) AS col0, 70 AS col0 query I rowsort @@ -31042,7 +31042,7 @@ SELECT + 16 / - - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 2689 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "count\(\*\) \+ max\(Int64\(99\)\) \+ Int64\(29\) \+ \(\- Int64\(\-80\)\) \* \(\- 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\(51\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(99\)\) \+ Int64\(29\) \+ \(\- Int64\(\-80\)\) \* \(\- Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 51 AS col0, + COUNT ( * ) + + MAX ( + 99 ) + + 29 + - - 80 * - + ( - 32 ) AS col0 query I rowsort label-5911 @@ -31189,7 +31189,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\(\*\) AS col1" at position 1 have the 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 @@ -32866,7 +32866,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\(\*\) 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 @@ -35580,7 +35580,7 @@ SELECT - 19 + + 73 * 22 AS col2 # 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\(\*\)\) \* \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- 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 - COUNT ( * ) * + - COUNT ( * ) AS col2, 26 AS col2 query II rowsort @@ -36778,7 +36778,7 @@ SELECT MIN ( DISTINCT - - 75 ) + + 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1274 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(13\) \* \(\- nullif\(Int64\(98\), Int64\(\-8\)\)\) AS col0" at position 0 and "Int64\(2\) \* Int64\(\-20\) \+ 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\(\*\) \* Int64\(13\) \* \(\- nullif\(Int64\(98\), Int64\(\-8\)\)\) AS col0" at position 0 and "Int64\(2\) \* Int64\(\-20\) \+ Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 13 * - NULLIF ( 98, + ( + - 8 ) ) AS col0, 2 * - 20 + - 61 AS col0 query I rowsort label-7009 @@ -37895,7 +37895,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\(\*\) 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 @@ -38496,7 +38496,7 @@ SELECT ALL + 36 + - COALESCE ( 38, - 98 ) * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(7\) 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\(\*\) \+ Int64\(7\) 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 ( * ) + + 7 AS col1, + 24 AS col1 query I rowsort @@ -38732,7 +38732,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 @@ -41095,7 +41095,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\(\*\) 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 @@ -43673,7 +43673,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\(\*\) AS col0" at position 1 have 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 @@ -43689,7 +43689,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\(51\) \+ \(\- \(\- count\(\*\)\)\) \+ nullif\(Int64\(\-48\), \(\- CAST\(Int64\(\-21\) AS Int32\)\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -44626,7 +44626,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\(\*\) AS Int32\) AS col1" at position 0 and "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 @@ -44998,7 +44998,7 @@ SELECT ALL AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) # 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\(\*\) 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 @@ -45120,7 +45120,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\(\*\) AS col2" at position 1 have the 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 @@ -45346,7 +45346,7 @@ SELECT ALL - 26 * - + 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 71 -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\(\-10\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-10\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 67 AS col2, + COUNT ( * ) * + - 10 + + 81 AS col2 query I rowsort @@ -45638,7 +45638,7 @@ SELECT 88 * + + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -3707 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "sum\(Int64\(50\)\) \* \(\- Int64\(75\)\) \+ nullif\(Int64\(43\), Int64\(47\) \+ count\(\*\)\) AS col1" at position 1 have the 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 "sum\(Int64\(50\)\) \* \(\- Int64\(75\)\) \+ nullif\(Int64\(43\), Int64\(47\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 40 AS col1, SUM ( ALL + 50 ) * - + 75 + + NULLIF ( 43, 47 + + + COUNT ( * ) ) AS col1 query I rowsort @@ -47798,7 +47798,7 @@ SELECT ALL + 95 - + ( 50 ) * - - 11 * + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(68\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(68\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 AS col1, 68 + - + COUNT ( * ) AS col1 query II rowsort @@ -51403,7 +51403,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\(\*\) 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 @@ -51588,7 +51588,7 @@ SELECT DISTINCT + ( - 12 ) * - ( - - 46 ) * - 23 # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col0, 92 AS col0 query I rowsort label-9827 @@ -52041,7 +52041,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6795 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(83\) \+ \(\- nullif\(\(\- Int64\(\-75\)\), Int64\(98\)\)\) \+ Int64\(\-80\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(83\) \+ \(\- nullif\(\(\- Int64\(\-75\)\), Int64\(98\)\)\) \+ Int64\(\-80\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 * + 83 + - NULLIF ( - - 75, + + 98 ) + + - 80 col1, 67 + - + ( + COUNT ( * ) ) col1 query I rowsort label-9912 @@ -52143,7 +52143,7 @@ SELECT NULLIF ( - - 90, + 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* Int64\(81\) AS col1" at position 0 and "Int64\(88\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN \(\- coalesce\(Int64\(30\), count\(\*\) \* Int64\(98\)\)\) THEN max\(DISTINCT Int64\(86\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(81\) AS col1" at position 0 and "Int64\(88\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN \(\- coalesce\(Int64\(30\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(98\)\)\) THEN max\(DISTINCT Int64\(86\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - COUNT ( * ) ) * + 81 col1, + 88 + + CASE + - CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + 30, + COUNT ( * ) * 98 ) THEN MAX ( DISTINCT 86 ) ELSE NULL END AS col1 query I rowsort label-9931 @@ -52374,7 +52374,7 @@ SELECT ALL - - 59 * 77 + + SUM ( ALL + ( 41 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 8557380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(53\) \* \(\- Int64\(92\)\) \* nullif\(Int64\(\-27\), count\(\*\)\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(53\) \* \(\- Int64\(92\)\) \* nullif\(Int64\(\-27\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - + 50 ) AS col2, + 53 * - + 92 * NULLIF ( - 27, + COUNT ( * ) ) * 65 AS col2 query I rowsort label-9975 diff --git a/data/sqlite/random/expr/slt_good_111.slt b/data/sqlite/random/expr/slt_good_111.slt index 8ec085b..73a8f8b 100644 --- a/data/sqlite/random/expr/slt_good_111.slt +++ b/data/sqlite/random/expr/slt_good_111.slt @@ -199,7 +199,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\(\*\) 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 @@ -992,7 +992,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\(\*\) 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 @@ -3474,7 +3474,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\(\*\) AS col0" at position 1 have the 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 @@ -3858,7 +3858,7 @@ SELECT 23 + - 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(49\) \+ Int64\(38\) \- count\(\*\) \+ 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\(47\) AS col2" at position 0 and "Int64\(49\) \+ Int64\(38\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 47 col2, 49 + + + 38 - + COUNT ( * ) + 87 AS col2 query I rowsort label-730 @@ -5094,7 +5094,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\(\*\) 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 @@ -5894,7 +5894,7 @@ SELECT DISTINCT + 10 * 56 + + 61 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1, CASE COALESCE ( - - 80, - 35 / + COUNT ( * ), - 71, + - 41 ) WHEN 79 THEN - + NULLIF ( 8, - NULLIF ( + - ( + 8 ), 20 ) ) * - CAST ( NULL AS INTEGER ) WHEN - 66 THEN NULL ELSE NULL END - + 31, - COUNT ( * ) AS col1 query I rowsort label-1117 @@ -8703,7 +8703,7 @@ SELECT CASE - 40 WHEN 8 THEN NULL WHEN - 94 * 49 * 7 THEN NULL ELSE + - 9 / - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2870 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(33\) \* min\(Int64\(1\)\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(13\) \* CAST\(NULL AS Int32\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(33\) \* min\(Int64\(1\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(13\) \* CAST\(NULL AS Int32\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 * 33 * + MIN ( + ( 1 ) ) + - COUNT ( * ) AS col0, 13 * CAST ( NULL AS INTEGER ) + + 5 AS col0 # Datafusion - Types were automatically converted from: @@ -9249,7 +9249,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\(\*\) AS col1" at position 1 have the 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 @@ -10084,7 +10084,7 @@ SELECT 84 + COUNT ( * ) - + COUNT ( * ) * - + NULLIF ( 28, - 2 ) AS col1 # 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 "\(\- min\(Int64\(\-62\)\)\) AS col2" at position 0 and "Int64\(\-18\) \- Int64\(82\) \* \(\- CASE Int64\(22\) WHEN Int64\(\-14\) THEN NULL WHEN \(\- CASE Int64\(45\) WHEN Int64\(14\) THEN NULL WHEN \(\- count\(\*\)\) THEN NULL ELSE \(\- Int64\(56\)\) \+ \(\- count\(\*\)\) \* Int64\(58\) \* Int64\(17\) END\) THEN Int64\(37\) / Int64\(92\) \+ Int64\(\-12\) \* Int64\(71\) WHEN Int64\(45\) THEN Int64\(50\) ELSE NULL END\) \+ 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 "\(\- min\(Int64\(\-62\)\)\) AS col2" at position 0 and "Int64\(\-18\) \- Int64\(82\) \* \(\- CASE Int64\(22\) WHEN Int64\(\-14\) THEN NULL WHEN \(\- CASE Int64\(45\) WHEN Int64\(14\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE \(\- Int64\(56\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(58\) \* Int64\(17\) END\) THEN Int64\(37\) / Int64\(92\) \+ Int64\(\-12\) \* Int64\(71\) WHEN Int64\(45\) THEN Int64\(50\) ELSE NULL END\) \+ Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + ( - MIN ( - 62 ) ) ) AS col2, - 18 - + + 82 * - CASE 22 WHEN - 14 THEN NULL WHEN - CASE + 45 WHEN 14 THEN NULL WHEN + ( + + ( - COUNT ( * ) ) ) THEN NULL ELSE - ( + 56 ) + - + COUNT ( * ) * 58 * 17 END THEN 37 / 92 + - 12 * + 71 WHEN 45 THEN 50 ELSE NULL END + 91 AS col2 query I rowsort label-1924 @@ -10156,7 +10156,7 @@ SELECT 10 * - 49 + - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ CASE Int64\(\-34\) WHEN Int64\(6\) \+ Int64\(73\) \* count\(\*\) THEN NULL WHEN Int64\(92\) THEN count\(\*\) END \- \(\- Int64\(\-73\)\) \+ CASE Int64\(50\) WHEN Int64\(85\) THEN Int64\(\-64\) ELSE NULL END \* Int64\(\-50\) AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ CASE Int64\(\-34\) WHEN Int64\(6\) \+ Int64\(73\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(92\) THEN count\(Int64\(1\)\) AS count\(\*\) END \- \(\- Int64\(\-73\)\) \+ CASE Int64\(50\) WHEN Int64\(85\) THEN Int64\(\-64\) ELSE NULL END \* Int64\(\-50\) AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 + + CASE - 34 WHEN + 6 + + + 73 * + COUNT ( * ) THEN NULL WHEN + + 92 THEN COUNT ( * ) END - - ( - 73 ) + + CASE + 50 WHEN + + 85 THEN - 64 ELSE NULL END * - 50 AS col0, - 52 AS col0 query I rowsort label-1938 @@ -10360,7 +10360,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\(\*\) 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 @@ -12603,7 +12603,7 @@ SELECT COALESCE ( + 19, + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - ( + ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) \* \(\- max\(\(\- Int64\(28\)\)\)\) AS col0" at position 0 and "Int64\(70\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- max\(\(\- Int64\(28\)\)\)\) AS col0" at position 0 and "Int64\(70\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - MAX ( ALL - + 28 ) AS col0, 70 + + 91 AS col0 query I rowsort @@ -13751,13 +13751,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 1059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(9\) \* \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(53\)\) \+ CAST\(Int64\(24\) AS Int32\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(9\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(53\)\) \+ CAST\(Int64\(24\) AS Int32\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 47 AS col0, 9 * - ( - + COUNT ( * ) ) * - ( + 53 ) + CAST ( 24 AS INTEGER ) * 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) AS col0" at position 0 and "Int64\(25\) \- Int64\(63\) \+ count\(\*\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) AS col0" at position 0 and "Int64\(25\) \- Int64\(63\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 34 AS col0, 25 - + + 63 + COUNT ( * ) + 14 AS col0 query I rowsort @@ -15067,7 +15067,7 @@ SELECT ALL + + 15 * - CAST ( - 89 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "\(\- CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 AS col1, - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -15239,7 +15239,7 @@ SELECT + 21 * - - 82 + + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(98\)\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(98\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( ALL 98 ) col2, COUNT ( * ) + 83 col2 query I rowsort @@ -18075,7 +18075,7 @@ SELECT ( - ( 74 ) ) # 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 "coalesce\(\(\- count\(\*\)\), \(\- count\(\*\)\) \* Int64\(54\), Int64\(99\)\) AS col1" at position 0 and "Int64\(8\) \+ \(\- max\(DISTINCT \(\- Int64\(\-25\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(54\), Int64\(99\)\) AS col1" at position 0 and "Int64\(8\) \+ \(\- max\(DISTINCT \(\- Int64\(\-25\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( COALESCE ( - + COUNT ( * ), - COUNT ( * ) * 54, 99 ) ) AS col1, 8 + - MAX ( DISTINCT - - 25 ) AS col1 query II rowsort label-3454 @@ -18361,7 +18361,7 @@ SELECT DISTINCT + 67 + - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "count\(\*\) \* \(\- \(\- nullif\(Int64\(56\), 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\(24\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- nullif\(Int64\(56\), Int64\(70\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 24 col0, COUNT ( * ) * - - NULLIF ( + 56, 70 ) AS col0 query I rowsort label-3508 @@ -19902,7 +19902,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\(\*\) AS col2" at position 1 have the 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 @@ -20697,7 +20697,7 @@ SELECT + 5, - 80 * - 20 * - + 19 + + + 34 AS col0 # 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\(\*\)\) AS col1" at position 1 have the 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 ALL + 64 col1, - COUNT ( * ) AS col1 query I rowsort @@ -21911,7 +21911,7 @@ SELECT ALL COALESCE ( + - 51, 98 * - 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-46\)\) AS col2" at position 0 and "CASE Int64\(\-92\) WHEN \(\- count\(\*\)\) THEN Int64\(\-71\) \* count\(\*\) / Int64\(\-3\) \* Int64\(\-55\) WHEN \(\- Int64\(10\)\) 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\(\-46\)\) AS col2" at position 0 and "CASE Int64\(\-92\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-3\) \* Int64\(\-55\) WHEN \(\- Int64\(10\)\) THEN NULL ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 46 ) AS col2, + CASE - 92 WHEN - COUNT ( * ) THEN + - 71 * COUNT ( * ) / + ( - 3 ) * - 55 WHEN - + 10 THEN NULL ELSE NULL END AS col2 # Datafusion - Datafusion expected results: @@ -22953,7 +22953,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\(\*\) AS col2" at position 1 have the same name\. 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 @@ -23011,7 +23011,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\(\*\) AS col0" at position 1 have the 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 @@ -23158,7 +23158,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\(\*\) 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 @@ -24972,7 +24972,7 @@ SELECT + 95 - + + ( - - 28 ) + + 86 / 93 * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(30\) \+ \(\- CASE Int64\(83\) WHEN \(\- coalesce\(avg\(Int64\(49\)\), Int64\(44\) \+ CASE Int64\(92\) WHEN coalesce\(Int64\(22\), Int64\(78\) / Int64\(84\)\) \* Int64\(48\) THEN Int64\(\-32\) END \* \(\- nullif\(Int64\(39\), count\(\*\) / Int64\(\-62\)\)\)\)\) \+ Int64\(64\) THEN NULL WHEN Int64\(10\) \* Int64\(\-77\) THEN count\(\*\) 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\(74\) AS col2" at position 0 and "Int64\(30\) \+ \(\- CASE Int64\(83\) WHEN \(\- coalesce\(avg\(Int64\(49\)\), Int64\(44\) \+ CASE Int64\(92\) WHEN coalesce\(Int64\(22\), Int64\(78\) / Int64\(84\)\) \* Int64\(48\) THEN Int64\(\-32\) END \* \(\- nullif\(Int64\(39\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-62\)\)\)\)\) \+ Int64\(64\) THEN NULL WHEN Int64\(10\) \* Int64\(\-77\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 AS col2, + 30 + - CASE 83 WHEN - + COALESCE ( AVG ( 49 ), 44 + CASE + 92 WHEN COALESCE ( 22, 78 / 84 ) * 48 THEN - 32 END * - NULLIF ( 39, COUNT ( * ) / - 62 ) ) + 64 THEN NULL WHEN + 10 * - 77 THEN COUNT ( * ) ELSE NULL END AS col2 query I rowsort label-4769 @@ -25195,7 +25195,7 @@ SELECT - ( + 52 ) * + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -1606 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(\-19\) \* Int64\(89\) \* 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\(\*\)\)\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(\-19\) \* Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - - COUNT ( * ) ) + + 54 AS col0, - 19 * ( 89 ) * COUNT ( * ) + + 85 AS col0 query I rowsort label-4811 @@ -26101,7 +26101,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\(\*\) 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 @@ -26529,7 +26529,7 @@ SELECT ALL MIN ( + 64 ) + 49 * + 87 * + - NULLIF ( 57, - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4347 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \+ \(\- nullif\(Int64\(\-82\), Int64\(84\) \* Int64\(40\) \* \(\- Int64\(\-51\)\) \+ Int64\(\-58\)\)\) \* Int64\(53\) 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\(\*\)\)\) \+ \(\- nullif\(Int64\(\-82\), Int64\(84\) \* Int64\(40\) \* \(\- Int64\(\-51\)\) \+ Int64\(\-58\)\)\) \* Int64\(53\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + ( - COUNT ( * ) ) + - + NULLIF ( + - 82, + 84 * + 40 * - - 51 + + - 58 ) * 53 AS col2, - 2 col2 query II rowsort @@ -27520,7 +27520,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\(\*\) AS col0" at position 1 have the 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 @@ -28162,7 +28162,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\(\*\) AS col1" at position 1 have the 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 @@ -29195,7 +29195,7 @@ SELECT COALESCE ( - + 38, - 31 ) * + 33 - - + ( 12 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 85 AS col1, 65 AS col1 query I rowsort label-5568 @@ -29453,7 +29453,7 @@ SELECT 56 / - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 8160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-17\) AS Int32\) \- CAST\(NULL AS Int32\) \* \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-96\) \* Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-17\) AS Int32\) \- CAST\(NULL AS Int32\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-96\) \* Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 17 AS INTEGER ) - + CAST ( NULL AS INTEGER ) * + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, - 96 * - 85 AS col0 query I rowsort label-5617 @@ -29953,7 +29953,7 @@ SELECT DISTINCT COUNT ( * ) * + 9, - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -687 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(57\) \+ \(\- count\(\*\)\) \+ Int64\(1\) \* Int64\(\-28\) \+ Int64\(98\) \+ count\(\*\) \* count\(\*\) \+ Int64\(\-74\) \* \(\- count\(\*\)\) \* Int64\(11\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) \* Int64\(\-28\) \+ Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-74\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(11\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + + 16 ) AS col0, 57 + - COUNT ( * ) + ( + 1 ) * - 28 + + 98 + COUNT ( * ) * + COUNT ( * ) + - 74 * - COUNT ( * ) * + 11 * - 1 col0 query II rowsort label-5712 @@ -30178,7 +30178,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\(\*\) 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 @@ -30292,7 +30292,7 @@ SELECT ALL + ( - 70 ) + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) \+ CASE Int64\(8\) WHEN Int64\(77\) \+ \(\- CAST\(Int64\(46\) AS Int32\)\) THEN Int64\(\-93\) \+ coalesce\(Int64\(4\), count\(\*\)\) \+ Int64\(21\) \* Int64\(\-25\) \* \(\- Int64\(\-78\)\) \* Int64\(18\) ELSE NULL END AS col2" at position 0 and "count\(\*\) \- Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ CASE Int64\(8\) WHEN Int64\(77\) \+ \(\- CAST\(Int64\(46\) AS Int32\)\) THEN Int64\(\-93\) \+ coalesce\(Int64\(4\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(21\) \* Int64\(\-25\) \* \(\- Int64\(\-78\)\) \* Int64\(18\) ELSE NULL END AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + CASE 8 WHEN 77 + + ( - + CAST ( + 46 AS INTEGER ) ) THEN + - 93 + + COALESCE ( + 4, + COUNT ( * ) ) + + 21 * - 25 * - - 78 * 18 ELSE NULL END col2, COUNT ( * ) - 9 col2 query I rowsort label-5777 @@ -30706,7 +30706,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\(\*\) 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 @@ -30988,7 +30988,7 @@ SELECT DISTINCT COALESCE ( - + 30, - 5, - ( COUNT ( * ) ) * - 57 + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* CAST\(NULL AS Int32\) \- Int64\(\-70\) \* \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* CAST\(NULL AS Int32\) \- Int64\(\-70\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 5 ) * + CAST ( NULL AS INTEGER ) - - 70 * - - COUNT ( * ) * - - 55 AS col1, ( + 29 ) AS col1 query I rowsort @@ -31809,7 +31809,7 @@ SELECT CASE WHEN NOT NULL < - 4 THEN - NULLIF ( CASE + CAST ( + 27 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* Int64\(\-68\) \+ Int64\(37\) \+ Int64\(15\) \- sum\(Int64\(\-64\)\) \+ CASE \(\- Int64\(27\)\) WHEN \(\- Int64\(12\)\) \* Int64\(\-21\) \* Int64\(96\) \+ \(\- Int64\(\-54\)\) THEN Int64\(65\) \* Int64\(\-60\) \+ Int64\(50\) END \+ Int64\(26\) \+ Int64\(16\) / Int64\(68\) \* \(\- nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(90\)\)\) AS col0" at position 0 and "Int64\(81\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-68\) \+ Int64\(37\) \+ Int64\(15\) \- sum\(Int64\(\-64\)\) \+ CASE \(\- Int64\(27\)\) WHEN \(\- Int64\(12\)\) \* Int64\(\-21\) \* Int64\(96\) \+ \(\- Int64\(\-54\)\) THEN Int64\(65\) \* Int64\(\-60\) \+ Int64\(50\) END \+ Int64\(26\) \+ Int64\(16\) / Int64\(68\) \* \(\- nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(90\)\)\) AS col0" at position 0 and "Int64\(81\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 * - 68 + 37 + 15 - SUM ( - 64 ) + + CASE - + 27 WHEN - + 12 * - 21 * 96 + - - 54 THEN 65 * + - 60 + + 50 END + 26 + + + 16 / + 68 * - NULLIF ( - CAST ( NULL AS FLOAT8 ), 90 ) AS col0, 81 * - + COUNT ( * ) AS col0 query I rowsort label-6065 @@ -33417,7 +33417,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\(\*\) 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 @@ -34748,7 +34748,7 @@ SELECT ALL 66 + - 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1901 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- Int64\(\-20\)\) \+ Int64\(80\) \* Int64\(24\) AS col0" at position 0 and "sum\(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\(\*\) \- \(\- Int64\(\-20\)\) \+ Int64\(80\) \* Int64\(24\) AS col0" at position 0 and "sum\(Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) - - - 20 + 80 * + + ( 24 ) AS col0, SUM ( - 47 ) AS col0 query I rowsort label-6628 @@ -35082,7 +35082,7 @@ SELECT + 37 * + 90 + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 1209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "\(\- \(\- min\(coalesce\(Int64\(32\), Int64\(6\)\)\)\)\) \* \(\- Int64\(\-34\)\) \+ coalesce\(Int64\(96\), count\(\*\) \+ \(\- sum\(Int64\(92\)\)\)\) \+ Int64\(25\) \- Int64\(\-11\) / \(\- Int64\(94\)\) \* 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\(\-18\) AS col1" at position 0 and "\(\- \(\- min\(coalesce\(Int64\(32\), Int64\(6\)\)\)\)\) \* \(\- Int64\(\-34\)\) \+ coalesce\(Int64\(96\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- sum\(Int64\(92\)\)\)\) \+ Int64\(25\) \- Int64\(\-11\) / \(\- Int64\(94\)\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + - 18 ) AS col1, - ( + - MIN ( ALL + COALESCE ( + 32, + + 6 ) ) ) * - - 34 + + + COALESCE ( + 96, + COUNT ( * ) + - SUM ( ALL + 92 ) ) + 25 - - 11 / - ( 94 ) * + 36 col1 query I rowsort @@ -35154,7 +35154,7 @@ SELECT DISTINCT 66 * - 18, + 69 * + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / Int64\(55\) AS col0" at position 0 and "count\(\*\) \* \(\- 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\(55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 / + + 55 col0, + COUNT ( * ) * - + 10 AS col0 query I rowsort @@ -35357,7 +35357,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\(\-77\) \* Int64\(50\) / Int64\(\-4\) \- Int64\(\-47\) \+ Int64\(\-11\) AS col0" at position 0 and "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 @@ -35869,7 +35869,7 @@ SELECT + 51, - 34 + + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(21\) AS col0" at position 0 and "CAST\(Int64\(10\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) AS col0" at position 0 and "CAST\(Int64\(10\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) - 21 col0, CAST ( + 10 AS INTEGER ) AS col0 query I rowsort label-6842 @@ -36520,7 +36520,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\(\-64\)\)\) AS col2" at position 0 and "Int64\(69\) \+ count\(\*\) AS col2" at position 1 have 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 @@ -36817,7 +36817,7 @@ SELECT - MIN ( DISTINCT - 47 ), - COUNT ( * ) / - 12 - CAST ( ( ( + 30 ) ) AS IN # 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\(\*\) / \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\*\) / \(\- 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 ( * ) ) / - COUNT ( * ) AS col1 query I rowsort @@ -37177,7 +37177,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\(\*\) AS col2" at position 1 have the 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 @@ -37844,7 +37844,7 @@ SELECT DISTINCT + 31 * + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 21215844 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(3\), Int64\(96\) \* Int64\(54\) \* \(\- coalesce\(coalesce\(count\(\*\), coalesce\(Int64\(99\), coalesce\(nullif\(Int64\(78\), Int64\(7\) \+ Int64\(72\)\), Int64\(22\), Int64\(37\)\) \* Int64\(35\) \* Int64\(26\) \* Int64\(\-31\)\)\), Int64\(40\) \* count\(\*\)\)\) \- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-69\) \* \(\- Int64\(73\)\) \* Int64\(\-81\) \* \(\- Int64\(52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(3\), Int64\(96\) \* Int64\(54\) \* \(\- coalesce\(coalesce\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(Int64\(99\), coalesce\(nullif\(Int64\(78\), Int64\(7\) \+ Int64\(72\)\), Int64\(22\), Int64\(37\)\) \* Int64\(35\) \* Int64\(26\) \* Int64\(\-31\)\)\), Int64\(40\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-69\) \* \(\- Int64\(73\)\) \* Int64\(\-81\) \* \(\- Int64\(52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( 3, + 96 * 54 * - + COALESCE ( + COALESCE ( + COUNT ( * ), + COALESCE ( 99, COALESCE ( + + NULLIF ( 78, + 7 + + 72 ), + 22, 37 ) * 35 * + 26 * - 31 ) ), + 40 * + COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) ) AS col2, - 69 * - + 73 * + - 81 * - + 52 AS col2 query I rowsort @@ -37870,7 +37870,7 @@ SELECT + COUNT ( - + 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(\*\)\), \(\- Int64\(\-61\)\) / \(\- Int64\(19\)\) \+ count\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-96\), Int64\(\-57\) \* CASE Int64\(46\) WHEN Int64\(\-34\) \* count\(\*\) \* Int64\(74\) \* nullif\(coalesce\(Int64\(\-4\), Int64\(11\)\), Int64\(\-84\)\) \* count\(\*\) \+ \(\- Int64\(\-65\)\) \+ Int64\(65\) \+ Int64\(4\) \* \(\- count\(\*\)\) \* Int64\(79\) \+ Int64\(\-86\) \+ Int64\(25\) \+ \(\- CASE Int64\(\-64\) WHEN \(\- min\(Int64\(23\)\)\) THEN Int64\(2\) WHEN Int64\(\-51\) / Int64\(\-61\) THEN Int64\(\-92\) ELSE NULL END\) THEN count\(\*\) \+ Int64\(97\) \* Int64\(\-67\) WHEN Int64\(\-51\) THEN \(\- CAST\(nullif\(Int64\(\-86\), Int64\(83\)\) AS Int32\)\) END\)\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-61\)\) / \(\- Int64\(19\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-96\), Int64\(\-57\) \* CASE Int64\(46\) WHEN Int64\(\-34\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) \* nullif\(coalesce\(Int64\(\-4\), Int64\(11\)\), Int64\(\-84\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-65\)\) \+ Int64\(65\) \+ Int64\(4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) \+ Int64\(\-86\) \+ Int64\(25\) \+ \(\- CASE Int64\(\-64\) WHEN \(\- min\(Int64\(23\)\)\) THEN Int64\(2\) WHEN Int64\(\-51\) / Int64\(\-61\) THEN Int64\(\-92\) ELSE NULL END\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(\-67\) WHEN Int64\(\-51\) THEN \(\- CAST\(nullif\(Int64\(\-86\), Int64\(83\)\) AS Int32\)\) END\)\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - COUNT ( * ), - - 61 / - + 19 + COUNT ( * ) ) AS col1, - NULLIF ( - 96, - 57 * CASE 46 WHEN - 34 * COUNT ( * ) * + 74 * + NULLIF ( COALESCE ( + - 4, 11 ), + - 84 ) * + COUNT ( * ) + - - 65 + 65 + + + 4 * - COUNT ( * ) * 79 + + - 86 + 25 + - CASE + - 64 WHEN - + MIN ( ALL + + 23 ) THEN + + 2 WHEN - 51 / - 61 THEN + - 92 ELSE NULL END THEN COUNT ( * ) + 97 * - 67 WHEN - 51 THEN - CAST ( NULLIF ( - 86, 83 ) AS INTEGER ) END ) + 49 AS col1 query I rowsort label-7222 @@ -39276,7 +39276,7 @@ SELECT + 16 * - 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1360 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- coalesce\(Int64\(16\), Int64\(38\)\)\) AS col2" at position 0 and "\(\- CAST\(CASE \(\- \(\- count\(\*\)\)\) WHEN \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) THEN Int64\(34\) WHEN Int64\(21\) THEN NULL ELSE Int64\(97\) END AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- coalesce\(Int64\(16\), Int64\(38\)\)\) AS col2" at position 0 and "\(\- CAST\(CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) THEN Int64\(34\) WHEN Int64\(21\) THEN NULL ELSE Int64\(97\) END AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 85 * - COALESCE ( + + 16, + 38 ) AS col2, - CAST ( + + CASE - - COUNT ( * ) WHEN - - ( - CAST ( NULL AS INTEGER ) ) THEN 34 WHEN + + 21 THEN NULL ELSE 97 END AS INTEGER ) AS col2 query I rowsort label-7489 @@ -39593,7 +39593,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -41671,7 +41671,7 @@ SELECT DISTINCT + 73 + - 75 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CASE count\(\*\) WHEN Int64\(\-56\) / Int64\(\-24\) THEN NULL WHEN Int64\(48\) THEN Int64\(93\) 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\(17\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-56\) / Int64\(\-24\) THEN NULL WHEN Int64\(48\) THEN Int64\(93\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 AS col2, CASE + COUNT ( * ) WHEN - 56 / - 24 THEN NULL WHEN + 48 THEN 93 END AS col2 query I rowsort @@ -42669,7 +42669,7 @@ SELECT DISTINCT + 84 + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(45\)\) WHEN Int64\(18\) THEN Int64\(76\) WHEN \(\- Int64\(29\)\) \+ Int64\(67\) THEN NULL WHEN count\(\*\) \+ Int64\(15\) THEN NULL ELSE NULL END\) \* \(\- max\(Int64\(14\)\)\) \+ coalesce\(count\(\*\) \+ min\(Int64\(\-86\)\) \* Int64\(\-9\), Int64\(46\), CASE Int64\(90\) WHEN Int64\(21\) / Int64\(61\) THEN Int64\(76\) END \+ 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\(45\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(45\)\) WHEN Int64\(18\) THEN Int64\(76\) WHEN \(\- Int64\(29\)\) \+ Int64\(67\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) THEN NULL ELSE NULL END\) \* \(\- max\(Int64\(14\)\)\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\) \+ min\(Int64\(\-86\)\) \* Int64\(\-9\), Int64\(46\), CASE Int64\(90\) WHEN Int64\(21\) / Int64\(61\) THEN Int64\(76\) END \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 45 AS col1, - CASE - + 45 WHEN + 18 THEN 76 WHEN - ( 29 ) + 67 THEN NULL WHEN + COUNT ( * ) + 15 THEN NULL ELSE NULL END * - MAX ( ALL 14 ) + + COALESCE ( COUNT ( * ) + + MIN ( - 86 ) * - 9, 46, CASE 90 WHEN + 21 / 61 THEN 76 END + + COUNT ( * ) * 76 ) AS col1 query II rowsort label-8139 @@ -45589,7 +45589,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\(\*\) AS col2" at position 1 have 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 @@ -49318,7 +49318,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\(\*\) AS col2" at position 1 have the 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 @@ -49331,7 +49331,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\(\*\) 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 @@ -51644,7 +51644,7 @@ SELECT ALL 51 * + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* count\(\*\) \- Int64\(20\) \+ \(\- CAST\(\(\- Int64\(6\)\) AS Int32\)\) \+ \(\- count\(\*\)\) \* \(\- \(\- min\(DISTINCT \(\- Int64\(\-15\)\)\)\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(20\) \+ \(\- CAST\(\(\- Int64\(6\)\) AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- min\(DISTINCT \(\- Int64\(\-15\)\)\)\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 64 * + COUNT ( * ) - + 20 + - CAST ( - + 6 AS INTEGER ) + - COUNT ( * ) * - - MIN ( DISTINCT - - 15 ) AS col0, 42 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_112.slt b/data/sqlite/random/expr/slt_good_112.slt index 96898e8..b6fda69 100644 --- a/data/sqlite/random/expr/slt_good_112.slt +++ b/data/sqlite/random/expr/slt_good_112.slt @@ -433,7 +433,7 @@ SELECT + 87 + + - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14863 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(\-44\) AS col1" at position 0 and "coalesce\(\(\- Int64\(10\)\), \(\- \(\- count\(\*\)\)\) \* Int64\(52\) \+ count\(\*\) \* Int64\(\-1\) \* CAST\(NULL AS Int32\) \+ Int64\(90\), Int64\(32\) \+ \(\- Int64\(70\)\)\) \* Int64\(45\) \* \(\- Int64\(33\)\) / \(\- count\(\*\)\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(\-44\) AS col1" at position 0 and "coalesce\(\(\- Int64\(10\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(52\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-1\) \* CAST\(NULL AS Int32\) \+ Int64\(90\), Int64\(32\) \+ \(\- Int64\(70\)\)\) \* Int64\(45\) \* \(\- Int64\(33\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) / + - 44 AS col1, COALESCE ( - + 10, - - COUNT ( * ) * 52 + + COUNT ( * ) * - 1 * + CAST ( NULL AS INTEGER ) + 90, + + 32 + - + 70 ) * 45 * - + 33 / - COUNT ( * ) + - 13 AS col1 query II rowsort label-76 @@ -934,7 +934,7 @@ SELECT ALL + 39 * + + 44 * 95 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(\-57\) \* CASE Int64\(7\) WHEN Int64\(8\) \* Int64\(74\) \* Int64\(\-86\) THEN \(\- CASE \(\- count\(\*\)\) WHEN Int64\(\-40\) \* Int64\(\-68\) THEN Int64\(\-7\) \+ Int64\(96\) ELSE NULL END\) \* \(\- Int64\(\-57\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(\-57\) \* CASE Int64\(7\) WHEN Int64\(8\) \* Int64\(74\) \* Int64\(\-86\) THEN \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-40\) \* Int64\(\-68\) THEN Int64\(\-7\) \+ Int64\(96\) ELSE NULL END\) \* \(\- Int64\(\-57\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 col0, ( + 16 ) + - 57 * + CASE + 7 WHEN + 8 * + 74 * - 86 THEN - CASE + - COUNT ( * ) WHEN + - 40 * - 68 THEN + - 7 + 96 ELSE NULL END * - - 57 END AS col0 query I rowsort label-172 @@ -1464,7 +1464,7 @@ SELECT 82 AS col1, 71 * - + MIN ( - + 30 ) * - 77 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 30 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(\-30\) \* CAST\(NULL AS Int32\) \* Int64\(\-95\) \- \(\- count\(\*\)\) \+ Int64\(\-91\) \* Int64\(72\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(\-30\) \* CAST\(NULL AS Int32\) \* Int64\(\-95\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-91\) \* Int64\(72\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 81 / - 30 * + CAST ( NULL AS INTEGER ) * + - 95 - + - COUNT ( * ) + - 91 * + 72 AS col0, + ( + 30 ) AS col1, 51 AS col0 query I rowsort @@ -1714,7 +1714,7 @@ SELECT + + 49 * 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 40744 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(10\) AS col0" at position 0 and "Int64\(4\) \+ Int64\(\-97\) \* Int64\(84\) \* 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\(\*\) \+ Int64\(10\) AS col0" at position 0 and "Int64\(4\) \+ Int64\(\-97\) \* Int64\(84\) \* Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) + 10 AS col0, 4 + - 97 * 84 * ( - 5 ) AS col0 query I rowsort @@ -2246,7 +2246,7 @@ SELECT ALL 81 * 80 - - 40 AS col0 # 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\(\*\)\) 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-423 @@ -2598,7 +2598,7 @@ SELECT 13 * + 43 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* \(\- count\(\*\)\) AS col2" at position 0 and "CASE Int64\(64\) WHEN \(\- sum\(Int64\(\-89\)\)\) \+ Int64\(9\) \* \(\- CAST\(NULL AS Int32\)\) / \(\- count\(\*\)\) \* Int64\(38\) \+ \(\- count\(\*\)\) THEN Int64\(\-58\) WHEN Int64\(\-59\) THEN NULL END / Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(64\) WHEN \(\- sum\(Int64\(\-89\)\)\) \+ Int64\(9\) \* \(\- CAST\(NULL AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(38\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-58\) WHEN Int64\(\-59\) THEN NULL END / Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 43 * - COUNT ( * ) AS col2, + CASE + + 64 WHEN - + SUM ( - 89 ) + + 9 * + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * 38 + - COUNT ( * ) THEN - 58 WHEN - 59 THEN NULL END / 39 col2 query I rowsort label-490 @@ -2705,7 +2705,7 @@ SELECT 62 + 53 * - + COUNT ( * ) # 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\(\*\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col2, 88 AS col2 query I rowsort @@ -3920,7 +3920,7 @@ SELECT ALL COUNT ( * ) + - + 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(\-90\) \+ \(\- count\(\*\)\) \- \(\- \(\- nullif\(Int64\(\-68\), \(\- 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\(73\) AS col0" at position 0 and "Int64\(\-90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- \(\- nullif\(Int64\(\-68\), \(\- Int64\(51\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 col0, - 90 + - ( + COUNT ( * ) ) - - + ( - NULLIF ( - 68, - + 51 ) ) AS col0 query I rowsort @@ -4062,7 +4062,7 @@ SELECT + COUNT ( * ) - + - 49 * + - 55, + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 94 -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\(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\(26\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 AS col0, - COUNT ( * ) + + 95 col0 query I rowsort @@ -4576,7 +4576,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\(\*\) AS Int32\) AS col2" at position 1 have the 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 @@ -5376,7 +5376,7 @@ SELECT 10 * 3 + - + 13 # 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 "CASE Int64\(54\) WHEN Int64\(76\) THEN NULL WHEN Int64\(26\) \* Int64\(\-1\) THEN Int64\(\-97\) \* \(\- nullif\(Int64\(\-47\), Int64\(\-89\) \* avg\(DISTINCT Int64\(56\)\)\)\) \* Int64\(57\) \* Int64\(74\) \* count\(\*\) / avg\(DISTINCT Int64\(\-22\)\) \+ Int64\(\-57\) WHEN Int64\(75\) THEN NULL WHEN Int64\(36\) THEN Int64\(\-82\) \* nullif\(Int64\(17\), Int64\(\-4\) \+ \(\- nullif\(Int64\(75\), Int64\(53\)\)\)\) END AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(54\) WHEN Int64\(76\) THEN NULL WHEN Int64\(26\) \* Int64\(\-1\) THEN Int64\(\-97\) \* \(\- nullif\(Int64\(\-47\), Int64\(\-89\) \* avg\(DISTINCT Int64\(56\)\)\)\) \* Int64\(57\) \* Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) / avg\(DISTINCT Int64\(\-22\)\) \+ Int64\(\-57\) WHEN Int64\(75\) THEN NULL WHEN Int64\(36\) THEN Int64\(\-82\) \* nullif\(Int64\(17\), Int64\(\-4\) \+ \(\- nullif\(Int64\(75\), Int64\(53\)\)\)\) END AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + 54 WHEN + 76 THEN NULL WHEN 26 * - 1 THEN - 97 * - + NULLIF ( ( ( - 47 ) ), + - 89 * + AVG ( DISTINCT 56 ) ) * 57 * 74 * COUNT ( * ) / AVG ( DISTINCT + + ( - 22 ) ) + - 57 WHEN 75 THEN NULL WHEN 36 THEN - 82 * NULLIF ( + 17, - 4 + + - NULLIF ( + + 75, + 53 ) ) END AS col2, - 71 AS col2 query I rowsort label-1017 @@ -9098,7 +9098,7 @@ SELECT ALL + MIN ( + 8 ) + + 22 * - - CAST ( + 98 AS INTEGER ) + + COUNT ( * ) A # Datafusion - Expected - 34 # Datafusion - Expected - -1289 # Datafusion - Expected - -24 -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\(\-86\) \* 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\(34\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-86\) \* Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 AS col1, + COUNT ( * ) + - 86 * + 15 AS col1, - 23 - + ( + + COUNT ( * ) ) query I rowsort @@ -9162,7 +9162,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\(\*\) AS col0" at position 0 and "\(\- coalesce\(Int64\(\-47\), Int64\(25\) \* 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 @@ -9934,7 +9934,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\(\*\) 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 @@ -10030,7 +10030,7 @@ SELECT ALL - COUNT ( ALL + 60 ) - + COUNT ( * ) 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\(\*\)\) AS col1" at position 1 have the 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 query I rowsort @@ -10945,7 +10945,7 @@ SELECT 28 * + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(2\)\) \+ CASE \(\- Int64\(\-98\)\) WHEN Int64\(\-83\) THEN NULL ELSE Int64\(90\) END 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\(\*\) \+ \(\- Int64\(2\)\) \+ CASE \(\- Int64\(\-98\)\) WHEN Int64\(\-83\) THEN NULL ELSE Int64\(90\) END AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - + 2 + CASE - - 98 WHEN - 83 THEN NULL ELSE 90 END AS col1, + 73 AS col1 query II rowsort label-2078 @@ -11545,7 +11545,7 @@ SELECT ALL 52 - - 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-6\)\)\) \+ min\(Int64\(\-95\)\) \+ Int64\(\-33\) / Int64\(82\) AS col1" at position 0 and "Int64\(94\) \+ Int64\(77\) \* count\(\*\) / Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-6\)\)\) \+ min\(Int64\(\-95\)\) \+ Int64\(\-33\) / Int64\(82\) AS col1" at position 0 and "Int64\(94\) \+ Int64\(77\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - - 6 ) + + + MIN ( ALL - 95 ) + - 33 / 82 AS col1, 94 + + 77 * COUNT ( * ) / - 69 AS col1 query I rowsort @@ -11627,7 +11627,7 @@ SELECT + MIN ( 80 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1105 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-23\) \* \(\- Int64\(48\)\) 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\(\-23\) \* \(\- Int64\(48\)\) 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 ( * ) + - 23 * - + 48 AS col2, + 84 AS col2 query I rowsort label-2208 @@ -11994,7 +11994,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\(\*\) \+ 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 @@ -13231,7 +13231,7 @@ SELECT ALL - 81 - + ( 11 ) - + 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(66\) / \(\- count\(\*\)\) AS col1" at position 1 have the 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\(66\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 62 AS col1, 66 / - COUNT ( * ) AS col1 query I rowsort @@ -14594,7 +14594,7 @@ SELECT COALESCE ( - + CAST ( - - ( 96 ) AS INTEGER ), CASE + 56 WHEN 35 - 33 THE # 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\(\*\)\) 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 "\(\- 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 ALL - COUNT ( * ) col0, + 49 col0 query I rowsort label-2776 @@ -15114,7 +15114,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\(\*\) AS col2" at position 1 have the 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 @@ -15209,7 +15209,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\(\*\) AS col2" at position 1 have the 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 @@ -17824,7 +17824,7 @@ SELECT ALL 42 / + - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -4536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(81\) \* Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(81\) \* Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, 81 * - 56 AS col2 query II rowsort @@ -18870,7 +18870,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\(\*\) AS col2" at position 0 and "Int64\(70\) \* \(\- Int64\(\-28\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -20196,7 +20196,7 @@ SELECT + - 63 AS col0, - 48 * + - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "nullif\(Int64\(\-85\), \(\- count\(\*\)\) \+ Int64\(91\) / Int64\(26\) \* \(\- \(\- count\(\*\)\)\) \- Int64\(\-80\) \+ Int64\(23\) \* \(\- Int64\(\-8\)\) \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(93\) \+ max\(Int64\(79\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int32\) \* Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "nullif\(Int64\(\-85\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(91\) / Int64\(26\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-80\) \+ Int64\(23\) \* \(\- Int64\(\-8\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(93\) \+ max\(Int64\(79\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int32\) \* Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 41 AS col2, ( + + NULLIF ( - 85, - COUNT ( * ) + + 91 / + 26 * - - COUNT ( * ) - - 80 + + ( + + 23 ) * - - 8 + - ( + - COUNT ( * ) ) + + 93 + + MAX ( + 79 ) + - 88 * + + CAST ( NULL AS INTEGER ) * 27 ) ) AS col2 query I rowsort label-3842 @@ -21557,7 +21557,7 @@ SELECT ALL NULLIF ( + - 13, - - 25 ) * - 80 + - 79 AS col1 # 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 "nullif\(count\(\*\), Int64\(\-87\)\) AS col2" at position 0 and "Int64\(65\) \+ Int64\(\-84\) \+ count\(\*\) \* \(\- coalesce\(\(\- Int64\(11\)\), 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 "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-87\)\) AS col2" at position 0 and "Int64\(65\) \+ Int64\(\-84\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(\(\- Int64\(11\)\), Int64\(8\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + COUNT ( * ), + - 87 ) col2, 65 + - 84 + + COUNT ( * ) * - COALESCE ( - + 11, 8 ) AS col2 query I rowsort label-4101 @@ -22322,7 +22322,7 @@ SELECT ALL NULLIF ( + COUNT ( * ), COUNT ( * ) + - 32 ) AS col2, 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 11700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(39\) \* Int64\(\-6\) \* Int64\(\-50\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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 col1" at position 0 and "Int64\(39\) \* Int64\(\-6\) \* Int64\(\-50\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 * - COUNT ( * ) AS col1, 39 * - 6 * - 50 * - - COUNT ( * ) AS col1 query I rowsort label-4247 @@ -23077,7 +23077,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\(\*\) 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 @@ -23874,7 +23874,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\(\*\) 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 @@ -24356,7 +24356,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\(\*\) AS col0" at position 1 have the 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 @@ -24381,7 +24381,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\(\*\) 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 @@ -24486,7 +24486,7 @@ SELECT ALL - - 11 + + - 21 * - 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(12\) / Int64\(\-10\) \+ CASE Int64\(\-66\) WHEN Int64\(\-54\) THEN NULL WHEN nullif\(Int64\(54\), Int64\(41\)\) THEN NULL ELSE Int64\(60\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(12\) / Int64\(\-10\) \+ CASE Int64\(\-66\) WHEN Int64\(\-54\) THEN NULL WHEN nullif\(Int64\(54\), Int64\(41\)\) THEN NULL ELSE Int64\(60\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ) AS col2, 12 / + - 10 + + CASE + - 66 WHEN - 54 THEN NULL WHEN + NULLIF ( + 54, 41 ) THEN NULL ELSE 60 END AS col2 query II rowsort label-4662 @@ -25178,7 +25178,7 @@ SELECT DISTINCT COUNT ( * ) + + MAX ( + 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 40 -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\(\-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\(55\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 55 AS col2, ( - ( COUNT ( * ) ) ) * - 40 AS col2 query I rowsort label-4797 @@ -25939,7 +25939,7 @@ SELECT + 90 * - 52 * - + ( CASE - - 68 WHEN + 92 THEN + - CASE + 30 WHEN - 9 THE # Datafusion - Expected - 45 # Datafusion - Expected - -1 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "\(\- coalesce\(count\(\*\), \(\- count\(\*\)\), Int64\(21\) \+ Int64\(\-97\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(21\) \+ Int64\(\-97\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 45 AS col0, - COALESCE ( + COUNT ( * ), - + ( + ( COUNT ( * ) ) ), + 21 + - 97 ) AS col0, - 96 AS col0 query II rowsort label-4939 @@ -26191,7 +26191,7 @@ SELECT ALL ( - 99 ) col1 # Datafusion - Expected - 10 # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(10\)\) AS col1" at position 0 and "Int64\(\-8\) \* \(\- count\(\*\)\) \+ \(\- CASE \(\- Int64\(\-66\)\) WHEN Int64\(\-5\) THEN Int64\(52\) ELSE count\(\*\) END\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(10\)\) AS col1" at position 0 and "Int64\(\-8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE \(\- Int64\(\-66\)\) WHEN Int64\(\-5\) THEN Int64\(52\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( DISTINCT + 10 ) col1, AVG ( ALL + - CAST ( NULL AS INTEGER ) ) + + ( 55 ) * CAST ( - 8 AS INTEGER ) + - 89 - + ( + 54 ) + 74 * - 87 * - ( - + 77 ) AS col2, - 8 * + - COUNT ( * ) + - CASE - - 66 WHEN - 5 THEN 52 ELSE COUNT ( * ) END AS col1 query I rowsort @@ -26530,7 +26530,7 @@ SELECT ALL 74 / - ( + - 50 ) # 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\(85\)\)\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "count\(Int64\(\-34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(85\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(\-34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - - ( 85 ) ) + - COUNT ( * ) AS col0, + COUNT ( - 34 ) AS col0 query I rowsort label-5050 @@ -26962,7 +26962,7 @@ NULL # Datafusion - Expected - -37 # Datafusion - Expected - -7 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-7\)\) AS col1" at position 1 and "count\(\*\) / \(\- count\(\*\)\) \+ Int64\(70\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-7\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(70\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 37 AS col2, ( + SUM ( ALL - 7 ) ) col1, COUNT ( * ) / - + COUNT ( * ) + 70 AS col1 query I rowsort @@ -27312,7 +27312,7 @@ SELECT DISTINCT - ( + + CASE + + 38 WHEN - 36 THEN NULL ELSE - + 61 + - 98 END ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 135 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- Int64\(\-68\)\) AS col0" at position 0 and "Int64\(\-54\) \* count\(\*\) \+ Int64\(\-25\) \+ 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\(67\) \+ \(\- Int64\(\-68\)\) AS col0" at position 0 and "Int64\(\-54\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-25\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 67 + - ( - 68 ) AS col0, - 54 * COUNT ( * ) + - 25 + 29 AS col0 query II rowsort label-5198 @@ -28391,7 +28391,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\(\*\) AS col1" at position 1 have the 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 @@ -28573,7 +28573,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\(\*\) 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 @@ -28670,7 +28670,7 @@ SELECT + 56 + - - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \- \(\- 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\(26\) \- \(\- 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 ALL 26 - - COUNT ( * ) AS col2, 40 AS col2 query II rowsort @@ -29288,7 +29288,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\(\*\) 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 @@ -29453,7 +29453,7 @@ SELECT - - COUNT ( * ) * 40 + - COUNT ( * ) * + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 4094 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(46\) \* 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\(46\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 46 * 89 AS col1 query I rowsort label-5604 @@ -30629,7 +30629,7 @@ SELECT DISTINCT 89 * - - 18 - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) / \(\- Int64\(\-24\)\) \* Int64\(\-74\) \* \(\- CASE Int64\(\-6\) WHEN Int64\(95\) THEN NULL WHEN Int64\(99\) \- Int64\(76\) \+ count\(\*\) THEN Int64\(66\) \* \(\- Int64\(\-66\)\) ELSE NULL END\) 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\(\-77\) / \(\- Int64\(\-24\)\) \* Int64\(\-74\) \* \(\- CASE Int64\(\-6\) WHEN Int64\(95\) THEN NULL WHEN Int64\(99\) \- Int64\(76\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(66\) \* \(\- Int64\(\-66\)\) ELSE NULL END\) 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 - 77 / - - 24 * - 74 * + - CASE - 6 WHEN + 95 THEN NULL WHEN + 99 - 76 + + COUNT ( * ) THEN 66 * - - 66 ELSE NULL END AS col1, - 53 AS col1 query I rowsort @@ -32288,7 +32288,7 @@ SELECT + + 15 + - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-51\)\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-12\) \+ Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-51\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-12\) \+ Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 51 * - ( - COUNT ( * ) ) AS col1, - 12 + - 78 col1 query I rowsort label-6147 @@ -32516,7 +32516,7 @@ SELECT DISTINCT ( + - ( - + ( - 8 ) ) ) + - ( + - 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(\-26\) \+ Int64\(37\) AS col1" at position 0 and "coalesce\(\(\- count\(\*\)\), CASE Int64\(44\) WHEN Int64\(\-22\) THEN \(\- Int64\(90\)\) END, 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\(89\) \+ Int64\(\-26\) \+ Int64\(37\) AS col1" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), CASE Int64\(44\) WHEN Int64\(\-22\) THEN \(\- Int64\(90\)\) END, Int64\(\-88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 89 + - 26 + + 37 AS col1, COALESCE ( + - COUNT ( * ), + CASE 44 WHEN + - 22 THEN - + 90 END, - 88 ) AS col1 query I rowsort label-6191 @@ -32817,7 +32817,7 @@ SELECT ALL 71 + - + CAST ( - - 53 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ CAST\(Int64\(\-41\) AS Int32\) \+ \(\- Int64\(74\)\) / Int64\(\-98\) \+ count\(\*\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ CAST\(Int64\(\-41\) AS Int32\) \+ \(\- Int64\(74\)\) / Int64\(\-98\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 7 + CAST ( + - 41 AS INTEGER ) + - + 74 / - 98 + + COUNT ( * ) + 41 AS col1, - 7 AS col1 query I rowsort label-6247 @@ -33499,7 +33499,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -37 -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\(\-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\(80\) 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 ALL 80 AS col0, COUNT ( * ) + + - 38 AS col0 query II rowsort label-6378 @@ -34016,7 +34016,7 @@ SELECT - + 16 * - 2 - - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(6\)\) \* \(\- count\(\*\)\) \* \(\- Int64\(\-33\)\) \+ \(\- CASE Int64\(49\) WHEN Int64\(\-49\) THEN Int64\(\-30\) \* \(\- Int64\(\-10\)\) END\) \* Int64\(25\) \* Int64\(48\) \+ \(\- \(\- count\(\(\- \(\- Int64\(\-49\)\)\)\)\)\) \+ Int64\(\-62\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(51\) \+ Int64\(\-43\) 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\(25\) \* \(\- Int64\(6\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-33\)\) \+ \(\- CASE Int64\(49\) WHEN Int64\(\-49\) THEN Int64\(\-30\) \* \(\- Int64\(\-10\)\) END\) \* Int64\(25\) \* Int64\(48\) \+ \(\- \(\- count\(\(\- \(\- Int64\(\-49\)\)\)\)\)\) \+ Int64\(\-62\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(51\) \+ Int64\(\-43\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 * - + 6 * - COUNT ( * ) * - - 33 + + - CASE + 49 WHEN - 49 THEN + - 30 * - - 10 END * + 25 * + 48 + - - COUNT ( - ( - - 49 ) ) + + - 62 AS col2, + 15 / + 41, 98 + + + 51 + - 43 AS col2 query I rowsort @@ -34282,7 +34282,7 @@ SELECT ALL 30 * 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57087 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-80\) \+ CASE Int64\(\-76\) WHEN Int64\(\-90\) \- Int64\(81\) \+ Int64\(\-59\) / Int64\(\-33\) \+ Int64\(15\) THEN NULL ELSE \(\- Int64\(95\)\) \* \(\- Int64\(75\)\) \+ count\(DISTINCT Int64\(91\)\) END \* Int64\(\-8\) 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\(\*\) \+ Int64\(\-80\) \+ CASE Int64\(\-76\) WHEN Int64\(\-90\) \- Int64\(81\) \+ Int64\(\-59\) / Int64\(\-33\) \+ Int64\(15\) THEN NULL ELSE \(\- Int64\(95\)\) \* \(\- Int64\(75\)\) \+ count\(DISTINCT Int64\(91\)\) END \* Int64\(\-8\) 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 ( * ) + - 80 + CASE - 76 WHEN - 90 - 81 + - 59 / - 33 + + 15 THEN NULL ELSE - + 95 * - + 75 + COUNT ( DISTINCT + 91 ) END * + - 8 AS col2, - 55 AS col2 query I rowsort label-6529 @@ -34367,7 +34367,7 @@ SELECT 51 + + 15 # 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\) AS col2" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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 query II rowsort @@ -34391,7 +34391,7 @@ SELECT ALL + - 66 + + COUNT ( * ) col2, - 34 * 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2496 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(96\) \* 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\(96\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) col1, 96 * + 26 AS col1 query I rowsort label-6549 @@ -35620,7 +35620,7 @@ SELECT DISTINCT - 39 + + - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -129 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ Int64\(59\) \- Int64\(99\) AS col2" at position 0 and "Int64\(46\) \+ Int64\(49\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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\(59\) \- Int64\(99\) AS col2" at position 0 and "Int64\(46\) \+ Int64\(49\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 89 + + + 59 - 99 AS col2, + 46 + + 49 - - COUNT ( * ) AS col2 query II rowsort label-6780 @@ -35958,7 +35958,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\(\*\) 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\(\*\) 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 @@ -36413,7 +36413,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\(\*\) AS col2" at position 1 have the 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 @@ -36935,7 +36935,7 @@ SELECT COALESCE ( + 71, - - 2 ) + - COALESCE ( + COUNT ( * ), - + 38 * 34 + 26 + # 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\(11\) AS col1" at position 0 and "Int64\(\-61\) \+ 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\(\*\) / Int64\(11\) AS col1" at position 0 and "Int64\(\-61\) \+ Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) / 11 AS col1, - 61 + ( + 73 ) col1 query I rowsort @@ -37539,7 +37539,7 @@ SELECT DISTINCT - 17 * + + 63 AS col0 # Datafusion - Expected - 5 # Datafusion - Expected - 0 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(93\) AS col2" at position 1 and "\(\- count\(\(\- Int64\(20\)\)\)\) 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\(93\) AS col2" at position 1 and "\(\- count\(\(\- Int64\(20\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 / - - COUNT ( * ) col0, COUNT ( * ) / + 93 AS col2, - COUNT ( - + 20 ) AS col2 query I rowsort @@ -37704,7 +37704,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -87 -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\(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\(28\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 28 AS col0, - COUNT ( * ) * 87 AS col0 query II rowsort @@ -37726,7 +37726,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\(\*\) AS col0" at position 1 have the 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 @@ -37757,7 +37757,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\(\*\) 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 @@ -37975,7 +37975,7 @@ SELECT 93 AS col2, 66 * + 6 * - - 6 + - COALESCE ( 43, - + COUNT ( DISTINCT + 90 # 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\(\*\)\) 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-7226 @@ -43009,7 +43009,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\(\*\) AS col2" at position 1 have the 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 @@ -43037,7 +43037,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\(\*\) AS col2" at position 1 have the 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 @@ -46231,7 +46231,7 @@ SELECT ALL - 67 + + ( + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(53\) 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\(\*\)\) \- Int64\(53\) 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 ( * ) - + 53 AS col0, - 23 AS col0 query I rowsort @@ -47401,7 +47401,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\(\*\) 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 @@ -48571,7 +48571,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\(\*\) 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 @@ -49005,7 +49005,7 @@ SELECT 41 * 48 / + SUM ( DISTINCT - 49 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(66\) AS col1" at position 0 and "\(\- count\(\*\)\) \* \(\- Int64\(80\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(66\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(80\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 + 66 AS col1, - COUNT ( * ) * - + 80 AS col1 query I rowsort label-9338 @@ -49453,7 +49453,7 @@ SELECT ALL COUNT ( * ) * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* \(\- count\(\*\)\) \+ \(\- Int64\(28\)\) AS col1" at position 0 and "count\(Int64\(50\)\) \+ \(\- Int64\(80\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(28\)\) AS col1" at position 0 and "count\(Int64\(50\)\) \+ \(\- Int64\(80\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 87 * - COUNT ( * ) + - + 28 AS col1, COUNT ( 50 ) + - + 80 + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9424 @@ -49494,7 +49494,7 @@ SELECT 26 * - + CASE WHEN NOT 72 IS NULL THEN - 95 ELSE + - 49 * 92 * CAST ( + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 69578 -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\(29\) \* sum\(Int64\(71\)\) \* Int64\(32\) \+ min\(\(\- \(\- nullif\(Int64\(\-41\), Int64\(50\) \+ Int64\(44\)\)\)\)\) \* 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\(25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \* sum\(Int64\(71\)\) \* Int64\(32\) \+ min\(\(\- \(\- nullif\(Int64\(\-41\), Int64\(50\) \+ Int64\(44\)\)\)\)\) \* Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col0, + COUNT ( * ) * 29 * ( + SUM ( 71 ) ) * + 32 + MIN ( - - NULLIF ( - 41, + 50 + 44 ) ) * - 90 col0 query I rowsort label-9432 @@ -50380,7 +50380,7 @@ SELECT 54 / + 84 + + 94 + - 51 AS 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 "coalesce\(Int64\(\-40\), \(\- count\(\*\)\)\) / Int64\(\-44\) \* Int64\(75\) AS col0" at position 0 and "Int64\(13\) / 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 "coalesce\(Int64\(\-40\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(\-44\) \* Int64\(75\) AS col0" at position 0 and "Int64\(13\) / Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - 40, + - COUNT ( * ) ) / - 44 * 75 AS col0, 13 / - 31 AS col0 query I rowsort label-9600 @@ -51991,7 +51991,7 @@ SELECT ALL + COUNT ( * ) * + 88 / - - CAST ( - 72 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- \(\- nullif\(Int64\(50\), Int64\(21\) \+ Int64\(44\)\)\)\)\)\) \* Int64\(52\) \* avg\(\(\- CAST\(NULL AS Int32\)\)\) \* max\(Int64\(59\)\) \* \(\- Int64\(58\)\) \+ \(\- max\(DISTINCT Int64\(6\)\)\) AS col0" at position 0 and "coalesce\(count\(\*\), Int64\(75\) / \(\- Int64\(\-1\)\) \+ \(\- Int64\(38\)\)\) / Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- \(\- nullif\(Int64\(50\), Int64\(21\) \+ Int64\(44\)\)\)\)\)\) \* Int64\(52\) \* avg\(\(\- CAST\(NULL AS Int32\)\)\) \* max\(Int64\(59\)\) \* \(\- Int64\(58\)\) \+ \(\- max\(DISTINCT Int64\(6\)\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(75\) / \(\- Int64\(\-1\)\) \+ \(\- Int64\(38\)\)\) / Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - SUM ( ALL - - NULLIF ( + 50, + 21 + 44 ) ) * + 52 * AVG ( ALL + - CAST ( NULL AS INTEGER ) ) * + MAX ( 59 ) * - + 58 + - + ( ( + MAX ( DISTINCT + 6 ) ) ) AS col0, + COALESCE ( + + COUNT ( * ), + 75 / - + ( + - 1 ) + + - ( + ( 38 ) ) ) / - 39 AS col0 query I rowsort @@ -52192,7 +52192,7 @@ SELECT ALL - 84 + - 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 177 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ \(\- Int64\(\-43\)\) \+ Int64\(72\) AS col2" at position 0 and "Int64\(20\) \+ \(\- count\(\*\)\) \+ Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ \(\- Int64\(\-43\)\) \+ Int64\(72\) AS col2" at position 0 and "Int64\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 62 + - - 43 + 72 AS col2, 20 + - + COUNT ( * ) + - 96 AS col2 query I rowsort @@ -52224,7 +52224,7 @@ SELECT ( + - 83 ) + + 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col2" at position 0 and "Int64\(58\) \+ count\(\*\) / Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col2" at position 0 and "Int64\(58\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 col2, 58 + + COUNT ( * ) / 13 col2 query I rowsort label-9951 @@ -52412,7 +52412,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CASE Int64\(12\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(\-27\) \+ \(\- Int64\(28\)\) \+ \(\- count\(Int64\(61\)\)\) \* count\(\*\) \- Int64\(66\) \* Int64\(\-35\) / \(\- Int64\(35\)\) \* \(\- CAST\(NULL AS Int32\)\) END, Int64\(80\)\) AS col1" at position 0 and "Int64\(17\) \* \(\- Int64\(14\)\) / \(\- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CASE Int64\(12\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(\-27\) \+ \(\- Int64\(28\)\) \+ \(\- count\(Int64\(61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) \* Int64\(\-35\) / \(\- Int64\(35\)\) \* \(\- CAST\(NULL AS Int32\)\) END, Int64\(80\)\) AS col1" at position 0 and "Int64\(17\) \* \(\- Int64\(14\)\) / \(\- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( + CASE + + 12 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 27 + - + ( + 28 ) + - COUNT ( + + 61 ) * + COUNT ( * ) - 66 * - 35 / - + 35 * - CAST ( NULL AS INTEGER ) END, + + 80 ) AS col1, + 17 * - + 14 / - + 2 AS col1 query I rowsort label-9987 diff --git a/data/sqlite/random/expr/slt_good_113.slt b/data/sqlite/random/expr/slt_good_113.slt index 517c434..4bd8fbb 100644 --- a/data/sqlite/random/expr/slt_good_113.slt +++ b/data/sqlite/random/expr/slt_good_113.slt @@ -1030,7 +1030,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\(\*\) 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 @@ -1502,7 +1502,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -661 # Datafusion - Expected - -1782 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(8\), Int64\(81\) \* Int64\(\-34\) \+ Int64\(65\) \+ \(\- min\(Int64\(8\)\)\) \+ count\(\*\)\) \* Int64\(\-94\) \+ Int64\(76\) \+ Int64\(\-86\) \+ Int64\(71\) \+ Int64\(64\) \+ Int64\(\-34\) \+ \(\- count\(\*\)\) \* Int64\(\-42\) / Int64\(\-62\) \+ Int64\(24\) \* \(\- Int64\(0\)\) AS col1" at position 0 and "Int64\(22\) \* 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 "coalesce\(Int64\(8\), Int64\(81\) \* Int64\(\-34\) \+ Int64\(65\) \+ \(\- min\(Int64\(8\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-94\) \+ Int64\(76\) \+ Int64\(\-86\) \+ Int64\(71\) \+ Int64\(64\) \+ Int64\(\-34\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-42\) / Int64\(\-62\) \+ Int64\(24\) \* \(\- Int64\(0\)\) AS col1" at position 0 and "Int64\(22\) \* Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( 8, 81 * - 34 + 65 + + - MIN ( 8 ) + + + COUNT ( * ) ) * + - 94 + + 76 + - 86 + 71 + + 64 + - 34 + - COUNT ( * ) * - 42 / - 62 + 24 * - - 0 col1, 22 * - 81 AS col1 query I rowsort label-276 @@ -3246,7 +3246,7 @@ SELECT DISTINCT + ( 74 ) * 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \- \(\- CAST\(\(\- coalesce\(count\(\*\), Int64\(\-16\) / avg\(Int64\(\-5\)\)\)\) AS Float64\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-73\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-16\) / avg\(Int64\(\-5\)\)\)\) AS Float64\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-73\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 - - CAST ( - COALESCE ( COUNT ( * ), - 16 / + AVG ( ALL - 5 ) ) AS FLOAT8 ) + - - CAST ( NULL AS INTEGER ) col1, - 73 * ( + + 94 ) AS col1 query I rowsort @@ -4483,7 +4483,7 @@ SELECT - COALESCE ( - NULLIF ( 99, - 30 * - CASE + COUNT ( * ) WHEN AVG ( ALL + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(24\) AS col1" at position 0 and "count\(\*\) \* min\(Int64\(93\)\) \- \(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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\(24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(93\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 24 AS col1, COUNT ( * ) * + MIN ( 93 ) - - COUNT ( * ) AS col1 query I rowsort label-850 @@ -5040,7 +5040,7 @@ SELECT + + COUNT ( * ) * - 64 + - CASE 82 WHEN NULLIF ( 63, 34 ) THEN NULL ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 7864 -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\(\-97\) \* \(\- Int64\(\-81\)\) \+ 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\(43\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) \* \(\- Int64\(\-81\)\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 AS col2, - COUNT ( * ) * - 97 * - - 81 + + + 7 col2 query I rowsort label-957 @@ -6744,7 +6744,7 @@ SELECT ALL - 99 + - - 50 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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-1283 @@ -6804,7 +6804,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\(\*\) 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: @@ -7135,7 +7135,7 @@ SELECT ALL - COALESCE ( + 66, + - 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 905 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(92\)\) WHEN Int64\(\-45\) THEN NULL ELSE count\(\*\) \+ Int64\(\-34\) \* Int64\(\-26\) END \+ Int64\(20\) 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 "CASE \(\- Int64\(92\)\) WHEN Int64\(\-45\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-34\) \* Int64\(\-26\) END \+ Int64\(20\) 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 CASE - + 92 WHEN - 45 THEN NULL ELSE + COUNT ( * ) + - 34 * - 26 END + + + 20 AS col2, - 76 AS col2 query I rowsort @@ -7196,7 +7196,7 @@ SELECT + 67 * - - ( + - 76 ) + + - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(26\) \+ \(\- \(\- Int64\(\-82\)\)\) 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\(\*\) \* Int64\(26\) \+ \(\- \(\- Int64\(\-82\)\)\) 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 ( * ) * 26 + - - ( - 82 ) AS col1, ( + - 76 ) AS col1 # Datafusion - Types were automatically converted from: @@ -8312,7 +8312,7 @@ SELECT 32 * - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* \(\- 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 "Int64\(\-70\) \* \(\- 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 - 70 * - COUNT ( * ) AS col2, 18 AS col2 query I rowsort label-1584 @@ -8769,7 +8769,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\(\-75\) \* Int64\(64\) \+ Int64\(79\) \* Int64\(9\) \+ Int64\(46\) \+ Int64\(14\) \+ \(\- 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\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -8938,7 +8938,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\(\*\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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-1703 @@ -9259,7 +9259,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\(\*\) 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 @@ -11018,7 +11018,7 @@ SELECT DISTINCT - - COALESCE ( - 74, + - 22 / - + 15 * + - 16 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -228 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) / Int64\(25\) AS col0" at position 0 and "nullif\(Int64\(\-3\), Int64\(\-65\) \+ \(\- 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 "Int64\(\-77\) / Int64\(25\) AS col0" at position 0 and "nullif\(Int64\(\-3\), Int64\(\-65\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 77 / 25 col0, NULLIF ( - 3, + - 65 + - COUNT ( * ) ) * + 76 AS col0 query I rowsort label-2096 @@ -11034,7 +11034,7 @@ SELECT DISTINCT + 33 + ( + ( 36 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \+ Int64\(48\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(48\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + 48 AS col0, + 2 AS col0 query I rowsort @@ -13667,7 +13667,7 @@ SELECT ALL 58 + + + 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(66\) \+ Int64\(18\) \* Int64\(32\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(66\) \+ Int64\(18\) \* Int64\(32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 26 col0, 66 + + 18 * 32 * - COUNT ( * ) col0 query I rowsort @@ -13891,7 +13891,7 @@ SELECT - 50 / - 5 AS col1, + 71 + 19 - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(68\), min\(Int64\(19\)\)\) AS col1" at position 0 and "Int64\(66\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(68\), min\(Int64\(19\)\)\) AS col1" at position 0 and "Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + NULLIF ( 68, MIN ( ALL + 19 ) ) col1, + 66 * - COUNT ( * ) AS col1 query I rowsort @@ -14518,7 +14518,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\(\*\) AS col2" at position 1 have the 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 @@ -14864,7 +14864,7 @@ SELECT + 84 / 33 * - 32 / 80 - + - MAX ( + 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(78\)\)\) AS col0" at position 0 and "Int64\(0\) / Int64\(85\) \* CASE count\(Int64\(\-69\)\) WHEN Int64\(64\) \- \(\- Int64\(79\)\) \- count\(\*\) THEN Int64\(35\) ELSE NULL END \+ Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(78\)\)\) AS col0" at position 0 and "Int64\(0\) / Int64\(85\) \* CASE count\(Int64\(\-69\)\) WHEN Int64\(64\) \- \(\- Int64\(79\)\) \- count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(35\) ELSE NULL END \+ Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MAX ( ALL + 78 ) AS col0, + 0 / 85 * CASE + COUNT ( + - 69 ) WHEN + 64 - - + 79 - COUNT ( * ) THEN ( + + 35 ) ELSE NULL END + - 84 AS col0 query II rowsort label-2832 @@ -15071,7 +15071,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\(\*\) 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 @@ -15197,7 +15197,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\(\*\) AS col2" at position 1 have the 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 @@ -16519,7 +16519,7 @@ SELECT DISTINCT - 22 * + 67 + - + 35 * + 84 - + NULLIF ( + 10, CAST ( 96 AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -1645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(25\) / \(\- count\(\*\)\) \* Int64\(94\) \* Int64\(17\) \* \(\- Int64\(6\)\) \+ \(\- count\(DISTINCT Int64\(72\)\)\) \+ Int64\(\-11\) AS col0" at position 0 and "sum\(Int64\(\-45\)\) \* Int64\(35\) \- 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\(\*\)\) / Int64\(25\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(94\) \* Int64\(17\) \* \(\- Int64\(6\)\) \+ \(\- count\(DISTINCT Int64\(72\)\)\) \+ Int64\(\-11\) AS col0" at position 0 and "sum\(Int64\(\-45\)\) \* Int64\(35\) \- Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / 25 / - COUNT ( * ) * + 94 * 17 * - + 6 + - COUNT ( DISTINCT 72 ) + + - 11 AS col0, + SUM ( - 45 ) * + 35 - 70 AS col0 query II rowsort label-3145 @@ -16872,7 +16872,7 @@ SELECT SUM ( ALL + + 1 ) + - + 36 # 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 "Int64\(3\) AS col0" at position 0 and "count\(\*\) / Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 3 AS col0, + COUNT ( * ) / + + 49 col0 query I rowsort @@ -17142,7 +17142,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\(20\) END\) AS col1" at position 0 and "Int64\(17\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -18446,7 +18446,7 @@ SELECT + - 62 / - 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -32 -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\(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\(50\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 50 col0, - COUNT ( * ) * + 32 AS col0 query I rowsort @@ -18488,7 +18488,7 @@ SELECT 96 * 62 + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) / Int64\(\-66\) AS col0" at position 0 and "CASE Int64\(69\) WHEN Int64\(71\) THEN Int64\(\-85\) \+ \(\- count\(\*\)\) \- sum\(Int64\(90\)\) 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\(\-63\) / Int64\(\-66\) AS col0" at position 0 and "CASE Int64\(69\) WHEN Int64\(71\) THEN Int64\(\-85\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- sum\(Int64\(90\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 63 / - 66 AS col0, + CASE 69 WHEN 71 THEN - 85 + - COUNT ( * ) - + + SUM ( + 90 ) END AS col0 query I rowsort label-3520 @@ -18519,7 +18519,7 @@ SELECT ALL - 97 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 26295946 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "coalesce\(Int64\(6\), Int64\(70\) \* Int64\(1\), \(\- coalesce\(Int64\(\-41\), coalesce\(count\(\*\), Int64\(69\) \* Int64\(\-17\)\) \* \(\- Int64\(\-82\)\)\)\)\) \+ Int64\(79\) \* Int64\(89\) \* coalesce\(Int64\(68\), count\(\*\)\) \* \(\- 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\(\-35\) AS col0" at position 0 and "coalesce\(Int64\(6\), Int64\(70\) \* Int64\(1\), \(\- coalesce\(Int64\(\-41\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(69\) \* Int64\(\-17\)\) \* \(\- Int64\(\-82\)\)\)\)\) \+ Int64\(79\) \* Int64\(89\) \* coalesce\(Int64\(68\), count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 35 AS col0, COALESCE ( + 6, 70 * 1, + - COALESCE ( - 41, + + COALESCE ( + COUNT ( * ), 69 * + - 17 ) * - - 82 ) ) + + 79 * + 89 * COALESCE ( + 68, + COUNT ( * ) ) * - - 55 AS col0 query II rowsort @@ -18892,7 +18892,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\(\*\) 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 @@ -19615,7 +19615,7 @@ SELECT ALL 91 / - CAST ( - 69 AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -88 -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\(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\(71\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 71 AS col0, - COUNT ( * ) * + 88 AS col0 query II rowsort label-3735 @@ -19686,7 +19686,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\(\*\) AS col0" at position 1 have the 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: @@ -20132,7 +20132,7 @@ SELECT - ( - - 74 ) * + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -4772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(55\) \* \(\- Int64\(87\)\) \+ min\(Int64\(13\)\) \+ count\(\*\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(55\) \* \(\- Int64\(87\)\) \+ min\(Int64\(13\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 31 AS col1, 55 * - + 87 + + + MIN ( + + 13 ) + + COUNT ( * ) / + 39 AS col1 query I rowsort label-3833 @@ -20176,7 +20176,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\(\*\) AS col2" at position 0 and "\(\- 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 @@ -20286,7 +20286,7 @@ SELECT ALL 91 * 75 AS col0, - 0 * - 57 * - SUM ( - 49 ) * - + 62 / - + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -2900 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-58\) AS col0" at position 0 and "Int64\(70\) / Int64\(\-47\) \* \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-58\) AS col0" at position 0 and "Int64\(70\) / Int64\(\-47\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 50 * - 58 AS col0, 70 / - 47 * - CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) col0 query I rowsort label-3862 @@ -22781,7 +22781,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -22902,7 +22902,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\(\*\) AS col0" at position 1 have the 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 @@ -23516,7 +23516,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\(\*\) AS col1" at position 1 have the 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 @@ -24666,14 +24666,14 @@ 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\(\*\) 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: # Datafusion - Expected - 122 # Datafusion - Expected - 21 # Datafusion - Expected - -1250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(64\) \+ Int64\(58\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) \+ Int64\(58\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 64 + + + 58 AS col2, 21 AS col2, + 18 * - 72 + - 14 + 60 AS col1 query I rowsort @@ -25319,7 +25319,7 @@ SELECT ALL - - 84 / 53 + 30 + - 79 # 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 "\(\- coalesce\(count\(\*\), \(\- count\(\*\)\)\)\) AS col2" at position 1 have the 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 "\(\- coalesce\(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 - 18 AS col2, - COALESCE ( + COUNT ( * ), - COUNT ( * ) ) col2 query I rowsort label-4822 @@ -25429,7 +25429,7 @@ SELECT ALL 25 * - ( - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-76\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-76\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 76 col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-4843 @@ -27047,7 +27047,7 @@ SELECT DISTINCT + 45 * - + NULLIF ( 54, - 49 ) + + - ( - - 46 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(46\) \* 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\(46\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) col0, 46 * + 52 AS col0 query I rowsort @@ -27719,7 +27719,7 @@ SELECT DISTINCT 84 + - NULLIF ( + 67, + COALESCE ( COUNT ( * ), + - ( + ( - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -460 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(10\)\) \* Int64\(46\) AS col0" at position 0 and "Int64\(77\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\(10\)\) \* Int64\(46\) 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 + COUNT ( * ) * - + 10 * 46 AS col0, 77 + - COUNT ( * ) AS col0 query I rowsort label-5278 @@ -28690,7 +28690,7 @@ SELECT 44 * + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col1" at position 0 and "\(\- CASE Int64\(14\) WHEN coalesce\(Int64\(\-1\), Int64\(78\) \* Int64\(86\) \* Int64\(7\) \+ Int64\(66\) \+ Int64\(49\) \* Int64\(33\), Int64\(\-19\) \+ Int64\(19\)\) \* CAST\(NULL AS Float64\) \+ \(\- count\(\*\)\) THEN Int64\(\-53\) END\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col1" at position 0 and "\(\- CASE Int64\(14\) WHEN coalesce\(Int64\(\-1\), Int64\(78\) \* Int64\(86\) \* Int64\(7\) \+ Int64\(66\) \+ Int64\(49\) \* Int64\(33\), Int64\(\-19\) \+ Int64\(19\)\) \* CAST\(NULL AS Float64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-53\) END\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 AS col1, - CASE + + 14 WHEN + + COALESCE ( - 1, 78 * + + 86 * + 7 + + + 66 + + 49 * + 33, + - 19 + 19 ) * ( + CAST ( NULL AS FLOAT8 ) ) + - COUNT ( * ) THEN - 53 END * - 35 AS col1 query II rowsort @@ -28867,7 +28867,7 @@ SELECT ALL 5 + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ Int64\(60\) AS col1" at position 0 and "Int64\(\-44\) \+ \(\- count\(Int64\(8\)\)\) \+ Int64\(74\) \+ Int64\(78\) \+ \(\- \(\- CAST\(Int64\(86\) AS Int32\)\)\) \* \(\- count\(\*\)\) \+ avg\(Int64\(14\)\) \+ CASE Int64\(\-12\) WHEN Int64\(54\) \* Int64\(\-63\) THEN Int64\(99\) WHEN \(\- count\(\*\)\) THEN NULL WHEN \(\- Int64\(94\)\) \* \(\- Int64\(\-99\)\) / Int64\(46\) THEN NULL END \+ Int64\(68\) \+ Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ Int64\(60\) AS col1" at position 0 and "Int64\(\-44\) \+ \(\- count\(Int64\(8\)\)\) \+ Int64\(74\) \+ Int64\(78\) \+ \(\- \(\- CAST\(Int64\(86\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(14\)\) \+ CASE Int64\(\-12\) WHEN Int64\(54\) \* Int64\(\-63\) THEN Int64\(99\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- Int64\(94\)\) \* \(\- Int64\(\-99\)\) / Int64\(46\) THEN NULL END \+ Int64\(68\) \+ Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 75 + 60 AS col1, - 44 + - COUNT ( ALL 8 ) + + 74 + + 78 + - - CAST ( + + 86 AS INTEGER ) * + + ( - COUNT ( * ) ) + + + AVG ( ALL 14 ) + CASE - 12 WHEN + 54 * - 63 THEN 99 WHEN - COUNT ( * ) THEN NULL WHEN - + 94 * - - 99 / + 46 THEN NULL END + + 68 + 32 AS col1 query II rowsort @@ -29215,7 +29215,7 @@ SELECT ALL - 33 AS col0, 67 / - - 92 * - 47 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ count\(\*\) \+ Int64\(4\) 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\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(4\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( 93 ) + COUNT ( * ) + + 4 AS col1, 96 AS col1 query I rowsort @@ -33435,7 +33435,7 @@ SELECT + COUNT ( DISTINCT + 0 ) - + 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(\-92\) / Int64\(76\) \+ \(\- Int64\(87\)\) \- \(\- count\(\*\)\) \- Int64\(27\) \+ \(\- Int64\(\-82\)\) \+ 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\(94\) AS col1" at position 0 and "Int64\(\-92\) / Int64\(76\) \+ \(\- Int64\(87\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(27\) \+ \(\- Int64\(\-82\)\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 col1, ( - 92 ) / 76 + - + 87 - + - COUNT ( * ) - + 27 + - - 82 + + 64 AS col1 query I rowsort @@ -33492,7 +33492,7 @@ SELECT ALL 82 AS col2, 39 + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11640 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-12\) \* Int64\(97\) AS col0" at position 0 and "Int64\(\-6\) \+ \(\- CAST\(\(\- nullif\(Int64\(0\), coalesce\(Int64\(\-65\), Int64\(41\) \* Int64\(83\)\) \* Int64\(30\) \+ Int64\(\-37\) \+ CAST\(NULL AS Int32\) \* Int64\(\-33\)\)\) AS Int32\)\) \+ Int64\(\-10\) \+ Int64\(81\) / \(\- Int64\(\-21\)\) \* \(\- coalesce\(\(\- count\(\*\)\), \(\- CAST\(NULL AS Int32\)\) \+ Int64\(12\), Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-12\) \* Int64\(97\) AS col0" at position 0 and "Int64\(\-6\) \+ \(\- CAST\(\(\- nullif\(Int64\(0\), coalesce\(Int64\(\-65\), Int64\(41\) \* Int64\(83\)\) \* Int64\(30\) \+ Int64\(\-37\) \+ CAST\(NULL AS Int32\) \* Int64\(\-33\)\)\) AS Int32\)\) \+ Int64\(\-10\) \+ Int64\(81\) / \(\- Int64\(\-21\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- CAST\(NULL AS Int32\)\) \+ Int64\(12\), Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 10 * + - 12 * + + 97 AS col0, - 6 + - CAST ( - NULLIF ( - 0, + COALESCE ( - 65, + 41 * 83 ) * + ( 30 ) + + - 37 + CAST ( NULL AS INTEGER ) * + ( - 33 ) ) AS INTEGER ) + - 10 + + 81 / - - 21 * - + COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) + + 12, 50 ) AS col0 query I rowsort label-6374 @@ -33912,7 +33912,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\(\*\) AS col0" at position 0 and "Int64\(70\) \- 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 @@ -35000,7 +35000,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\(\*\) AS col1" at position 1 have the 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 @@ -35269,7 +35269,7 @@ SELECT - 16 / 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- 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 "Int64\(86\) \+ \(\- 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 ALL 86 + - COUNT ( * ) AS col2, 64 AS col2 query I rowsort label-6712 @@ -35336,7 +35336,7 @@ SELECT - MIN ( ALL - + 88 ) + + + ( - - 90 ) * + 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -300610 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* count\(\*\) \* Int64\(\-80\) \* Int64\(\-57\) / \(\- count\(\*\)\) \- Int64\(5\) \* \(\- count\(Int64\(40\)\)\) \* nullif\(Int64\(59\), Int64\(\-4\) \* Int64\(96\) \+ \(\- Int64\(\-37\)\) \+ Int64\(37\)\) \+ \(\- Int64\(\-55\)\) 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 "Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-80\) \* Int64\(\-57\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(5\) \* \(\- count\(Int64\(40\)\)\) \* nullif\(Int64\(59\), Int64\(\-4\) \* Int64\(96\) \+ \(\- Int64\(\-37\)\) \+ Int64\(37\)\) \+ \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 66 * + COUNT ( * ) * - 80 * - 57 / - COUNT ( * ) - + 5 * - COUNT ( ALL 40 ) * NULLIF ( + + 59, - 4 * + + 96 + - - 37 + + 37 ) + + + ( - - 55 ) AS col1, - 52 AS col1 query I rowsort @@ -35947,7 +35947,7 @@ SELECT + MAX ( ALL + 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- CASE Int64\(17\) WHEN \(\- Int64\(51\)\) THEN NULL WHEN Int64\(21\) \* Int64\(13\) THEN \(\- count\(\*\)\) END\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- CASE Int64\(17\) WHEN \(\- Int64\(51\)\) THEN NULL WHEN Int64\(21\) \* Int64\(13\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 62 * - CASE + + 17 WHEN - ( 51 ) THEN NULL WHEN + + 21 * 13 THEN - COUNT ( * ) END AS col0, - 13 AS col0 query I rowsort @@ -37949,7 +37949,7 @@ SELECT ALL + 32 * + 39 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(59\), Int64\(0\)\)\) \+ Int64\(57\) \+ Int64\(32\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(59\), Int64\(0\)\)\) \+ Int64\(57\) \+ Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + 59, - 0 ) + 57 + + 32 AS col2, COUNT ( * ) * - - 30 AS col2 query I rowsort label-7220 @@ -38491,7 +38491,7 @@ SELECT + 67 * - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 4400 -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\(83\) \* 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\(73\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(83\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 73 AS col1, COUNT ( * ) + 83 * 53 AS col1 query I rowsort label-7327 @@ -40798,7 +40798,7 @@ SELECT DISTINCT - + 59 * + 43 - COUNT ( * ) AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - -1 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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, + - 7 query I rowsort @@ -41675,7 +41675,7 @@ SELECT - 87 + + 90 * 58 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col1" at position 0 and "count\(\*\) / Int64\(39\) \- \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(39\) \- \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 56 AS col1, COUNT ( * ) / + 39 - + - CAST ( NULL AS INTEGER ) - + - 56 col1 query I rowsort @@ -41789,7 +41789,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\(\*\) 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 @@ -42754,7 +42754,7 @@ SELECT - 43 + + + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- \(\- sum\(DISTINCT Int64\(29\)\)\)\) AS col1" at position 0 and "Int64\(38\) \* \(\- \(\- CASE count\(\*\) WHEN \(\- Int64\(\-96\)\) \* Int64\(\-68\) \* \(\- Int64\(79\)\) \+ Int64\(56\) THEN Int64\(24\) \- Int64\(\-90\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- \(\- sum\(DISTINCT Int64\(29\)\)\)\) AS col1" at position 0 and "Int64\(38\) \* \(\- \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-96\)\) \* Int64\(\-68\) \* \(\- Int64\(79\)\) \+ Int64\(56\) THEN Int64\(24\) \- Int64\(\-90\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 * - - SUM ( DISTINCT 29 ) col1, 38 * - - CASE COUNT ( * ) WHEN - - 96 * - 68 * - + 79 + 56 THEN 24 - - 90 ELSE NULL END col1 query I rowsort label-8143 @@ -43253,7 +43253,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\(\*\) 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 @@ -43436,7 +43436,7 @@ SELECT - + ( + + 88 ) / + 53 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47257 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(13\) \* Int64\(57\) \+ Int64\(\-49\) \* \(\- count\(\*\)\) \* Int64\(\-12\) \+ Int64\(14\) AS col1" at position 0 and "\(\- CAST\(Int64\(79\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(13\) \* Int64\(57\) \+ Int64\(\-49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-12\) \+ Int64\(14\) AS col1" at position 0 and "\(\- CAST\(Int64\(79\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 63 * + 13 * 57 + - 49 * - COUNT ( * ) * + - 12 + 14 AS col1, + ( - CAST ( 79 AS INTEGER ) ) AS col1 query I rowsort label-8273 @@ -44648,7 +44648,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\(\*\) 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 @@ -47818,7 +47818,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\(\*\) 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 @@ -49679,7 +49679,7 @@ SELECT ALL + - COUNT ( * ) + + - 42 * 64 * - 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3634 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) \* \(\- coalesce\(CAST\(Int64\(\-79\) AS Int32\), count\(\*\) \* \(\- \(\- min\(Int64\(\-45\)\)\)\) \* Int64\(3\) \+ Int64\(69\) \- Int64\(\-56\)\)\) AS col0" at position 0 and "Int64\(82\) \* \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(43\)\) \* Int64\(67\) \+ \(\- max\(\(\- coalesce\(\(\- Int64\(63\)\), Int64\(\-70\) \* Int64\(36\), Int64\(15\)\)\)\)\) \+ min\(DISTINCT Int64\(20\)\) \* Int64\(53\) \* nullif\(\(\- count\(\*\)\), \(\- min\(Int64\(4\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) \* \(\- coalesce\(CAST\(Int64\(\-79\) AS Int32\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- min\(Int64\(\-45\)\)\)\) \* Int64\(3\) \+ Int64\(69\) \- Int64\(\-56\)\)\) AS col0" at position 0 and "Int64\(82\) \* \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(43\)\) \* Int64\(67\) \+ \(\- max\(\(\- coalesce\(\(\- Int64\(63\)\), Int64\(\-70\) \* Int64\(36\), Int64\(15\)\)\)\)\) \+ min\(DISTINCT Int64\(20\)\) \* Int64\(53\) \* nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- min\(Int64\(4\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + 46 AS INTEGER ) * - COALESCE ( + CAST ( + - 79 AS INTEGER ), COUNT ( * ) * - - MIN ( ALL - 45 ) * 3 + 69 - - 56 ) AS col0, 82 * - CAST ( NULL AS INTEGER ) - - + 43 * 67 + + - MAX ( ALL - COALESCE ( - ( 63 ), - 70 * 36, 15 ) ) + MIN ( DISTINCT + 20 ) * 53 * NULLIF ( - COUNT ( * ), + ( - MIN ( + 4 ) ) ) AS col0 query II rowsort label-9466 @@ -49712,7 +49712,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(35\) / Int64\(\-41\) \+ \(\- count\(\*\)\) \* count\(Int64\(53\)\) \* \(\- Int64\(\-52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(35\) / Int64\(\-41\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(53\)\) \* \(\- Int64\(\-52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 col0, ( + 35 ) / - 41 + - COUNT ( * ) * + + COUNT ( ALL + 53 ) * - - 52 AS col0 query I rowsort label-9472 @@ -49738,7 +49738,7 @@ SELECT DISTINCT - + ( + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 4389 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "Int64\(\-77\) \* Int64\(\-57\) \+ \(\- nullif\(Int64\(0\), CAST\(NULL AS Int32\) \* Int64\(14\) \* Int64\(\-19\) \- \(\- \(\- nullif\(\(\- Int64\(\-25\)\), Int64\(0\) / Int64\(\-28\) / Int64\(5\) / Int64\(\-85\) \* \(\- CAST\(NULL AS Int32\)\)\)\)\)\)\) / nullif\(count\(\*\), Int64\(\-54\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "Int64\(\-77\) \* Int64\(\-57\) \+ \(\- nullif\(Int64\(0\), CAST\(NULL AS Int32\) \* Int64\(14\) \* Int64\(\-19\) \- \(\- \(\- nullif\(\(\- Int64\(\-25\)\), Int64\(0\) / Int64\(\-28\) / Int64\(5\) / Int64\(\-85\) \* \(\- CAST\(NULL AS Int32\)\)\)\)\)\)\) / nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-54\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 62 AS col2, - 77 * - 57 + + - NULLIF ( + 0, CAST ( NULL AS INTEGER ) * + 14 * - 19 - - - NULLIF ( - - 25, + 0 / - 28 / 5 / + - 85 * + - CAST ( NULL AS INTEGER ) ) ) / NULLIF ( + COUNT ( * ), - 54 ) AS col2 query I rowsort label-9477 @@ -50475,7 +50475,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\(\*\) AS col2" at position 0 and "Int64\(\-3\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(24\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -50902,7 +50902,7 @@ SELECT ALL 66 col2, 54 * - CASE - - 57 WHEN - 29 THEN NULL WHEN - + 75 THEN 50 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 0 -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\(59\) / Int64\(1\) / count\(\*\) \* 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\(17\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(59\) / Int64\(1\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 AS col1, COUNT ( * ) / 59 / 1 / + + COUNT ( * ) * - 41 AS col1 query I rowsort @@ -50956,7 +50956,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\(\*\) 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 @@ -51178,7 +51178,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\(\*\) AS col0" at position 0 and "Int64\(40\) \* Int64\(\-74\) \* Int64\(\-17\) \+ 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 @@ -52212,7 +52212,7 @@ SELECT - 90 * - + 17 - 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "Int64\(39\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(39\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 85 AS col1, 39 * - ( + - COUNT ( * ) ) AS col1 query I rowsort label-9944 @@ -52331,7 +52331,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\(\*\) 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 03be838..fcddd20 100644 --- a/data/sqlite/random/expr/slt_good_114.slt +++ b/data/sqlite/random/expr/slt_good_114.slt @@ -206,7 +206,7 @@ SELECT ALL - 19 * - - 72 AS col1, 81 - - COALESCE ( - CASE + - CASE + 48 WHEN 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "CAST\(Int64\(18\) AS Int32\) \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(Int64\(18\) AS Int32\) \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, CAST ( + 18 AS INTEGER ) + - 84 AS col1 query II rowsort label-32 @@ -474,7 +474,7 @@ SELECT ALL 87 * + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(75\) \* count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(49\), Int64\(18\) \+ \(\- Int64\(\-66\)\) \+ 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 @@ -1779,7 +1779,7 @@ SELECT 42 AS col2, + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7905 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(85\) AS col2" at position 0 and "coalesce\(\(\- count\(\*\)\), Int64\(\-42\) \+ Int64\(54\)\) / Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(85\) AS col2" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-42\) \+ Int64\(54\)\) / Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 93 * 85 AS col2, COALESCE ( + - COUNT ( * ), - 42 + + 54 ) / + 64 AS col2 query I rowsort @@ -2164,7 +2164,7 @@ SELECT + 30 AS col0, 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col1" at position 0 and "Int64\(97\) / CAST\(\(\- coalesce\(Int64\(46\), Int64\(\-73\) \* Int64\(7\) \+ coalesce\(count\(\*\), Int64\(\-26\)\), \(\- CAST\(NULL AS Int32\)\), Int64\(10\), Int64\(\-50\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col1" at position 0 and "Int64\(97\) / CAST\(\(\- coalesce\(Int64\(46\), Int64\(\-73\) \* Int64\(7\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-26\)\), \(\- CAST\(NULL AS Int32\)\), Int64\(10\), Int64\(\-50\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 87 AS col1, 97 / CAST ( - COALESCE ( + + 46, - 73 * + 7 + + + COALESCE ( + + COUNT ( * ), - 26 ), - CAST ( NULL AS INTEGER ), 10, - 50 ) AS INTEGER ) AS col1 query I rowsort @@ -4784,7 +4784,7 @@ SELECT + COALESCE ( NULLIF ( - 67, - 22 ), + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1378 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* count\(\*\) \* \(\- Int64\(26\)\) AS col1" at position 0 and "\(\- Int64\(32\)\) / \(\- 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\(53\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(26\)\) AS col1" at position 0 and "\(\- Int64\(32\)\) / \(\- Int64\(7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 53 * + COUNT ( * ) * - + 26 AS col1, - ( + 32 ) / - + ( 7 ) col1 query I rowsort label-903 @@ -4986,7 +4986,7 @@ SELECT - 88 / - + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 36036 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(\*\)\), \(\- Int64\(\-59\)\) \- Int64\(53\), Int64\(34\)\) AS col2" at position 0 and "Int64\(99\) \* \(\- Int64\(\-7\)\) \* \(\- Int64\(\-52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-59\)\) \- Int64\(53\), Int64\(34\)\) AS col2" at position 0 and "Int64\(99\) \* \(\- Int64\(\-7\)\) \* \(\- Int64\(\-52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( - + COUNT ( * ), - - 59 - + 53, 34 ) AS col2, 99 * - - 7 * - - 52 AS col2 query I rowsort label-942 @@ -5062,7 +5062,7 @@ SELECT ALL - 12 * + 49 * + CAST ( - + 93 AS INTEGER ) + - - CAST ( ( + 91 ) AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(17\) AS col1" at position 0 and "Int64\(38\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(17\) AS col1" at position 0 and "Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 3 * ( 17 ) AS col1, + 38 * - COUNT ( * ) AS col1 query II rowsort label-956 @@ -5159,7 +5159,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\(\*\) AS col0" at position 1 have the 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 @@ -5369,7 +5369,7 @@ SELECT ALL 52 * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(15\) \- coalesce\(\(\- sum\(Int64\(60\)\)\), Int64\(\-11\), Int64\(96\)\) \- Int64\(82\) AS col2" at position 0 and "Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) \- coalesce\(\(\- sum\(Int64\(60\)\)\), Int64\(\-11\), Int64\(96\)\) \- Int64\(82\) AS col2" at position 0 and "Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + 15 - COALESCE ( - SUM ( ALL + 60 ), + - 11, 96 ) - + 82 AS col2, - 7 AS col2 query II rowsort label-1013 @@ -5766,7 +5766,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -2342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \- Int64\(\-30\) AS col0" at position 0 and "max\(Int64\(34\)\) \* Int64\(67\) \* \(\- coalesce\(CAST\(NULL AS Int32\), count\(\*\), count\(\*\)\)\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \- Int64\(\-30\) AS col0" at position 0 and "max\(Int64\(34\)\) \* Int64\(67\) \* \(\- coalesce\(CAST\(NULL AS Int32\), count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 - - 30 AS col0, MAX ( ALL + 34 ) * + + 67 * - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ), + COUNT ( * ) ) + + - 64 AS col0 query I rowsort label-1090 @@ -5982,7 +5982,7 @@ SELECT DISTINCT 86 + - 21 + - SUM ( ALL - 88 ) * - - 6 + - 19, + 18 AS col0, + + # Datafusion - Expected - 92 # Datafusion - Expected - 4284 # 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\(\*\)\) 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\(92\) 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 92 col0, + CAST ( 84 AS INTEGER ) * + 51, + - COUNT ( * ) AS col0 query I rowsort @@ -6566,7 +6566,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\(\*\) 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 @@ -8202,7 +8202,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \+ Int64\(\-95\) \+ Int64\(30\) AS col0" at position 0 and "Int64\(73\) \* CASE \(\- \(\- count\(\*\)\)\) WHEN \(\- Int64\(11\)\) \- Int64\(0\) \+ Int64\(16\) \+ Int64\(76\) / Int64\(\-37\) \+ \(\- Int64\(\-65\)\) \* Int64\(60\) \+ Int64\(\-83\) \+ CASE Int64\(\-93\) WHEN Int64\(34\) \* Int64\(\-65\) THEN \(\- CASE Int64\(57\) WHEN Int64\(55\) \* Int64\(\-86\) THEN Int64\(60\) \* count\(\*\) ELSE NULL END\) WHEN Int64\(18\) \* Int64\(64\) / Int64\(66\) \+ Int64\(5\) \- Int64\(46\) THEN NULL END \* Int64\(71\) \+ Int64\(50\) THEN Int64\(95\) 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\(\-95\) \+ Int64\(30\) AS col0" at position 0 and "Int64\(73\) \* CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- Int64\(11\)\) \- Int64\(0\) \+ Int64\(16\) \+ Int64\(76\) / Int64\(\-37\) \+ \(\- Int64\(\-65\)\) \* Int64\(60\) \+ Int64\(\-83\) \+ CASE Int64\(\-93\) WHEN Int64\(34\) \* Int64\(\-65\) THEN \(\- CASE Int64\(57\) WHEN Int64\(55\) \* Int64\(\-86\) THEN Int64\(60\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) WHEN Int64\(18\) \* Int64\(64\) / Int64\(66\) \+ Int64\(5\) \- Int64\(46\) THEN NULL END \* Int64\(71\) \+ Int64\(50\) THEN Int64\(95\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 35 ) + + - 95 + + 30 AS col0, 73 * CASE + - ( - + COUNT ( * ) ) WHEN - + 11 - 0 + + 16 + 76 / - 37 + - - 65 * 60 + - 83 + + + CASE + - 93 WHEN 34 * ( - 65 ) THEN - + CASE + 57 WHEN + 55 * - 86 THEN + 60 * COUNT ( * ) ELSE NULL END WHEN 18 * 64 / 66 + 5 - + 46 THEN NULL END * + 71 + + + 50 THEN ( + 95 ) END AS col0 query I rowsort @@ -8343,7 +8343,7 @@ SELECT - + ( 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(\*\)\) WHEN nullif\(\(\- Int64\(94\)\), Int64\(54\) / Int64\(87\)\) \* Int64\(42\) THEN Int64\(25\) END \* Int64\(48\) \+ Int64\(\-53\) AS col2" at position 0 and "Int64\(27\) \* 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 "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN nullif\(\(\- Int64\(94\)\), Int64\(54\) / Int64\(87\)\) \* Int64\(42\) THEN Int64\(25\) END \* Int64\(48\) \+ Int64\(\-53\) AS col2" at position 0 and "Int64\(27\) \* Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE + - COUNT ( * ) WHEN NULLIF ( - + 94, + + 54 / 87 ) * + 42 THEN + 25 END * 48 + + - 53 AS col2, 27 * - 72 AS col2 query I rowsort label-1575 @@ -12899,7 +12899,7 @@ SELECT 10 / 8 AS col0, NULLIF ( - 36, - 49 ) * - + 5 - + COUNT ( ALL 27 ) - + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(25\) \+ Int64\(\-94\) \- count\(\*\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(25\) \+ Int64\(\-94\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 83 AS col0, 25 + - 94 - COUNT ( * ) * 85 AS col0 query II rowsort label-2452 @@ -14867,7 +14867,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\(\*\) AS col2" at position 1 have the 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 @@ -14890,7 +14890,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\(\*\) 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 @@ -17777,7 +17777,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\(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\(\*\) AS col0" at position 1 have the 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 @@ -18136,7 +18136,7 @@ SELECT ALL + CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN 81 - + 21 ELSE + + 28 + # 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 "nullif\(Int64\(3\), Int64\(17\) \+ nullif\(\(\- count\(\*\)\), Int64\(\-90\) \* Int64\(10\) \+ 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\(\-69\)\) AS col0" at position 0 and "nullif\(Int64\(3\), Int64\(17\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-90\) \* Int64\(10\) \+ Int64\(36\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 69 AS col0, NULLIF ( 3, 17 + + NULLIF ( - COUNT ( * ), + - 90 * 10 + + 36 ) ) AS col0 query I rowsort label-3445 @@ -21058,7 +21058,7 @@ SELECT DISTINCT + - 89 / + - 4 - 77 + + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 3926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(\-89\) \+ Int64\(93\) \+ count\(\*\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(47\) \* Int64\(95\) \+ Int64\(\-49\) \* 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\(19\) / Int64\(\-89\) \+ Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(47\) \* Int64\(95\) \+ Int64\(\-49\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 19 / - 89 + + 93 + + COUNT ( * ) * - - COUNT ( * ) AS col2, + 47 * 95 + - 49 * 11 AS col2 query I rowsort label-4008 @@ -22304,7 +22304,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 140421 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(18\) \* Int64\(36\) \* Int64\(44\) \+ \(\- count\(\*\)\) \+ CASE WHEN NOT Int64\(47\) IS NOT NULL THEN \(\- CAST\(NULL AS Int32\)\) \- Int64\(55\) \* \(\- count\(\*\)\) \* Int64\(\-36\) \+ \(\- Int64\(\-27\)\) ELSE Int64\(62\) \* Int64\(95\) END \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(18\) \* Int64\(36\) \* Int64\(44\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE WHEN NOT Int64\(47\) IS NOT NULL THEN \(\- CAST\(NULL AS Int32\)\) \- Int64\(55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-36\) \+ \(\- Int64\(\-27\)\) ELSE Int64\(62\) \* Int64\(95\) END \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 AS col2, + 18 * 36 * + 44 + + ( + - COUNT ( * ) ) + CASE WHEN NOT + 47 IS NOT NULL THEN + - CAST ( NULL AS INTEGER ) - + + 55 * - COUNT ( * ) * - 36 + - - 27 ELSE + 62 * 95 END * + 19 col2 query I rowsort @@ -23932,7 +23932,7 @@ SELECT MAX ( ALL - 65 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) \* \(\- coalesce\(Int64\(74\), count\(DISTINCT Int64\(31\)\) / Int64\(\-48\) \* \(\- Int64\(37\)\) \* max\(nullif\(Int64\(\-27\), Int64\(71\) \+ Int64\(\-18\)\)\), Int64\(86\)\)\) \- \(\- Int64\(53\)\) 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(Int64\(74\), count\(DISTINCT Int64\(31\)\) / Int64\(\-48\) \* \(\- Int64\(37\)\) \* max\(nullif\(Int64\(\-27\), Int64\(71\) \+ Int64\(\-18\)\)\), Int64\(86\)\)\) \- \(\- Int64\(53\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) * + - COUNT ( * ) * - COALESCE ( + 74, COUNT ( DISTINCT + 31 ) / - 48 * - + 37 * MAX ( ALL + NULLIF ( - 27, 71 + - 18 ) ), + + 86 ) - - + 53 AS col0, 95 AS col0 query I rowsort @@ -24095,7 +24095,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\(\*\) AS col2" at position 1 have the 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: @@ -24323,7 +24323,7 @@ SELECT DISTINCT 89 + 60 AS col2, 85 * 33 # Datafusion - Expected - 14 # Datafusion - Expected - 92 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* \(\- 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\(\-14\) \* \(\- 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 - 14 * - COUNT ( * ) AS col1, 92 AS col1, 29 query I rowsort label-4631 @@ -24868,7 +24868,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\(\*\) 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 @@ -27279,7 +27279,7 @@ SELECT ALL + 52 AS col0, + ( - 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "coalesce\(Int64\(\-54\), \(\- Int64\(28\)\), \(\- min\(Int64\(\-94\)\)\) \* Int64\(14\)\) / Int64\(84\) \* \(\- count\(\*\)\) \+ Int64\(92\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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 "coalesce\(Int64\(\-54\), \(\- Int64\(28\)\), \(\- min\(Int64\(\-94\)\)\) \* Int64\(14\)\) / Int64\(84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(92\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 42 AS col1, COALESCE ( - 54, - ( + 28 ), + - MIN ( ALL + ( - 94 ) ) * + 14 ) / + 84 * + - COUNT ( * ) + 92 + - COUNT ( * ) AS col1 query I rowsort label-5199 @@ -29139,7 +29139,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\(\*\) AS col1" at position 1 have the 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 @@ -29572,7 +29572,7 @@ SELECT ALL 86 * + 85 * COUNT ( * ) AS col1, - 0 # 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\(91\) \+ \(\- Int64\(77\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(77\)\) AS col2" at 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 + - ( 77 ) AS col2, - COUNT ( * ) col2 query I rowsort label-5641 @@ -29996,7 +29996,7 @@ SELECT 80 * + 20 AS col2, 63 + - + 50 # 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\(\*\)\) 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 II rowsort @@ -30040,7 +30040,7 @@ SELECT ALL - 88 * - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(24\) 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\(\*\)\) \+ Int64\(24\) AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 24 AS col1, - 73 AS col1 query I rowsort @@ -30191,7 +30191,7 @@ SELECT DISTINCT 68 * + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5123 # Datafusion - Expected - -1900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ Int64\(\-42\) \+ Int64\(61\) \* Int64\(84\) \- Int64\(\-27\) AS col2" at position 0 and "Int64\(\-25\) \* Int64\(\-76\) / \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-42\) \+ Int64\(61\) \* Int64\(84\) \- Int64\(\-27\) AS col2" at position 0 and "Int64\(\-25\) \* Int64\(\-76\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 + + - 42 + + + 61 * 84 - - 27 AS col2, - 25 * - 76 / - COUNT ( * ) AS col2 # Datafusion - Types were automatically converted from: @@ -30266,7 +30266,7 @@ SELECT - ( 38 ) * + 30 + 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 4923102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) \+ \(\- Int64\(78\)\) AS col0" at position 0 and "Int64\(\-67\) \+ \(\- Int64\(\-70\)\) \+ Int64\(28\) \* nullif\(min\(Int64\(74\)\), count\(\*\)\) \* Int64\(36\) \* Int64\(66\) \+ min\(Int64\(50\) \- Int64\(23\)\) \+ CASE WHEN Int64\(\-24\) BETWEEN Int64\(\-82\) \* Int64\(38\) \+ \(\- avg\(Int64\(\-91\)\)\) AND Int64\(18\) \* Int64\(49\) THEN Int64\(0\) WHEN NULL NOT BETWEEN Int64\(87\) AND NULL THEN NULL WHEN NOT \(\- max\(Int64\(20\)\)\) \+ Int64\(6\) \* Int64\(\-36\) NOT BETWEEN Int64\(3\) AND Int64\(1\) \- \(\- count\(\*\)\) / CAST\(Int64\(9\) AS Int32\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) \+ \(\- Int64\(78\)\) AS col0" at position 0 and "Int64\(\-67\) \+ \(\- Int64\(\-70\)\) \+ Int64\(28\) \* nullif\(min\(Int64\(74\)\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(36\) \* Int64\(66\) \+ min\(Int64\(50\) \- Int64\(23\)\) \+ CASE WHEN Int64\(\-24\) BETWEEN Int64\(\-82\) \* Int64\(38\) \+ \(\- avg\(Int64\(\-91\)\)\) AND Int64\(18\) \* Int64\(49\) THEN Int64\(0\) WHEN NULL NOT BETWEEN Int64\(87\) AND NULL THEN NULL WHEN NOT \(\- max\(Int64\(20\)\)\) \+ Int64\(6\) \* Int64\(\-36\) NOT BETWEEN Int64\(3\) AND Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / CAST\(Int64\(9\) AS Int32\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 95 + - + 78 AS col0, - 67 + - ( - 70 ) + + + ( + 28 ) * + NULLIF ( + MIN ( ALL + + 74 ), COUNT ( * ) ) * + 36 * + 66 + MIN ( ALL 50 - + 23 ) + + CASE WHEN ( - 24 ) BETWEEN - 82 * + 38 + - AVG ( ALL - 91 ) AND 18 * 49 THEN + 0 WHEN ( NULL ) NOT BETWEEN ( 87 ) AND NULL THEN NULL WHEN NOT - MAX ( ALL 20 ) + 6 * - 36 NOT BETWEEN 3 AND 1 - ( - COUNT ( * ) ) / CAST ( 9 AS INTEGER ) THEN NULL ELSE NULL END AS col0 query I rowsort label-5774 @@ -31793,7 +31793,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\(\*\) 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 @@ -32242,7 +32242,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) / Int64\(14\) AS col2" at position 0 and "nullif\(Int64\(\-13\), \(\- Int64\(11\)\) \- count\(\*\)\) AS col2" at position 1 have the 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\(14\) AS col2" at position 0 and "nullif\(Int64\(\-13\), \(\- Int64\(11\)\) \- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 98 / 14 AS col2, + NULLIF ( - 13, - + ( + + 11 ) - COUNT ( * ) ) AS col2 query I rowsort label-6150 @@ -33634,7 +33634,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\(\*\) 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 @@ -34310,7 +34310,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\(\*\)\) AS col1" at position 0 and "count\(\*\) \* sum\(DISTINCT 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\(\*\) \* sum\(DISTINCT Int64\(82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + COUNT ( * ) * + + SUM ( DISTINCT 82 ) AS col1 query I rowsort @@ -35951,7 +35951,7 @@ SELECT ALL + 54 * - COUNT ( * ) / - COUNT ( * ) AS col2 # 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\(\*\)\) AS col2" at position 1 have the 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 @@ -37971,7 +37971,7 @@ SELECT 46 * + MAX ( DISTINCT - 64 ) * - 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \- Int64\(84\) AS col0" at position 0 and "Int64\(79\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(84\) AS col0" at position 0 and "Int64\(79\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 - + 84 AS col0, 79 * - - COUNT ( * ) AS col0 query I rowsort label-7243 @@ -38697,7 +38697,7 @@ SELECT - 85 + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) / \(\- CASE \(\- Int64\(\-29\)\) WHEN Int64\(\-61\) THEN count\(\*\) \* Int64\(54\) END\) AS col1" at position 0 and "Int64\(24\) \- Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) / \(\- CASE \(\- Int64\(\-29\)\) WHEN Int64\(\-61\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\) END\) AS col1" at position 0 and "Int64\(24\) \- Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 91 / - CASE - - 29 WHEN + - 61 THEN COUNT ( * ) * + + 54 END AS col1, 24 - + 13 AS col1 query I rowsort @@ -38925,7 +38925,7 @@ SELECT + 79 * + - COUNT ( * ), 40 * - 34 * + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -7561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col0" at position 0 and "CAST\(Int64\(\-65\) AS Int32\) \* \(\- coalesce\(count\(\*\), Int64\(73\) \+ Int64\(\-75\), \(\- Int64\(\-41\)\) \* Int64\(\-84\)\)\) \+ Int64\(\-93\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col0" at position 0 and "CAST\(Int64\(\-65\) AS Int32\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(73\) \+ Int64\(\-75\), \(\- Int64\(\-41\)\) \* Int64\(\-84\)\)\) \+ Int64\(\-93\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 96 ) AS col0, CAST ( - 65 AS INTEGER ) * - COALESCE ( COUNT ( * ), + 73 + ( - 75 ), - - 41 * - 84 ) + + - 93 * + 82 col0 query I rowsort label-7425 @@ -40578,7 +40578,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\(\*\) 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 @@ -40919,7 +40919,7 @@ SELECT + - CAST ( + 50 AS INTEGER ) AS col2 # 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 "\(\- Int64\(\-1\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(\*\)\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-1\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 1 AS col0, 42 * - COUNT ( * ) + + 96 AS col0 query I rowsort label-7804 @@ -41425,7 +41425,7 @@ SELECT - COUNT ( * ) * - COUNT ( * ) col2, NULLIF ( + 72, + 54 ), ( + 13 ) AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \* Int64\(27\) \* Int64\(10\) / CASE Int64\(10\) WHEN \(\- avg\(Int64\(38\)\)\) THEN NULL WHEN CASE \(\- min\(Int64\(\-54\)\)\) WHEN Int64\(\-10\) THEN Int64\(23\) ELSE Int64\(\-89\) \+ \(\- count\(\*\)\) END \* Int64\(\-39\) \* Int64\(55\) / Int64\(\-95\) \* \(\- Int64\(\-54\)\) / min\(Int64\(\-7\)\) THEN Int64\(76\) \* Int64\(48\) END \- count\(\*\) / Int64\(83\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \* Int64\(27\) \* Int64\(10\) / CASE Int64\(10\) WHEN \(\- avg\(Int64\(38\)\)\) THEN NULL WHEN CASE \(\- min\(Int64\(\-54\)\)\) WHEN Int64\(\-10\) THEN Int64\(23\) ELSE Int64\(\-89\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* Int64\(\-39\) \* Int64\(55\) / Int64\(\-95\) \* \(\- Int64\(\-54\)\) / min\(Int64\(\-7\)\) THEN Int64\(76\) \* Int64\(48\) END \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(83\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 7 * 27 * + ( 10 ) / + + CASE 10 WHEN + - AVG ( ALL + 38 ) THEN NULL WHEN + + CASE - + MIN ( - 54 ) WHEN - 10 THEN + 23 ELSE - 89 + - COUNT ( * ) END * + - 39 * + + 55 / - 95 * - - 54 / MIN ( - 7 ) THEN 76 * 48 END - + COUNT ( * ) / 83 AS col1, - 16 AS col1 query I rowsort @@ -41468,7 +41468,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - -442 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \- Int64\(\-76\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-13\) \* Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \- Int64\(\-76\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-13\) \* Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 53 - + - 76 AS col2, COUNT ( * ) * + - 13 * + + 34 AS col2 query I rowsort @@ -42546,7 +42546,7 @@ SELECT ALL + 21 * - + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(\-61\) \+ Int64\(14\) \+ \(\- \(\- CASE Int64\(\-90\) WHEN Int64\(11\) \+ Int64\(\-58\) THEN Int64\(92\) ELSE NULL END\)\) \* Int64\(\-94\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(89\) \* Int64\(88\) \- \(\- Int64\(\-17\)\) \+ Int64\(\-29\) \+ count\(\*\) \+ Int64\(20\) \+ Int64\(58\) / CAST\(NULL AS Int32\) \+ Int64\(\-17\) / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(\-61\) \+ Int64\(14\) \+ \(\- \(\- CASE Int64\(\-90\) WHEN Int64\(11\) \+ Int64\(\-58\) THEN Int64\(92\) ELSE NULL END\)\) \* Int64\(\-94\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(89\) \* Int64\(88\) \- \(\- Int64\(\-17\)\) \+ Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ Int64\(58\) / CAST\(NULL AS Int32\) \+ Int64\(\-17\) / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 60 * - 61 + + 14 + - - CASE - 90 WHEN + 11 + - 58 THEN + + 92 ELSE NULL END * + - 94 * - - CAST ( NULL AS INTEGER ) col1, + 89 * + 88 - - - 17 + - 29 + COUNT ( * ) + 20 + 58 / + CAST ( NULL AS INTEGER ) + - 17 / + 52 AS col1 query I rowsort label-8110 @@ -43833,7 +43833,7 @@ SELECT + ( - NULLIF ( - 54, - - 77 ) ) * + 70 + - NULLIF ( - + 2, 58 + + 30 ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(\-14\) \- \(\- coalesce\(Int64\(60\), Int64\(39\) \* Int64\(\-71\) \* \(\- Int64\(\-41\)\) \+ \(\- count\(\*\)\), \(\- count\(\*\)\)\)\) \- Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(\-14\) \- \(\- coalesce\(Int64\(60\), Int64\(39\) \* Int64\(\-71\) \* \(\- Int64\(\-41\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 93 AS col2, - 14 - + - COALESCE ( 60, 39 * + - 71 * - - 41 + + - COUNT ( * ), - COUNT ( * ) ) - 84 AS col2 query I rowsort label-8355 @@ -44128,7 +44128,7 @@ SELECT ALL + 92 * ( - 81 ), + COUNT ( * ) + + 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 28 -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\(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\(22\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 22 AS col0, + COUNT ( * ) * + + 28 AS col0 query I rowsort @@ -46268,7 +46268,7 @@ SELECT DISTINCT 20 * 8 * - + 3 + 46 * + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "CASE nullif\(Int64\(\-47\), Int64\(66\) / count\(\*\) \+ Int64\(65\) \+ Int64\(64\) \* Int64\(\-31\)\) WHEN Int64\(16\) THEN Int64\(24\) \* max\(DISTINCT Int64\(58\)\) \+ CAST\(Int64\(8\) AS Int32\) \* Int64\(59\) WHEN Int64\(79\) \+ Int64\(9\) THEN Int64\(44\) \* \(\- CASE CASE Int64\(4\) WHEN Int64\(\-54\) / Int64\(\-21\) \+ count\(\*\) \* Int64\(61\) THEN Int64\(50\) END WHEN Int64\(\-29\) THEN Int64\(\-4\) \+ Int64\(15\) \* Int64\(\-18\) WHEN CASE Int64\(92\) WHEN CAST\(NULL AS Int32\) \+ \(\- min\(Int64\(97\)\)\) THEN Int64\(63\) END \* Int64\(8\) THEN NULL ELSE NULL END\) END \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "CASE nullif\(Int64\(\-47\), Int64\(66\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \+ Int64\(64\) \* Int64\(\-31\)\) WHEN Int64\(16\) THEN Int64\(24\) \* max\(DISTINCT Int64\(58\)\) \+ CAST\(Int64\(8\) AS Int32\) \* Int64\(59\) WHEN Int64\(79\) \+ Int64\(9\) THEN Int64\(44\) \* \(\- CASE CASE Int64\(4\) WHEN Int64\(\-54\) / Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) THEN Int64\(50\) END WHEN Int64\(\-29\) THEN Int64\(\-4\) \+ Int64\(15\) \* Int64\(\-18\) WHEN CASE Int64\(92\) WHEN CAST\(NULL AS Int32\) \+ \(\- min\(Int64\(97\)\)\) THEN Int64\(63\) END \* Int64\(8\) THEN NULL ELSE NULL END\) END \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 71 AS col1, + CASE + NULLIF ( - 47, + 66 / + + COUNT ( * ) + + 65 + 64 * - 31 ) WHEN 16 THEN ( + 24 ) * + MAX ( DISTINCT + 58 ) + CAST ( 8 AS INTEGER ) * 59 WHEN 79 + 9 THEN 44 * - CASE + CASE + 4 WHEN - 54 / - 21 + COUNT ( * ) * ( 61 ) THEN 50 END WHEN - 29 THEN - 4 + + 15 * - 18 WHEN CASE + 92 WHEN CAST ( NULL AS INTEGER ) + - MIN ( ALL + 97 ) THEN + 63 END * 8 THEN NULL ELSE NULL END END * - 70 col1 query I rowsort label-8824 @@ -47215,7 +47215,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\(\*\)\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -48046,7 +48046,7 @@ SELECT + COALESCE ( + CASE 74 WHEN - + 67 THEN CAST ( + 73 AS INTEGER ) END, 95 # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ALL - 25 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -48699,7 +48699,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\(\*\) 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 @@ -50249,7 +50249,7 @@ SELECT 70 + + COALESCE ( + 64, + - 60, COUNT ( * ) + - ( + 23 ) / + MIN ( 10 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -315 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-44\) \* count\(\*\) \+ CAST\(\(\- count\(\*\)\) AS Int32\)\) \* Int64\(7\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-44\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(7\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( - + CAST ( NULL AS INTEGER ), - 44 * COUNT ( * ) + CAST ( - + COUNT ( * ) AS INTEGER ) ) * + 7 AS col2, 3 AS col2 query I rowsort label-9584 @@ -50687,7 +50687,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\(\*\) AS col0" at position 1 have the 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 @@ -51172,7 +51172,7 @@ SELECT ALL NULLIF ( - 51, - + 69 ) + + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-98\) \* \(\- count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(\-8\), Int64\(\-57\)\) / Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-98\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(\-8\), Int64\(\-57\)\) / Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - 98 * - COUNT ( * ) AS col2, NULLIF ( - 8, - 57 ) / - 46 AS col2 query I rowsort label-9758 @@ -51304,7 +51304,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\(\*\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + 11 AS col1 query II rowsort label-9783 diff --git a/data/sqlite/random/expr/slt_good_115.slt b/data/sqlite/random/expr/slt_good_115.slt index 6f3a818..108ebf3 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\(\*\) 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 @@ -306,7 +306,7 @@ SELECT ALL 77 * + 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3479 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ \(\- Int64\(\-3\)\) \* \(\- Int64\(\-89\)\) \+ Int64\(\-88\) \+ Int64\(34\) \* Int64\(95\) AS col1" at position 0 and "CASE CAST\(NULL AS Float64\) WHEN Int64\(\-93\) THEN NULL WHEN Int64\(5\) THEN Int64\(\-4\) / Int64\(1\) \* \(\- count\(DISTINCT Int64\(65\)\)\) \* nullif\(Int64\(\-77\), Int64\(\-76\)\) \+ \(\- CASE Int64\(\-91\) WHEN Int64\(\-41\) \* Int64\(\-95\) THEN NULL WHEN \(\- count\(\*\)\) \* \(\- count\(\*\)\) \* Int64\(22\) / \(\- count\(\*\)\) \- Int64\(93\) \+ Int64\(23\) THEN Int64\(\-12\) \+ Int64\(85\) END\) \+ Int64\(65\) \* CAST\(NULL AS Float64\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ \(\- Int64\(\-3\)\) \* \(\- Int64\(\-89\)\) \+ Int64\(\-88\) \+ Int64\(34\) \* Int64\(95\) AS col1" at position 0 and "CASE CAST\(NULL AS Float64\) WHEN Int64\(\-93\) THEN NULL WHEN Int64\(5\) THEN Int64\(\-4\) / Int64\(1\) \* \(\- count\(DISTINCT Int64\(65\)\)\) \* nullif\(Int64\(\-77\), Int64\(\-76\)\) \+ \(\- CASE Int64\(\-91\) WHEN Int64\(\-41\) \* Int64\(\-95\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(22\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(93\) \+ Int64\(23\) THEN Int64\(\-12\) \+ Int64\(85\) END\) \+ Int64\(65\) \* CAST\(NULL AS Float64\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 70 + + - ( - 3 ) * - - 89 + - 88 + 34 * 95 AS col1, CASE + CAST ( NULL AS FLOAT8 ) WHEN - 93 THEN NULL WHEN + + 5 THEN - 4 / + 1 * - COUNT ( DISTINCT 65 ) * + NULLIF ( + - 77, - 76 ) + - CASE - 91 WHEN - 41 * + + ( - 95 ) THEN NULL WHEN + - COUNT ( * ) * - COUNT ( * ) * 22 / - COUNT ( * ) - 93 + 23 THEN + - 12 + 85 END + + 65 * CAST ( NULL AS FLOAT8 ) ELSE NULL END AS col1 query I rowsort label-52 @@ -1968,7 +1968,7 @@ SELECT DISTINCT + NULLIF ( 16, - AVG ( DISTINCT 63 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -90 -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\(\-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\(78\) 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 DISTINCT + 78 col2, COUNT ( * ) * - 90 AS col2 query I rowsort label-372 @@ -2454,7 +2454,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\(\*\) 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 @@ -2567,7 +2567,7 @@ SELECT DISTINCT 44 * - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1440 # Datafusion - Expected - 46550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ \(\- count\(\*\)\) \* Int64\(44\) \* CAST\(Int64\(\-34\) AS Int32\) AS col2" at position 0 and "CAST\(Int64\(49\) AS Int32\) \* \(Int64\(53\) \* Int64\(18\) \+ Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(44\) \* CAST\(Int64\(\-34\) AS Int32\) AS col2" at position 0 and "CAST\(Int64\(49\) AS Int32\) \* \(Int64\(53\) \* Int64\(18\) \+ Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 56 + - COUNT ( * ) * + + 44 * + CAST ( - 34 AS INTEGER ) AS col2, CAST ( 49 AS INTEGER ) * + ( 53 * 18 + ( - 4 ) ) AS col2 query I rowsort label-486 @@ -3226,7 +3226,7 @@ SELECT - 51 * - - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(\-84\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(\-84\) \+ \(\- \(\- 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, - 84 + - - COUNT ( * ) AS col0 query I rowsort @@ -5739,7 +5739,7 @@ SELECT + 85 - + - 45 + + - 36 # Datafusion - Expected - 76 # Datafusion - Expected - -5369 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- max\(DISTINCT Int64\(91\)\)\) AS col1" at position 1 and "CASE \(\- \(\- coalesce\(Int64\(18\), count\(\*\)\)\)\) WHEN CASE Int64\(26\) WHEN \(\- count\(Int64\(32\)\)\) \+ Int64\(23\) \+ CAST\(\(\- Int64\(\-75\)\) AS Int32\) \* Int64\(50\) THEN \(\- count\(\*\)\) \* CAST\(NULL AS Int32\) \- Int64\(\-47\) END / count\(\*\) THEN Int64\(\-26\) END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- max\(DISTINCT Int64\(91\)\)\) AS col1" at position 1 and "CASE \(\- \(\- coalesce\(Int64\(18\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) WHEN CASE Int64\(26\) WHEN \(\- count\(Int64\(32\)\)\) \+ Int64\(23\) \+ CAST\(\(\- Int64\(\-75\)\) AS Int32\) \* Int64\(50\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) \- Int64\(\-47\) END / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-26\) END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 76 AS col0, 59 * + - MAX ( DISTINCT 91 ) col1, CASE - - COALESCE ( 18, + COUNT ( * ) ) WHEN CASE + 26 WHEN - COUNT ( + + 32 ) + 23 + + CAST ( - - 75 AS INTEGER ) * + + 50 THEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - 47 END / + + COUNT ( * ) THEN - 26 END AS col1 query I rowsort @@ -5750,7 +5750,7 @@ SELECT + 31 + + 8 AS col1 # 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 "count\(\*\) \* Int64\(51\) 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\(\*\) \* Int64\(51\) 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 ( * ) * + 51 AS col2, 15 AS col2 query I rowsort label-1094 @@ -6456,7 +6456,7 @@ SELECT ALL - COALESCE ( 96, - - CASE + 4 WHEN + 96 * 83 THEN NULL ELSE + ( + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13289 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ Int64\(\-77\) \+ \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \+ \(\- Int64\(\-57\)\) \+ Int64\(5\) \* Int64\(29\) \* \(\- coalesce\(Int64\(92\), \(\- Int64\(\-76\)\) \+ Int64\(\-98\) \+ Int64\(\-40\)\)\) \+ Int64\(22\) / Int64\(\-68\) \+ Int64\(72\) AS col1" at position 0 and "coalesce\(Int64\(\-47\), Int64\(54\) \* \(\- min\(DISTINCT Int64\(42\)\)\) \+ \(\- \(\- nullif\(Int64\(27\), Int64\(\-55\) \+ Int64\(6\) \* Int64\(70\) \+ Int64\(77\) / Int64\(63\) \+ \(\- CAST\(count\(\*\) \+ Int64\(73\) AS Int32\)\)\)\)\)\) \+ Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ Int64\(\-77\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ \(\- Int64\(\-57\)\) \+ Int64\(5\) \* Int64\(29\) \* \(\- coalesce\(Int64\(92\), \(\- Int64\(\-76\)\) \+ Int64\(\-98\) \+ Int64\(\-40\)\)\) \+ Int64\(22\) / Int64\(\-68\) \+ Int64\(72\) AS col1" at position 0 and "coalesce\(Int64\(\-47\), Int64\(54\) \* \(\- min\(DISTINCT Int64\(42\)\)\) \+ \(\- \(\- nullif\(Int64\(27\), Int64\(\-55\) \+ Int64\(6\) \* Int64\(70\) \+ Int64\(77\) / Int64\(63\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) AS Int32\)\)\)\)\)\) \+ Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 2 + - 77 + - CAST ( - COUNT ( * ) AS INTEGER ) + + ( - - 57 ) + + + 5 * 29 * - COALESCE ( + + 92, - + ( - 76 ) + + - 98 + ( - 40 ) ) + 22 / + - 68 + + 72 AS col1, COALESCE ( - 47, 54 * + - MIN ( DISTINCT + 42 ) + - - NULLIF ( + 27, - 55 + 6 * 70 + + + 77 / + 63 + - CAST ( COUNT ( * ) + + 73 AS INTEGER ) ) ) + 16 AS col1 query I rowsort label-1230 @@ -6820,7 +6820,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\(\*\) \+ count\(\*\) AS col1" at position 1 have 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 @@ -7625,7 +7625,7 @@ SELECT - COUNT ( * ) + + + 62 * - + 17 + 12 - - 76 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(57\) AS col1" at position 0 and "count\(\*\) \* Int64\(7\) \* 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\(15\) \+ Int64\(57\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(7\) \* Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 15 + + 57 AS col1, COUNT ( * ) * + 7 * + 4 AS col1 query I rowsort @@ -7717,7 +7717,7 @@ SELECT ( + + 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -124 # Datafusion - Expected - 1656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ Int64\(\-59\) AS col0" at position 0 and "Int64\(24\) \* \(\- Int64\(69\)\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-59\) AS col0" at position 0 and "Int64\(24\) \* \(\- Int64\(69\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 + - 59 AS col0, 24 * - + 69 * - COUNT ( * ) AS col0 query I rowsort label-1470 @@ -8121,7 +8121,7 @@ SELECT 28 + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(17\) 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\(\*\)\) \+ Int64\(17\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + 17 AS col0, 45 AS col0 query I rowsort label-1545 @@ -8462,7 +8462,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\(\*\) 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 @@ -9385,7 +9385,7 @@ SELECT ALL + ( + 14 ) + - 51 + 43 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 133 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) \+ Int64\(89\) AS col2" at position 0 and "Int64\(34\) \+ \(\- \(\- \(\- count\(\*\)\)\)\) AS col2" at position 1 have the 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\(89\) AS col2" at position 0 and "Int64\(34\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 44 + + 89 AS col2, + 34 + - ( - ( - + COUNT ( * ) ) ) AS col2 query I rowsort @@ -9467,7 +9467,7 @@ SELECT + 90 * 5 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(15\) \* Int64\(88\) / Int64\(18\) \+ \(\- 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\(64\) AS col1" at position 0 and "Int64\(15\) \* Int64\(88\) / Int64\(18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 64 AS col1, 15 * 88 / + 18 + - + COUNT ( * ) * + 49 AS col1 query I rowsort label-1801 @@ -11281,7 +11281,7 @@ SELECT ALL 9 + MAX ( DISTINCT - 82 ) - - 11 * - - 39 AS col0 # Datafusion - Expected - -5559 # Datafusion - Expected - 61 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-88\) \- \(\- Int64\(\-76\)\) \* Int64\(72\) 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\(\*\) \+ Int64\(\-88\) \- \(\- Int64\(\-76\)\) \* Int64\(72\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - 88 - - - 76 * 72 AS col0, 61 AS col0, - 39 col0 query I rowsort label-2151 @@ -11703,7 +11703,7 @@ SELECT - 39, 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CASE Int64\(23\) WHEN \(\- Int64\(\-19\)\) \* Int64\(\-16\) \+ CAST\(Int64\(\-59\) AS Int32\) THEN \(\- Int64\(\-31\)\) / count\(\*\) \+ Int64\(\-89\) \- Int64\(73\) \- Int64\(41\) WHEN Int64\(79\) \* Int64\(42\) \+ Int64\(24\) THEN NULL ELSE Int64\(\-12\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CASE Int64\(23\) WHEN \(\- Int64\(\-19\)\) \* Int64\(\-16\) \+ CAST\(Int64\(\-59\) AS Int32\) THEN \(\- Int64\(\-31\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-89\) \- Int64\(73\) \- Int64\(41\) WHEN Int64\(79\) \* Int64\(42\) \+ Int64\(24\) THEN NULL ELSE Int64\(\-12\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 41 AS col2, CASE 23 WHEN - - 19 * - 16 + CAST ( - 59 AS INTEGER ) THEN - - 31 / COUNT ( * ) + - 89 - + + 73 - + ( 41 ) WHEN 79 * 42 + 24 THEN NULL ELSE - 12 END AS col2 # Datafusion - Types were automatically converted from: @@ -11891,7 +11891,7 @@ SELECT 6 * - + ( - 59 ) + + + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(82\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(11\) \+ sum\(Int64\(56\)\) \+ 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\(\*\) \* Int64\(82\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(11\) \+ sum\(Int64\(56\)\) \+ Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 82 col0, 69 + 11 + + SUM ( ALL 56 ) + - 69 AS col0 query I rowsort label-2264 @@ -12331,7 +12331,7 @@ SELECT ALL - ( - 70 ) AS col2, + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2349 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS Int32\) \* coalesce\(Int64\(\-87\), Int64\(67\) \* Int64\(28\) \* Int64\(\-80\) \+ count\(\*\), Int64\(6\)\) AS col1" at position 0 and "max\(Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS Int32\) \* coalesce\(Int64\(\-87\), Int64\(67\) \* Int64\(28\) \* Int64\(\-80\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(6\)\) AS col1" at position 0 and "max\(Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 27 AS INTEGER ) * + COALESCE ( + - 87, + + 67 * + 28 * - 80 + COUNT ( * ), + + 6 ) AS col1, MAX ( ALL 14 ) AS col1 query I rowsort @@ -12570,7 +12570,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\(\*\) 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 @@ -16220,7 +16220,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\(\*\) AS col2" at position 1 have the 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 @@ -16336,7 +16336,7 @@ SELECT - COUNT ( * ) / 17 * - 10 * + COUNT ( * ) * - + CASE - 92 WHEN - COUNT ( # 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\(27\)\) \* \(\- CASE Int64\(13\) WHEN Int64\(1\) THEN \(\- \(\- Int64\(98\)\)\) \* Int64\(\-83\) \+ Int64\(99\) WHEN Int64\(9\) THEN count\(\*\) \* Int64\(61\) \- Int64\(2\) END\) 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 "\(\- Int64\(27\)\) \* \(\- CASE Int64\(13\) WHEN Int64\(1\) THEN \(\- \(\- Int64\(98\)\)\) \* Int64\(\-83\) \+ Int64\(99\) WHEN Int64\(9\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) \- Int64\(2\) END\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 27 * + - CASE + 13 WHEN 1 THEN - ( - + 98 ) * + - 83 + ( 99 ) WHEN + 9 THEN + ( + + COUNT ( * ) ) * 61 - + 2 END AS col2, 98 AS col2 query I rowsort @@ -17151,7 +17151,7 @@ SELECT 14 + + 4 * 37 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40936 # Datafusion - Expected - 4752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(7\), \(\- \(\- count\(\*\)\)\)\) \* Int64\(68\) \* Int64\(86\) AS col0" at position 0 and "Int64\(48\) \* count\(\*\) \* 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 "nullif\(Int64\(7\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(68\) \* Int64\(86\) AS col0" at position 0 and "Int64\(48\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + NULLIF ( + 7, - - COUNT ( * ) ) * 68 * 86 AS col0, + 48 * + + COUNT ( * ) * 99 AS col0 query I rowsort @@ -19211,7 +19211,7 @@ SELECT ALL 70 + + 99 - COUNT ( * ), + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(99\), Int64\(2\)\) AS col0" at position 0 and "Int64\(17\) \+ nullif\(Int64\(\-19\), count\(\*\) \+ Int64\(81\)\) \* CASE Int64\(34\) / Int64\(84\) WHEN CAST\(Int64\(85\) AS Int32\) THEN coalesce\(Int64\(43\), CAST\(NULL AS Int32\) \- Int64\(92\) / Int64\(94\)\) \- Int64\(87\) \* \(CASE Int64\(2\) WHEN CASE Int64\(17\) WHEN Int64\(\-33\) THEN NULL WHEN Int64\(57\) \- Int64\(\-72\) THEN NULL WHEN Int64\(87\) THEN NULL ELSE Int64\(\-6\) END \+ Int64\(97\) THEN Int64\(\-16\) ELSE Int64\(56\) \+ Int64\(97\) END \+ Int64\(77\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(99\), Int64\(2\)\) AS col0" at position 0 and "Int64\(17\) \+ nullif\(Int64\(\-19\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\)\) \* CASE Int64\(34\) / Int64\(84\) WHEN CAST\(Int64\(85\) AS Int32\) THEN coalesce\(Int64\(43\), CAST\(NULL AS Int32\) \- Int64\(92\) / Int64\(94\)\) \- Int64\(87\) \* \(CASE Int64\(2\) WHEN CASE Int64\(17\) WHEN Int64\(\-33\) THEN NULL WHEN Int64\(57\) \- Int64\(\-72\) THEN NULL WHEN Int64\(87\) THEN NULL ELSE Int64\(\-6\) END \+ Int64\(97\) THEN Int64\(\-16\) ELSE Int64\(56\) \+ Int64\(97\) END \+ Int64\(77\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( 99, + 2 ) AS col0, + 17 + + NULLIF ( ( - 19 ), COUNT ( * ) + 81 ) * CASE 34 / + 84 WHEN CAST ( 85 AS INTEGER ) THEN COALESCE ( + 43, + CAST ( NULL AS INTEGER ) - + 92 / 94 ) - + 87 * ( CASE + 2 WHEN CASE + 17 WHEN - 33 THEN NULL WHEN 57 - - 72 THEN NULL WHEN 87 THEN NULL ELSE - 6 END + 97 THEN - 16 ELSE 56 + 97 END + + 77 ) ELSE NULL END AS col0 query II rowsort label-3668 @@ -19726,7 +19726,7 @@ SELECT ALL + 71 * - COUNT ( DISTINCT + + 66 ) # 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\(59\) \- Int64\(58\) AS col2" at position 0 and "Int64\(53\) \+ \(\- avg\(Int64\(\-57\)\)\) \+ Int64\(\-95\) \* \(\- \(\- count\(Int64\(66\)\)\)\) \* CASE Int64\(10\) \* Int64\(\-97\) WHEN count\(\*\) \+ Int64\(38\) \* Int64\(\-69\) THEN Int64\(33\) \+ Int64\(71\) WHEN Int64\(38\) THEN NULL ELSE NULL END \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- Int64\(58\) AS col2" at position 0 and "Int64\(53\) \+ \(\- avg\(Int64\(\-57\)\)\) \+ Int64\(\-95\) \* \(\- \(\- count\(Int64\(66\)\)\)\) \* CASE Int64\(10\) \* Int64\(\-97\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(38\) \* Int64\(\-69\) THEN Int64\(33\) \+ Int64\(71\) WHEN Int64\(38\) THEN NULL ELSE NULL END \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 - + 58 AS col2, + 53 + - AVG ( - 57 ) + - 95 * - ( - COUNT ( ALL + 66 ) ) * CASE 10 * - 97 WHEN COUNT ( * ) + ( 38 ) * - 69 THEN 33 + 71 WHEN + 38 THEN NULL ELSE NULL END + - 13 AS col2 query I rowsort @@ -19801,7 +19801,7 @@ SELECT DISTINCT COUNT ( * ) + 24 + COUNT ( * ) * 10, 30 AS col1 # Datafusion - Expected - 4 # Datafusion - Expected - 85 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-4\), Int64\(50\) \+ Int64\(38\) \+ \(\- count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-4\), Int64\(50\) \+ Int64\(38\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COALESCE ( - 4, + 50 + + 38 + - COUNT ( * ) ) col0, ( - - 85 ), 88 AS col0 # Datafusion - Datafusion expected results: @@ -20141,7 +20141,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\(\*\) AS col0" at position 1 have the 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 @@ -20478,7 +20478,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\(\*\) 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 @@ -20775,7 +20775,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -21881,7 +21881,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\(\*\) 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 @@ -22463,7 +22463,7 @@ SELECT ALL + MAX ( ALL 29 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(52\) WHEN Int64\(55\) THEN coalesce\(Int64\(71\), Int64\(68\)\) \- \(\- Int64\(73\)\) ELSE NULL END \* CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(\*\) \* Int64\(4\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(52\) WHEN Int64\(55\) THEN coalesce\(Int64\(71\), Int64\(68\)\) \- \(\- Int64\(73\)\) ELSE NULL END \* CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE 52 WHEN + 55 THEN + COALESCE ( 71, 68 ) - + ( + - ( + + 73 ) ) ELSE NULL END * CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * + 4 * 55 AS col2 query I rowsort @@ -23484,7 +23484,7 @@ SELECT ALL 64 * + COUNT ( + 23 ) * - 56 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\(9\) / \(\- \(\- coalesce\(Int64\(72\), Int64\(18\)\)\)\) AS col2" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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\(72\), 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 9 / - - COALESCE ( 72, 18 ) AS col2, - ( - COUNT ( * ) ) col2 query I rowsort label-4475 @@ -24000,7 +24000,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\(\*\) AS col2" at position 1 have the 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 @@ -25185,7 +25185,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\(\*\) AS col1" at position 1 have the 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 @@ -25308,7 +25308,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\(\*\) 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 @@ -26083,7 +26083,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\(\*\) AS col1" at position 1 have the 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 @@ -26562,7 +26562,7 @@ SELECT ALL 46 * COUNT ( * ) * 96 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 "Int64\(24\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 ( * ) col0 query I rowsort label-5064 @@ -27661,7 +27661,7 @@ SELECT DISTINCT - ( - 42 ) + - - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21420 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- count\(\*\)\) \* Int64\(\-84\) \* Int64\(17\) AS col1" at position 0 and "Int64\(\-56\) \- \(\- CASE Int64\(\-80\) WHEN Int64\(48\) THEN NULL ELSE Int64\(\-74\) END\) \+ 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\(15\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-84\) \* Int64\(17\) AS col1" at position 0 and "Int64\(\-56\) \- \(\- CASE Int64\(\-80\) WHEN Int64\(48\) THEN NULL ELSE Int64\(\-74\) END\) \+ Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 15 * + - COUNT ( * ) * - 84 * + 17 AS col1, - 56 - + - CASE - 80 WHEN + 48 THEN NULL ELSE - 74 END + 50 AS col1 query I rowsort label-5276 @@ -28592,7 +28592,7 @@ SELECT 5 * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \- \(\- Int64\(\-86\)\) \+ \(\- count\(\*\)\) \* Int64\(0\) 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 "Int64\(35\) \- \(\- Int64\(\-86\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(0\) 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 35 - - - 86 + + - COUNT ( * ) * + 0 AS col2, 22 col2 query II rowsort @@ -29564,7 +29564,7 @@ SELECT NULLIF ( + 16, - - COUNT ( * ) * 18 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 258 -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\(3\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 49 AS col0, COUNT ( * ) * + 3 * 86 AS col0 query I rowsort @@ -29605,7 +29605,7 @@ SELECT ALL + 33 * - SUM ( ALL 1 ), + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 168099 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "\(\- Int64\(\-68\)\) \* Int64\(26\) \* Int64\(95\) / count\(\*\) \- \(\- Int64\(87\)\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "\(\- Int64\(\-68\)\) \* Int64\(26\) \* Int64\(95\) / count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(87\)\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 43 AS col2, ( - - 68 ) * ( + 26 ) * 95 / + + COUNT ( * ) - - + 87 + 52 AS col2 query I rowsort label-5647 @@ -30358,7 +30358,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\(\*\) 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 # Datafusion - Datafusion expected results: @@ -30391,7 +30391,7 @@ SELECT ALL 12 AS col0, + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 213 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(41\) \* count\(\*\) \- Int64\(21\) \+ nullif\(Int64\(71\), Int64\(14\)\) \+ sum\(Int64\(70\)\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(41\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) \+ nullif\(Int64\(71\), Int64\(14\)\) \+ sum\(Int64\(70\)\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 64 AS col2, + 41 * + COUNT ( * ) - 21 + + NULLIF ( 71, + 14 ) + + SUM ( + 70 ) + 52 AS col2 query I rowsort label-5797 @@ -31002,7 +31002,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\(\*\) AS col2" at position 1 have the 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 @@ -31091,7 +31091,7 @@ SELECT NULLIF ( 1, + - 30 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "\(\- CASE count\(\*\) WHEN Int64\(93\) \+ Int64\(\-78\) THEN Int64\(29\) / \(\- Int64\(93\)\) \+ \(\- Int64\(\-27\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(93\) \+ Int64\(\-78\) THEN Int64\(29\) / \(\- Int64\(93\)\) \+ \(\- Int64\(\-27\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 94 AS col0, - CASE + COUNT ( * ) WHEN 93 + - 78 THEN + 29 / - + 93 + - - 27 END AS col0 query I rowsort @@ -31382,7 +31382,7 @@ SELECT + CAST ( - 43 AS INTEGER ) * 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -1078 -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\(98\) \* nullif\(Int64\(\-11\), coalesce\(Int64\(\-14\), Int64\(45\) \* \(\- \(\- nullif\(Int64\(9\), \(\- Int64\(\-20\)\)\)\)\), 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\(42\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(98\) \* nullif\(Int64\(\-11\), coalesce\(Int64\(\-14\), Int64\(45\) \* \(\- \(\- nullif\(Int64\(9\), \(\- Int64\(\-20\)\)\)\)\), Int64\(75\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 42 AS col1, + COUNT ( * ) * 98 * NULLIF ( + - 11, COALESCE ( - 14, 45 * - - NULLIF ( + 9, - - 20 ), 75 ) ) AS col1 query I rowsort label-5986 @@ -31474,7 +31474,7 @@ SELECT DISTINCT + ( - 41 ) AS col0 # 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 "count\(\*\) \* Int64\(53\) \+ Int64\(10\) / Int64\(86\) 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\(\*\) \* Int64\(53\) \+ Int64\(10\) / Int64\(86\) 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 COUNT ( * ) * 53 + + 10 / 86 AS col0, - 27 AS col0 query I rowsort @@ -31711,7 +31711,7 @@ SELECT 11 + - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -106 # Datafusion - Expected - 1762 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \- Int64\(61\) \+ Int64\(22\) / Int64\(95\) \* \(\- CASE \(\- Int64\(\-18\)\) WHEN Int64\(48\) \* CASE Int64\(58\) WHEN Int64\(\-39\) THEN \(\- count\(\*\)\) ELSE Int64\(52\) \* Int64\(\-19\) \- Int64\(67\) END \+ \(\- Int64\(\-51\)\) \+ Int64\(5\) THEN NULL ELSE Int64\(\-27\) END\) AS col2" at position 0 and "\(\- Int64\(35\)\) \* count\(\*\) \+ Int64\(15\) \+ Int64\(81\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \- Int64\(61\) \+ Int64\(22\) / Int64\(95\) \* \(\- CASE \(\- Int64\(\-18\)\) WHEN Int64\(48\) \* CASE Int64\(58\) WHEN Int64\(\-39\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(52\) \* Int64\(\-19\) \- Int64\(67\) END \+ \(\- Int64\(\-51\)\) \+ Int64\(5\) THEN NULL ELSE Int64\(\-27\) END\) AS col2" at position 0 and "\(\- Int64\(35\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) \+ Int64\(81\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 45 - + 61 + 22 / + ( 95 ) * - CASE - - 18 WHEN + 48 * + CASE 58 WHEN + - 39 THEN - COUNT ( * ) ELSE 52 * - 19 - + 67 END + - - 51 + 5 THEN NULL ELSE - 27 END AS col2, - ( 35 ) * COUNT ( * ) + 15 + 81 * + 22 AS col2 query I rowsort @@ -31759,7 +31759,7 @@ SELECT DISTINCT + 32 * 26 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - -1932 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(75\) WHEN count\(\*\) \* coalesce\(\(\- Int64\(81\)\), Int64\(34\)\) \+ \(\- \(\- Int64\(54\)\)\) THEN count\(\*\) \* CAST\(NULL AS Float64\) WHEN \(\- sum\(Int64\(\-47\)\)\) THEN Int64\(42\) WHEN CASE Int64\(8\) WHEN \(\- Int64\(\-61\)\) THEN NULL ELSE Int64\(2\) END THEN \(\- Int64\(\-93\)\) END\) AS col2" at position 0 and "sum\(Int64\(39\)\) \* Int64\(\-48\) \+ \(\- CAST\(Int64\(60\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(75\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- Int64\(81\)\), Int64\(34\)\) \+ \(\- \(\- Int64\(54\)\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Float64\) WHEN \(\- sum\(Int64\(\-47\)\)\) THEN Int64\(42\) WHEN CASE Int64\(8\) WHEN \(\- Int64\(\-61\)\) THEN NULL ELSE Int64\(2\) END THEN \(\- Int64\(\-93\)\) END\) AS col2" at position 0 and "sum\(Int64\(39\)\) \* Int64\(\-48\) \+ \(\- CAST\(Int64\(60\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE + + 75 WHEN + + COUNT ( * ) * COALESCE ( - + 81, + + 34 ) + - - ( 54 ) THEN + COUNT ( * ) * + CAST ( NULL AS FLOAT8 ) WHEN - SUM ( - 47 ) THEN 42 WHEN + CASE + + 8 WHEN - - 61 THEN NULL ELSE 2 END THEN - - 93 END AS col2, SUM ( + 39 ) * - 48 + - CAST ( + + 60 AS INTEGER ) AS col2, + COUNT ( * ) query I rowsort @@ -32791,7 +32791,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\(\*\) AS col0" at position 1 have the 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: @@ -37121,7 +37121,7 @@ SELECT 6 * COUNT ( * ) 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 "\(\- coalesce\(\(\- count\(\*\)\), Int64\(87\)\)\) AS col1" at position 0 and "Int64\(42\) \+ \(\- 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 "\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(87\)\)\) AS col1" at position 0 and "Int64\(42\) \+ \(\- Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + ( + - COUNT ( * ) ), + 87 ) AS col1, + 42 + - + 47 col1 query II rowsort label-7080 @@ -37337,7 +37337,7 @@ SELECT ALL + MIN ( - 32 ) + - 97 AS col0, 98 + - 30 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* \(\- count\(\*\)\) \+ Int64\(24\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(24\) 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 20 * - COUNT ( * ) + + 24 AS col0, + 35 AS col0 query I rowsort @@ -38993,7 +38993,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\(\*\) AS col1" at position 1 have the 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 @@ -39438,7 +39438,7 @@ SELECT ALL - + 79 / - 92 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(97\) \+ \(\- max\(DISTINCT Int64\(50\)\)\) AS col0" at position 0 and "Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(97\) \+ \(\- max\(DISTINCT Int64\(50\)\)\) AS col0" at position 0 and "Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / 97 + - MAX ( DISTINCT 50 ) AS col0, - 14 AS col0 query I rowsort label-7523 @@ -39645,13 +39645,13 @@ SELECT + SUM ( DISTINCT 37 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / \(\- 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\(48\) / \(\- 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 48 / + - COUNT ( * ) AS col2, 54 AS col2 # 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\(36\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(36\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / + + 36 AS col2, - 21 AS col2 # Datafusion - Types were automatically converted from: @@ -39817,7 +39817,7 @@ SELECT + - 43 AS col1, 73 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\(\*\)\) AS col2" at position 0 and "Int64\(97\) \* 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\(97\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col2, 97 * + 0 AS col2 query II rowsort @@ -40686,7 +40686,7 @@ SELECT + 34 + + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(51\) 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\(51\) 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 ( * ) * + 51 AS col1, - 12 AS col1 query II rowsort @@ -41201,7 +41201,7 @@ SELECT - + COUNT ( * ) * - 13 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5769 # Datafusion - Expected - -9098 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(\*\), Int64\(98\) \* Int64\(\-97\) \* avg\(Int64\(90\)\) \+ Int64\(92\)\) \+ count\(\*\) \- Int64\(\-73\) \* Int64\(79\) AS col2" at position 0 and "Int64\(\-98\) \* Int64\(93\) \- \(\- Int64\(69\)\) / Int64\(61\) \+ Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(98\) \* Int64\(\-97\) \* avg\(Int64\(90\)\) \+ Int64\(92\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \* Int64\(79\) AS col2" at position 0 and "Int64\(\-98\) \* Int64\(93\) \- \(\- Int64\(69\)\) / Int64\(61\) \+ Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + NULLIF ( + + COUNT ( * ), + 98 * - 97 * + AVG ( + 90 ) + + 92 ) + + + COUNT ( * ) - - 73 * + 79 AS col2, - 98 * + 93 - + ( - + 69 ) / + + 61 + + ( 15 ) AS col2 query I rowsort label-7855 @@ -41908,7 +41908,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\(\*\) AS col1" at position 1 have the 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 @@ -42604,7 +42604,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\(\*\)\) AS col2" at position 0 and "Int64\(78\) / 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\(78\) / Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col2, 78 / + - 59 col2 query II rowsort label-8120 @@ -42747,7 +42747,7 @@ SELECT DISTINCT - 6 * - + MAX ( ALL + 90 ) * + - COUNT ( * ) # 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 "coalesce\(count\(\*\), \(\- \(\- 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\(50\) AS col2" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- \(\- Int64\(40\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 50 AS col2, COALESCE ( + COUNT ( * ), - ( - + 40 ) ) AS col2 query I rowsort @@ -43127,7 +43127,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\(\*\) \* max\(Int64\(4\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -44198,7 +44198,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\(\*\) 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 @@ -44289,7 +44289,7 @@ SELECT ALL + + 48 + - 25 * + 49 + + - 72 - + 34 + - ( + 22 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -75 -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\(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\(38\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 38 AS col2, COUNT ( * ) * - + 75 AS col2 query I rowsort label-8444 @@ -45232,7 +45232,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\(\*\) AS col0" at position 1 have the 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 @@ -45294,7 +45294,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\(\*\) AS col0" at position 1 have the 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 @@ -45527,7 +45527,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\(\*\) 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 @@ -46129,7 +46129,7 @@ SELECT ALL 76 * + COALESCE ( - 71, + - ( - COALESCE ( - 3, - + 48 * + + 30, + + # Datafusion - Expected - 69 # Datafusion - Expected - 118 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(\-35\) / Int64\(98\) \* Int64\(\-76\) \* count\(\*\) \* 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\(69\) AS col0" at position 0 and "Int64\(\-35\) / Int64\(98\) \* Int64\(\-76\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-51\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 69 AS col0, 19 + + 7 + 92, - 35 / + 98 * + - 76 * COUNT ( * ) * - 51 AS col0 query I rowsort label-8793 @@ -47101,7 +47101,7 @@ SELECT ALL - - 8 * - + 15 * + 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(\(\- \(\- coalesce\(Int64\(0\), Int64\(98\), Int64\(47\) \* Int64\(20\)\)\)\), \(\- \(\- \(\- Int64\(82\)\)\)\)\)\), Int64\(\-54\) \* count\(\*\) / Int64\(\-37\) / CAST\(NULL AS Int32\) \+ count\(\*\), Int64\(2\) / count\(\*\)\)\) \+ Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(\(\- \(\- coalesce\(Int64\(0\), Int64\(98\), Int64\(47\) \* Int64\(20\)\)\)\), \(\- \(\- \(\- Int64\(82\)\)\)\)\)\), Int64\(\-54\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-37\) / CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(2\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - + NULLIF ( - - COALESCE ( + + 0, + 98, + 47 * 20 ), - - ( - + 82 ) ), - 54 * + ( + COUNT ( * ) ) / - 37 / + CAST ( NULL AS INTEGER ) + + COUNT ( * ), 2 / + COUNT ( * ) ) + 69 AS col0, CAST ( NULL AS INTEGER ) * + 10 AS col0 query II rowsort @@ -47180,7 +47180,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\(\*\) AS col2" at position 1 have the 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 @@ -47421,7 +47421,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\(\*\) AS col0" at position 1 have the 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 @@ -48218,7 +48218,7 @@ SELECT - - ( - - COALESCE ( 48, - - 43 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1475 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(59\) AS col1" at position 0 and "Int64\(37\) \+ coalesce\(count\(\*\), \(\- nullif\(Int64\(61\), Int64\(68\)\)\) \* Int64\(1\), Int64\(91\)\) / \(\- CAST\(NULL AS Float64\)\) \- Int64\(73\) \+ Int64\(\-87\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(59\) AS col1" at position 0 and "Int64\(37\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- nullif\(Int64\(61\), Int64\(68\)\)\) \* Int64\(1\), Int64\(91\)\) / \(\- CAST\(NULL AS Float64\)\) \- Int64\(73\) \+ Int64\(\-87\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 * + + 59 AS col1, + 37 + + ( COALESCE ( + + COUNT ( * ), + - NULLIF ( 61, + 68 ) * 1, 91 ) ) / - + CAST ( NULL AS FLOAT8 ) - + + 73 + - 87 + + 1 AS col1 query I rowsort label-9190 @@ -48973,7 +48973,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\(\*\) AS col2" at position 1 have the 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 @@ -49110,7 +49110,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(28\), Int64\(39\) \+ \(\- Int64\(47\)\) \+ Int64\(27\) \* Int64\(\-19\) \- Int64\(\-41\) \+ CASE \(\- \(\- count\(\*\)\)\) WHEN Int64\(\-42\) \+ count\(\*\) \* Int64\(\-92\) \+ nullif\(count\(\*\), CAST\(NULL AS Int32\)\) THEN coalesce\(Int64\(40\), Int64\(85\) \* count\(\*\)\) END \+ count\(\*\), Int64\(\-98\)\) \+ Int64\(25\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(28\), Int64\(39\) \+ \(\- Int64\(47\)\) \+ Int64\(27\) \* Int64\(\-19\) \- Int64\(\-41\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-42\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-92\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int32\)\) THEN coalesce\(Int64\(40\), Int64\(85\) \* count\(Int64\(1\)\) AS count\(\*\)\) END \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(\-98\)\) \+ Int64\(25\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( 28, 39 + - + 47 + + 27 * - 19 - - 41 + CASE - - COUNT ( * ) WHEN - 42 + COUNT ( * ) * - 92 + + NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) THEN + COALESCE ( 40, + 85 * + COUNT ( * ) ) END + ( + COUNT ( * ) ), - 98 ) + + 25 AS col1, 71 + - 38 AS col1 query I rowsort label-9360 @@ -49305,7 +49305,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\(\*\) AS col1" at position 1 have the 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 @@ -49917,7 +49917,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\(\*\) AS col1" at position 1 have the 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 @@ -49933,7 +49933,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\(\*\) AS col1" at position 1 have the 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 @@ -50350,7 +50350,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\(\*\) AS col1" at position 1 have the same 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 @@ -50544,7 +50544,7 @@ SELECT 21 AS col0, 36 * + 25 + - MAX ( ALL + 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-67\) \+ \(\- Int64\(74\)\) \* 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\(26\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-67\) \+ \(\- Int64\(74\)\) \* Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 + - - COUNT ( * ) AS col2, - 67 + - + 74 * - 3 AS col2 query I rowsort label-9633 diff --git a/data/sqlite/random/expr/slt_good_116.slt b/data/sqlite/random/expr/slt_good_116.slt index a77e84b..258f10c 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\(\*\) AS col2" at position 0 and "Int64\(58\) \* Int64\(\-65\) \+ Int64\(\-71\) \* 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 @@ -1532,13 +1532,13 @@ SELECT ALL 16 / - 78 AS col0, 6 * 55 * + + ( 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "count\(\*\) / \(\- nullif\(\(\- nullif\(Int64\(65\), \(\- CASE Int64\(81\) WHEN Int64\(67\) / Int64\(38\) THEN NULL ELSE Int64\(65\) \+ Int64\(30\) \* Int64\(38\) END\) \* CASE Int64\(1\) WHEN Int64\(93\) \+ Int64\(81\) THEN Int64\(42\) END\)\), Int64\(62\)\)\) \+ Int64\(\-15\) \* 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\(86\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- nullif\(\(\- nullif\(Int64\(65\), \(\- CASE Int64\(81\) WHEN Int64\(67\) / Int64\(38\) THEN NULL ELSE Int64\(65\) \+ Int64\(30\) \* Int64\(38\) END\) \* CASE Int64\(1\) WHEN Int64\(93\) \+ Int64\(81\) THEN Int64\(42\) END\)\), Int64\(62\)\)\) \+ Int64\(\-15\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 86 AS col0, + COUNT ( * ) / - NULLIF ( - NULLIF ( + 65, + - CASE 81 WHEN + 67 / + 38 THEN NULL ELSE + + ( + 65 ) + 30 * 38 END * + CASE 1 WHEN 93 + 81 THEN 42 END ), + 62 ) + - 15 * 10 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(\-11\) \* count\(\*\) \* CASE Int64\(29\) WHEN count\(DISTINCT \(\- Int64\(\-8\)\)\) THEN Int64\(\-25\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(\-11\) \* count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(29\) WHEN count\(DISTINCT \(\- Int64\(\-8\)\)\) THEN Int64\(\-25\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 AS col1, - 11 * COUNT ( * ) * CASE 29 WHEN + COUNT ( DISTINCT - - 8 ) THEN - 25 ELSE NULL END col1 query I rowsort @@ -3263,7 +3263,7 @@ SELECT 90 - ( - - 55 ) + - 55 AS col2 # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 DISTINCT - 64 AS col0, - COUNT ( * ) col0 query I rowsort label-614 @@ -3606,7 +3606,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\(\*\) AS col2" at position 1 have the 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 @@ -3863,7 +3863,7 @@ SELECT 12 * - 46 * 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(83\)\)\) \* \(\- \(\- 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 "\(\- min\(Int64\(83\)\)\) \* \(\- \(\- 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 DISTINCT - MIN ( ALL + ( + 83 ) ) * - - COUNT ( * ) AS col0, 0 AS col0 query I rowsort @@ -4357,7 +4357,7 @@ SELECT + COUNT ( * ) + - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) / Int64\(\-27\) AS col2" at position 0 and "Int64\(40\) \* Int64\(79\) \* CASE \(\- Int64\(\-45\)\) WHEN count\(\*\) THEN NULL WHEN Int64\(84\) \+ Int64\(33\) THEN NULL WHEN \(\- count\(\*\)\) THEN Int64\(95\) WHEN Int64\(\-23\) \* Int64\(63\) \* count\(\*\) \+ Int64\(49\) \* nullif\(\(\- count\(nullif\(Int64\(47\), Int64\(30\) \* \(\- Int64\(\-4\)\) \* Int64\(13\)\)\)\), count\(\*\)\) \* Int64\(23\) \* Int64\(51\) THEN Int64\(98\) 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\(\-27\) AS col2" at position 0 and "Int64\(40\) \* Int64\(79\) \* CASE \(\- Int64\(\-45\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(84\) \+ Int64\(33\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(95\) WHEN Int64\(\-23\) \* Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(49\) \* nullif\(\(\- count\(nullif\(Int64\(47\), Int64\(30\) \* \(\- Int64\(\-4\)\) \* Int64\(13\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(23\) \* Int64\(51\) THEN Int64\(98\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 / - 27 AS col2, + 40 * + 79 * ( + CASE - - 45 WHEN COUNT ( * ) THEN NULL WHEN 84 + + 33 THEN NULL WHEN - COUNT ( * ) THEN 95 WHEN + - 23 * 63 * COUNT ( * ) + + 49 * + NULLIF ( - COUNT ( ALL NULLIF ( 47, + + 30 * - - 4 * 13 ) ), + COUNT ( * ) ) * + 23 * 51 THEN 98 END ) AS col2 query I rowsort @@ -5849,7 +5849,7 @@ SELECT 11 + + 92 * 12 * + 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 2838 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) AS col0" at position 0 and "Int64\(86\) \* \(\- coalesce\(Int64\(\-33\), Int64\(\-3\) \* Int64\(\-19\) \- count\(\*\) \* Int64\(75\) \+ \(\- Int64\(59\)\) \+ Int64\(34\), Int64\(63\), Int64\(\-68\) \- Int64\(\-84\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) AS col0" at position 0 and "Int64\(86\) \* \(\- coalesce\(Int64\(\-33\), Int64\(\-3\) \* Int64\(\-19\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) \+ \(\- Int64\(59\)\) \+ Int64\(34\), Int64\(63\), Int64\(\-68\) \- Int64\(\-84\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 9 AS col0, 86 * - COALESCE ( - 33, - 3 * - 19 - COUNT ( * ) * 75 + - + 59 + 34, + 63, - 68 - + - 84 ) col0 query I rowsort label-1108 @@ -6862,7 +6862,7 @@ SELECT - 48 - 9 * - CAST ( 83 AS INTEGER ) col2 # Datafusion - Expected - 68 # Datafusion - Expected - 33 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- min\(DISTINCT Int64\(33\)\)\) AS col2" at position 1 and "Int64\(61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(DISTINCT Int64\(33\)\)\) AS col2" at position 1 and "Int64\(61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 68, - COUNT ( * ) * - MIN ( DISTINCT 33 ) AS col2, + 61 AS col2 query II rowsort label-1300 @@ -7116,7 +7116,7 @@ SELECT DISTINCT - - 91 - - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8686 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(max\(Int64\(99\)\), \(\- coalesce\(\(\- \(\- sum\(\(\- CAST\(Int64\(8\) AS Int32\)\)\)\)\), Int64\(\-94\) \* Int64\(5\), Int64\(80\) \* \(\- count\(\*\)\)\)\) \* CASE \(\- Int64\(\-31\)\) WHEN Int64\(43\) THEN NULL WHEN \(\- nullif\(Int64\(2\), Int64\(\-47\)\)\) THEN \(\- Int64\(41\)\) ELSE NULL END \+ Int64\(\-53\) \* Int64\(14\)\) \* Int64\(87\) \+ \(\- Int64\(10\)\) \+ \(\- nullif\(Int64\(\-83\), Int64\(10\) \+ Int64\(2\)\)\) AS col1" at position 0 and "Int64\(7\) \- Int64\(50\) / Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(max\(Int64\(99\)\), \(\- coalesce\(\(\- \(\- sum\(\(\- CAST\(Int64\(8\) AS Int32\)\)\)\)\), Int64\(\-94\) \* Int64\(5\), Int64\(80\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* CASE \(\- Int64\(\-31\)\) WHEN Int64\(43\) THEN NULL WHEN \(\- nullif\(Int64\(2\), Int64\(\-47\)\)\) THEN \(\- Int64\(41\)\) ELSE NULL END \+ Int64\(\-53\) \* Int64\(14\)\) \* Int64\(87\) \+ \(\- Int64\(10\)\) \+ \(\- nullif\(Int64\(\-83\), Int64\(10\) \+ Int64\(2\)\)\) AS col1" at position 0 and "Int64\(7\) \- Int64\(50\) / Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( ( MAX ( + + 99 ) ), - COALESCE ( - - SUM ( ALL - CAST ( ( 8 ) AS INTEGER ) ), + - 94 * + 5, 80 * - COUNT ( * ) ) * + CASE - - 31 WHEN 43 THEN NULL WHEN - NULLIF ( + 2, - 47 ) THEN - + 41 ELSE NULL END + - 53 * 14 ) * + 87 + - + 10 + - NULLIF ( - 83, 10 + + 2 ) AS col1, + 7 - 50 / + - 7 AS col1 query I rowsort @@ -7235,7 +7235,7 @@ SELECT DISTINCT 20 * - 32, ( - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 290 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(56\) WHEN \(\- count\(DISTINCT \(\- Int64\(3\)\)\)\) \+ Int64\(79\) THEN Int64\(70\) \* Int64\(\-48\) ELSE Int64\(\-16\) END\) \* CASE count\(\*\) WHEN Int64\(\-53\) THEN NULL WHEN Int64\(65\) \* Int64\(22\) \+ Int64\(49\) THEN Int64\(50\) END \* Int64\(30\) \+ Int64\(56\) \+ count\(Int64\(14\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(\-13\) \- CASE Int64\(54\) WHEN max\(Int64\(86\)\) THEN Int64\(60\) ELSE Int64\(\-8\) \+ Int64\(\-7\) \* Int64\(42\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(56\) WHEN \(\- count\(DISTINCT \(\- Int64\(3\)\)\)\) \+ Int64\(79\) THEN Int64\(70\) \* Int64\(\-48\) ELSE Int64\(\-16\) END\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-53\) THEN NULL WHEN Int64\(65\) \* Int64\(22\) \+ Int64\(49\) THEN Int64\(50\) END \* Int64\(30\) \+ Int64\(56\) \+ count\(Int64\(14\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-13\) \- CASE Int64\(54\) WHEN max\(Int64\(86\)\) THEN Int64\(60\) ELSE Int64\(\-8\) \+ Int64\(\-7\) \* Int64\(42\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE 56 WHEN - COUNT ( DISTINCT - + 3 ) + 79 THEN + 70 * + - 48 ELSE - 16 END * CASE COUNT ( * ) WHEN + - 53 THEN NULL WHEN + 65 * + 22 + 49 THEN + 50 END * + 30 + 56 + COUNT ( + 14 ) AS col2, COUNT ( * ) + + - 13 - + CASE + 54 WHEN MAX ( 86 ) THEN + 60 ELSE - 8 + - 7 * + 42 END col2 query I rowsort @@ -7826,7 +7826,7 @@ SELECT - + 58 * 26 + + - 57 + - 65 + + COUNT ( * ) + - 15 * + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -154 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(\-22\) AS col1" at position 0 and "nullif\(Int64\(8\), Int64\(\-33\) \* count\(\*\)\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-22\) AS col1" at position 0 and "nullif\(Int64\(8\), Int64\(\-33\) \* 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 7 * - 22 AS col1, NULLIF ( + ( + 8 ), - 33 * COUNT ( * ) ) + + - COUNT ( * ) AS col1 query I rowsort @@ -7894,7 +7894,7 @@ SELECT + 54 * 78 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(87\) \+ \(\- count\(\*\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-69\) \* \(\- Int64\(\-3\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-69\) \* \(\- Int64\(\-3\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 24 AS col1, 87 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 69 * - - 3 + 60 col1 query II rowsort label-1494 @@ -7957,7 +7957,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\(\*\) AS col0" at position 1 have the 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 @@ -9233,13 +9233,13 @@ 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\(91\) WHEN Int64\(52\) THEN \(\- CAST\(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: # Datafusion - Expected - 44 # Datafusion - Expected - -288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(44\) AS col1" at position 0 and "Int64\(24\) \* 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\(44\) AS col1" at position 0 and "Int64\(24\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * 44 AS col1, 24 * + - 12 AS col1 query I rowsort label-1755 @@ -10250,7 +10250,7 @@ NULL # 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\(\*\)\) AS col0" at position 1 have the 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 DISTINCT 81 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -12195,7 +12195,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\(\*\) 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 @@ -12681,7 +12681,7 @@ SELECT 53 - 76 + - - 86 + 23 AS col0, 51 * + 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 34 -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\(\-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\(\-14\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 14 AS col2, + COUNT ( * ) - - 33 AS col2 query I rowsort @@ -14015,7 +14015,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\(\*\) 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 @@ -14354,7 +14354,7 @@ SELECT ALL + CAST ( 25 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 21 -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\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) 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 8 AS col1, COUNT ( * ) * - - 21 AS col1 query I rowsort @@ -14445,7 +14445,7 @@ SELECT ALL - COUNT ( * ) + - + ( 6 ) - - + COUNT ( * ) + - + 74 * + + 69 * - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(77\) 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\(\*\) \* Int64\(77\) 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 ( * ) * + + 77 AS col0, - 21 AS col0 query I rowsort label-2748 @@ -14564,7 +14564,7 @@ SELECT 97 * + 12 + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1716 # Datafusion - Expected - 56969 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(52\) AS col2" at position 0 and "CASE Int64\(31\) WHEN \(\- \(\- sum\(DISTINCT Int64\(1\)\)\)\) \* Int64\(\-49\) \+ count\(\*\) \+ Int64\(27\) THEN \(\- Int64\(3\)\) ELSE Int64\(95\) \* Int64\(50\) \* Int64\(12\) \+ \(\- count\(\*\)\) \- Int64\(30\) 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\(33\) \* Int64\(52\) AS col2" at position 0 and "CASE Int64\(31\) WHEN \(\- \(\- sum\(DISTINCT Int64\(1\)\)\)\) \* Int64\(\-49\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(27\) THEN \(\- Int64\(3\)\) ELSE Int64\(95\) \* Int64\(50\) \* Int64\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(30\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 33 * + 52 AS col2, + CASE + + ( + 31 ) WHEN - - SUM ( DISTINCT 1 ) * - 49 + COUNT ( * ) + + 27 THEN - + 3 ELSE + + 95 * 50 * 12 + - COUNT ( * ) - + 30 END AS col2 query I rowsort label-2771 @@ -14827,7 +14827,7 @@ SELECT DISTINCT COUNT ( * ) / - - COALESCE ( + - 10, - - 81 ) - + COUNT ( * ) # 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 "coalesce\(\(\- count\(\*\)\), Int64\(\-2\) / \(\- coalesce\(Int64\(\-50\), Int64\(\-22\) \* Int64\(\-8\), Int64\(22\) \+ Int64\(\-74\), \(\- Int64\(\-39\)\)\)\) \- Int64\(\-70\), Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) AS col2" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-2\) / \(\- coalesce\(Int64\(\-50\), Int64\(\-22\) \* Int64\(\-8\), Int64\(22\) \+ Int64\(\-74\), \(\- Int64\(\-39\)\)\)\) \- Int64\(\-70\), Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + - 35 ) col2, + COALESCE ( - COUNT ( * ), + - 2 / - + ( COALESCE ( - 50, - 22 * - 8, + 22 + + - 74, - - 39 ) ) - - 70, - 11 ) AS col2 query I rowsort @@ -15054,7 +15054,7 @@ SELECT + MAX ( - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(93\)\), CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(93\)\), CAST\(NULL AS 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 ( - + 93, + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 query I rowsort label-2866 @@ -17183,7 +17183,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\(\*\) AS col1" at position 1 have the 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 @@ -17777,7 +17777,7 @@ SELECT ALL + COUNT ( - 54 ) + - + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2044 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-28\) AS col1" at position 0 and "CASE Int64\(\-27\) WHEN min\(Int64\(\-70\)\) \* Int64\(10\) THEN count\(\*\) \* Int64\(63\) END \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-28\) AS col1" at position 0 and "CASE Int64\(\-27\) WHEN min\(Int64\(\-70\)\) \* Int64\(10\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(63\) END \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 * - 28 AS col1, + CASE - 27 WHEN + MIN ( - 70 ) * 10 THEN + COUNT ( * ) * + 63 END * + 78 AS col1 query I rowsort @@ -18549,7 +18549,7 @@ SELECT DISTINCT - - 54 * - - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 52 -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\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 99 AS col2, + COUNT ( * ) + + 51 AS col2 query I rowsort @@ -18698,7 +18698,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\(\*\) AS col2" at position 1 have the 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 @@ -21823,7 +21823,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\(\*\) AS col0" at position 1 have the 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 @@ -24583,7 +24583,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\(\*\) AS col1" at position 1 have the 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 @@ -24986,13 +24986,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4717 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ count\(\*\) \* Int64\(94\) \* Int64\(51\) AS col0" at position 0 and "Int64\(22\) \- \(\- 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\(\-77\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(94\) \* Int64\(51\) AS col0" at position 0 and "Int64\(22\) \- \(\- Int64\(\-66\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. 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\(67\)\) \+ Int64\(\-38\) \* 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 @@ -26766,7 +26766,7 @@ SELECT DISTINCT - NULLIF ( 29, + + 27 * - + 54 * - 75 + + 48 ) # 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\(\*\)\) AS col0" at position 0 and "Int64\(62\) \+ 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(62\) \+ Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, 62 + - 87 AS col0 query II rowsort @@ -27346,7 +27346,7 @@ SELECT ALL 29 - + 85 + - - 38 # 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\(\*\)\) AS col1" at position 0 and "count\(Int64\(96\)\) \+ Int64\(6\) \+ Int64\(81\) / Int64\(\-89\) \* 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\(96\)\) \+ Int64\(6\) \+ Int64\(81\) / Int64\(\-89\) \* Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col1, + COUNT ( 96 ) + + 6 + + 81 / + - 89 * - 87 AS col1 query II rowsort label-5219 @@ -27606,7 +27606,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\(\*\) AS col2" at position 1 have the 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 @@ -30871,7 +30871,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\(\*\) 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 @@ -32784,7 +32784,7 @@ SELECT ALL ( + ( 58 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 181 # Datafusion - Expected - -1130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(\-85\) \+ \(\- coalesce\(\(\- Int64\(11\)\), Int64\(\-6\)\)\) / count\(\*\) \* Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(\-85\) \+ \(\- coalesce\(\(\- Int64\(11\)\), Int64\(\-6\)\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 91 + + + 90 AS col2, - 85 + - COALESCE ( - + 11, - 6 ) / COUNT ( * ) * + ( - 95 ) AS col2 query I rowsort label-6246 @@ -33779,7 +33779,7 @@ SELECT + 92 + - 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(49\)\) AS col1" at position 0 and "CAST\(Int64\(6\) AS Int32\) \* Int64\(\-46\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(49\)\) AS col1" at position 0 and "CAST\(Int64\(6\) AS Int32\) \* Int64\(\-46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + SUM ( ALL + 49 ) AS col1, CAST ( + 6 AS INTEGER ) * - 46 * + - COUNT ( * ) AS col1 query I rowsort label-6434 @@ -35207,7 +35207,7 @@ SELECT - + 80 - - - 21 / + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3317 # Datafusion - Expected - 3277 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(84\) \+ Int64\(66\) \* Int64\(49\) AS col1" at position 0 and "Int64\(91\) \+ \(\- sum\(Int64\(\-54\)\)\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(84\) \+ Int64\(66\) \* Int64\(49\) AS col1" at position 0 and "Int64\(91\) \+ \(\- sum\(Int64\(\-54\)\)\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) + ( + 84 ) + + 66 * 49 AS col1, 91 + - SUM ( ALL - 54 ) * 59 AS col1 query I rowsort @@ -37737,7 +37737,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ Int64\(27\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ Int64\(27\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 74 + + 27 AS col1, - COUNT ( * ) + + + 88 AS col1 query I rowsort @@ -38807,7 +38807,7 @@ SELECT 39, NULLIF ( 40, + 9 * + + 82 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18954 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(\-9\) \* Int64\(26\) AS col0" at position 0 and "count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(\-9\) \* Int64\(26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 * - 9 * + 26 AS col0, + COUNT ( * ) * + - CAST ( + + 84 AS INTEGER ) col0 query II rowsort @@ -38829,7 +38829,7 @@ SELECT DISTINCT + ( - 99 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-87\) AS Int32\) / Int64\(\-13\) AS col2" at position 0 and "count\(\*\) \- \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same 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\(\-13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 87 AS INTEGER ) / - 13 AS col2, COUNT ( * ) - - - COUNT ( * ) AS col2 query I rowsort label-7400 @@ -38989,7 +38989,7 @@ SELECT + 71 * 22 - - + 3 * + 75 + + + 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(10\) \* nullif\(Int64\(16\), 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\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(10\) \* nullif\(Int64\(16\), Int64\(\-89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 41 * - COUNT ( * ) AS col0, 10 * + NULLIF ( + 16, ( + - 89 ) ) AS col0 query I rowsort @@ -40414,7 +40414,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\(\*\) 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 @@ -41679,7 +41679,7 @@ SELECT - 0 + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(73\) \- Int64\(14\) / Int64\(61\) AS col0" at position 0 and "Int64\(\-14\) \* Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(73\) \- Int64\(14\) / Int64\(61\) AS col0" at position 0 and "Int64\(\-14\) \* Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) - + 73 - + 14 / 61 AS col0, - 14 * - 54 AS col0 query I rowsort label-7939 @@ -42112,7 +42112,7 @@ SELECT - - 54 + - + 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -3120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(65\) \* CASE coalesce\(Int64\(5\), Int64\(46\) \+ Int64\(5\) \+ \(\- count\(\*\)\) \+ Int64\(56\) / Int64\(97\)\) WHEN Int64\(1\) THEN Int64\(58\) \* Int64\(\-49\) \+ Int64\(\-10\) ELSE Int64\(\-48\) 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\(36\) AS col1" at position 0 and "Int64\(65\) \* CASE coalesce\(Int64\(5\), Int64\(46\) \+ Int64\(5\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(56\) / Int64\(97\)\) WHEN Int64\(1\) THEN Int64\(58\) \* Int64\(\-49\) \+ Int64\(\-10\) ELSE Int64\(\-48\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 AS col1, + 65 * CASE COALESCE ( + 5, 46 + 5 + - COUNT ( * ) + + 56 / 97 ) WHEN 1 THEN 58 * - 49 + + ( - 10 ) ELSE + - 48 END AS col1 query I rowsort label-8020 @@ -43563,7 +43563,7 @@ SELECT 14 * 83 + + CAST ( - AVG ( DISTINCT 36 ) AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(70\) \* \(\- Int64\(35\)\) \* Int64\(81\) 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\(\*\)\) / Int64\(70\) \* \(\- Int64\(35\)\) \* Int64\(81\) 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 ( * ) / 70 * - + 35 * + 81 AS col2, + 13 col2 query I rowsort label-8301 @@ -43703,7 +43703,7 @@ SELECT DISTINCT - 66 + 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7386 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(94\) \+ \(\- nullif\(Int64\(40\), Int64\(47\)\)\) AS col2" at position 0 and "count\(\*\) / Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(94\) \+ \(\- nullif\(Int64\(40\), Int64\(47\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 * + 94 + - NULLIF ( + 40, 47 ) AS col2, + COUNT ( * ) / - 91 col2 query II rowsort @@ -43895,7 +43895,7 @@ SELECT + 48 * - 31 + - - 4 - - + 42 * + ( + - 19 ) + - + 48 * + 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 "\(\- coalesce\(count\(\*\), \(\- count\(\*\)\) \- Int64\(84\) \* Int64\(\-9\) \+ \(\- 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 "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(84\) \* Int64\(\-9\) \+ \(\- 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 ALL - COALESCE ( COUNT ( * ), + - COUNT ( * ) - 84 * - 9 + - COUNT ( * ) ) AS col0, 54 AS col0 query I rowsort label-8364 @@ -44267,7 +44267,7 @@ SELECT 60 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "CASE Int64\(\-70\) WHEN Int64\(\-20\) THEN \(\- count\(\*\)\) END \+ \(\- nullif\(nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-87\)\), max\(\(\- Int64\(50\)\)\)\)\) \+ Int64\(37\) \* avg\(CASE Int64\(83\) WHEN Int64\(\-92\) \- Int64\(93\) THEN NULL WHEN Int64\(24\) \+ Int64\(28\) THEN Int64\(58\) \* nullif\(Int64\(23\), Int64\(94\)\) ELSE Int64\(73\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "CASE Int64\(\-70\) WHEN Int64\(\-20\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ \(\- nullif\(nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-87\)\), max\(\(\- Int64\(50\)\)\)\)\) \+ Int64\(37\) \* avg\(CASE Int64\(83\) WHEN Int64\(\-92\) \- Int64\(93\) THEN NULL WHEN Int64\(24\) \+ Int64\(28\) THEN Int64\(58\) \* nullif\(Int64\(23\), Int64\(94\)\) ELSE Int64\(73\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col0, CASE - 70 WHEN - 20 THEN - COUNT ( * ) END + - + NULLIF ( + NULLIF ( - + CAST ( NULL AS INTEGER ), - 87 ), + MAX ( - + 50 ) ) + 37 * AVG ( CASE + 83 WHEN - 92 - 93 THEN NULL WHEN + 24 + ( 28 ) THEN 58 * + NULLIF ( 23, 94 ) ELSE 73 END ) col0 query I rowsort label-8437 @@ -44834,7 +44834,7 @@ NULL # Datafusion - Expected - -43 # Datafusion - Expected - -41 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(19\) \+ Int64\(\-75\) 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 "Int64\(13\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(19\) \+ Int64\(\-75\) 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 + + 13 * - - COUNT ( * ) + + 19 + - 75 col0, + COUNT ( * ) * - ( + 41 ) AS col1, + 7 col0 query I rowsort label-8545 @@ -44959,7 +44959,7 @@ SELECT ALL - 14 * 21 * + 67 * - + 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- \(\- count\(\*\)\)\) \+ \(\- min\(Int64\(4\)\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- min\(Int64\(4\)\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 4 * - + ( - COUNT ( * ) ) + - MIN ( + 4 ) AS col0, 8 col0 query I rowsort label-8568 @@ -46299,7 +46299,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\(\*\) AS col0" at position 1 have the 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: @@ -46351,7 +46351,7 @@ SELECT 14 * + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 "\(\- 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 DISTINCT - COUNT ( * ) AS col2, 59 AS col2 query I rowsort label-8832 @@ -47202,7 +47202,7 @@ SELECT ALL COALESCE ( + - 84, COUNT ( * ) ) - 64 + + 49 * - 57 * + 51 * - + COUN # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ALL 25 AS col1, ( - COUNT ( * ) ) AS col1 query II rowsort label-8994 @@ -47820,7 +47820,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\(\*\) AS col0" at position 1 have the 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 @@ -48382,7 +48382,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\(\*\) AS Int32\) AS col2" at position 1 have the 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 @@ -49819,7 +49819,7 @@ SELECT ALL 97 * + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* \(\- Int64\(50\)\) AS col0" at position 0 and "\(\- nullif\(count\(\*\), Int64\(57\) \+ Int64\(\-61\) \* \(\- nullif\(Int64\(3\), Int64\(\-82\) \* Int64\(77\) \* Int64\(\-38\) \* Int64\(\-20\) \+ Int64\(71\) \+ Int64\(3\)\)\)\)\) \+ 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\(\-3\) \* \(\- Int64\(50\)\) AS col0" at position 0 and "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(57\) \+ Int64\(\-61\) \* \(\- nullif\(Int64\(3\), Int64\(\-82\) \* Int64\(77\) \* Int64\(\-38\) \* Int64\(\-20\) \+ Int64\(71\) \+ Int64\(3\)\)\)\)\) \+ Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 * - + 50 AS col0, - NULLIF ( COUNT ( * ), + + 57 + - 61 * - NULLIF ( + 3, - 82 * + 77 * + - 38 * - 20 + + 71 + + + 3 ) ) + - 65 AS col0 query I rowsort @@ -50408,7 +50408,7 @@ SELECT + 2 * 69 + 88 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -693 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* Int64\(9\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-66\)\), Int64\(83\) \+ 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 "Int64\(\-77\) \* Int64\(9\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-66\)\), Int64\(83\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-15\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 77 * 9 col0, COALESCE ( - - 66, 83 + + COUNT ( * ) * - 15 ) AS col0 query I rowsort @@ -50424,7 +50424,7 @@ SELECT ALL + + NULLIF ( - - 11, 97 + 20 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(23\) \+ \(\- count\(\*\)\) \* Int64\(18\) AS col2" at position 0 and "\(\- Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(23\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) AS col2" at position 0 and "\(\- Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 97 + + 23 + - COUNT ( * ) * ( + 18 ) AS col2, - ( + 47 ) col2 query I rowsort label-9611 @@ -52045,7 +52045,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\(\*\) 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 @@ -52226,7 +52226,7 @@ SELECT + ( + 77 ) - 71 AS col0, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1410 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* max\(Int64\(94\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ Int64\(\-52\) \+ \(\- Int64\(\-35\)\) / \(\- \(\- \(\- 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\(15\) \* max\(Int64\(94\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-52\) \+ \(\- Int64\(\-35\)\) / \(\- \(\- \(\- Int64\(\-65\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 * + MAX ( ALL + 94 ) AS col0, - COUNT ( * ) + + - 52 + - - 35 / - - ( - - 65 ) AS col0 query I rowsort label-9962 diff --git a/data/sqlite/random/expr/slt_good_117.slt b/data/sqlite/random/expr/slt_good_117.slt index 6eb838b..7ead889 100644 --- a/data/sqlite/random/expr/slt_good_117.slt +++ b/data/sqlite/random/expr/slt_good_117.slt @@ -761,7 +761,7 @@ SELECT ALL + 45 / - 48 + - - 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 957 -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\(87\) \* 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\(\-83\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(87\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 83 col1, + COUNT ( * ) * 87 * + 11 AS col1 query I rowsort label-139 @@ -1508,13 +1508,13 @@ 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\(\*\) AS col2" at position 1 have 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: # Datafusion - Expected - 2666 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(31\) AS col1" at position 0 and "Int64\(38\) \+ coalesce\(Int64\(\-22\), \(\- Int64\(\-91\)\)\) \+ count\(\*\) \* Int64\(70\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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\(31\) AS col1" at position 0 and "Int64\(38\) \+ coalesce\(Int64\(\-22\), \(\- Int64\(\-91\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(70\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 86 * 31 AS col1, 38 + + + COALESCE ( - 22, - - 91 ) + + COUNT ( * ) * 70 - - COUNT ( * ) AS col1 query I rowsort @@ -2212,7 +2212,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\(\*\) 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 @@ -3930,7 +3930,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\(\*\) 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 @@ -5093,7 +5093,7 @@ SELECT ALL - NULLIF ( - + CAST ( - + ( + 63 ) AS INTEGER ), - + 51 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(43\)\) \+ CASE \(\- Int64\(\-94\)\) WHEN count\(\*\) \+ \(\- Int64\(68\)\) THEN Int64\(9\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(\-42\) WHEN Int64\(65\) THEN Int64\(\-50\) \* Int64\(18\) END \+ \(\- \(\- CASE \(\- Int64\(\-52\)\) WHEN \(\- Int64\(0\)\) THEN \(\- count\(\*\)\) ELSE Int64\(\-89\) END\)\) \+ Int64\(42\) / Int64\(50\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(43\)\) \+ CASE \(\- Int64\(\-94\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(68\)\) THEN Int64\(9\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-42\) WHEN Int64\(65\) THEN Int64\(\-50\) \* Int64\(18\) END \+ \(\- \(\- CASE \(\- Int64\(\-52\)\) WHEN \(\- Int64\(0\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(\-89\) END\)\) \+ Int64\(42\) / Int64\(50\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( DISTINCT 43 ) + CASE - - 94 WHEN COUNT ( * ) + - + 68 THEN + 9 * - - COUNT ( * ) + - 42 WHEN 65 THEN + - 50 * 18 END + - - CASE - - 52 WHEN - - 0 THEN - COUNT ( * ) ELSE - 89 END + + 42 / + + 50 AS col2, - 63 AS col2 query I rowsort label-965 @@ -5199,7 +5199,7 @@ SELECT DISTINCT + 68 / + 60 + + COUNT ( DISTINCT - 41 ), + 25 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 409920 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* Int64\(\-61\) \* Int64\(\-84\) AS col1" at position 0 and "Int64\(48\) \* CASE Int64\(92\) WHEN avg\(Int64\(49\)\) \- \(\- count\(\*\)\) THEN \(\- count\(\*\)\) \* nullif\(Int64\(25\), Int64\(92\)\) WHEN Int64\(\-29\) THEN NULL WHEN Int64\(38\) THEN Int64\(\-82\) \* \(\- CAST\(Int64\(\-82\) AS Int32\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* Int64\(\-61\) \* Int64\(\-84\) AS col1" at position 0 and "Int64\(48\) \* CASE Int64\(92\) WHEN avg\(Int64\(49\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(25\), Int64\(92\)\) WHEN Int64\(\-29\) THEN NULL WHEN Int64\(38\) THEN Int64\(\-82\) \* \(\- CAST\(Int64\(\-82\) AS Int32\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + ( - 80 ) * + - 61 * - 84 AS col1, 48 * CASE + 92 WHEN AVG ( ALL 49 ) - - COUNT ( * ) THEN - + COUNT ( * ) * + NULLIF ( + 25, 92 ) WHEN - 29 THEN NULL WHEN + 38 THEN - 82 * ( - CAST ( ( - 82 ) AS INTEGER ) ) ELSE NULL END AS col1 query I rowsort label-985 @@ -8208,7 +8208,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\(70\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -9626,7 +9626,7 @@ SELECT 19 + + 15 + 24 * 93 * 8 * 66 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(19\) \- \(\- Int64\(\-44\)\) 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\(\*\) \* Int64\(19\) \- \(\- Int64\(\-44\)\) 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 ( * ) * + ( 19 ) - - - 44 AS col0, 98 AS col0 query I rowsort label-1837 @@ -9896,7 +9896,7 @@ SELECT + 52 / + COUNT ( * ) AS col0, + 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- nullif\(Int64\(76\), Int64\(67\) \- count\(\*\) \+ Int64\(22\)\)\)\)\) AS col0" at position 0 and "Int64\(66\) \+ Int64\(64\) \- min\(DISTINCT Int64\(\-14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- nullif\(Int64\(76\), Int64\(67\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(22\)\)\)\)\) AS col0" at position 0 and "Int64\(66\) \+ Int64\(64\) \- min\(DISTINCT Int64\(\-14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - NULLIF ( 76, + 67 - + + COUNT ( * ) + + + ( 22 ) ) ) AS col0, 66 + + 64 - MIN ( DISTINCT - 14 ) AS col0 query I rowsort label-1887 @@ -10525,7 +10525,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\(\*\) 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 @@ -11071,7 +11071,7 @@ SELECT 98 * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(\-19\) / Int64\(\-46\) \+ min\(Int64\(76\)\) \* count\(\(\- CAST\(NULL AS Int32\)\)\) \- count\(\*\) \- Int64\(77\) \* count\(Int64\(\-65\)\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(\-19\) / Int64\(\-46\) \+ min\(Int64\(76\)\) \* count\(\(\- CAST\(NULL AS Int32\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(77\) \* count\(Int64\(\-65\)\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 69 ) + - 19 / + - 46 + MIN ( 76 ) * + COUNT ( - + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - + 77 * + + COUNT ( + - 65 ) AS col0, 28 AS col0 # Datafusion - Types were automatically converted from: @@ -11365,7 +11365,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\(\*\) 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 @@ -11689,7 +11689,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\(\*\) 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 @@ -14412,7 +14412,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\(\*\)\) \+ \(\- \(\- nullif\(\(\- Int64\(95\)\), count\(\*\) \* Int64\(40\)\)\)\) \- count\(\*\) AS col2" at position 1 have the 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 @@ -14533,7 +14533,7 @@ SELECT ALL ( - 71 ) - 53 * 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4030 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-65\) \* Int64\(62\) AS col0" at position 0 and "Int64\(90\) \* Int64\(\-69\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-65\) \* Int64\(62\) AS col0" at position 0 and "Int64\(90\) \* Int64\(\-69\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + - 65 * + 62 col0, + 90 * - 69 + CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -14736,7 +14736,7 @@ NULL # 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 "count\(\*\) \* Int64\(38\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(63\)\)\) / \(\- nullif\(Int64\(\-81\), \(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(38\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(63\)\)\) / \(\- nullif\(Int64\(\-81\), \(\- Int64\(\-59\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * 38 AS col0, - COUNT ( DISTINCT 63 ) / + - ( NULLIF ( + - 81, - - 59 ) ) AS col0 query I rowsort @@ -16525,7 +16525,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\(\*\) 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 @@ -16652,7 +16652,7 @@ SELECT ALL 22 / + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- Int64\(47\)\) \- count\(\*\) \+ Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- Int64\(47\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 84 + - + CAST ( NULL AS INTEGER ) AS col2, - ( + 47 ) - + COUNT ( * ) + - 20 AS col2 query I rowsort label-3173 @@ -17033,7 +17033,7 @@ SELECT ALL - CAST ( - - 56 AS INTEGER ) * 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(\-88\) AS col0" at position 0 and "Int64\(5\) \* \(\- count\(DISTINCT Int64\(89\)\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-88\) AS col0" at position 0 and "Int64\(5\) \* \(\- count\(DISTINCT Int64\(89\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 13 + - 88 AS col0, 5 * - COUNT ( DISTINCT ( + + ( + 89 ) ) ) + + - COUNT ( * ) AS col0 query I rowsort label-3245 @@ -17350,7 +17350,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\(\*\) 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 @@ -17442,7 +17442,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(33\) \* Int64\(\-2\) \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(33\) \* Int64\(\-2\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 AS col1, + 33 * - 2 + - - COUNT ( * ) + + 34 col1 query I rowsort @@ -17607,7 +17607,7 @@ SELECT + - COUNT ( * ) + + SUM ( DISTINCT + + 29 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -2233 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(23\)\) \- coalesce\(\(\- Int64\(55\)\), Int64\(58\), Int64\(\-22\)\) AS col1" at position 0 and "Int64\(6\) \+ coalesce\(\(\- nullif\(Int64\(39\), Int64\(\-84\) \* Int64\(\-15\) \* Int64\(25\) \+ Int64\(90\) / Int64\(75\) \- Int64\(47\)\)\), nullif\(Int64\(66\), Int64\(\-38\)\) \+ Int64\(\-52\) \* count\(\*\) \* Int64\(80\)\) \- Int64\(44\) \* 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\(23\)\) \- coalesce\(\(\- Int64\(55\)\), Int64\(58\), Int64\(\-22\)\) AS col1" at position 0 and "Int64\(6\) \+ coalesce\(\(\- nullif\(Int64\(39\), Int64\(\-84\) \* Int64\(\-15\) \* Int64\(25\) \+ Int64\(90\) / Int64\(75\) \- Int64\(47\)\)\), nullif\(Int64\(66\), Int64\(\-38\)\) \+ Int64\(\-52\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\)\) \- Int64\(44\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 23 - + COALESCE ( - + 55, + 58, - 22 ) AS col1, 6 + + COALESCE ( - NULLIF ( 39, ( - 84 ) * - 15 * + 25 + 90 / + ( + 75 ) - 47 ), NULLIF ( 66, - 38 ) + - 52 * + ( + COUNT ( * ) * 80 ) ) - + 44 * 50 AS col1 query I rowsort @@ -18210,7 +18210,7 @@ SELECT - - 65 * - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE count\(\*\) WHEN Int64\(\-43\) \+ max\(Int64\(54\)\) / max\(Int64\(88\)\) \+ Int64\(\-61\) THEN Int64\(15\) WHEN Int64\(60\) THEN NULL END\) AS col1" at position 0 and "Int64\(\-5\) \* 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 "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-43\) \+ max\(Int64\(54\)\) / max\(Int64\(88\)\) \+ Int64\(\-61\) THEN Int64\(15\) WHEN Int64\(60\) THEN NULL END\) AS col1" at position 0 and "Int64\(\-5\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE COUNT ( * ) WHEN + - 43 + MAX ( 54 ) / + MAX ( 88 ) + - 61 THEN + 15 WHEN + 60 THEN NULL END AS col1, - 5 * + - 36 AS col1 query I rowsort label-3467 @@ -19233,7 +19233,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\(75\) \* \(\- count\(\*\)\) \+ Int64\(9\) \* \(\- Int64\(67\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -19425,7 +19425,7 @@ SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -195884 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(\*\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(40\) \* Int64\(96\) \* coalesce\(Int64\(\-51\), Int64\(75\)\) \+ \(\- Int64\(\-7\)\) \+ 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(40\) \* Int64\(96\) \* coalesce\(Int64\(\-51\), Int64\(75\)\) \+ \(\- Int64\(\-7\)\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) AS col0, 40 * + 96 * COALESCE ( - 51, 75 ) + - - 7 + - 51 AS col0 query I rowsort @@ -20018,7 +20018,7 @@ SELECT - + 72 * + 41 - - 17 + - 39 / - - 18 - + + 86 * - 87 AS col0, + 11 + + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "Int64\(70\) \* count\(\*\) / Int64\(\-93\) \* Int64\(\-40\) \* Int64\(\-45\) \+ 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\(\-11\) AS col2" at position 0 and "Int64\(70\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-93\) \* Int64\(\-40\) \* Int64\(\-45\) \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 11 AS col2, 70 * + COUNT ( * ) / + - 93 * - 40 * - 45 + + 40 AS col2 query I rowsort @@ -20040,7 +20040,7 @@ SELECT DISTINCT - 42 * - 41 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( COUNT ( * ) ), COUNT ( * ) query II rowsort @@ -20610,7 +20610,7 @@ SELECT ALL + 69 - - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-68\) WHEN \(\- count\(\*\)\) THEN Int64\(6\) \+ Int64\(32\) END\) 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 "\(\- CASE Int64\(\-68\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(6\) \+ Int64\(32\) END\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE - 68 WHEN - COUNT ( * ) THEN + 6 + ( 32 ) END AS col0, 31 AS col0 query I rowsort label-3922 @@ -20776,7 +20776,7 @@ SELECT + 84 * + 95 * + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(96\) \* Int64\(\-25\) \* Int64\(15\) 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\(\*\) / Int64\(96\) \* Int64\(\-25\) \* Int64\(15\) 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 ( * ) / 96 * + - 25 * 15 AS col0, - 4 AS col0 query II rowsort @@ -22476,7 +22476,7 @@ SELECT ALL 48 * + - 74 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1537 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / Int64\(93\) \* Int64\(88\) \+ max\(Int64\(53\)\) \* \(\- nullif\(Int64\(29\), Int64\(9\) \* CASE \(\- Int64\(64\)\) WHEN Int64\(59\) THEN count\(\*\) ELSE CAST\(Int64\(\-26\) AS Int32\) / count\(\*\) \* count\(\*\) END\)\) AS col1" at position 0 and "nullif\(Int64\(17\), Int64\(58\) \* Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / Int64\(93\) \* Int64\(88\) \+ max\(Int64\(53\)\) \* \(\- nullif\(Int64\(29\), Int64\(9\) \* CASE \(\- Int64\(64\)\) WHEN Int64\(59\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE CAST\(Int64\(\-26\) AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col1" at position 0 and "nullif\(Int64\(17\), Int64\(58\) \* Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 64 / + 93 * 88 + ( + + MAX ( ALL 53 ) ) * - ( + NULLIF ( + + 29, + 9 * CASE - ( 64 ) WHEN + + 59 THEN + COUNT ( * ) ELSE + CAST ( - 26 AS INTEGER ) / COUNT ( * ) * + COUNT ( * ) END ) ) AS col1, NULLIF ( 17, 58 * + 95 ) AS col1 query I rowsort label-4275 @@ -23849,7 +23849,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\(\*\) 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 @@ -26124,7 +26124,7 @@ SELECT DISTINCT 53 * + 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(80\) / 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\(29\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(80\) / Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 * + - COUNT ( * ) col0, 80 / + - 14 AS col0 query I rowsort @@ -26180,7 +26180,7 @@ SELECT - 29 * + 3 * + 24 * - + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(41\) / count\(\*\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(41\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 * - CAST ( NULL AS INTEGER ) * + 41 / + COUNT ( * ) + 20 AS col2, 42 col2 query I rowsort label-4984 @@ -26260,7 +26260,7 @@ NULL # 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\(\*\)\) AS col0" at position 0 and "count\(\*\) \* \(\- Int64\(45\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(45\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) * - + 45 AS col0 query I rowsort @@ -26737,7 +26737,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\(\*\) 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 @@ -26947,7 +26947,7 @@ SELECT DISTINCT + MIN ( + - 37 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(84\), Int64\(89\) / \(\- Int64\(\-62\)\) \* \(\- max\(Int64\(\-56\)\)\) \- 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 "nullif\(Int64\(84\), Int64\(89\) / \(\- Int64\(\-62\)\) \* \(\- max\(Int64\(\-56\)\)\) \- 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 + NULLIF ( + 84, + 89 / - - 62 * - MAX ( - 56 ) - COUNT ( * ) ) col0, 95 AS col0 query I rowsort label-5129 @@ -27662,7 +27662,7 @@ SELECT - NULLIF ( + + COUNT ( * ), + 65 ) + + MAX ( - - 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(54\) \* \(\- \(\- CASE Int64\(55\) WHEN Int64\(\-48\) THEN Int64\(11\) \* Int64\(\-81\) \+ CAST\(NULL AS Int32\) WHEN count\(\*\) THEN NULL WHEN Int64\(\-88\) \* Int64\(35\) THEN Int64\(22\) END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(54\) \* \(\- \(\- CASE Int64\(55\) WHEN Int64\(\-48\) THEN Int64\(11\) \* Int64\(\-81\) \+ CAST\(NULL AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-88\) \* Int64\(35\) THEN Int64\(22\) END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 34 AS col0, 54 * - - CASE + + 55 WHEN - 48 THEN 11 * + - 81 + + + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN + - 88 * + 35 THEN 22 END AS col0 query I rowsort @@ -28913,7 +28913,7 @@ SELECT + COUNT ( * ) * 99 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1164 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) / \(\- CAST\(Int64\(94\) AS Int32\)\) \+ \(\- Int64\(97\)\) \* coalesce\(Int64\(\-12\), CASE count\(\*\) WHEN Int64\(87\) THEN Int64\(\-83\) ELSE NULL END / \(\- \(\- count\(\*\)\)\), Int64\(\-35\)\) AS col2" at position 0 and "CAST\(\(\- Int64\(65\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) / \(\- CAST\(Int64\(94\) AS Int32\)\) \+ \(\- Int64\(97\)\) \* coalesce\(Int64\(\-12\), CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(87\) THEN Int64\(\-83\) ELSE NULL END / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-35\)\) AS col2" at position 0 and "CAST\(\(\- Int64\(65\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 47 / - + CAST ( 94 AS INTEGER ) + - + 97 * + COALESCE ( - 12, CASE COUNT ( * ) WHEN + 87 THEN - 83 ELSE NULL END / - - COUNT ( * ), - 35 ) AS col2, + CAST ( - + 65 AS INTEGER ) AS col2 query I rowsort label-5503 @@ -28968,7 +28968,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\(\*\) AS col2" at position 1 have the 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 @@ -29206,7 +29206,7 @@ SELECT 11 AS col2, 43 * - + MIN ( - - CASE + + 46 WHEN - 19 THEN NULL WHEN + ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(80\) 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\(\*\) \+ Int64\(80\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 80 AS col1, 88 AS col1 query I rowsort label-5558 @@ -30227,7 +30227,7 @@ SELECT DISTINCT 51 + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 182 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(92\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(43\) WHEN Int64\(60\) \* Int64\(75\) THEN \(\- min\(DISTINCT Int64\(16\)\)\) WHEN \(\- CASE \(\- Int64\(\-56\)\) WHEN Int64\(\-65\) \* sum\(Int64\(1\)\) \+ Int64\(69\) THEN NULL WHEN Int64\(\-42\) \* Int64\(68\) \+ \(\- \(\- nullif\(Int64\(64\), Int64\(20\) \* min\(Int64\(41\)\) \+ Int64\(\-7\)\)\)\) THEN Int64\(17\) END\) THEN NULL ELSE NULL END \+ \(\- Int64\(1\)\) \+ \(\- \(\- coalesce\(Int64\(82\), \(\- count\(Int64\(18\)\)\)\)\)\) / CASE \(\- count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-99\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(92\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(43\) WHEN Int64\(60\) \* Int64\(75\) THEN \(\- min\(DISTINCT Int64\(16\)\)\) WHEN \(\- CASE \(\- Int64\(\-56\)\) WHEN Int64\(\-65\) \* sum\(Int64\(1\)\) \+ Int64\(69\) THEN NULL WHEN Int64\(\-42\) \* Int64\(68\) \+ \(\- \(\- nullif\(Int64\(64\), Int64\(20\) \* min\(Int64\(41\)\) \+ Int64\(\-7\)\)\)\) THEN Int64\(17\) END\) THEN NULL ELSE NULL END \+ \(\- Int64\(1\)\) \+ \(\- \(\- coalesce\(Int64\(82\), \(\- count\(Int64\(18\)\)\)\)\)\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-99\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 90 + 92 AS col2, - CAST ( NULL AS INTEGER ) * CASE + 43 WHEN 60 * 75 THEN - MIN ( DISTINCT + 16 ) WHEN - CASE - - 56 WHEN + - 65 * + SUM ( + 1 ) + + 69 THEN NULL WHEN - 42 * 68 + + + ( - - NULLIF ( + 64, 20 * + ( + MIN ( 41 ) ) + - 7 ) ) THEN ( 17 ) END THEN NULL ELSE NULL END + - + 1 + - + ( - COALESCE ( + 82, + + ( - COUNT ( ALL 18 ) ) ) ) / CASE - COUNT ( * ) WHEN + 88 THEN - 99 ELSE NULL END col2 query I rowsort @@ -30253,7 +30253,7 @@ SELECT + 14 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(22\) \* CASE Int64\(\-55\) WHEN Int64\(69\) \* \(\- Int64\(32\)\) THEN \(\- Int64\(30\)\) WHEN \(\- Int64\(\-96\)\) \+ Int64\(20\) \* Int64\(2\) / \(\- CASE Int64\(8\) WHEN Int64\(82\) THEN NULL WHEN coalesce\(Int64\(45\), \(\- Int64\(\-35\)\)\) THEN NULL WHEN Int64\(50\) \* \(\- \(\- min\(Int64\(8\)\)\)\) \+ Int64\(46\) THEN Int64\(69\) \+ \(\- \(\- Int64\(71\)\)\) \* Int64\(28\) WHEN Int64\(77\) THEN NULL END\) \+ Int64\(97\) THEN Int64\(12\) \+ coalesce\(Int64\(3\), \(\- count\(\*\)\)\) ELSE NULL END AS col1" at position 0 and "Int64\(14\) \+ Int64\(78\) \+ 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\(65\) \* Int64\(22\) \* CASE Int64\(\-55\) WHEN Int64\(69\) \* \(\- Int64\(32\)\) THEN \(\- Int64\(30\)\) WHEN \(\- Int64\(\-96\)\) \+ Int64\(20\) \* Int64\(2\) / \(\- CASE Int64\(8\) WHEN Int64\(82\) THEN NULL WHEN coalesce\(Int64\(45\), \(\- Int64\(\-35\)\)\) THEN NULL WHEN Int64\(50\) \* \(\- \(\- min\(Int64\(8\)\)\)\) \+ Int64\(46\) THEN Int64\(69\) \+ \(\- \(\- Int64\(71\)\)\) \* Int64\(28\) WHEN Int64\(77\) THEN NULL END\) \+ Int64\(97\) THEN Int64\(12\) \+ coalesce\(Int64\(3\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) ELSE NULL END AS col1" at position 0 and "Int64\(14\) \+ Int64\(78\) \+ Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 65 * 22 * CASE - 55 WHEN + 69 * - + 32 THEN - ( 30 ) WHEN - - 96 + 20 * 2 / - CASE 8 WHEN + 82 THEN NULL WHEN + COALESCE ( + 45, - ( - 35 ) ) THEN NULL WHEN + 50 * - - MIN ( ALL + + 8 ) + + 46 THEN 69 + - ( - + 71 ) * + + 28 WHEN 77 THEN NULL END + 97 THEN 12 + + COALESCE ( 3, - COUNT ( * ) ) ELSE NULL END AS col1, 14 + + 78 + - 41 AS col1 query II rowsort @@ -30804,7 +30804,7 @@ SELECT 51 * - - 64 # Datafusion - Expected - 2724 # Datafusion - Expected - 0 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- Int64\(67\)\) \+ sum\(Int64\(29\)\) \* \(\- CAST\(Int64\(\-92\) AS Int32\)\) \+ Int64\(59\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(18\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- Int64\(67\)\) \+ sum\(Int64\(29\)\) \* \(\- CAST\(Int64\(\-92\) AS Int32\)\) \+ Int64\(59\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 + - + 67 + SUM ( + 29 ) * + - CAST ( - 92 AS INTEGER ) + 59 AS col2, - 23 / 44 AS col1, - COUNT ( * ) * 18 AS col2 query I rowsort @@ -31088,7 +31088,7 @@ SELECT ( + COUNT ( * ) ) * + 42, - 49 col2 # Datafusion - Expected - NULL # Datafusion - Expected - 51 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / nullif\(CASE CAST\(NULL AS Int32\) WHEN Int64\(\-21\) THEN Int64\(34\) \- count\(\*\) WHEN Int64\(\-99\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-14\) END, \(\- Int64\(69\)\)\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / nullif\(CASE CAST\(NULL AS Int32\) WHEN Int64\(\-21\) THEN Int64\(34\) \- count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-99\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-14\) END, \(\- Int64\(69\)\)\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) / + NULLIF ( + CASE CAST ( NULL AS INTEGER ) WHEN + - 21 THEN 34 - ( + COUNT ( * ) ) WHEN - 99 THEN NULL WHEN 0 THEN - 14 END, - + 69 ) AS col0, + 53 + 78 / - 38, + 75 AS col0 query II rowsort label-5914 @@ -31787,7 +31787,7 @@ SELECT ALL 23 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1375 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* count\(\*\) \* Int64\(3\) \+ Int64\(\-7\) \+ Int64\(21\) \* Int64\(\-64\) \+ \(\- Int64\(\-75\)\) AS col0" at position 0 and "Int64\(21\) \+ \(\- Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) \+ Int64\(\-7\) \+ Int64\(21\) \* Int64\(\-64\) \+ \(\- Int64\(\-75\)\) AS col0" at position 0 and "Int64\(21\) \+ \(\- Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 33 * + + COUNT ( * ) * + 3 + - 7 + + + 21 * + - 64 + - - 75 AS col0, + 21 + - + 98 col0 query I rowsort label-6046 @@ -32062,7 +32062,7 @@ SELECT ALL + SUM ( 80 ) + COUNT ( * ) + - - 55 / + 56 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(13\) AS col0" at position 0 and "max\(\(\- coalesce\(Int64\(88\), CAST\(Int64\(5\) AS Int32\) \+ Int64\(95\) / Int64\(72\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(13\) AS col0" at position 0 and "max\(\(\- coalesce\(Int64\(88\), CAST\(Int64\(5\) AS Int32\) \+ Int64\(95\) / Int64\(72\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 32 + - - COUNT ( * ) + 13 AS col0, MAX ( - COALESCE ( 88, + CAST ( + 5 AS INTEGER ) + + 95 / + 72 ) ) AS col0 query I rowsort label-6097 @@ -34854,7 +34854,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\(\*\) 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 @@ -35283,7 +35283,7 @@ SELECT + ( + 99 ) AS col1, - 41 * - 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(40\) AS col0" at position 0 and "count\(\*\) \* \(\- Int64\(\-50\)\) \+ 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\(3\) \* Int64\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-50\)\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 3 * + 40 AS col0, COUNT ( * ) * - - 50 + 32 AS col0 query I rowsort @@ -35986,7 +35986,7 @@ SELECT - 54 + - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(99\) \+ Int64\(95\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(99\) \+ Int64\(95\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 35 AS col0, CAST ( NULL AS INTEGER ) + 99 + + 95 * + - COUNT ( * ) AS col0 query I rowsort label-6844 @@ -39536,7 +39536,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\(\*\) 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: @@ -40068,7 +40068,7 @@ SELECT + 9 * + NULLIF ( + 24, - 70 ) + + + 71 + + 71 + - 97 + + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-89\), Int64\(68\) / Int64\(\-58\) / count\(\*\)\) \- CAST\(NULL AS Int32\) \+ Int64\(\-85\) \+ Int64\(\-7\) \+ Int64\(\-30\) AS col0" at position 0 and "Int64\(16\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-89\), Int64\(68\) / Int64\(\-58\) / count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) \+ Int64\(\-85\) \+ Int64\(\-7\) \+ Int64\(\-30\) AS col0" at position 0 and "Int64\(16\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( - 89, 68 / - 58 / COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) + + - 85 + - 7 + - 30 AS col0, 16 * 59 AS col0 query I rowsort label-7617 @@ -40130,7 +40130,7 @@ SELECT ALL 80 + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(69\) AS col1" at position 0 and "\(\- coalesce\(Int64\(12\), Int64\(24\) \* count\(\*\) / \(\- Int64\(3\)\) \+ Int64\(45\) \+ 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\(\-98\) \+ Int64\(69\) AS col1" at position 0 and "\(\- coalesce\(Int64\(12\), Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(3\)\) \+ Int64\(45\) \+ Int64\(\-79\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 98 + 69 AS col1, - COALESCE ( 12, 24 * + COUNT ( * ) / - ( + 3 ) + + 45 + - 79 ) AS col1 query I rowsort label-7629 @@ -40404,7 +40404,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 2479 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(32\) \* Int64\(77\) \+ Int64\(15\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(32\) \* Int64\(77\) \+ Int64\(15\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 AS col2, 32 * + 77 + 15 * - - COUNT ( * ) AS col2 query I rowsort label-7682 @@ -42650,7 +42650,7 @@ SELECT DISTINCT - 48 - - ( + CAST ( - + 28 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5244 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(76\) 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 "Int64\(69\) \* Int64\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 * + 76 AS col0, + COUNT ( * ) - + 78 AS col0 query I rowsort label-8111 @@ -43244,7 +43244,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\(\*\) \- count\(\*\) AS col0" at position 1 have the 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 @@ -43895,7 +43895,7 @@ NULL # 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\(\*\)\)\) 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 ALL - - COUNT ( * ) col1, - 79 AS col1 query I rowsort label-8349 @@ -43981,7 +43981,7 @@ SELECT DISTINCT - ( ( - + 90 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(8\) AS col0" at position 0 and "count\(\*\) \* 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\(10\) \+ Int64\(8\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 10 + + 8 AS col0, COUNT ( * ) * - 54 AS col0 query I rowsort @@ -44647,7 +44647,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\(\*\) AS col0" at position 1 have the 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 @@ -45097,7 +45097,7 @@ SELECT ALL - CAST ( - 13 AS INTEGER ) # Datafusion - Expected - 0 # Datafusion - Expected - 73 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-59\) \* Int64\(82\) AS col2" at position 0 and "Int64\(37\) \+ Int64\(6\) \+ \(\- Int64\(8\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-59\) \* Int64\(82\) AS col2" at position 0 and "Int64\(37\) \+ Int64\(6\) \+ \(\- Int64\(8\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / - 59 * + 82 AS col2, 76 + - - 52 + - 55, + 37 + 6 + - ( + + 8 ) AS col2 query II rowsort @@ -45491,7 +45491,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\(\*\) AS col2" at position 1 have the 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 @@ -46366,7 +46366,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\(\*\) AS col0" at position 1 have the 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 @@ -47303,7 +47303,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col1" at position 0 and "CASE count\(\*\) WHEN Int64\(\-17\) \+ Int64\(94\) THEN Int64\(97\) ELSE count\(\*\) \+ \(\- Int64\(74\)\) 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\(\-12\) AS col1" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-17\) \+ Int64\(94\) THEN Int64\(97\) ELSE count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(74\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 AS col1, + CASE COUNT ( * ) WHEN + - 17 + + 94 THEN 97 ELSE + COUNT ( * ) + - ( + 74 ) END AS col1 query II rowsort label-8995 @@ -47697,7 +47697,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 202937 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-94\) / Int64\(23\) AS col1" at position 0 and "Int64\(\-30\) \- \(\- Int64\(67\)\) \+ Int64\(86\) \* Int64\(\-40\) \* CAST\(\(\- Int64\(59\)\) AS Int32\) \+ Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-94\) / Int64\(23\) AS col1" at position 0 and "Int64\(\-30\) \- \(\- Int64\(67\)\) \+ Int64\(86\) \* Int64\(\-40\) \* CAST\(\(\- Int64\(59\)\) AS Int32\) \+ Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - 94 / ( + + 23 ) AS col1, - 30 - - + 67 + + + 86 * - 40 * CAST ( - + 59 AS INTEGER ) + - 60 AS col1 query I rowsort label-9070 @@ -47887,7 +47887,7 @@ SELECT + 43 * - + 85 # Datafusion - Expected - -9769 # Datafusion - Expected - 507 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(10\) \+ Int64\(\-33\) AS col0" at position 1 and "\(\- nullif\(\(\- count\(\*\)\), \(\- nullif\(Int64\(88\), \(\- count\(\*\)\) \+ \(\- Int64\(\-20\)\)\)\)\)\) \+ Int64\(37\) \+ Int64\(\-40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(10\) \+ Int64\(\-33\) AS col0" at position 1 and "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- nullif\(Int64\(88\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-20\)\)\)\)\)\) \+ Int64\(37\) \+ Int64\(\-40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 61 * 17 + ( - - 4 ) * + NULLIF ( - 37, - 46 ) * + ( + 59 ), 54 * + 10 + - 33 AS col0, - NULLIF ( + - COUNT ( * ), - NULLIF ( + 88, - COUNT ( * ) + - - 20 ) ) + 37 + - 40 AS col0 query I rowsort @@ -48006,7 +48006,7 @@ SELECT + 58 * + + 68 + - COUNT ( + 23 ) # Datafusion - Expected - -48 # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-36\)\) \+ \(\- min\(Int64\(84\)\)\) AS col1" at position 0 and "Int64\(65\) \- Int64\(\-61\) / \(\- CASE Int64\(\-15\) WHEN \(\- Int64\(77\)\) THEN NULL WHEN Int64\(\-57\) \* Int64\(75\) THEN Int64\(2\) \+ Int64\(39\) \* count\(\*\) \+ Int64\(\-12\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-36\)\) \+ \(\- min\(Int64\(84\)\)\) AS col1" at position 0 and "Int64\(65\) \- Int64\(\-61\) / \(\- CASE Int64\(\-15\) WHEN \(\- Int64\(77\)\) THEN NULL WHEN Int64\(\-57\) \* Int64\(75\) THEN Int64\(2\) \+ Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-12\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 36 + - MIN ( + 84 ) AS col1, 65 - - 61 / + + ( - CASE - 15 WHEN - + 77 THEN NULL WHEN + ( - 57 ) * 75 THEN + 2 + 39 * + COUNT ( * ) + + - 12 ELSE NULL END ) AS col1, 95 AS col2 query I rowsort label-9129 @@ -49499,7 +49499,7 @@ SELECT ALL + 24 * - MAX ( + + 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(78\)\) \+ nullif\(\(\- min\(DISTINCT Int64\(63\)\)\), Int64\(35\) \* count\(\*\)\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(78\)\) \+ nullif\(\(\- min\(DISTINCT Int64\(63\)\)\), Int64\(35\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + MIN ( DISTINCT 78 ) ) + NULLIF ( - MIN ( DISTINCT + + 63 ), ( + + 35 ) * COUNT ( * ) ) AS col2, - 41 AS col2 query I rowsort label-9412 @@ -51206,7 +51206,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\(\*\) 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 @@ -51778,7 +51778,7 @@ SELECT - CASE 46 WHEN + - 48 + - COUNT ( * ) THEN + - 7 END * + AVG ( DISTINCT 7 # 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\(\*\) AS col0" at position 1 have the 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 51de17d..a0f5529 100644 --- a/data/sqlite/random/expr/slt_good_118.slt +++ b/data/sqlite/random/expr/slt_good_118.slt @@ -107,7 +107,7 @@ SELECT - 35, COUNT ( * ) + - 63 / - 93 * 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5810 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* \(\- Int64\(83\)\) AS col2" at position 0 and "count\(\*\) / count\(DISTINCT 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\(\-70\) \* \(\- Int64\(83\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(DISTINCT Int64\(\-86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 70 * ( - ( + 83 ) ) AS col2, COUNT ( * ) / + + COUNT ( DISTINCT - 86 ) AS col2 query I rowsort label-14 @@ -459,7 +459,7 @@ SELECT 61 * + 50 * SUM ( DISTINCT 26 ) # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 DISTINCT - - 49 AS col1, - COUNT ( * ) AS col1 query I rowsort label-81 @@ -2197,7 +2197,7 @@ SELECT - 29 + + ( 29 ), MAX ( ALL + - 85 ) AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - -1 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 1 and "\(\- Int64\(\-4\)\) \- \(\- Int64\(\-47\)\) \- Int64\(22\) 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\(\-4\)\) \- \(\- Int64\(\-47\)\) \- Int64\(22\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 28 * CAST ( NULL AS FLOAT8 ) * 83 AS col2, - COUNT ( * ) AS col0, - - 4 - - - 47 - + 22 AS col0 query I rowsort label-415 @@ -2989,7 +2989,7 @@ SELECT ALL + 54 * - ( 49 ) + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3649 # Datafusion - Expected - 312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(89\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(4\) \* \(\- Int64\(78\)\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(89\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(4\) \* \(\- Int64\(78\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 41 * + 89 * - COUNT ( * ) AS col0, 4 * - + 78 * - + COUNT ( * ) AS col0 query I rowsort label-567 @@ -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\(86\) / count\(\*\) AS col1" at position 1 have the 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 @@ -3318,7 +3318,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 4072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / Int64\(\-47\) AS col1" at position 0 and "Int64\(24\) \+ \(\- Int64\(71\)\) \* Int64\(\-57\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(\-47\) AS col1" at position 0 and "Int64\(24\) \+ \(\- Int64\(71\)\) \* Int64\(\-57\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 5 / - 47 AS col1, 24 + - + 71 * - 57 + - - COUNT ( * ) AS col1 query I rowsort @@ -5294,7 +5294,7 @@ SELECT + 45 * - ( + ( 81 ) ) * - MAX ( DISTINCT 84 ) AS col2 # 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 "count\(\*\) \+ Int64\(66\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-46\) \- \(\- sum\(Int64\(46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-46\) \- \(\- sum\(Int64\(46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 66 AS col1, COUNT ( * ) + - 46 - - SUM ( 46 ) col1 query I rowsort label-1005 @@ -7051,7 +7051,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-12\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-12\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 12 ) AS col0, + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 query I rowsort label-1343 @@ -8743,7 +8743,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\(19\) \* 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 @@ -8885,7 +8885,7 @@ SELECT ALL + + 0 AS col1, + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51699 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(32\)\) \* Int64\(33\) \* Int64\(\-49\) \- CAST\(Int64\(44\) AS Int32\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(32\)\) \* Int64\(33\) \* Int64\(\-49\) \- CAST\(Int64\(44\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 32 * 33 * - 49 - CAST ( + 44 AS INTEGER ) + - COUNT ( * ) AS col1, 64 AS col1 query I rowsort @@ -10250,7 +10250,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\(\*\) \+ \(\- coalesce\(count\(\*\), Int64\(80\), Int64\(\-86\)\)\)\) \+ Int64\(\-13\) / 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 @@ -11231,7 +11231,7 @@ SELECT 68 AS col0, + ( + - 42 ) * 76 # 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\(\*\)\) 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 col2 query I rowsort @@ -11445,7 +11445,7 @@ SELECT 95 + + ( + 87 ), 12 * - 31 + - 12 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(\-6\) WHEN Int64\(57\) THEN Int64\(\-19\) WHEN CAST\(NULL AS Int32\) \+ count\(\*\) THEN NULL ELSE Int64\(46\) / Int64\(3\) END\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(\-6\) WHEN Int64\(57\) THEN Int64\(\-19\) WHEN CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(46\) / Int64\(3\) END\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - + CASE - 6 WHEN 57 THEN - 19 WHEN CAST ( NULL AS INTEGER ) + ( + + COUNT ( * ) ) THEN NULL ELSE 46 / 3 END ) AS col0, + ( CAST ( NULL AS INTEGER ) ) col0 query I rowsort label-2181 @@ -11942,7 +11942,7 @@ SELECT + 62 * + 9 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1078 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(77\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(77\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, + 77 * 14 AS col1 query II rowsort @@ -12405,7 +12405,7 @@ SELECT DISTINCT - 79 / - 64 + + - COUNT ( * ) + - - 26 + + COUNT ( * ) * + 76 AS # 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\(\*\)\)\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col1, - 13 AS col1 query I rowsort label-2365 @@ -12477,7 +12477,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -12515,7 +12515,7 @@ SELECT ALL 10 + + 30 # 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\(\*\)\) 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 query II rowsort @@ -13417,7 +13417,7 @@ SELECT ALL + 94 + - 56 * 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 151 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(79\) AS col2" at position 0 and "Int64\(72\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(79\) 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 + 72 + + 79 AS col2, 72 + - + COUNT ( * ) AS col2 query I rowsort @@ -13487,7 +13487,7 @@ SELECT + + 67 * COUNT ( + + 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(20\) \+ Int64\(53\) \+ \(\- count\(\*\)\) \* \(\- Int64\(\-6\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(20\) \+ Int64\(53\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-6\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 AS col0, 20 + 53 + - + COUNT ( * ) * - - 6 AS col0 query I rowsort label-2572 @@ -13622,7 +13622,7 @@ SELECT - - ( + 13 ) - + 0 - + + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -648 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) \* Int64\(54\) AS col1" at position 0 and "coalesce\(count\(\*\), \(\- Int64\(\-22\)\) \* \(\- Int64\(23\)\) \* Int64\(38\)\) \+ count\(\*\) \* count\(DISTINCT 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\(12\)\) \* Int64\(54\) AS col1" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(\-22\)\) \* \(\- Int64\(23\)\) \* Int64\(38\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(DISTINCT Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 12 * 54 col1, + COALESCE ( COUNT ( * ), + ( - - 22 ) * - + 23 * 38 ) + COUNT ( * ) * + COUNT ( DISTINCT 98 ) AS col1 query I rowsort label-2598 @@ -14575,7 +14575,7 @@ SELECT + 81 / + 6 + - COUNT ( * ) + 93 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "CASE Int64\(28\) WHEN Int64\(53\) \+ count\(\*\) THEN Int64\(90\) \* Int64\(82\) WHEN Int64\(22\) \+ Int64\(7\) THEN \(\- nullif\(Int64\(\-88\), Int64\(42\) \+ Int64\(26\)\)\) 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\(72\) AS col0" at position 0 and "CASE Int64\(28\) WHEN Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(90\) \* Int64\(82\) WHEN Int64\(22\) \+ Int64\(7\) THEN \(\- nullif\(Int64\(\-88\), Int64\(42\) \+ Int64\(26\)\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 72 AS col0, CASE + 28 WHEN 53 + COUNT ( * ) THEN + 90 * 82 WHEN 22 + 7 THEN - NULLIF ( - 88, 42 + 26 ) END col0 query I rowsort label-2783 @@ -15179,7 +15179,7 @@ SELECT 13 / + ( - 46 ) - ( - + CAST ( - + 46 AS INTEGER ) ) - + 34 # Datafusion - Expected - 85 # Datafusion - Expected - 2701 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- Int64\(\-37\)\) AS col2" at position 1 and "Int64\(14\) \* count\(\*\) \+ count\(DISTINCT Int64\(6\)\) 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\) \* \(\- Int64\(\-37\)\) AS col2" at position 1 and "Int64\(14\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(DISTINCT Int64\(6\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85, 73 * - + ( + - 37 ) AS col2, + + 14 * COUNT ( * ) + + COUNT ( DISTINCT + 6 ) col2 # Datafusion - Datafusion expected results: @@ -15914,7 +15914,7 @@ SELECT + ( + 82 ) + COALESCE ( + ( 66 ), - 17 + 2 * + MIN ( ALL + + 7 ) * + 28 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1822 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(25\) \* Int64\(\-78\) \+ Int64\(42\) AS col1" at position 0 and "\(\- CASE Int64\(75\) WHEN \(\- count\(\*\)\) \+ \(\- nullif\(Int64\(42\), CASE Int64\(35\) WHEN Int64\(\-69\) \+ Int64\(37\) \* Int64\(\-27\) THEN Int64\(93\) \* max\(Int64\(58\)\) ELSE NULL END \+ Int64\(65\)\)\) THEN Int64\(52\) \+ count\(\*\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(25\) \* Int64\(\-78\) \+ Int64\(42\) AS col1" at position 0 and "\(\- CASE Int64\(75\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- nullif\(Int64\(42\), CASE Int64\(35\) WHEN Int64\(\-69\) \+ Int64\(37\) \* Int64\(\-27\) THEN Int64\(93\) \* max\(Int64\(58\)\) ELSE NULL END \+ Int64\(65\)\)\) THEN Int64\(52\) \+ count\(Int64\(1\)\) AS count\(\*\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 + + + 25 * + - 78 + 42 AS col1, - CASE 75 WHEN - COUNT ( * ) + - NULLIF ( + 42, + CASE 35 WHEN ( - 69 ) + + 37 * ( - 27 ) THEN + 93 * MAX ( + 58 ) ELSE NULL END + 65 ) THEN 52 + COUNT ( * ) END AS col1 query I rowsort label-3039 @@ -19220,7 +19220,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\(\*\) AS col0" at position 1 have the 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 @@ -19780,7 +19780,7 @@ SELECT + 55 - - 76 - + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -284 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(73\) AS col1" at position 0 and "Int64\(71\) \* 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\(\*\)\) \* Int64\(73\) AS col1" at position 0 and "Int64\(71\) \* Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 73 col1, 71 * - 4 AS col1 query I rowsort label-3773 @@ -20818,7 +20818,7 @@ SELECT DISTINCT - COUNT ( * ) * + + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(50\) \+ \(\- count\(\*\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int32\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(50\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int32\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 AS col2, 50 + + - COUNT ( * ) + - 88 * + + CAST ( NULL AS INTEGER ) * 11 AS col2 query I rowsort label-3971 @@ -21096,7 +21096,7 @@ NULL # 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 "Int64\(15\) \+ count\(\*\) \* 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\(\-29\) AS col2" at position 0 and "Int64\(15\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 29 ) AS col2, + 15 + + COUNT ( * ) * - 16 AS col2 query II rowsort @@ -21300,7 +21300,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\(\*\) AS col1" at position 1 have the 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 @@ -21311,7 +21311,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\(\*\) 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 @@ -23188,7 +23188,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\(\*\) AS col1" at position 1 have the 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 @@ -23288,7 +23288,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\(\*\) AS col1" at position 1 have the 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 @@ -23304,7 +23304,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\(\*\) 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 @@ -24294,7 +24294,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\(\*\) 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 @@ -24916,7 +24916,7 @@ SELECT COALESCE ( + - 92, 29, 64 + + - 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3057 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) \* Int64\(55\) \+ \(\- count\(\*\)\) \* Int64\(\-33\) \+ count\(Int64\(84\)\) \* \(\- Int64\(10\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) \* Int64\(55\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-33\) \+ count\(Int64\(84\)\) \* \(\- Int64\(10\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 56 * + 55 + - + COUNT ( * ) * - 33 + COUNT ( 84 ) * - + 10 col1, + 16 AS col1 query I rowsort @@ -25633,7 +25633,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\(\*\) 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\(65\) \+ CAST\(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 @@ -26549,7 +26549,7 @@ SELECT - 48 + - 28 + + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- Int64\(\-38\)\)\) \* Int64\(86\) \* \(\- \(\- count\(\*\)\)\) \+ \(\- Int64\(\-45\)\) \* \(\- Int64\(\-97\)\) \* Int64\(\-62\) \+ Int64\(\-73\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(\*\)\) THEN Int64\(74\) \* Int64\(4\) \- Int64\(65\) \+ Int64\(\-7\) \* Int64\(98\) \- Int64\(\-42\) END\) \+ Int64\(68\) \+ CAST\(Int64\(\-61\) AS Int32\) \+ Int64\(\-36\) / Int64\(59\) \* Int64\(24\) / Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- Int64\(\-38\)\)\) \* Int64\(86\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-45\)\) \* \(\- Int64\(\-97\)\) \* Int64\(\-62\) \+ Int64\(\-73\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(74\) \* Int64\(4\) \- Int64\(65\) \+ Int64\(\-7\) \* Int64\(98\) \- Int64\(\-42\) END\) \+ Int64\(68\) \+ CAST\(Int64\(\-61\) AS Int32\) \+ Int64\(\-36\) / Int64\(59\) \* Int64\(24\) / Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 AS col0, 67 * - - ( - 38 ) * + + 86 * - - COUNT ( * ) + - - 45 * - - 97 * - 62 + - 73 + - CASE 66 WHEN + - COUNT ( * ) THEN 74 * + + 4 - + + 65 + - 7 * + 98 - - 42 END + + 68 + + CAST ( - 61 AS INTEGER ) + - 36 / 59 * 24 / - 22 AS col0 query I rowsort @@ -26646,7 +26646,7 @@ SELECT ALL - 86 * 82 AS col1 # 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\(\-7\) \- \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(92\) / nullif\(\(\- Int64\(\-88\)\), Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(92\) / nullif\(\(\- Int64\(\-88\)\), Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 7 - - + COUNT ( * ) AS col0, 92 / NULLIF ( - - 88, + + 72 ) col0 query I rowsort label-5083 @@ -27497,7 +27497,7 @@ SELECT DISTINCT + - 64 * - 98 AS col0, - 79 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-93\)\)\) AS col1" at position 0 and "count\(\*\) \* CAST\(Int64\(95\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-93\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(95\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - MIN ( DISTINCT - 93 ) AS col1, COUNT ( * ) * CAST ( + ( + + 95 ) AS INTEGER ) AS col1 query I rowsort @@ -27513,7 +27513,7 @@ SELECT DISTINCT + ( - 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(count\(\*\), Int64\(93\) \* Int64\(\-42\) \- Int64\(\-36\) \+ Int64\(\-77\)\)\) AS Int32\) / \(\- Int64\(\-99\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(93\) \* Int64\(\-42\) \- Int64\(\-36\) \+ Int64\(\-77\)\)\) AS Int32\) / \(\- Int64\(\-99\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - COALESCE ( COUNT ( * ), + 93 * - 42 - + - 36 + + - 77 ) AS INTEGER ) / - - 99 AS col1, + 69 AS col1 query I rowsort @@ -28030,7 +28030,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- count\(\*\)\)\) WHEN Int64\(91\) \+ Int64\(44\) THEN count\(\*\) WHEN Int64\(44\) \+ Int64\(\-75\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-22\) \- Int64\(\-85\) \+ \(\- Int64\(88\)\) THEN NULL END AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(91\) \+ Int64\(44\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(44\) \+ Int64\(\-75\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-22\) \- Int64\(\-85\) \+ \(\- Int64\(88\)\) THEN NULL END AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - - COUNT ( * ) WHEN + 91 + 44 THEN + COUNT ( * ) WHEN 44 + - 75 + CAST ( NULL AS INTEGER ) + - 22 - - 85 + - + 88 THEN NULL END AS col0, 33 AS col0 query I rowsort @@ -29006,7 +29006,7 @@ SELECT + 5 * + 16 + + ( COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2493 # Datafusion - Expected - 600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(\(\- Int64\(\-15\)\)\)\)\) \+ Int64\(42\) \* Int64\(59\) \* nullif\(count\(\*\), \(\- \(\- CASE min\(Int64\(63\)\) WHEN \(\- Int64\(23\)\) \+ Int64\(\-75\) THEN Int64\(\-67\) ELSE Int64\(90\) / Int64\(24\) END\)\) \+ Int64\(0\)\) AS col2" at position 0 and "Int64\(20\) \* 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 "\(\- \(\- max\(\(\- Int64\(\-15\)\)\)\)\) \+ Int64\(42\) \* Int64\(59\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- \(\- CASE min\(Int64\(63\)\) WHEN \(\- Int64\(23\)\) \+ Int64\(\-75\) THEN Int64\(\-67\) ELSE Int64\(90\) / Int64\(24\) END\)\) \+ Int64\(0\)\) AS col2" at position 0 and "Int64\(20\) \* Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - MAX ( ALL - - 15 ) + + 42 * + 59 * NULLIF ( COUNT ( * ), - ( - CASE + MIN ( + 63 ) WHEN - + 23 + - 75 THEN - 67 ELSE + 90 / 24 END ) + + - 0 ) AS col2, + 20 * + + 30 AS col2 # Datafusion - Datafusion expected results: @@ -29462,7 +29462,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\(\*\) AS col0" at position 1 have the 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 @@ -30071,7 +30071,7 @@ SELECT ( - 83 ) + + - 15 * - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -76 -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\(\-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\(28\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 28 AS col1, COUNT ( * ) + - 77 AS col1 query I rowsort label-5736 @@ -30196,7 +30196,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 5278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(22\)\) AS Int32\) \- \(\- nullif\(Int64\(27\), nullif\(count\(\*\), Int64\(35\)\) \+ Int64\(55\) \+ Int64\(43\)\)\) AS col2" at position 0 and "Int64\(58\) \* \(\- \(\- nullif\(Int64\(91\), Int64\(44\) \- Int64\(73\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(22\)\) AS Int32\) \- \(\- nullif\(Int64\(27\), nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(35\)\) \+ Int64\(55\) \+ Int64\(43\)\)\) AS col2" at position 0 and "Int64\(58\) \* \(\- \(\- nullif\(Int64\(91\), Int64\(44\) \- Int64\(73\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - + 22 AS INTEGER ) - - NULLIF ( + 27, NULLIF ( COUNT ( * ), + 35 ) + + 55 + 43 ) AS col2, 58 * - - NULLIF ( 91, + 44 - + + 73 ) AS col2 query I rowsort label-5759 @@ -30339,7 +30339,7 @@ SELECT COALESCE ( - 13, + 62 / + COUNT ( * ), + + 3 * + 16 / + 70 * + + 49 + + 5 # 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 col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(1\)\) 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 ( * ) ) * - + 1 AS col2, 19 AS col2 query I rowsort @@ -31344,7 +31344,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\(\*\) AS col0" at position 1 have the 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 @@ -32536,7 +32536,7 @@ SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) AS col0, COUNT ( * ) / 12 * 39 + # 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\(\*\)\) AS col2" at position 1 have the 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 DISTINCT 58 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -33809,7 +33809,7 @@ SELECT 80 * + 82 + + 75 + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-24\)\) 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 "sum\(Int64\(\-24\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - 24 ) AS col2, COUNT ( * ) * 99 col2 query I rowsort @@ -34490,7 +34490,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ Int64\(55\) AS col0" at position 0 and "count\(\*\) \* \(\- 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\(\-79\) \+ Int64\(55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 79 + 55 AS col0, COUNT ( * ) * - - 37 AS col0 query I rowsort label-6576 @@ -35638,7 +35638,7 @@ SELECT ALL - - 48, + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "CAST\(Int64\(40\) AS Int32\) / Int64\(10\) \* count\(\*\) \+ \(\- \(\- CASE \(\- Int64\(65\)\) WHEN count\(\*\) THEN Int64\(95\) \* Int64\(12\) \+ Int64\(99\) \- Int64\(21\) ELSE Int64\(1\) \+ count\(\*\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "CAST\(Int64\(40\) AS Int32\) / Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CASE \(\- Int64\(65\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(95\) \* Int64\(12\) \+ Int64\(99\) \- Int64\(21\) ELSE Int64\(1\) \+ count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 71 AS col1, CAST ( 40 AS INTEGER ) / 10 * + COUNT ( * ) + - - CASE - + 65 WHEN + COUNT ( * ) THEN + + 95 * + 12 + + 99 - 21 ELSE + 1 + + ( + COUNT ( * ) ) END AS col1 query II rowsort label-6792 @@ -36090,7 +36090,7 @@ SELECT ALL + 72, 9 * + - MIN ( ( 81 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(67\)\), Int64\(99\) \+ coalesce\(Int64\(\-97\), min\(Int64\(92\)\), Int64\(\-24\)\) \- Int64\(3\) \+ Int64\(\-49\) \* \(\- \(\- max\(\(\- \(\- Int64\(80\)\)\)\)\)\) \+ Int64\(\-90\) \* Int64\(58\)\)\) AS col2" at position 0 and "\(\- CASE Int64\(26\) WHEN count\(\*\) THEN Int64\(88\) \+ Int64\(45\) \* Int64\(28\) \* Int64\(38\) \+ Int64\(\-6\) 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 "\(\- nullif\(\(\- Int64\(67\)\), Int64\(99\) \+ coalesce\(Int64\(\-97\), min\(Int64\(92\)\), Int64\(\-24\)\) \- Int64\(3\) \+ Int64\(\-49\) \* \(\- \(\- max\(\(\- \(\- Int64\(80\)\)\)\)\)\) \+ Int64\(\-90\) \* Int64\(58\)\)\) AS col2" at position 0 and "\(\- CASE Int64\(26\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(88\) \+ Int64\(45\) \* Int64\(28\) \* Int64\(38\) \+ Int64\(\-6\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( - + 67, 99 + + COALESCE ( - 97, MIN ( + 92 ), - 24 ) - 3 + - 49 * - - MAX ( ALL + - ( - + 80 ) ) + - 90 * 58 ) col2, - CASE 26 WHEN + COUNT ( * ) THEN + 88 + 45 * + 28 * + + 38 + - 6 END AS col2 query I rowsort label-6878 @@ -37352,7 +37352,7 @@ SELECT ALL - 61 - + SUM ( ALL 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(70\) \- \(\- Int64\(\-34\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(87\), 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\(\*\)\) \+ Int64\(70\) \- \(\- Int64\(\-34\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(87\), Int64\(\-24\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 70 - - - 34 AS col2, - COALESCE ( 87, ( - 24 ) ) col2 query I rowsort label-7118 @@ -37521,7 +37521,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-2\) / \(\- coalesce\(Int64\(2\), \(\- \(\- count\(\*\)\)\) \+ Int64\(23\)\)\) 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\(54\) \* Int64\(\-2\) / \(\- coalesce\(Int64\(2\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(23\)\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54 * - 2 / - + COALESCE ( + 2, - - COUNT ( * ) + ( 23 ) ) AS col2, 90 AS col2 query II rowsort label-7150 @@ -38037,7 +38037,7 @@ SELECT ALL ( + - 8 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6685 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(48\) \+ count\(\*\) \+ Int64\(62\) \* \(\- \(\- min\(Int64\(90\)\)\)\) 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 "Int64\(23\) \* Int64\(48\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(62\) \* \(\- \(\- min\(Int64\(90\)\)\)\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 * + 48 + + COUNT ( * ) + 62 * - - MIN ( + + 90 ) col2, ( 38 ) AS col2 query I rowsort @@ -38566,7 +38566,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(79\) \* Int64\(0\) \+ count\(\*\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(79\) \* Int64\(0\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 25 ) AS col1, 79 * 0 + + COUNT ( * ) * + 80 AS col1 # Datafusion - Datafusion expected results: @@ -38628,7 +38628,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\(26\) \- Int64\(\-14\) \- count\(\*\) AS col0" at position 1 have the 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 @@ -39825,7 +39825,7 @@ SELECT DISTINCT + + ( + + 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(99\) / Int64\(\-64\) \+ Int64\(\-65\) \* 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\(99\) / Int64\(\-64\) \+ Int64\(\-65\) \* Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - COUNT ( * ) AS col1, + 99 / - 64 + - 65 * 4 AS col1 query I rowsort @@ -40769,7 +40769,7 @@ SELECT DISTINCT - 67 + - - 28 * + COUNT ( * ) * 53 - - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(22\)\) AS col1" at position 0 and "Int64\(\-15\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 22 ) AS col1, - 15 + - COUNT ( * ) AS col1 query I rowsort @@ -41992,7 +41992,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\(\*\) AS col2" at position 1 have the 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 @@ -42727,7 +42727,7 @@ SELECT 4 / - ( - 69 ) # 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 "max\(Int64\(5\)\) \+ \(\- count\(\*\)\) \* \(\- CASE Int64\(\-10\) WHEN sum\(Int64\(38\)\) \* Int64\(68\) THEN NULL WHEN \(\- Int64\(\-61\)\) / Int64\(\-42\) THEN Int64\(2\) \- avg\(Int64\(90\)\) WHEN Int64\(\-90\) THEN Int64\(\-94\) / Int64\(4\) END\) 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 "max\(Int64\(5\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CASE Int64\(\-10\) WHEN sum\(Int64\(38\)\) \* Int64\(68\) THEN NULL WHEN \(\- Int64\(\-61\)\) / Int64\(\-42\) THEN Int64\(2\) \- avg\(Int64\(90\)\) WHEN Int64\(\-90\) THEN Int64\(\-94\) / Int64\(4\) END\) AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( 5 ) + - COUNT ( * ) * - CASE + - 10 WHEN SUM ( 38 ) * + 68 THEN NULL WHEN - - 61 / - 42 THEN 2 - AVG ( + 90 ) WHEN + - 90 THEN - 94 / + 4 END AS col2, - 51 AS col2 query I rowsort @@ -42870,7 +42870,7 @@ SELECT + COUNT ( * ) * 13 * 84 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 53 -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\(\-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\(77\) 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 ALL 77 AS col1, + COUNT ( * ) - + - 52 AS col1 query II rowsort label-8177 @@ -43202,7 +43202,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\(\*\) AS col2" at position 1 have the 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 @@ -44708,7 +44708,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(12\)\) 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\(\*\)\) \* \(\- Int64\(12\)\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - + 12 AS col0, ( 37 ) AS col0 query I rowsort @@ -44953,7 +44953,7 @@ SELECT - 69 + - SUM ( + ( - 5 ) ) + 73 * 58 * - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -61 -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\(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\(47\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 47 AS col1, COUNT ( * ) - 62 AS col1 query II rowsort @@ -45207,7 +45207,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\(\*\) AS col0" at position 1 have the 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 @@ -45482,7 +45482,7 @@ SELECT DISTINCT + 61 / - - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(12\)\) AS col0" at position 0 and "coalesce\(nullif\(\(\- \(\- count\(\*\)\)\), Int64\(7\) \* max\(Int64\(\-15\)\) / nullif\(\(\- \(\- Int64\(\-57\)\)\), min\(Int64\(72\)\) / CASE Int64\(\-62\) WHEN \(\- CAST\(Int64\(1\) AS Int32\)\) THEN Int64\(51\) END\) \- max\(\(\- Int64\(58\)\)\)\), Int64\(44\) \* \(\- Int64\(85\)\) \* Int64\(10\) \+ \(\- CAST\(Int64\(\-66\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(12\)\) AS col0" at position 0 and "coalesce\(nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(7\) \* max\(Int64\(\-15\)\) / nullif\(\(\- \(\- Int64\(\-57\)\)\), min\(Int64\(72\)\) / CASE Int64\(\-62\) WHEN \(\- CAST\(Int64\(1\) AS Int32\)\) THEN Int64\(51\) END\) \- max\(\(\- Int64\(58\)\)\)\), Int64\(44\) \* \(\- Int64\(85\)\) \* Int64\(10\) \+ \(\- CAST\(Int64\(\-66\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT SUM ( ALL + 12 ) AS col0, + COALESCE ( + NULLIF ( - - COUNT ( * ), 7 * MAX ( - 15 ) / + + NULLIF ( - ( - - 57 ), MIN ( ALL + 72 ) / CASE - 62 WHEN - CAST ( 1 AS INTEGER ) THEN + 51 END ) - + MAX ( - + 58 ) ), + 44 * - + 85 * 10 + - CAST ( - 66 AS INTEGER ) ) col0 query I rowsort label-8672 @@ -45818,7 +45818,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\(\*\) AS col0" at position 1 have the 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 @@ -47481,7 +47481,7 @@ SELECT - COUNT ( * ) + + + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(81\) \- Int64\(55\) \* count\(\*\) \* Int64\(32\) \+ \(\- CAST\(max\(\(\- Int64\(3\)\)\) AS Float64\)\) / \(\- nullif\(Int64\(52\), Int64\(4\) \* Int64\(39\)\)\) \+ CASE \(\- Int64\(54\)\) WHEN Int64\(\-73\) \+ \(\- count\(\*\)\) \- \(\- Int64\(\-45\)\) THEN NULL WHEN Int64\(\-92\) / Int64\(\-90\) \* nullif\(Int64\(\-67\), Int64\(64\) \* count\(\*\) \+ Int64\(\-24\)\) THEN Int64\(51\) END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(81\) \- Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(32\) \+ \(\- CAST\(max\(\(\- Int64\(3\)\)\) AS Float64\)\) / \(\- nullif\(Int64\(52\), Int64\(4\) \* Int64\(39\)\)\) \+ CASE \(\- Int64\(54\)\) WHEN Int64\(\-73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-45\)\) THEN NULL WHEN Int64\(\-92\) / Int64\(\-90\) \* nullif\(Int64\(\-67\), Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-24\)\) THEN Int64\(51\) END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) - + 81 - 55 * COUNT ( * ) * 32 + - CAST ( + MAX ( ALL - + 3 ) AS FLOAT8 ) / - NULLIF ( + 52, + 4 * + 39 ) + + CASE - ( + + 54 ) WHEN - 73 + - COUNT ( * ) - - - 45 THEN NULL WHEN - 92 / - 90 * + NULLIF ( - 67, 64 * COUNT ( * ) + - 24 ) THEN 51 END AS col0, - 3 AS col0 query I rowsort @@ -47507,7 +47507,7 @@ SELECT 94 * - + MIN ( ALL + 86 ) * - 0 + - - COUNT ( * ) + + 95 + 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(74\) \+ Int64\(\-57\) / \(\- Int64\(\-21\)\) \+ Int64\(\-22\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(74\) \+ Int64\(\-57\) / \(\- Int64\(\-21\)\) \+ Int64\(\-22\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + 74 + - 57 / - + ( - 21 ) + - 22 col2, 56 AS col2 query I rowsort label-9056 @@ -49033,7 +49033,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\(\*\) / \(\- \(\- 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\(\*\) / \(\- \(\- 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 ( * ) / - - COUNT ( * ) AS col0, 43 AS col0 query I rowsort @@ -50635,7 +50635,7 @@ SELECT ALL + 68 + - - 69 * + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(47\) AS col2" at position 0 and "Int64\(37\) / \(\- \(\- count\(\*\)\)\) \- count\(\*\) \* Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(47\) AS col2" at position 0 and "Int64\(37\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) - 47 AS col2, 37 / - - COUNT ( * ) - + COUNT ( * ) * + 54 AS col2 query I rowsort label-9653 @@ -50666,7 +50666,7 @@ SELECT + 58 + - 4 * + - 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(58\) AS col0" at position 0 and "Int64\(\-73\) \* count\(DISTINCT Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(58\) AS col0" at position 0 and "Int64\(\-73\) \* count\(DISTINCT Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) - 58 AS col0, - 73 * COUNT ( DISTINCT + 3 ) AS col0 query II rowsort @@ -50755,7 +50755,7 @@ SELECT - 9 * + - 8 * + - ( + 45 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8626 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(99\) \* \(\- nullif\(Int64\(\-87\), \(\- count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(99\) \* \(\- nullif\(Int64\(\-87\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( 13 ) + 99 * - NULLIF ( - 87, - COUNT ( * ) ) AS col1, 1 + + 2 col1 query I rowsort label-9676 @@ -51278,7 +51278,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\(\*\) AS col1" at position 1 have the 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 @@ -51362,7 +51362,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 2013 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col0" at position 0 and "max\(DISTINCT Int64\(61\)\) \* count\(\*\) \* 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\(\-8\) AS col0" at position 0 and "max\(DISTINCT Int64\(61\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 8 AS col0, MAX ( DISTINCT 61 ) * + + COUNT ( * ) * 33 AS col0 query I rowsort label-9792 @@ -52129,7 +52129,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\(\*\) AS col1" at position 1 have the 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 @@ -52309,7 +52309,7 @@ SELECT + 17 - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-54\) 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\(\*\)\) \* Int64\(\-54\) 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 ( * ) * - 54 AS col1, ( + 37 ) col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_119.slt b/data/sqlite/random/expr/slt_good_119.slt index 9e21292..eb55bb1 100644 --- a/data/sqlite/random/expr/slt_good_119.slt +++ b/data/sqlite/random/expr/slt_good_119.slt @@ -1710,7 +1710,7 @@ SELECT ALL 21 * CAST ( - + COUNT ( * ) AS INTEGER ) + 64 * 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(3\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(3\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - + 3 AS col1, + 47 AS col1 query I rowsort label-319 @@ -2163,7 +2163,7 @@ SELECT + 5 - - COUNT ( * ) 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\(\*\)\) 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 @@ -3444,7 +3444,7 @@ SELECT - + 65 - + 55 + - - ( 41 ) + + + ( - - ( - 44 ) ) * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -603 # Datafusion - Expected - 1627 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(7\)\) \* count\(\*\) \* Int64\(86\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(42\)\)\) \* \(\- coalesce\(Int64\(40\), \(\- Int64\(\-59\)\) \* Int64\(83\) \* Int64\(76\) \+ \(\- Int64\(58\)\)\)\) \- \(\- Int64\(3\)\) \- Int64\(64\) \- Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(7\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(42\)\)\) \* \(\- coalesce\(Int64\(40\), \(\- Int64\(\-59\)\) \* Int64\(83\) \* Int64\(76\) \+ \(\- Int64\(58\)\)\)\) \- \(\- Int64\(3\)\) \- Int64\(64\) \- Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 7 * + COUNT ( * ) * + 86 + + - COUNT ( * ) AS col1, - ( SUM ( DISTINCT 42 ) ) * - COALESCE ( 40, - - 59 * + + 83 * 76 + - + 58 ) - - + 3 - + 64 - + - 8 col1 query I rowsort label-650 @@ -4888,7 +4888,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\(\*\) AS col0" at position 1 have the 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 @@ -5408,7 +5408,7 @@ SELECT DISTINCT - 67 / 8 # Datafusion - Expected - 2 # Datafusion - Expected - -58 # Datafusion - Expected - 56 -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\(57\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(57\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 2 col0, COUNT ( DISTINCT 76 ) - - - 59 AS col2, - COUNT ( * ) + + 57 AS col0 query I rowsort label-1029 @@ -5536,7 +5536,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(29\) \+ \(\- Int64\(80\)\) 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\(\*\) \+ Int64\(29\) \+ \(\- Int64\(80\)\) 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 ( * ) + + 29 + - + 80 col1, - 29 AS col1 query I rowsort @@ -7227,7 +7227,7 @@ SELECT - - COUNT ( * ) + + 44 AS col1 # Datafusion - Expected - 79 # Datafusion - Expected - -1 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 1 and "Int64\(36\) \* \(\- 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\(\*\)\) AS col2" at position 1 and "Int64\(36\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79, - COUNT ( * ) AS col2, + 36 * - COUNT ( * ) AS col2 query II rowsort @@ -8465,7 +8465,7 @@ SELECT ALL 80 / NULLIF ( + 80, + 9 * + 98 * COUNT ( * ) + 96 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-36\) WHEN \(\- Int64\(12\)\) / Int64\(24\) \* count\(DISTINCT Int64\(71\)\) \+ \(\- Int64\(\-18\)\) \+ Int64\(15\) \* Int64\(4\) \+ Int64\(14\) THEN \(\- \(\- max\(\(\- Int64\(88\)\)\)\)\) / Int64\(\-35\) \* Int64\(82\) \* count\(\*\) WHEN avg\(DISTINCT Int64\(\-11\)\) THEN NULL ELSE NULL END AS col2" at position 0 and "Int64\(25\) \+ Int64\(6\) \* 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 "CASE Int64\(\-36\) WHEN \(\- Int64\(12\)\) / Int64\(24\) \* count\(DISTINCT Int64\(71\)\) \+ \(\- Int64\(\-18\)\) \+ Int64\(15\) \* Int64\(4\) \+ Int64\(14\) THEN \(\- \(\- max\(\(\- Int64\(88\)\)\)\)\) / Int64\(\-35\) \* Int64\(82\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN avg\(DISTINCT Int64\(\-11\)\) THEN NULL ELSE NULL END AS col2" at position 0 and "Int64\(25\) \+ Int64\(6\) \* Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE - 36 WHEN - + 12 / + 24 * + COUNT ( DISTINCT + 71 ) + - - 18 + 15 * + 4 + 14 THEN - - MAX ( ALL - + 88 ) / - 35 * 82 * COUNT ( * ) WHEN + AVG ( DISTINCT + - 11 ) THEN NULL ELSE NULL END AS col2, 25 + + 6 * 16 AS col2 query I rowsort label-1608 @@ -9201,7 +9201,7 @@ SELECT DISTINCT - - ( 12 ) / 37 + 77 * + NULLIF ( - 84, + 77 * 61 + 87 + 99 ) co # 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\(\*\)\) 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 query I rowsort label-1751 @@ -10069,7 +10069,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \* Int64\(\-55\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(\-55\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 55 AS col1, - 18 AS col1 query I rowsort @@ -10632,7 +10632,7 @@ SELECT ALL - + 84 AS col0, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(76\) \* 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\(76\) \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) AS col2, 76 * - 75 col2 query I rowsort label-2024 @@ -10790,7 +10790,7 @@ SELECT 84 / - 75 AS col2, + 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ \(\- Int64\(\-51\)\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ \(\- Int64\(\-51\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 21 + - - 51 AS col1, + COUNT ( * ) + - 33 AS col1 query II rowsort label-2054 @@ -10893,7 +10893,7 @@ SELECT ALL 33 - + + 93 + 13 * ( + 30 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -41 -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\(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\(84\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 AS col1, - COUNT ( * ) - 40 AS col1 query I rowsort @@ -11860,7 +11860,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-22\) AS Int32\)\)\) \* \(\- count\(\*\)\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-22\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( - 22 AS INTEGER ) * - COUNT ( * ) + + 19 AS col0, + ( - 56 ) AS col0 query I rowsort @@ -13680,7 +13680,7 @@ SELECT ALL - 10 * 53 - + 97 * - + 7 + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -157910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-34\)\)\) \+ Int64\(19\) \- Int64\(55\) AS col0" at position 0 and "Int64\(\-22\) \* count\(\*\) \* count\(\*\) \* Int64\(2\) \* Int64\(\-37\) \* Int64\(\-97\) \- 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\(\-34\)\)\) \+ Int64\(19\) \- Int64\(55\) AS col0" at position 0 and "Int64\(\-22\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) \* Int64\(\-37\) \* Int64\(\-97\) \- Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( - 34 ) + 19 - + 55 col0, - 22 * + COUNT ( * ) * + COUNT ( * ) * + 2 * + - 37 * - 97 - - 6 AS col0 query I rowsort label-2608 @@ -13849,7 +13849,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\(\*\) AS col0" at position 1 have the 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 @@ -15401,7 +15401,7 @@ SELECT - - 25 * 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) \* Int64\(36\) \+ \(\- Int64\(74\)\) \+ Int64\(54\) \+ Int64\(\-12\) \* \(\- Int64\(61\)\) \- Int64\(41\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* \(\- Int64\(89\)\) / \(\- count\(\*\)\) \* Int64\(\-67\) AS col0" at position 0 and "Int64\(23\) \+ CASE Int64\(31\) WHEN \(\- max\(Int64\(31\)\)\) THEN NULL WHEN Int64\(\-15\) \+ Int64\(\-19\) \* Int64\(6\) THEN Int64\(35\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) \* Int64\(36\) \+ \(\- Int64\(74\)\) \+ Int64\(54\) \+ Int64\(\-12\) \* \(\- Int64\(61\)\) \- Int64\(41\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* \(\- Int64\(89\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-67\) AS col0" at position 0 and "Int64\(23\) \+ CASE Int64\(31\) WHEN \(\- max\(Int64\(31\)\)\) THEN NULL WHEN Int64\(\-15\) \+ Int64\(\-19\) \* Int64\(6\) THEN Int64\(35\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 58 * 36 + - + 74 + 54 + - 12 * - ( 61 ) - + 41 + - - CAST ( NULL AS INTEGER ) * - + 89 / - COUNT ( * ) * + - 67 AS col0, 23 + CASE + 31 WHEN ( + - MAX ( 31 ) ) THEN NULL WHEN - 15 + - 19 * 6 THEN 35 END col0 query I rowsort label-2937 @@ -15633,7 +15633,7 @@ SELECT DISTINCT 1 * - + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -2654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "count\(\*\) \* Int64\(31\) \* Int64\(56\) \- \(\- Int64\(10\)\) \* Int64\(\-34\) \* \(\- \(\- CAST\(avg\(Int64\(13\)\) AS Int32\)\)\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \* Int64\(56\) \- \(\- Int64\(10\)\) \* Int64\(\-34\) \* \(\- \(\- CAST\(avg\(Int64\(13\)\) AS Int32\)\)\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 AS col0, COUNT ( * ) * + 31 * + 56 - - + 10 * - 34 * - - CAST ( + AVG ( + 13 ) AS INTEGER ) + 30 AS col0 query I rowsort label-2981 @@ -16224,7 +16224,7 @@ SELECT 61 * 84 + COALESCE ( - 92, - 50 * + NULLIF ( - 56, + 51 * 45 ) + - + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-28\)\) / Int64\(32\) AS col1" at position 0 and "coalesce\(Int64\(82\), count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-28\)\) / Int64\(32\) AS col1" at position 0 and "coalesce\(Int64\(82\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - 28 ) / + 32 AS col1, COALESCE ( 82, + COUNT ( * ) ) AS col1 query I rowsort @@ -17011,7 +17011,7 @@ SELECT - 72 + + 66 + 98 * + - 34 * - ( + - 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / CASE \(\- Int64\(75\)\) WHEN \(\- Int64\(\-58\)\) THEN NULL WHEN Int64\(\-67\) THEN Int64\(\-78\) \* \(\- \(\- coalesce\(Int64\(\-96\), Int64\(36\)\)\)\) \+ Int64\(1\) WHEN Int64\(9\) \* count\(\*\) \+ \(\- Int64\(18\)\) THEN Int64\(\-4\) \* Int64\(27\) ELSE NULL END \+ \(\- Int64\(73\)\) \+ count\(Int64\(39\)\) \+ Int64\(89\) \* \(\- Int64\(\-93\)\) AS col0" at position 0 and "Int64\(44\) \* \(\- Int64\(\-3\)\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / CASE \(\- Int64\(75\)\) WHEN \(\- Int64\(\-58\)\) THEN NULL WHEN Int64\(\-67\) THEN Int64\(\-78\) \* \(\- \(\- coalesce\(Int64\(\-96\), Int64\(36\)\)\)\) \+ Int64\(1\) WHEN Int64\(9\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(18\)\) THEN Int64\(\-4\) \* Int64\(27\) ELSE NULL END \+ \(\- Int64\(73\)\) \+ count\(Int64\(39\)\) \+ Int64\(89\) \* \(\- Int64\(\-93\)\) AS col0" at position 0 and "Int64\(44\) \* \(\- Int64\(\-3\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 / CASE - + 75 WHEN - - 58 THEN NULL WHEN + ( - 67 ) THEN - 78 * - + ( - COALESCE ( - 96, + 36 ) ) + + 1 WHEN 9 * + ( + COUNT ( * ) ) + - + 18 THEN - 4 * + 27 ELSE NULL END + - + 73 + + + COUNT ( + 39 ) + + 89 * - ( - 93 ) AS col0, 44 * - - 3 + - - COUNT ( * ) AS col0 query I rowsort label-3241 @@ -17153,7 +17153,7 @@ SELECT DISTINCT + NULLIF ( - - ( - + ( + 70 ) ), - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "nullif\(\(\- Int64\(\-45\)\), Int64\(97\)\) \* CASE \(\- Int64\(\-56\)\) WHEN Int64\(58\) THEN CAST\(NULL AS Int32\) \- Int64\(\-44\) WHEN \(\- Int64\(15\)\) / Int64\(75\) \- count\(\*\) \+ Int64\(\-33\) THEN Int64\(\-47\) END \+ coalesce\(\(\- Int64\(7\)\), \(\- count\(\*\)\) \+ avg\(Int64\(84\)\), \(\- Int64\(52\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "nullif\(\(\- Int64\(\-45\)\), Int64\(97\)\) \* CASE \(\- Int64\(\-56\)\) WHEN Int64\(58\) THEN CAST\(NULL AS Int32\) \- Int64\(\-44\) WHEN \(\- Int64\(15\)\) / Int64\(75\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) THEN Int64\(\-47\) END \+ coalesce\(\(\- Int64\(7\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(84\)\), \(\- Int64\(52\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 28 AS col2, NULLIF ( - - 45, 97 ) * CASE - - 56 WHEN + 58 THEN + CAST ( NULL AS INTEGER ) - - 44 WHEN - + 15 / 75 - COUNT ( * ) + - 33 THEN + - 47 END + COALESCE ( - + 7, - COUNT ( * ) + AVG ( + 84 ), - + 52 ) AS col2 query I rowsort @@ -17257,7 +17257,7 @@ SELECT + - 7 + 58 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2755 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ CAST\(Int64\(30\) AS Int32\) \+ Int64\(\-29\) \* Int64\(96\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(30\) AS Int32\) \+ Int64\(\-29\) \* Int64\(96\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) + CAST ( 30 AS INTEGER ) + - 29 * 96 AS col2, 98 AS col2 query I rowsort @@ -17279,7 +17279,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\(\*\) AS col1" at position 1 have the 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 @@ -17306,7 +17306,7 @@ SELECT + COUNT ( * ) * + 17 # Datafusion - Expected - 98 # Datafusion - Expected - NULL # Datafusion - Expected - 252 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-85\) \* Int64\(\-3\) / CASE \(\- count\(\*\)\) WHEN Int64\(76\) \- Int64\(94\) \* CAST\(\(\- Int64\(14\)\) AS Int32\) THEN Int64\(98\) \* Int64\(53\) END \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-85\) \* Int64\(\-3\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(76\) \- Int64\(94\) \* CAST\(\(\- Int64\(14\)\) AS Int32\) THEN Int64\(98\) \* Int64\(53\) END \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 98 col1, - 85 * + - 3 / CASE - + COUNT ( * ) WHEN 76 - 94 * + CAST ( - + 14 AS INTEGER ) THEN + 98 * 53 END + 10 col1, 63 * 4 AS col1 query I rowsort label-3298 @@ -17436,7 +17436,7 @@ SELECT DISTINCT - - 89 * - 82 + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-70\) \+ Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-70\) \+ Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, - 70 + + - 53 AS col0 query I rowsort @@ -17830,7 +17830,7 @@ SELECT - 6 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 555 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(34\)\), Int64\(0\) \+ Int64\(22\)\) AS col2" at position 0 and "Int64\(15\) \* count\(\*\) \* coalesce\(Int64\(37\), Int64\(\-21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(34\)\), Int64\(0\) \+ Int64\(22\)\) AS col2" at position 0 and "Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(Int64\(37\), Int64\(\-21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - + 34, - 0 + + 22 ) AS col2, 15 * + COUNT ( * ) * COALESCE ( 37, - 21 ) AS col2 query I rowsort label-3397 @@ -17901,7 +17901,7 @@ SELECT ALL - 26 * - 71 + + 60 + 63 * + 76 # 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\(78\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(11\) AS col2" at position 0 and "sum\(CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(11\) AS col2" at position 0 and "sum\(CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 * - - COUNT ( * ) + 11 AS col2, SUM ( + + CAST ( NULL AS FLOAT8 ) ) AS col2 query I rowsort @@ -18753,7 +18753,7 @@ NULL # Datafusion - Expected - -3093 # Datafusion - Expected - -1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- \(\- count\(\*\)\)\), \(\- count\(\*\)\)\)\) AS col2" at position 1 and "Int64\(93\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 and "Int64\(93\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 * - 36 + - + 69 AS col1, - COALESCE ( - - COUNT ( * ), - COUNT ( * ) ) AS col2, + 93 AS col2 query I rowsort label-3574 @@ -19527,7 +19527,7 @@ SELECT - 43 / 46, 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -17777 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT \(\- nullif\(Int64\(96\), Int64\(\-65\) \+ \(\- Int64\(58\)\)\)\)\)\) AS col0" at position 0 and "Int64\(6\) \+ Int64\(\-84\) \+ Int64\(\-61\) \+ count\(Int64\(18\)\) \+ Int64\(84\) \* Int64\(35\) \* Int64\(\-6\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have 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 \(\- nullif\(Int64\(96\), Int64\(\-65\) \+ \(\- Int64\(58\)\)\)\)\)\) AS col0" at position 0 and "Int64\(6\) \+ Int64\(\-84\) \+ Int64\(\-61\) \+ count\(Int64\(18\)\) \+ Int64\(84\) \* Int64\(35\) \* Int64\(\-6\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MAX ( DISTINCT - + NULLIF ( 96, - 65 + - + 58 ) ) AS col0, 6 + + - 84 + - 61 + COUNT ( + 18 ) + + + 84 * 35 * + - 6 + - - COUNT ( * ) AS col0 query I rowsort label-3718 @@ -20202,7 +20202,7 @@ SELECT ALL 96 * - 67 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 1451 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(5\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-24\) \+ \(\- Int64\(\-7\)\) \+ Int64\(34\) \* 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\(52\) AS col1" at position 0 and "Int64\(5\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-24\) \+ \(\- Int64\(\-7\)\) \+ Int64\(34\) \* Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 AS col1, 5 * - - COUNT ( * ) * + - 24 + - - 7 + + 34 * 46 AS col1 query I rowsort @@ -20341,7 +20341,7 @@ SELECT + - 82 * - COUNT ( * ) - + - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -1184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(11\), Int64\(22\) \* Int64\(\-19\) \* nullif\(\(\- count\(\*\)\), Int64\(\-22\)\)\) AS col0" at position 0 and "Int64\(23\) \- \(\- Int64\(\-52\)\) \+ count\(\*\) \+ Int64\(34\) \* 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 "nullif\(Int64\(11\), Int64\(22\) \* Int64\(\-19\) \* nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-22\)\)\) AS col0" at position 0 and "Int64\(23\) \- \(\- Int64\(\-52\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(34\) \* Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + NULLIF ( + 11, 22 * - 19 * + NULLIF ( - COUNT ( * ), + - 22 ) ) AS col0, + 23 - - - 52 + + COUNT ( * ) + 34 * - 34 col0 query I rowsort label-3872 @@ -22424,7 +22424,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\(\*\) AS col2" at position 1 have the 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 @@ -24127,7 +24127,7 @@ SELECT - ( 30 ) / - 44 * + + COUNT ( * ) * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(91\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(0\) \- \(\- count\(\*\)\) \+ \(\- CASE sum\(DISTINCT Int64\(18\)\) WHEN Int64\(11\) THEN Int64\(\-79\) ELSE NULL END\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(0\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE sum\(DISTINCT Int64\(18\)\) WHEN Int64\(11\) THEN Int64\(\-79\) ELSE NULL END\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + + 91 + - - CAST ( NULL AS FLOAT8 ) + - - 55 AS col1, 0 - - COUNT ( * ) + + - CASE SUM ( DISTINCT 18 ) WHEN + 11 THEN - 79 ELSE NULL END + + CAST ( NULL AS INTEGER ) col1 query I rowsort label-4596 @@ -27897,7 +27897,7 @@ SELECT - - 85 + - COALESCE ( 66, 29, - ( - 94 ) * 78 - 20 * + 25 + - + 21, + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-57\), Int64\(5\) \+ \(\- count\(\*\)\)\)\) \+ Int64\(49\) 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 "\(\- nullif\(Int64\(\-57\), Int64\(5\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(49\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( - 57, + 5 + - COUNT ( * ) ) + + 49 AS col2, 84 AS col2 query I rowsort label-5316 @@ -28212,7 +28212,7 @@ SELECT ALL - - 79 AS col1, 40 + + 11 # Datafusion - Expected - -36 # Datafusion - Expected - 0 # Datafusion - Expected - -9063037 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(43\)\) \+ Int64\(\-10\) \+ \(\- Int64\(56\)\) \* Int64\(\-7\) \* Int64\(34\) \* Int64\(\-20\) \* Int64\(34\) \+ \(\- 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 "Int64\(\-36\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(43\)\) \+ Int64\(\-10\) \+ \(\- Int64\(56\)\) \* Int64\(\-7\) \* Int64\(34\) \* Int64\(\-20\) \* Int64\(34\) \+ \(\- Int64\(\-56\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 36 AS col2, 57 / - + 75 * - COUNT ( * ), COUNT ( * ) * - + 43 + + - 10 + + - ( + 56 ) * - 7 * 34 * - 20 * + 34 + - - 56 AS col2 query I rowsort label-5376 @@ -31829,7 +31829,7 @@ SELECT - COALESCE ( - 71, - CASE + CASE ( + - 18 ) WHEN CASE - 38 WHEN - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- CAST\(NULL AS Float64\)\) \* coalesce\(Int64\(\-38\), \(\- Int64\(\-64\)\), \(\- count\(\*\)\) \+ count\(DISTINCT Int64\(86\)\) / \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-2\) AS col1" at position 0 and "Int64\(8\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- CAST\(NULL AS Float64\)\) \* coalesce\(Int64\(\-38\), \(\- Int64\(\-64\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(86\)\) / \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-2\) AS col1" at position 0 and "Int64\(8\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 89 * - + CAST ( NULL AS FLOAT8 ) * COALESCE ( - 38, - - 64, + - COUNT ( * ) + COUNT ( DISTINCT 86 ) / - CAST ( NULL AS INTEGER ) ) + - 2 AS col1, + 8 + 31 AS col1 query I rowsort label-6073 @@ -31840,7 +31840,7 @@ SELECT 25 + - 72 * + MAX ( DISTINCT + 24 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5239 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-52\), \(\- count\(\*\)\) \+ Int64\(\-58\)\)\) \* \(\- min\(DISTINCT Int64\(\-99\)\)\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(31\) \+ 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 "\(\- coalesce\(Int64\(\-52\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-58\)\)\) \* \(\- min\(DISTINCT Int64\(\-99\)\)\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(31\) \+ Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( - 52, + - COUNT ( * ) + - 58 ) * + - MIN ( DISTINCT - 99 ) + + 91 AS col0, + 31 + - 14 AS col0 query I rowsort @@ -31856,7 +31856,7 @@ SELECT DISTINCT 91 * - + 26 + 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\(\*\)\) AS col0" at position 0 and "Int64\(68\) \* \(\- Int64\(0\)\) / max\(DISTINCT Int64\(77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(68\) \* \(\- Int64\(0\)\) / max\(DISTINCT Int64\(77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + COUNT ( * ) ) AS col0, 68 * - - 0 / MAX ( DISTINCT + 77 ) AS col0 query I rowsort label-6078 @@ -32644,7 +32644,7 @@ SELECT 65 - - 11 AS col0, - 71 * + 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3190 # Datafusion - Expected - 4560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* coalesce\(Int64\(\-55\), count\(\*\) / Int64\(\-45\)\) AS col0" at position 0 and "Int64\(76\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* coalesce\(Int64\(\-55\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-45\)\) AS col0" at position 0 and "Int64\(76\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 58 * + COALESCE ( - 55, + COUNT ( * ) / + - 45 ) AS col0, 76 * 60 AS col0 query II rowsort @@ -33340,7 +33340,7 @@ SELECT 81 * - 13 AS col0, ( 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -4982 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "sum\(\(\- Int64\(53\)\)\) \* 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 "sum\(\(\- Int64\(53\)\)\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, SUM ( ( - ( + 53 ) ) ) * 94 AS col0 query I rowsort @@ -33798,7 +33798,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3860 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ count\(\*\) \* Int64\(3\) \+ Int64\(84\) \* \(\- Int64\(46\)\) 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\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) \+ Int64\(84\) \* \(\- Int64\(46\)\) 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 ( * ) + + + ( + COUNT ( * ) ) * + 3 + + + 84 * - + 46 AS col0, 31 AS col0 query I rowsort label-6451 @@ -34303,7 +34303,7 @@ SELECT + 95 * 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(36\) \+ CASE \(\- \(\- count\(\*\)\)\) WHEN \(\- Int64\(\-25\)\) \+ Int64\(\-94\) \* Int64\(62\) THEN \(\- Int64\(\-57\)\) WHEN Int64\(\-30\) THEN Int64\(57\) WHEN \(\- Int64\(86\)\) \* avg\(Int64\(\-11\)\) THEN Int64\(68\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(36\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- Int64\(\-25\)\) \+ Int64\(\-94\) \* Int64\(62\) THEN \(\- Int64\(\-57\)\) WHEN Int64\(\-30\) THEN Int64\(57\) WHEN \(\- Int64\(86\)\) \* avg\(Int64\(\-11\)\) THEN Int64\(68\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 45 AS col0, 36 + CASE - - COUNT ( * ) WHEN - - 25 + + - 94 * + 62 THEN - - 57 WHEN - 30 THEN 57 WHEN - + ( + 86 ) * AVG ( - 11 ) THEN + 68 END col0 query I rowsort label-6549 @@ -34484,7 +34484,7 @@ NULL # 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\(47\) / Int64\(\-6\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-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 + 47 / + - 6 AS col0, - COUNT ( * ) AS col0 query I rowsort label-6582 @@ -35045,7 +35045,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\(\*\) 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 @@ -35510,7 +35510,7 @@ SELECT - 68 * + 21 - - + ( + - 76 ) * + 95 # Datafusion - Expected - -216 # Datafusion - Expected - NULL # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \- Int64\(21\) \+ \(\- count\(\*\)\) \* CASE Int64\(\-17\) WHEN \(\- count\(\*\)\) \* Int64\(\-6\) THEN Int64\(33\) \+ Int64\(63\) \* \(\- avg\(\(\- Int64\(97\)\)\)\) END \* Int64\(77\) \* Int64\(1\) AS col1" at position 1 and "sum\(\(\- Int64\(76\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \- Int64\(21\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(\-17\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-6\) THEN Int64\(33\) \+ Int64\(63\) \* \(\- avg\(\(\- Int64\(97\)\)\)\) END \* Int64\(77\) \* Int64\(1\) AS col1" at position 1 and "sum\(\(\- Int64\(76\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 70 / 21 * + 72 col0, 86 - 21 + + - COUNT ( * ) * CASE - 17 WHEN + - COUNT ( * ) * - 6 THEN 33 + + 63 * - AVG ( ALL - + 97 ) END * 77 * 1 AS col1, + SUM ( - + 76 ) AS col1 query I rowsort label-6777 @@ -36091,7 +36091,7 @@ SELECT ALL + 18 / 83 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(28\), count\(\*\)\)\) \+ nullif\(Int64\(65\), Int64\(8\)\) AS col2" at position 0 and "min\(DISTINCT 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 "\(\- nullif\(Int64\(28\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ nullif\(Int64\(65\), Int64\(8\)\) AS col2" at position 0 and "min\(DISTINCT Int64\(\-79\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( 28, + COUNT ( * ) ) + ( + NULLIF ( 65, 8 ) ) col2, MIN ( DISTINCT + - 79 ) AS col2 query I rowsort label-6884 @@ -39288,7 +39288,7 @@ SELECT - + 48 - - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "\(\- nullif\(count\(\*\), Int64\(1\)\)\) \* Int64\(\-22\) \+ Int64\(47\) / Int64\(33\) \+ \(\- min\(Int64\(13\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(1\)\)\) \* Int64\(\-22\) \+ Int64\(47\) / Int64\(33\) \+ \(\- min\(Int64\(13\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 64 col1, - NULLIF ( COUNT ( * ), 1 ) * - 22 + + 47 / + + 33 + - MIN ( + 13 ) AS col1 query I rowsort @@ -40522,7 +40522,7 @@ SELECT + COUNT ( * ) AS col0, 45 * 24 - + NULLIF ( + 62, - ( - 79 ) - + MIN ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "sum\(Int64\(60\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "sum\(Int64\(60\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 10 AS col2, SUM ( ALL 60 ) * - COUNT ( * ) AS col2 query I rowsort @@ -40559,7 +40559,7 @@ SELECT - + 55 * + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(22\)\) AS col0" at position 0 and "count\(\*\) / \(\- Int64\(17\)\) \+ 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\(22\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(17\)\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 22 AS col0, COUNT ( * ) / - + 17 + 30 AS col0 query II rowsort label-7738 @@ -41632,7 +41632,7 @@ SELECT ALL - ( + 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -567 # Datafusion - Expected - 1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-81\) \* \(\- \(\- CAST\(Int64\(7\) AS Int32\)\)\) AS col0" at position 0 and "nullif\(Int64\(42\), \(\- Int64\(12\)\)\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-81\) \* \(\- \(\- CAST\(Int64\(7\) AS Int32\)\)\) AS col0" at position 0 and "nullif\(Int64\(42\), \(\- Int64\(12\)\)\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - 81 * - - CAST ( 7 AS INTEGER ) AS col0, NULLIF ( + 42, - ( 12 ) ) * 45 AS col0 query I rowsort @@ -42148,7 +42148,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\(\*\) AS col2" at position 1 have the 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 @@ -43051,7 +43051,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\(\*\)\) / 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 @@ -43118,7 +43118,7 @@ SELECT + - 90 * - - 47 - + 86 + + 88 - - - 8 * + - 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4798 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(65\)\) \* Int64\(73\) \+ Int64\(\-29\) \+ Int64\(81\) \* count\(\*\) \+ count\(Int64\(\-7\)\) 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 "min\(Int64\(65\)\) \* Int64\(73\) \+ Int64\(\-29\) \+ Int64\(81\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(\-7\)\) AS col0" at position 0 and "Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( 65 ) * 73 + - 29 + + 81 * + + COUNT ( * ) + COUNT ( + - 7 ) AS col0, - 2 AS col0 query I rowsort label-8224 @@ -44521,7 +44521,7 @@ SELECT + 6 + - 79 * - 40 * + + 3, 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(60\) \* \(\- sum\(CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(60\) \* \(\- sum\(CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 * + 60 * - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * ) * + 34 AS col1 query I rowsort @@ -44532,7 +44532,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\(\*\) 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 @@ -44993,7 +44993,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\(\*\) 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 @@ -45070,7 +45070,7 @@ SELECT - 29 + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-14\), Int64\(57\) \+ count\(\*\), Int64\(48\)\)\) \* \(\- sum\(\(\- Int64\(8\)\)\)\) AS col0" at position 0 and "Int64\(\-77\) / \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-14\), Int64\(57\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(48\)\)\) \* \(\- sum\(\(\- Int64\(8\)\)\)\) AS col0" at position 0 and "Int64\(\-77\) / \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + - 14, 57 + COUNT ( * ), + ( + 48 ) ) * + - SUM ( - ( 8 ) ) AS col0, ( - 77 ) / - - 98 col0 query II rowsort label-8591 @@ -45342,7 +45342,7 @@ SELECT 40 * - 59 - COUNT ( * ) + 35 * + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 4798 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-29\) \* Int64\(\-15\) \- Int64\(63\) \+ nullif\(Int64\(58\), CAST\(coalesce\(\(\- coalesce\(Int64\(35\), Int64\(\-15\) \* Int64\(80\), Int64\(\-22\)\)\), Int64\(16\), coalesce\(\(\- Int64\(\-34\)\), \(\- count\(\*\)\) \+ \(\- CASE Int64\(83\) WHEN Int64\(0\) / \(\- count\(\*\)\) \+ Int64\(75\) \+ \(\- \(\- coalesce\(Int64\(46\), Int64\(61\), CAST\(Int64\(\-16\) AS Int32\)\)\)\) \+ Int64\(47\) \* \(\- Int64\(\-99\)\) THEN \(\- CAST\(NULL AS Int32\)\) END\), Int64\(51\) \* Int64\(\-55\) \+ CASE Int64\(\-14\) WHEN count\(DISTINCT Int64\(16\)\) THEN Int64\(40\) END \+ Int64\(\-50\) \+ Int64\(\-36\) \* \(\- count\(\*\)\)\)\) AS Int32\) \* Int64\(73\)\) \* Int64\(76\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-29\) \* Int64\(\-15\) \- Int64\(63\) \+ nullif\(Int64\(58\), CAST\(coalesce\(\(\- coalesce\(Int64\(35\), Int64\(\-15\) \* Int64\(80\), Int64\(\-22\)\)\), Int64\(16\), coalesce\(\(\- Int64\(\-34\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE Int64\(83\) WHEN Int64\(0\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(75\) \+ \(\- \(\- coalesce\(Int64\(46\), Int64\(61\), CAST\(Int64\(\-16\) AS Int32\)\)\)\) \+ Int64\(47\) \* \(\- Int64\(\-99\)\) THEN \(\- CAST\(NULL AS Int32\)\) END\), Int64\(51\) \* Int64\(\-55\) \+ CASE Int64\(\-14\) WHEN count\(DISTINCT Int64\(16\)\) THEN Int64\(40\) END \+ Int64\(\-50\) \+ Int64\(\-36\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int32\) \* Int64\(73\)\) \* Int64\(76\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 AS col0, ( - 29 ) * - 15 - + 63 + + NULLIF ( 58, + CAST ( COALESCE ( - + COALESCE ( 35, - 15 * 80, - 22 ), + 16, + + COALESCE ( - - 34, - COUNT ( * ) + - ( + + CASE + 83 WHEN - 0 / + - COUNT ( * ) + 75 + - - COALESCE ( 46, + + 61, CAST ( + + ( - 16 ) AS INTEGER ) ) + 47 * - - 99 THEN + ( - + CAST ( NULL AS INTEGER ) ) END ), + 51 * - 55 + CASE - 14 WHEN + COUNT ( DISTINCT + + 16 ) THEN + + 40 END + - 50 + - 36 * + - COUNT ( * ) ) ) AS INTEGER ) * 73 ) * 76 + + 18 AS col0 query II rowsort label-8644 @@ -45407,7 +45407,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\(\*\) 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 @@ -45548,7 +45548,7 @@ SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + + - 56 + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "CASE Int64\(95\) WHEN Int64\(53\) / avg\(DISTINCT Int64\(57\)\) THEN Int64\(\-24\) WHEN Int64\(56\) \* \(\- coalesce\(Int64\(16\), count\(\*\) \* count\(\*\), Int64\(66\) \* CAST\(NULL AS Int32\) / Int64\(\-42\) \+ Int64\(\-50\)\)\) \+ \(\- count\(\*\)\) THEN Int64\(6\) \+ Int64\(0\) / Int64\(25\) WHEN CAST\(NULL AS Int32\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CASE Int64\(95\) WHEN Int64\(53\) / avg\(DISTINCT Int64\(57\)\) THEN Int64\(\-24\) WHEN Int64\(56\) \* \(\- coalesce\(Int64\(16\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(66\) \* CAST\(NULL AS Int32\) / Int64\(\-42\) \+ Int64\(\-50\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(6\) \+ Int64\(0\) / Int64\(25\) WHEN CAST\(NULL AS Int32\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 63 + - - COUNT ( * ) col2, CASE 95 WHEN + 53 / + AVG ( DISTINCT + 57 ) THEN + - 24 WHEN 56 * - COALESCE ( + 16, COUNT ( * ) * + + COUNT ( * ), + 66 * + CAST ( NULL AS INTEGER ) / - 42 + - 50 ) + - COUNT ( * ) THEN 6 + 0 / 25 WHEN CAST ( NULL AS INTEGER ) THEN NULL END AS col2 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/expr/slt_good_12.slt b/data/sqlite/random/expr/slt_good_12.slt index aec6b73..fcdd72b 100644 --- a/data/sqlite/random/expr/slt_good_12.slt +++ b/data/sqlite/random/expr/slt_good_12.slt @@ -219,7 +219,7 @@ SELECT ALL - 79 + - + 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3789 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(52\)\) \+ Int64\(\-45\) AS col2" at position 0 and "CASE sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) WHEN CAST\(NULL AS Float64\) \+ Int64\(38\) THEN \(\- Int64\(\-42\)\) \+ Int64\(\-28\) WHEN Int64\(\-62\) \* Int64\(41\) \- \(\- Int64\(24\)\) THEN CAST\(\(\- Int64\(\-36\)\) AS Int32\) WHEN Int64\(\-64\) \* Int64\(56\) \+ \(\- max\(Int64\(65\)\)\) THEN \(\- sum\(Int64\(80\)\)\) / Int64\(24\) \* count\(\*\) \+ Int64\(\-71\) \+ CASE \(\- \(\- count\(\*\)\)\) WHEN coalesce\(Int64\(62\), min\(Int64\(13\)\) \* Int64\(98\)\) \* Int64\(31\) \* Int64\(22\) \* CASE count\(\*\) WHEN Int64\(75\) \- Int64\(\-17\) THEN Int64\(86\) \* \(\- Int64\(\-35\)\) \+ Int64\(38\) WHEN Int64\(20\) \* Int64\(47\) THEN \(\- Int64\(51\)\) WHEN \(\- count\(\*\)\) THEN NULL END THEN NULL WHEN CASE Int64\(62\) WHEN \(\- count\(\*\)\) THEN Int64\(23\) \* Int64\(55\) \- Int64\(66\) WHEN Int64\(88\) THEN Int64\(82\) \* \(\- \(\- CASE Int64\(\-16\) WHEN Int64\(47\) THEN Int64\(\-18\) END\) \* \(\- count\(\*\)\)\) \- Int64\(\-15\) END / Int64\(24\) \+ Int64\(\-23\) THEN Int64\(96\) END \* \(\- \(\- count\(DISTINCT Int64\(24\)\)\) \* Int64\(\-3\) \+ count\(\*\) \* Int64\(86\)\) ELSE Int64\(\-54\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(52\)\) \+ Int64\(\-45\) AS col2" at position 0 and "CASE sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) WHEN CAST\(NULL AS Float64\) \+ Int64\(38\) THEN \(\- Int64\(\-42\)\) \+ Int64\(\-28\) WHEN Int64\(\-62\) \* Int64\(41\) \- \(\- Int64\(24\)\) THEN CAST\(\(\- Int64\(\-36\)\) AS Int32\) WHEN Int64\(\-64\) \* Int64\(56\) \+ \(\- max\(Int64\(65\)\)\) THEN \(\- sum\(Int64\(80\)\)\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-71\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN coalesce\(Int64\(62\), min\(Int64\(13\)\) \* Int64\(98\)\) \* Int64\(31\) \* Int64\(22\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \- Int64\(\-17\) THEN Int64\(86\) \* \(\- Int64\(\-35\)\) \+ Int64\(38\) WHEN Int64\(20\) \* Int64\(47\) THEN \(\- Int64\(51\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL END THEN NULL WHEN CASE Int64\(62\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(23\) \* Int64\(55\) \- Int64\(66\) WHEN Int64\(88\) THEN Int64\(82\) \* \(\- \(\- CASE Int64\(\-16\) WHEN Int64\(47\) THEN Int64\(\-18\) END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-15\) END / Int64\(24\) \+ Int64\(\-23\) THEN Int64\(96\) END \* \(\- \(\- count\(DISTINCT Int64\(24\)\)\) \* Int64\(\-3\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\)\) ELSE Int64\(\-54\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 * - + 52 + - 45 AS col2, CASE + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS FLOAT8 ) + 38 THEN - - 42 + - 28 WHEN - 62 * + 41 - - + 24 THEN + CAST ( - - 36 AS INTEGER ) WHEN - 64 * 56 + - MAX ( + 65 ) THEN - SUM ( 80 ) / 24 * COUNT ( * ) + + - 71 + + CASE - - COUNT ( * ) WHEN + COALESCE ( 62, + + MIN ( + 13 ) * + 98 ) * + 31 * 22 * + CASE COUNT ( * ) WHEN + 75 - - 17 THEN 86 * - - 35 + + + 38 WHEN + + 20 * + 47 THEN - + 51 WHEN + - COUNT ( * ) THEN NULL END THEN NULL WHEN CASE 62 WHEN - COUNT ( * ) THEN 23 * 55 - + 66 WHEN + 88 THEN + 82 * - ( - CASE - 16 WHEN 47 THEN + ( ( - 18 ) ) END * - COUNT ( * ) ) - - 15 END / 24 + - 23 THEN 96 END * - ( - COUNT ( DISTINCT 24 ) * - 3 + COUNT ( * ) * + 86 ) ELSE - 54 END col2 query II rowsort label-36 @@ -839,7 +839,7 @@ SELECT + CAST ( 0 AS INTEGER ) * + COALESCE ( + 91, + 81 - 89, + 50 ) * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-66\) / Int64\(71\) / Int64\(62\) \* Int64\(30\) \+ min\(Int64\(30\)\) \- \(\- \(\- nullif\(Int64\(\-66\), \(\- max\(Int64\(\-90\)\)\) / Int64\(97\) \* min\(Int64\(89\)\) \* CAST\(\(\- Int64\(\-47\)\) AS Int32\) \+ Int64\(41\)\)\)\) \+ Int64\(\-98\) \* count\(\*\) \+ count\(\*\) \+ Int64\(\-48\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-66\) / Int64\(71\) / Int64\(62\) \* Int64\(30\) \+ min\(Int64\(30\)\) \- \(\- \(\- nullif\(Int64\(\-66\), \(\- max\(Int64\(\-90\)\)\) / Int64\(97\) \* min\(Int64\(89\)\) \* CAST\(\(\- Int64\(\-47\)\) AS Int32\) \+ Int64\(41\)\)\)\) \+ Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-48\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54 * + + ( - 66 ) / 71 / 62 * 30 + + MIN ( + + ( 30 ) ) - - - NULLIF ( - 66, - ( MAX ( ALL - 90 ) ) / + 97 * MIN ( 89 ) * + CAST ( - ( - 47 ) AS INTEGER ) + + 41 ) + + - 98 * + COUNT ( * ) + + + COUNT ( * ) + + - 48 AS col0, 14 AS col0 query II rowsort label-152 @@ -2037,7 +2037,7 @@ SELECT ALL 95 AS col2, + 36 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- min\(Int64\(\-80\)\)\) 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\(\*\) \* \(\- min\(Int64\(\-80\)\)\) 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 ( * ) * - MIN ( ALL - 80 ) AS col0, 44 col0 query II rowsort label-382 @@ -3692,7 +3692,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\(\*\) AS col2" at position 0 and "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 @@ -3792,7 +3792,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\(\*\) AS col0" at position 1 have the 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 @@ -4280,7 +4280,7 @@ SELECT ALL 2 / 9 * - + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- coalesce\(Int64\(97\), \(\- Int64\(64\)\) \* Int64\(95\) \+ max\(Int64\(85\)\), Int64\(19\) \+ count\(\*\)\)\) \- \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-7\) \- Int64\(\-58\) / \(\- Int64\(41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- coalesce\(Int64\(97\), \(\- Int64\(64\)\) \* Int64\(95\) \+ max\(Int64\(85\)\), Int64\(19\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-7\) \- Int64\(\-58\) / \(\- Int64\(41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 + - COALESCE ( + 97, - + 64 * 95 + + ( + + MAX ( ALL + 85 ) ), 19 + + COUNT ( * ) ) - - + COUNT ( * ) AS col2, - 7 - + - 58 / - + 41 AS col2 query I rowsort @@ -4818,7 +4818,7 @@ SELECT - - NULLIF ( - ( + + 78 ), + 49 ) / - 41 - - 5 * + 10 * + + CAST ( + ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* count\(\*\) \* Int64\(4\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-73\) \+ \(\- \(\- CAST\(Int64\(84\) AS Int32\)\)\) \+ max\(Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) \+ \(\- \(\- CAST\(Int64\(84\) AS Int32\)\)\) \+ max\(Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 * + COUNT ( * ) * 4 AS col1, + COUNT ( * ) * + - 73 + - - CAST ( 84 AS INTEGER ) + + MAX ( - 62 ) AS col1 query I rowsort label-913 @@ -5117,7 +5117,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\(\*\) 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 @@ -5851,7 +5851,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\(\*\) 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 @@ -6058,7 +6058,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\(\*\) AS col2" at position 1 have the 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 @@ -6069,7 +6069,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\(\*\) AS col0" at position 1 have the 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 @@ -6338,7 +6338,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\(\*\) 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 @@ -7396,7 +7396,7 @@ SELECT - 8 * + 63 # Datafusion - Expected - 1440 # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 1 and "Int64\(\-84\) \* Int64\(64\) \* count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 1 and "Int64\(\-84\) \* Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + - 32 AS INTEGER ) * + 45, 73 AS col2, - 84 * + 64 * COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-1403 @@ -7738,7 +7738,7 @@ SELECT ALL 78 * ( + 2 ) + + 31 AS col2 # Datafusion - Expected - 6 # Datafusion - Expected - 86 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(6\)\) AS col0" at position 0 and "nullif\(\(\- Int64\(\-86\)\), count\(\*\)\) AS col0" at position 1 have 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 "nullif\(\(\- Int64\(\-86\)\), 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, + NULLIF ( - ( ( - 86 ) ), COUNT ( * ) ) AS col0, + 37 query I rowsort @@ -10282,7 +10282,7 @@ SELECT ALL CAST ( + 62 AS INTEGER ) * + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* max\(\(\- Int64\(55\)\)\) 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\(\*\) \* max\(\(\- Int64\(55\)\)\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + + MAX ( - + ( 55 ) ) AS col0, + 69 AS col0 query II rowsort label-1954 @@ -11870,7 +11870,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\(49\) \* \(\- min\(Int64\(\-76\)\)\) \* 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 @@ -13471,7 +13471,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- count\(\*\)\) \- count\(\*\) / Int64\(\-14\) 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\(29\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-14\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 29 * - COUNT ( * ) - + COUNT ( * ) / - 14 AS col0, + 33 AS col0 query I rowsort label-2559 @@ -13528,7 +13528,7 @@ SELECT ALL + 95, + 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5937 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(81\) \- Int64\(\-43\) \+ \(\- \(\- CAST\(Int64\(95\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-27\) \+ Int64\(\-72\) \- \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(81\) \- Int64\(\-43\) \+ \(\- \(\- CAST\(Int64\(95\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-27\) \+ Int64\(\-72\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 75 * 81 - + - 43 + - - CAST ( 95 AS INTEGER ) AS col2, - 27 + - 72 - - COUNT ( * ) AS col2 query I rowsort label-2570 @@ -13888,7 +13888,7 @@ SELECT DISTINCT - 41 / 17 * + - MIN ( + - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(68\) \- \(\- CASE \(\- \(\- count\(\*\)\)\) WHEN Int64\(37\) THEN \(\- CASE \(\- Int64\(\-70\)\) WHEN Int64\(96\) \- \(\- avg\(Int64\(42\)\)\) THEN NULL ELSE Int64\(43\) END\) ELSE NULL END\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(68\) \- \(\- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(37\) THEN \(\- CASE \(\- Int64\(\-70\)\) WHEN Int64\(96\) \- \(\- avg\(Int64\(42\)\)\) THEN NULL ELSE Int64\(43\) END\) ELSE NULL END\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 87 + ( + + 68 ) - - CASE - - COUNT ( * ) WHEN 37 THEN - CASE - - 70 WHEN 96 - - AVG ( + 42 ) THEN NULL ELSE + 43 END ELSE NULL END AS col0, 25 AS col0 query I rowsort @@ -14735,7 +14735,7 @@ SELECT - 70 + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(84\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(84\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + 84 AS col1, 11 AS col1 query I rowsort label-2798 @@ -15827,7 +15827,7 @@ SELECT ALL + ( 35 ) * + 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -207904 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(32\) \* sum\(Int64\(73\)\) AS col0" at position 0 and "Int64\(16\) \+ \(\- count\(\*\)\) \- Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(32\) \* sum\(Int64\(73\)\) AS col0" at position 0 and "Int64\(16\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 89 * 32 * + SUM ( ALL + 73 ) AS col0, 16 + - + COUNT ( * ) - + + 73 AS col0 query I rowsort label-3008 @@ -16112,7 +16112,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\(\*\) AS col0" at position 1 have the 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 @@ -16362,7 +16362,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\(\*\) AS col1" at position 1 have the 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 @@ -16393,7 +16393,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\(\*\)\) \* count\(\*\) AS col2" at position 1 have 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 @@ -16749,7 +16749,7 @@ SELECT - + COUNT ( * ) * COUNT ( * ) + + 25 + + 27 AS col1 # Datafusion - Expected - -1 # Datafusion - Expected - 623 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-89\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-89\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, - 89 * - 7 col2, + 39 / + 57 AS col0 query I rowsort @@ -17474,7 +17474,7 @@ SELECT ALL CASE - - 73 WHEN + + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) * - - S # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -305370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(63\) AS col1" at position 0 and "Int64\(\-87\) \* CAST\(Int64\(45\) AS Int32\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(63\) AS col1" at position 0 and "Int64\(\-87\) \* CAST\(Int64\(45\) AS Int32\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 63 AS col1, - 87 * CAST ( 45 AS INTEGER ) * + 78 col1 query I rowsort label-3321 @@ -18140,7 +18140,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\(\*\) AS col0" at position 0 and "Int64\(56\) \+ count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -18815,7 +18815,7 @@ SELECT 39 * - 65 * - 11 AS col1 # 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\(\*\)\) 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 # Datafusion - Types were automatically converted from: @@ -18865,7 +18865,7 @@ SELECT DISTINCT - 70 AS col1, - 56 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col1, + 12 AS col1 query II rowsort label-3591 @@ -21384,7 +21384,7 @@ SELECT DISTINCT + COUNT ( * ) + - 58 / - 44 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) / coalesce\(Int64\(49\), count\(\*\)\) / Int64\(\-5\) \+ count\(\*\) \* Int64\(93\) \+ \(\- CASE Int64\(34\) WHEN \(\- Int64\(88\)\) \+ CAST\(NULL AS Int32\) THEN \(\- \(\- Int64\(35\)\)\) WHEN Int64\(5\) THEN NULL ELSE Int64\(\-20\) END\) / Int64\(59\) \+ Int64\(98\) \+ Int64\(\-44\) AS col1" at position 0 and "CASE \(\- \(\- avg\(DISTINCT Int64\(23\)\)\)\) WHEN Int64\(\-37\) / \(\- count\(\*\)\) \- Int64\(51\) THEN Int64\(90\) \* Int64\(\-26\) WHEN Int64\(\-26\) \* Int64\(\-98\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) / coalesce\(Int64\(49\), count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-5\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(93\) \+ \(\- CASE Int64\(34\) WHEN \(\- Int64\(88\)\) \+ CAST\(NULL AS Int32\) THEN \(\- \(\- Int64\(35\)\)\) WHEN Int64\(5\) THEN NULL ELSE Int64\(\-20\) END\) / Int64\(59\) \+ Int64\(98\) \+ Int64\(\-44\) AS col1" at position 0 and "CASE \(\- \(\- avg\(DISTINCT Int64\(23\)\)\)\) WHEN Int64\(\-37\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(51\) THEN Int64\(90\) \* Int64\(\-26\) WHEN Int64\(\-26\) \* Int64\(\-98\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 88 / COALESCE ( 49, COUNT ( * ) ) / + - 5 + + COUNT ( * ) * 93 + - + CASE 34 WHEN - + 88 + + CAST ( NULL AS INTEGER ) THEN - + ( - ( + 35 ) ) WHEN + 5 THEN NULL ELSE + - 20 END / 59 + + 98 + + - 44 AS col1, CASE - - AVG ( DISTINCT + 23 ) WHEN - 37 / - COUNT ( * ) - 51 THEN + 90 * - 26 WHEN - 26 * - 98 THEN NULL ELSE NULL END AS col1 query I rowsort label-4073 @@ -21476,7 +21476,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\(\*\) 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 @@ -22603,7 +22603,7 @@ SELECT ALL + 12 * + + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* CASE CAST\(NULL AS Int32\) WHEN count\(\*\) THEN Int64\(13\) WHEN Int64\(\-87\) THEN NULL END \* Int64\(50\) \+ Int64\(33\) \+ \(\- Int64\(\-35\)\) / Int64\(97\) \* Int64\(17\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* CASE CAST\(NULL AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(13\) WHEN Int64\(\-87\) THEN NULL END \* Int64\(50\) \+ Int64\(33\) \+ \(\- Int64\(\-35\)\) / Int64\(97\) \* Int64\(17\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 * + CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN 13 WHEN - 87 THEN NULL END * 50 + + 33 + - - 35 / + 97 * + 17 AS col0, - 35 AS col0 query I rowsort @@ -23045,7 +23045,7 @@ SELECT - 19 AS col2, 82 + - 37 + - + 34 * 5 + - SUM ( + + 88 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 84 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 1 and "coalesce\(\(\- coalesce\(Int64\(89\), Int64\(74\)\)\), Int64\(54\) \+ count\(\*\) \+ Int64\(\-50\) \* Int64\(\-93\) \- 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\(84\) AS col0" at position 1 and "coalesce\(\(\- coalesce\(Int64\(89\), Int64\(74\)\)\), Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-50\) \* Int64\(\-93\) \- Int64\(\-18\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + 7 + CAST ( NULL AS INTEGER ) * - MIN ( - 54 ) AS col2, + 84 AS col0, COALESCE ( - COALESCE ( 89, + 74 ), + 54 + + COUNT ( * ) + - 50 * - 93 - - 18 ) AS col0 query I rowsort label-4390 @@ -23387,7 +23387,7 @@ SELECT ALL 40 + - CAST ( MAX ( + - 24 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- \(\- Int64\(\-81\)\) AS col0" at position 0 and "Int64\(\-26\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-81\)\) AS col0" at position 0 and "Int64\(\-26\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - - - 81 AS col0, + ( + ( - 26 ) ) * CAST ( NULL AS INTEGER ) col0 query II rowsort label-4455 @@ -23585,7 +23585,7 @@ SELECT ALL - 58 / + + 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(9\) \* \(\- count\(\*\)\) \+ Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(9\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 13 AS col1, + 9 * - COUNT ( * ) + - 96 AS col1 query II rowsort @@ -24942,7 +24942,7 @@ SELECT CASE - + 72 WHEN + 68 THEN NULL ELSE + - 48 END AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "CASE Int64\(\-70\) WHEN CAST\(NULL AS Float64\) / \(\- count\(\*\)\) / count\(\*\) THEN coalesce\(\(\- Int64\(\-27\)\), Int64\(84\)\) \* \(\- count\(\*\)\) WHEN \(\- count\(\*\)\) THEN Int64\(22\) \* Int64\(10\) / Int64\(64\) \+ \(\- Int64\(73\)\) \+ \(\- Int64\(77\)\) END \+ sum\(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\(64\) AS col2" at position 0 and "CASE Int64\(\-70\) WHEN CAST\(NULL AS Float64\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(\(\- Int64\(\-27\)\), Int64\(84\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(22\) \* Int64\(10\) / Int64\(64\) \+ \(\- Int64\(73\)\) \+ \(\- Int64\(77\)\) END \+ sum\(Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 64 AS col2, CASE - 70 WHEN + CAST ( NULL AS FLOAT8 ) / - COUNT ( * ) / + COUNT ( * ) THEN COALESCE ( - - 27, 84 ) * - COUNT ( * ) WHEN + ( - + COUNT ( * ) ) THEN 22 * 10 / + 64 + - + ( + + 73 ) + - + 77 END + SUM ( + 15 ) AS col2 # Datafusion - Datafusion expected results: @@ -27768,7 +27768,7 @@ SELECT ( 17 ) * - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 137 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(67\) / Int64\(\-41\) \* Int64\(10\) \+ CASE \(\- coalesce\(CAST\(\(\- Int64\(66\)\) AS Int32\), Int64\(6\), Int64\(72\) \- Int64\(\-73\), Int64\(52\)\)\) WHEN avg\(DISTINCT \(\- coalesce\(Int64\(76\), Int64\(18\) \- Int64\(\-27\)\)\)\) / Int64\(40\) \+ count\(\*\) THEN Int64\(59\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(67\) / Int64\(\-41\) \* Int64\(10\) \+ CASE \(\- coalesce\(CAST\(\(\- Int64\(66\)\) AS Int32\), Int64\(6\), Int64\(72\) \- Int64\(\-73\), Int64\(52\)\)\) WHEN avg\(DISTINCT \(\- coalesce\(Int64\(76\), Int64\(18\) \- Int64\(\-27\)\)\)\) / Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(59\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 84 + 53 AS col0, + 67 / - 41 * 10 + CASE - + COALESCE ( CAST ( - ( 66 ) AS INTEGER ), 6, 72 - - 73, 52 ) WHEN AVG ( DISTINCT - COALESCE ( + 76, + 18 - - 27 ) ) / 40 + COUNT ( * ) THEN ( + 59 ) END AS col0 query I rowsort @@ -28003,7 +28003,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * 43 AS col0 query I rowsort label-5340 @@ -28454,7 +28454,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\(\*\) AS col2" at position 1 have the 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 @@ -29351,7 +29351,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\(\*\) AS col2" at position 1 have the 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 @@ -30123,7 +30123,7 @@ SELECT - + ( - SUM ( 96 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(36\) 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\(\*\) \- Int64\(36\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) - + 36 AS col0, 76 AS col0 query I rowsort @@ -30595,7 +30595,7 @@ SELECT + ( - 74 ) - - 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1085 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(12\) \* Int64\(16\) \- \(\- \(\- min\(Int64\(\-19\)\)\)\) \* \(\- sum\(Int64\(47\)\)\) 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\(\*\)\) \* Int64\(12\) \* Int64\(16\) \- \(\- \(\- min\(Int64\(\-19\)\)\)\) \* \(\- sum\(Int64\(47\)\)\) AS col2" at position 0 and "\(\- Int64\(6\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + COUNT ( * ) ) * + 12 * 16 - - - MIN ( ALL - 19 ) * - SUM ( + 47 ) AS col2, - ( 6 ) AS col2 query I rowsort label-5834 @@ -32260,7 +32260,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\(\*\)\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -34095,7 +34095,7 @@ SELECT ALL + 73 + + COUNT ( ALL + - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-98\)\), CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-98\)\), CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - - 98, + CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0, + 22 AS col0 # Datafusion - Datafusion expected results: @@ -34564,7 +34564,7 @@ SELECT - MIN ( ALL + 94 ) / + - 60 + + 21 AS col2, COUNT ( * ) AS col0 # Datafusion - Expected - 80 # Datafusion - Expected - 46 # Datafusion - Expected - -1644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 1 and "Int64\(98\) \+ count\(\*\) \+ \(\- \(\- Int64\(83\)\)\) \* Int64\(\-21\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 1 and "Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(83\)\)\) \* Int64\(\-21\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 26 + - ( - + 54 ), + 46 AS col2, + + ( 98 ) + + COUNT ( * ) + - - ( + 83 ) * - 21 AS col2 query II rowsort @@ -37029,7 +37029,7 @@ SELECT - + 90 + MIN ( 17 ) + 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* CAST\(NULL AS Int32\) \* Int64\(\-75\) / Int64\(30\) \* Int64\(\-67\) AS col2" at position 0 and "\(\- Int64\(\-62\)\) \- Int64\(\-88\) \+ \(\- Int64\(58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \* Int64\(\-75\) / Int64\(30\) \* Int64\(\-67\) AS col2" at position 0 and "\(\- Int64\(\-62\)\) \- Int64\(\-88\) \+ \(\- Int64\(58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 75 / 30 * - 67 AS col2, - ( - 62 ) - - 88 + - + 58 AS col2 query I rowsort label-7063 @@ -37760,7 +37760,7 @@ SELECT ALL - ( + COUNT ( * ) ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) / \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(17\) \+ Int64\(3\) \+ \(\- 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\(26\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(17\) \+ Int64\(3\) \+ \(\- Int64\(70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 / - COUNT ( * ) AS col0, 17 + + 3 + - ( + + 70 ) AS col0 query I rowsort label-7204 @@ -38375,7 +38375,7 @@ SELECT ALL - 13, + 53 * + ( - 96 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 268804 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- Int64\(\-59\)\) \* Int64\(68\) AS col2" at position 0 and "Int64\(52\) \+ \(\- nullif\(Int64\(58\), count\(\*\)\)\) AS col2" at position 1 have the 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\(\-59\)\) \* Int64\(68\) AS col2" at position 0 and "Int64\(52\) \+ \(\- nullif\(Int64\(58\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 67 * - - 59 * 68 AS col2, + 52 + - NULLIF ( + 58, + COUNT ( * ) ) AS col2 query I rowsort label-7322 @@ -39226,7 +39226,7 @@ SELECT + 48 + + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) / Int64\(14\) \- Int64\(88\) AS col2" at position 0 and "Int64\(\-75\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) / Int64\(14\) \- Int64\(88\) AS col2" at position 0 and "Int64\(\-75\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 50 / 14 - 88 col2, - 75 * - COUNT ( * ) AS col2 query I rowsort @@ -39295,7 +39295,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\(\*\) AS col1" at position 0 and "count\(\*\) \+ 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 @@ -40664,7 +40664,7 @@ SELECT ALL NULLIF ( - 85, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(63\) \* Int64\(6\) / Int64\(81\) AS col2" at position 0 and "\(\- CASE Int64\(\-7\) WHEN avg\(Int64\(17\)\) / Int64\(18\) THEN count\(\*\) WHEN \(\- CASE Int64\(35\) WHEN Int64\(1\) \- \(\- count\(\*\)\) THEN \(\- sum\(Int64\(\-47\)\)\) \* count\(\*\) END\) THEN Int64\(\-51\) END\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(63\) \* Int64\(6\) / Int64\(81\) AS col2" at position 0 and "\(\- CASE Int64\(\-7\) WHEN avg\(Int64\(17\)\) / Int64\(18\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- CASE Int64\(35\) WHEN Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- sum\(Int64\(\-47\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) END\) THEN Int64\(\-51\) END\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 63 * 6 / + 81 AS col2, - CASE - 7 WHEN ( AVG ( 17 ) ) / 18 THEN COUNT ( * ) WHEN - CASE + 35 WHEN + 1 - - COUNT ( * ) THEN - SUM ( - 47 ) * COUNT ( * ) END THEN - 51 END * CAST ( NULL AS INTEGER ) col2 query I rowsort @@ -41078,7 +41078,7 @@ SELECT - 42 * + 89 * - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(\-41\) 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\(\*\) \- Int64\(\-41\) 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 ( * ) - - 41 AS col0, 84 AS col0 query I rowsort @@ -44257,7 +44257,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\(\*\) AS col2" at position 1 have the 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 @@ -45158,7 +45158,7 @@ SELECT - 1 - + 79 / - 56 AS col0 # 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\(\-84\) \* \(\- count\(\*\)\) \+ Int64\(69\) / Int64\(\-7\) \+ \(\- Int64\(\-24\)\) \* CAST\(NULL AS Float64\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(69\) / Int64\(\-7\) \+ \(\- Int64\(\-24\)\) \* CAST\(NULL AS Float64\) 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 - 84 * - COUNT ( * ) + + 69 / - 7 + - - 24 * CAST ( NULL AS FLOAT8 ) AS col2, - 20 col2 query I rowsort @@ -45650,13 +45650,13 @@ SELECT 52 / 60 + CASE - 74 WHEN + - 39 + COALESCE ( + - 19, - + 21 + 86 / - 37 ) # 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\(\*\)\) 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 # 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\(\*\) 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 @@ -47104,7 +47104,7 @@ SELECT ALL 59 * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(73\)\) AS col0" at position 0 and "Int64\(24\) \+ count\(\*\) \+ Int64\(\-72\) / 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 "max\(Int64\(73\)\) AS col0" at position 0 and "Int64\(24\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) / Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + MAX ( + 73 ) AS col0, 24 + + + COUNT ( * ) + - 72 / 53 col0 query I rowsort @@ -47425,7 +47425,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\(\*\) AS col0" at position 1 have the 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 @@ -48712,7 +48712,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\(\*\) 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 @@ -49752,7 +49752,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\(\*\) AS col0" at position 1 have the 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 @@ -51046,7 +51046,7 @@ SELECT + 39 / 1 / 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* count\(\*\) \+ nullif\(Int64\(73\), Int64\(66\) \+ Int64\(\-33\)\) AS col1" at position 0 and "Int64\(36\) \* 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\(\-66\) \* count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(73\), Int64\(66\) \+ Int64\(\-33\)\) AS col1" at position 0 and "Int64\(36\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 66 * + COUNT ( * ) + + NULLIF ( 73, 66 + - 33 ) AS col1, + 36 * - 12 AS col1 query I rowsort @@ -51211,7 +51211,7 @@ SELECT + + COUNT ( * ) * - 46 + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(11\) AS col1" at position 0 and "Int64\(53\) \+ \(\- min\(DISTINCT Int64\(97\)\)\) \+ Int64\(\-75\) \* \(\- CAST\(NULL AS Int32\)\) \* CAST\(\(\- CASE \(\- Int64\(\-88\)\) WHEN Int64\(62\) THEN NULL WHEN \(\- CASE count\(\*\) WHEN Int64\(33\) \- Int64\(14\) THEN Int64\(25\) END\) \* sum\(Int64\(32\)\) \* \(\- Int64\(58\)\) / \(\- Int64\(92\)\) \* Int64\(73\) \* \(\- Int64\(29\)\) \+ \(\- count\(\*\)\) / count\(\*\) THEN \(\- avg\(CAST\(NULL AS Int32\)\)\) \- count\(\*\) END\) AS Int32\) / Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(11\) AS col1" at position 0 and "Int64\(53\) \+ \(\- min\(DISTINCT Int64\(97\)\)\) \+ Int64\(\-75\) \* \(\- CAST\(NULL AS Int32\)\) \* CAST\(\(\- CASE \(\- Int64\(\-88\)\) WHEN Int64\(62\) THEN NULL WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(33\) \- Int64\(14\) THEN Int64\(25\) END\) \* sum\(Int64\(32\)\) \* \(\- Int64\(58\)\) / \(\- Int64\(92\)\) \* Int64\(73\) \* \(\- Int64\(29\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN \(\- avg\(CAST\(NULL AS Int32\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\) / Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) * 11 AS col1, + 53 + - MIN ( DISTINCT + 97 ) + + - 75 * + - CAST ( NULL AS INTEGER ) * CAST ( - CASE - - 88 WHEN + 62 THEN NULL WHEN + - CASE COUNT ( * ) WHEN + 33 - + 14 THEN + 25 END * + + SUM ( ALL + ( + 32 ) ) * - + 58 / - + 92 * + 73 * - + 29 + - COUNT ( * ) / COUNT ( * ) THEN - + AVG ( + CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) END AS INTEGER ) / - 86 AS col1 query I rowsort label-9774 @@ -51889,7 +51889,7 @@ SELECT - ( - 22 ) + - - 58 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 2790 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(30\) AS col1" at position 0 and "Int64\(31\) \* \(\- Int64\(\-91\)\) \- Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(30\) AS col1" at position 0 and "Int64\(31\) \* \(\- Int64\(\-91\)\) \- Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 30 AS col1, + 31 * - - 91 - + 31 AS col1 query I rowsort @@ -52198,7 +52198,7 @@ SELECT - SUM ( ALL - 91 ) / ( - - MAX ( 17 ) ) + - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5274 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / \(\- count\(\*\)\) \+ Int64\(65\) \+ Int64\(\-92\) \* Int64\(58\) AS col1" at position 0 and "count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(65\) \+ Int64\(\-92\) \* Int64\(58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 / - COUNT ( * ) + + 65 + - 92 * 58 AS col1, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9963 diff --git a/data/sqlite/random/expr/slt_good_13.slt b/data/sqlite/random/expr/slt_good_13.slt index b0d6f88..beb04ff 100644 --- a/data/sqlite/random/expr/slt_good_13.slt +++ b/data/sqlite/random/expr/slt_good_13.slt @@ -1578,7 +1578,7 @@ SELECT DISTINCT - + 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 14 -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\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 48 AS col2, + COUNT ( * ) * - - 14 AS col2 query I rowsort @@ -2305,7 +2305,7 @@ SELECT ALL - 9 AS col0 # 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 "count\(\*\) \+ Int64\(\-6\) 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\(\*\) \+ Int64\(\-6\) 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 ( * ) + - 6 AS col1, 22 AS col1 query I rowsort label-438 @@ -3785,7 +3785,7 @@ SELECT DISTINCT + 90 + + - 93 + - ( + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(38\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 AS col0, 38 * - COUNT ( * ) AS col0 query I rowsort @@ -4089,7 +4089,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\(\*\) AS col2" at position 1 have the 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 @@ -4775,7 +4775,7 @@ SELECT ALL - 69 + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int32\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int32\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 - - COUNT ( * ) * CAST ( + MIN ( 13 ) AS INTEGER ) AS col1, 49 / 49 AS col1 query I rowsort @@ -7226,13 +7226,13 @@ 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\(\*\) 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: # Datafusion - Expected - -47 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(35\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(35\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 47 AS col1, 35 + - COUNT ( * ) AS col1 query I rowsort @@ -8656,7 +8656,7 @@ SELECT DISTINCT - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(\-60\) / count\(\*\) \+ Int64\(38\) \+ \(\- nullif\(Int64\(\-28\), \(\- count\(DISTINCT Int64\(26\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(\-60\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(38\) \+ \(\- nullif\(Int64\(\-28\), \(\- count\(DISTINCT Int64\(26\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 15 col0, - 60 / + COUNT ( * ) + + 38 + - NULLIF ( - 28, - COUNT ( DISTINCT + 26 ) ) col0 query I rowsort @@ -8830,7 +8830,7 @@ SELECT - 57 + - COUNT ( * ) * + 92 * 86 - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(61\), Int64\(88\) \* Int64\(\-75\)\) AS col1" at position 0 and "Int64\(57\) \* \(\- count\(\*\)\) AS col1" at position 1 have 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\(61\), Int64\(88\) \* Int64\(\-75\)\) AS col1" at position 0 and "Int64\(57\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + 61, + 88 * - 75 ) col1, 57 * - COUNT ( * ) col1 query I rowsort @@ -9911,7 +9911,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\(\*\) 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 @@ -11244,7 +11244,7 @@ SELECT + - 0 + - - MIN ( - 3 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(\-22\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 17 col0, - 22 + - COUNT ( * ) AS col0 query I rowsort @@ -11556,7 +11556,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -11787,7 +11787,7 @@ SELECT + - 19 * - COUNT ( * ) + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -299467 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) \* Int64\(\-20\) \* Int64\(32\) \* \(\- Int64\(\-36\)\) \+ nullif\(Int64\(\-7\), Int64\(47\)\) \+ Int64\(60\) 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 "\(\- Int64\(\-13\)\) \* Int64\(\-20\) \* Int64\(32\) \* \(\- Int64\(\-36\)\) \+ nullif\(Int64\(\-7\), Int64\(47\)\) \+ Int64\(60\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 13 * - 20 * + 32 * - - 36 + + NULLIF ( + - 7, + 47 ) + 60 col0, COUNT ( * ) * - 78 AS col0 query I rowsort @@ -12891,7 +12891,7 @@ SELECT DISTINCT COALESCE ( 79, + 17 * - 49 * 17, - 94 * 70 ) AS col0, NULLIF ( + # 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\(72\)\) AS col1" at position 0 and "Int64\(47\) \+ \(\- Int64\(56\)\) \+ nullif\(\(\- \(\- nullif\(\(\- Int64\(20\)\), \(\- Int64\(55\)\) \+ \(\- Int64\(70\)\)\)\)\), \(\- \(\- 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 "count\(Int64\(72\)\) AS col1" at position 0 and "Int64\(47\) \+ \(\- Int64\(56\)\) \+ nullif\(\(\- \(\- nullif\(\(\- Int64\(20\)\), \(\- Int64\(55\)\) \+ \(\- Int64\(70\)\)\)\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( + 72 ) AS col1, 47 + - + 56 + + NULLIF ( - ( - NULLIF ( - + 20, - + 55 + - + 70 ) ), - - COUNT ( * ) + - 79 ) col1 query II rowsort label-2478 @@ -14764,7 +14764,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\(\*\) AS col2" at position 1 have the 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 @@ -16453,7 +16453,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\(\*\) 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 @@ -16995,7 +16995,7 @@ SELECT DISTINCT - + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7804 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-30\) \+ Int64\(\-13\) \+ Int64\(80\) \* Int64\(\-97\) 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\(\*\)\) \+ Int64\(\-30\) \+ Int64\(\-13\) \+ Int64\(80\) \* Int64\(\-97\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - 30 + - 13 + + 80 * + - 97 col2, 92 AS col2 query I rowsort @@ -19843,7 +19843,7 @@ SELECT ALL + 62 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int32\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 97 / + ( CAST ( - 14 AS INTEGER ) ) + - COUNT ( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0 query I rowsort @@ -21762,7 +21762,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\(\*\) AS col1" at position 1 have the 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: @@ -22866,7 +22866,7 @@ SELECT DISTINCT - 3 * + + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( + 46, - COUNT ( * ) ) - + ( - 37 ) + + - COUNT ( * ) + - + COALESCE ( 44, + 57 + + COUNT ( ALL + 81 ) + - - 27 + COALESCE ( 40, COUNT ( * ) * - 98 ) / + 99 ) - + 15 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 93 AS col2, 33 AS col2 query I rowsort @@ -25135,7 +25135,7 @@ SELECT DISTINCT 49 / 56 + - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-81\) 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\(\*\)\) \* Int64\(\-81\) 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 ( * ) * - 81 AS col2, - 37 AS col2 query I rowsort @@ -25428,7 +25428,7 @@ SELECT - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "Int64\(35\) / Int64\(65\) / \(\- Int64\(12\)\) \* CASE \(\- Int64\(\-7\)\) WHEN Int64\(88\) \* count\(\*\) \+ Int64\(54\) THEN NULL WHEN Int64\(40\) \- Int64\(\-49\) THEN NULL ELSE Int64\(74\) END \- Int64\(0\) \* 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\(\-69\) AS col1" at position 0 and "Int64\(35\) / Int64\(65\) / \(\- Int64\(12\)\) \* CASE \(\- Int64\(\-7\)\) WHEN Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(54\) THEN NULL WHEN Int64\(40\) \- Int64\(\-49\) THEN NULL ELSE Int64\(74\) END \- Int64\(0\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 69 AS col1, 35 / 65 / - + 12 * CASE - - 7 WHEN 88 * COUNT ( * ) + 54 THEN NULL WHEN + 40 - - 49 THEN NULL ELSE 74 END - 0 * 27 col1 query II rowsort @@ -25839,7 +25839,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\(\*\) AS col0" at position 1 have the 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 @@ -26129,7 +26129,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\(\*\) 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: @@ -26177,7 +26177,7 @@ SELECT + - 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "coalesce\(Int64\(30\), 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\(\-51\) AS col1" at position 0 and "coalesce\(Int64\(30\), count\(Int64\(1\)\) AS count\(\*\), Int64\(79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 51 AS col1, COALESCE ( 30, + + COUNT ( * ), + 79 ) AS col1 query I rowsort @@ -26208,7 +26208,7 @@ SELECT ALL - ( + - 48 ) / + 67 AS col2 # 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\(\*\)\) 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 "\(\- 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 ALL - COUNT ( * ) AS col2, 97 AS col2 query II rowsort @@ -27289,7 +27289,7 @@ SELECT - 98 * + 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1933888 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* nullif\(Int64\(22\), Int64\(82\) / \(\- Int64\(\-22\)\) \+ Int64\(33\) \+ Int64\(\-34\) \* Int64\(\-38\) \- Int64\(\-47\)\) \* Int64\(67\) \* Int64\(4\) \* Int64\(\-82\) AS col0" at position 0 and "Int64\(46\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\) \* nullif\(Int64\(22\), Int64\(82\) / \(\- Int64\(\-22\)\) \+ Int64\(33\) \+ Int64\(\-34\) \* Int64\(\-38\) \- Int64\(\-47\)\) \* Int64\(67\) \* Int64\(4\) \* Int64\(\-82\) 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 + 4 * NULLIF ( + + 22, 82 / - - 22 + 33 + - 34 * + - 38 - + - 47 ) * + 67 * 4 * + - 82 AS col0, 46 / - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -31238,7 +31238,7 @@ SELECT - - ( - ( - 84 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(54\) 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\(\*\) / Int64\(54\) 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 ( * ) / 54 AS col1, - 9 AS col1 query I rowsort label-6010 @@ -31397,7 +31397,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\(\*\) 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 @@ -32370,7 +32370,7 @@ SELECT ALL - NULLIF ( - - COUNT ( - 68 ), + - 51 * - - CASE - 48 WHEN COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -667 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* count\(\*\) \* \(\- count\(\*\)\) \* Int64\(29\) 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\(23\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) 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 + + 23 * COUNT ( * ) * + - COUNT ( * ) * 29 AS col1, + 85 AS col1 query I rowsort label-6229 @@ -32386,7 +32386,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\(30\), Int64\(92\) \* Int64\(7\) \- \(\- count\(\*\)\) \+ Int64\(3\), Int64\(70\)\)\)\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -35196,7 +35196,7 @@ SELECT ALL ( + 79 ) * 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(6\) 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\(\*\) \+ Int64\(6\) 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 ( * ) + + 6 AS col0, - ( + 89 ) AS col0 # Datafusion - Types were automatically converted from: @@ -35210,7 +35210,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(35\) 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\(\*\) \* Int64\(35\) 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 ( * ) * 35 AS col2, - 15 AS col2 query I rowsort label-6781 @@ -35369,7 +35369,7 @@ SELECT 14 / + COUNT ( * ) + + 29 col1 # 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 col0" at position 0 and "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 "Int64\(38\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 AS col0, COUNT ( * ) * 3 AS col0 query I rowsort label-6812 @@ -38911,7 +38911,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -576 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(\*\)\) \- min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - 12 ) * + 48 AS col0, - COALESCE ( + 30, 74 ) * - COUNT ( * ) - 88 + + 79 / - COUNT ( * ) - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -39591,7 +39591,7 @@ SELECT - + 67, 26 * - + 71 * 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -77 -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\(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\(83\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 83 AS col2, - COUNT ( * ) - + + 76 AS col2 query I rowsort label-7627 @@ -40228,7 +40228,7 @@ SELECT - 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "\(\- coalesce\(\(\- Int64\(64\)\), Int64\(69\) \+ Int64\(\-46\), Int64\(37\) \- count\(\*\)\)\) AS col0" at position 1 have the 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 "\(\- coalesce\(\(\- Int64\(64\)\), Int64\(69\) \+ Int64\(\-46\), Int64\(37\) \- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 AS col0, - COALESCE ( + - ( + 64 ), 69 + - 46, 37 - COUNT ( * ) ) AS col0 query II rowsort label-7751 @@ -42014,7 +42014,7 @@ SELECT + 34 AS col2, - COALESCE ( + 54, + + 48 ) + - - ( 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 76 AS col1, + CASE - - 87 WHEN - 52 * - 1 + - - COUNT ( * ) + + - 35 THEN - COUNT ( DISTINCT - 96 ) END * CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -42293,7 +42293,7 @@ SELECT DISTINCT 97 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(31\)\), Int64\(7\) \* Int64\(\-42\) / \(\- Int64\(\-77\)\) \+ Int64\(\-83\) \* \(\- Int64\(83\)\) \+ Int64\(\-5\) \+ Int64\(14\) \* count\(\*\) / \(\- min\(Int64\(\-52\)\)\)\) 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 "nullif\(\(\- Int64\(31\)\), Int64\(7\) \* Int64\(\-42\) / \(\- Int64\(\-77\)\) \+ Int64\(\-83\) \* \(\- Int64\(83\)\) \+ Int64\(\-5\) \+ Int64\(14\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(Int64\(\-52\)\)\)\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - + 31, + 7 * - 42 / - - 77 + - 83 * + - ( 83 ) + - 5 + 14 * COUNT ( * ) / - MIN ( ALL - 52 ) ) AS col0, + 46 col0 query I rowsort @@ -43389,7 +43389,7 @@ SELECT + 85 * + + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int32\) \* Int64\(6\) AS col1" at position 0 and "count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int32\) \* Int64\(6\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 36 * + CAST ( NULL AS INTEGER ) * + 6 col1, COUNT ( * ) + - - 72 + - 93 AS col1 query I rowsort label-8358 @@ -47607,7 +47607,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\(\*\) AS col2" at position 1 have the 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 @@ -48992,7 +48992,7 @@ SELECT ALL - 4 / - - 11 + + 84 * - + 3 + 20 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / \(\- Int64\(\-53\)\) \+ \(\- min\(Int64\(\-70\)\)\) \+ \(\- \(\- count\(\*\)\)\) / \(\- sum\(Int64\(44\)\)\) 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\(62\) / \(\- Int64\(\-53\)\) \+ \(\- min\(Int64\(\-70\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / \(\- sum\(Int64\(44\)\)\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 62 / - - 53 + - MIN ( + - 70 ) + - - COUNT ( * ) / - SUM ( 44 ) AS col2, + 33 AS col2 query I rowsort label-9441 @@ -49864,7 +49864,7 @@ SELECT ALL 60 AS col2, 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(48\) AS col2" at position 0 and "CASE Int64\(24\) WHEN \(\- Int64\(\-45\)\) / \(\- \(\- coalesce\(\(\- max\(Int64\(\-58\)\)\), Int64\(84\)\)\)\) THEN Int64\(50\) ELSE Int64\(68\) \* Int64\(\-72\) \+ Int64\(\-37\) \+ Int64\(\-92\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(48\) AS col2" at position 0 and "CASE Int64\(24\) WHEN \(\- Int64\(\-45\)\) / \(\- \(\- coalesce\(\(\- max\(Int64\(\-58\)\)\), Int64\(84\)\)\)\) THEN Int64\(50\) ELSE Int64\(68\) \* Int64\(\-72\) \+ Int64\(\-37\) \+ Int64\(\-92\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX ( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2 query I rowsort @@ -50148,7 +50148,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\(\*\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-78\) \* \(\- Int64\(\-44\)\) \+ count\(\*\) \- CASE Int64\(\-46\) WHEN Int64\(\-50\) THEN NULL WHEN CAST\(Int64\(20\) AS Int32\) \* \(\- 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 @@ -50978,7 +50978,7 @@ SELECT ALL + - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 73 ) + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0, 18 AS col0 query I rowsort @@ -51170,7 +51170,7 @@ SELECT + - 89 AS col0, + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -3808 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(\-68\) \* \(\- nullif\(Int64\(\-56\), Int64\(30\) \+ Int64\(\-8\) \+ Int64\(\-10\) \+ Int64\(95\) \* \(\- nullif\(count\(\*\), Int64\(13\) \* Int64\(\-45\)\)\) / \(\- nullif\(Int64\(31\), Int64\(38\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(\-68\) \* \(\- nullif\(Int64\(\-56\), Int64\(30\) \+ Int64\(\-8\) \+ Int64\(\-10\) \+ Int64\(95\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(13\) \* Int64\(\-45\)\)\) / \(\- nullif\(Int64\(31\), Int64\(38\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT ( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/expr/slt_good_14.slt b/data/sqlite/random/expr/slt_good_14.slt index ea599b9..dfccf67 100644 --- a/data/sqlite/random/expr/slt_good_14.slt +++ b/data/sqlite/random/expr/slt_good_14.slt @@ -637,7 +637,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\(\*\) AS col2" at position 1 have the 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 @@ -686,7 +686,7 @@ SELECT + ( + 34 ) AS col0, - MIN ( ALL 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(93\) \+ Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(93\) \+ Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 4 * - COUNT ( * ) AS col2, 93 + + 72 AS col2 query I rowsort @@ -802,13 +802,13 @@ SELECT ( + 20 ) * - 34 + 16 * + + 39 + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \- \(\- Int64\(10\)\) AS col0" at position 0 and "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\(75\) \- \(\- Int64\(10\)\) 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 75 - - ( 10 ) AS col0, COUNT ( * ) * - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4484 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ count\(\*\) \- \(\- CASE Int64\(\-37\) WHEN Int64\(\-50\) \* Int64\(\-84\) THEN Int64\(54\) \* Int64\(90\) ELSE NULL END\) AS col1" at position 0 and "Int64\(60\) \* Int64\(74\) \+ CASE Int64\(\-79\) WHEN Int64\(47\) THEN NULL WHEN Int64\(3\) \+ \(\- Int64\(28\) \+ Int64\(17\)\) THEN Int64\(54\) ELSE Int64\(44\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- CASE Int64\(\-37\) WHEN Int64\(\-50\) \* Int64\(\-84\) THEN Int64\(54\) \* Int64\(90\) ELSE NULL END\) AS col1" at position 0 and "Int64\(60\) \* Int64\(74\) \+ CASE Int64\(\-79\) WHEN Int64\(47\) THEN NULL WHEN Int64\(3\) \+ \(\- Int64\(28\) \+ Int64\(17\)\) THEN Int64\(54\) ELSE Int64\(44\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 0 + + COUNT ( * ) - - CASE + - 37 WHEN - 50 * + - 84 THEN 54 * 90 ELSE NULL END AS col1, 60 * 74 + ( + CASE - 79 WHEN + 47 THEN NULL WHEN 3 + - ( + 28 + 17 ) THEN 54 ELSE 44 END ) AS col1 query I rowsort label-147 @@ -1057,7 +1057,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -1370,7 +1370,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- CAST\(Int64\(0\) AS Int32\)\) \- count\(\*\) \+ Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- CAST\(Int64\(0\) AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 AS col2, - CAST ( + 0 AS INTEGER ) - + COUNT ( * ) + - 5 AS col2 query I rowsort label-255 @@ -1964,7 +1964,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\(\*\) AS col2" at position 1 have the 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 @@ -4136,7 +4136,7 @@ NULL # Datafusion - Expected - 4009 # Datafusion - Expected - 689 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-19\) \* \(\- count\(\*\)\) \+ coalesce\(\(\- Int64\(\-43\)\), CAST\(NULL AS Int32\) \* Int64\(21\) \+ Int64\(\-37\)\) AS col2" at position 1 and "Int64\(71\) \- Int64\(80\) \+ \(\- \(\- \(\- \(\- count\(\*\)\)\)\)\) \* Int64\(10\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-19\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ coalesce\(\(\- Int64\(\-43\)\), CAST\(NULL AS Int32\) \* Int64\(21\) \+ Int64\(\-37\)\) AS col2" at position 1 and "Int64\(71\) \- Int64\(80\) \+ \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \* Int64\(10\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 + 74 * 53 + - 0 col0, 34 * - 19 * - COUNT ( * ) + COALESCE ( - - 43, CAST ( NULL AS INTEGER ) * 21 + + - 37 ) col2, + 71 - + + 80 + - - ( - - COUNT ( * ) ) * + 10 AS col2 query I rowsort @@ -4454,7 +4454,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -1218 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) / \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(87\) \* 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\(2\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(87\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 2 / - ( ( + + COUNT ( * ) ) ) AS col0, 87 * - 14 AS col0 query I rowsort label-840 @@ -4516,7 +4516,7 @@ SELECT 69 + + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6192 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(\-86\)\) AS col1" at position 0 and "coalesce\(\(\- count\(\*\)\), Int64\(\-58\), Int64\(\-57\)\) \+ 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\(72\) \* \(\- Int64\(\-86\)\) AS col1" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-58\), Int64\(\-57\)\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 * - - 86 AS col1, COALESCE ( - + COUNT ( * ), + + ( - 58 ), + - 57 ) + 7 AS col1 query II rowsort @@ -4748,7 +4748,7 @@ SELECT 91 * MIN ( ALL - 55 ) * - ( + - 65 ) AS col0 # Datafusion - Expected - 5 # Datafusion - Expected - 52 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(0\) \+ Int64\(52\) AS col2" at position 1 and "Int64\(14\) 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\(0\) \+ Int64\(52\) AS col2" at position 1 and "Int64\(14\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 5, COUNT ( * ) * - 0 + 52 col2, + + 14 AS col2 query II rowsort @@ -8096,7 +8096,7 @@ SELECT - COALESCE ( 9, - COUNT ( * ) ) + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(30\) \* count\(\*\) \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(30\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 35 AS col0, 30 * COUNT ( * ) + 98 AS col0 query I rowsort label-1534 @@ -8643,7 +8643,7 @@ SELECT - - 54 + 67 * 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6365 # Datafusion - Expected - -24570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* \(\- Int64\(\-95\)\) AS col0" at position 0 and "Int64\(\-9\) \* max\(Int64\(42\)\) \* Int64\(\-65\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-95\)\) AS col0" at position 0 and "Int64\(\-9\) \* max\(Int64\(42\)\) \* Int64\(\-65\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 67 * - - 95 AS col0, - 9 * MAX ( + 42 ) * - 65 * - COUNT ( * ) AS col0 query I rowsort @@ -9807,7 +9807,7 @@ SELECT MIN ( ALL ( - 11 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "count\(\*\) \* 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\(49\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 AS col2, + COUNT ( * ) * + 14 AS col2 query I rowsort @@ -9956,7 +9956,7 @@ SELECT ALL - 40 AS col0, + COUNT ( * ) / + 47 + + - 84 * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "coalesce\(\(\- count\(\*\)\), Int64\(84\)\) \* Int64\(28\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(84\)\) \* Int64\(28\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 19 AS col1, COALESCE ( + - COUNT ( * ), + + 84 ) * + 28 + + - CAST ( NULL AS INTEGER ) col1 query I rowsort label-1888 @@ -10680,7 +10680,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\(\*\) 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 @@ -10820,7 +10820,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\(\*\) AS col1" at position 1 have the 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 @@ -11876,7 +11876,7 @@ SELECT CASE + 5 WHEN ( + COUNT ( * ) ) THEN + 49 WHEN 74 / - CAST ( + 40 AS INTE # Datafusion - Expected - 1 # Datafusion - Expected - 72 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ sum\(Int64\(10\)\) \- \(\- count\(\*\)\) \+ Int64\(28\) \+ Int64\(95\) / Int64\(\-97\) AS col1" at position 1 and "\(\- 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\(33\) \+ sum\(Int64\(10\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(28\) \+ Int64\(95\) / Int64\(\-97\) 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 ( * ) AS col0, 33 + + SUM ( + 10 ) - - COUNT ( * ) + 28 + + 95 / - 97 AS col1, - COUNT ( * ) AS col1 query I rowsort label-2251 @@ -13638,7 +13638,7 @@ SELECT ALL + + 78 * + 18 * + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(90\) \- \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(90\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 AS col1, + 90 - + - COUNT ( * ) AS col1 query I rowsort label-2590 @@ -14017,7 +14017,7 @@ SELECT + + 62 AS col0, + 84 * ( - - 21 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26839 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(39\) \* \(\- count\(\*\)\) \* Int64\(\-98\) \+ Int64\(64\) \+ Int64\(21\) AS col0" at position 0 and "\(\- sum\(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\(7\) \* Int64\(39\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-98\) \+ Int64\(64\) \+ Int64\(21\) AS col0" at position 0 and "\(\- sum\(Int64\(22\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 7 * + 39 * - COUNT ( * ) * - 98 + 64 + + 21 AS col0, - SUM ( ALL + 22 ) AS col0 query I rowsort @@ -14351,7 +14351,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) \* sum\(Int64\(51\)\) AS col1" at position 0 and "Int64\(4\) \+ count\(\*\) \+ \(\- min\(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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(Int64\(51\)\) AS col1" at position 0 and "Int64\(4\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - COUNT ( * ) * + SUM ( ALL + + 51 ) AS col1, 4 + + COUNT ( * ) + - MIN ( ALL + 15 ) AS col1 # Datafusion - Types were automatically converted from: @@ -14382,7 +14382,7 @@ SELECT DISTINCT 38 AS col1, - 93 / + + 42 # 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\(\*\)\) AS col0" at position 1 have the 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 query I rowsort @@ -14446,7 +14446,7 @@ SELECT 62 * + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "CAST\(\(\- 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 ALL - COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 query I rowsort @@ -14796,7 +14796,7 @@ SELECT CAST ( - COALESCE ( - ( - MAX ( + - 47 ) ), - 8 + + COUNT ( * ) - + + 4 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -228 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(47\) WHEN CAST\(NULL AS Int32\) \* Int64\(59\) \* \(\- max\(Int64\(97\)\)\) \- \(\- \(\- CASE Int64\(72\) WHEN count\(\*\) THEN \(\- Int64\(88\)\) WHEN Int64\(\-15\) THEN Int64\(80\) \+ Int64\(68\) \* \(\- Int64\(\-59\)\) ELSE NULL END\)\) \+ Int64\(\-36\) \* Int64\(\-50\) THEN Int64\(46\) ELSE Int64\(\-49\) / Int64\(9\) \* \(\- \(\- \(\- \(\- count\(\*\)\)\)\)\) END AS col1" at position 0 and "Int64\(\-6\) \* \(\- coalesce\(Int64\(\-38\), Int64\(9\) \+ Int64\(\-62\) \+ nullif\(\(\- Int64\(33\)\), sum\(Int64\(38\)\)\) \* Int64\(3\) \* Int64\(10\) \* Int64\(\-51\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(47\) WHEN CAST\(NULL AS Int32\) \* Int64\(59\) \* \(\- max\(Int64\(97\)\)\) \- \(\- \(\- CASE Int64\(72\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(88\)\) WHEN Int64\(\-15\) THEN Int64\(80\) \+ Int64\(68\) \* \(\- Int64\(\-59\)\) ELSE NULL END\)\) \+ Int64\(\-36\) \* Int64\(\-50\) THEN Int64\(46\) ELSE Int64\(\-49\) / Int64\(9\) \* \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) END AS col1" at position 0 and "Int64\(\-6\) \* \(\- coalesce\(Int64\(\-38\), Int64\(9\) \+ Int64\(\-62\) \+ nullif\(\(\- Int64\(33\)\), sum\(Int64\(38\)\)\) \* Int64\(3\) \* Int64\(10\) \* Int64\(\-51\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + CASE 47 WHEN CAST ( NULL AS INTEGER ) * + 59 * + - MAX ( 97 ) - - - CASE + + 72 WHEN + COUNT ( * ) THEN - + 88 WHEN + - 15 THEN 80 + 68 * - - 59 ELSE NULL END + - 36 * - 50 THEN 46 ELSE - 49 / + 9 * - - ( - - COUNT ( * ) ) END ) AS col1, - 6 * - COALESCE ( - 38, + 9 + - 62 + + NULLIF ( - + 33, SUM ( + 38 ) ) * + 3 * + 10 * - 51 ) AS col1 query I rowsort label-2809 @@ -15454,7 +15454,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\(\*\) 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 @@ -15553,7 +15553,7 @@ SELECT DISTINCT 74 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* count\(\*\) \- Int64\(42\) \+ Int64\(62\) \+ Int64\(43\) \+ Int64\(74\) \+ CASE Int64\(\-97\) WHEN Int64\(22\) \+ Int64\(59\) THEN NULL WHEN Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(46\) THEN \(\- \(\- \(\- \(\- \(\- count\(\*\)\)\)\)\)\) ELSE NULL END \+ \(\- Int64\(85\)\) \- \(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(42\) \+ Int64\(62\) \+ Int64\(43\) \+ Int64\(74\) \+ CASE Int64\(\-97\) WHEN Int64\(22\) \+ Int64\(59\) THEN NULL WHEN Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(46\) THEN \(\- \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\) ELSE NULL END \+ \(\- Int64\(85\)\) \- \(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 * + COUNT ( * ) - + 42 + 62 + 43 + + + 74 + CASE - 97 WHEN 22 + + 59 THEN NULL WHEN + 80 * - + CAST ( NULL AS INTEGER ) / + 46 THEN - - ( - - ( - COUNT ( * ) ) ) ELSE NULL END + - + 85 - - + 77 col0, 13 + + 37 AS col0 query I rowsort label-2950 @@ -16894,7 +16894,7 @@ SELECT 53 + COALESCE ( - - 39, 82 * COALESCE ( 42, 20 * COUNT ( * ) ), 19 * - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 0 -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\(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\(77\) 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 77 col1, - COUNT ( * ) / + 87 AS col1 query I rowsort @@ -17895,7 +17895,7 @@ SELECT ALL + + 42 AS col2, COUNT ( * ) * + + 34 - + 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "CASE Int64\(97\) WHEN CAST\(Int64\(74\) AS Int32\) \+ Int64\(4\) THEN Int64\(\-3\) \* Int64\(36\) WHEN \(\- Int64\(2\)\) THEN Int64\(\-90\) ELSE \(\- count\(\*\)\) END \- Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(97\) WHEN CAST\(Int64\(74\) AS Int32\) \+ Int64\(4\) THEN Int64\(\-3\) \* Int64\(36\) WHEN \(\- Int64\(2\)\) THEN Int64\(\-90\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \- Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, CASE + 97 WHEN CAST ( 74 AS INTEGER ) + ( ( + 4 ) ) THEN - 3 * 36 WHEN - + 2 THEN - 90 ELSE - COUNT ( * ) END - + 18 AS col2 query II rowsort label-3400 @@ -18924,7 +18924,7 @@ SELECT + COUNT ( * ) - - 39 AS col2, + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(NULL AS Int32\), Int64\(\-34\) \+ count\(\*\), Int64\(91\)\) AS col1" at position 0 and "Int64\(29\) / Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(NULL AS Int32\), Int64\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(91\)\) AS col1" at position 0 and "Int64\(29\) / Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COALESCE ( + + CAST ( NULL AS INTEGER ), - 34 + COUNT ( * ), + 91 ) AS col1, 29 / - 62 AS col1 query I rowsort @@ -19081,7 +19081,7 @@ SELECT ALL COUNT ( * ), 84 AS col2 # 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\(27\) \+ Int64\(60\) \* \(\- 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 "Int64\(27\) \+ Int64\(60\) \* \(\- 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 + + 27 + 60 * - COUNT ( * ) AS col2, 2 col2 query I rowsort label-3625 @@ -19352,7 +19352,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 661572 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \- Int64\(11\) AS col1" at position 0 and "Int64\(\-94\) \* Int64\(\-34\) \* CASE \(\- \(\- CASE Int64\(57\) WHEN Int64\(\-78\) \* Int64\(\-24\) / Int64\(93\) \- \(\- Int64\(\-54\)\) \+ Int64\(\-50\) \* Int64\(59\) THEN Int64\(\-10\) \* Int64\(81\) \* \(\- sum\(Int64\(\-54\)\)\) WHEN Int64\(61\) \+ Int64\(61\) \* CAST\(Int64\(64\) AS Float64\) THEN NULL ELSE NULL END\)\) WHEN Int64\(60\) \* Int64\(78\) THEN NULL WHEN Int64\(96\) \* Int64\(\-49\) THEN Int64\(24\) \- \(\- count\(\*\)\) ELSE Int64\(23\) \* Int64\(9\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \- Int64\(11\) AS col1" at position 0 and "Int64\(\-94\) \* Int64\(\-34\) \* CASE \(\- \(\- CASE Int64\(57\) WHEN Int64\(\-78\) \* Int64\(\-24\) / Int64\(93\) \- \(\- Int64\(\-54\)\) \+ Int64\(\-50\) \* Int64\(59\) THEN Int64\(\-10\) \* Int64\(81\) \* \(\- sum\(Int64\(\-54\)\)\) WHEN Int64\(61\) \+ Int64\(61\) \* CAST\(Int64\(64\) AS Float64\) THEN NULL ELSE NULL END\)\) WHEN Int64\(60\) \* Int64\(78\) THEN NULL WHEN Int64\(96\) \* Int64\(\-49\) THEN Int64\(24\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(23\) \* Int64\(9\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + - 59 ) - 11 AS col1, - 94 * - 34 * + CASE - - CASE + 57 WHEN + - 78 * - 24 / 93 - - - 54 + - 50 * + 59 THEN - 10 * 81 * - + SUM ( + - 54 ) WHEN 61 + 61 * + CAST ( + 64 AS FLOAT8 ) THEN NULL ELSE NULL END WHEN 60 * 78 THEN NULL WHEN 96 * - 49 THEN 24 - - COUNT ( * ) ELSE 23 * 9 END AS col1 query I rowsort label-3677 @@ -20255,7 +20255,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\(\*\) 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 @@ -20291,7 +20291,7 @@ SELECT ALL 19 + - ( - 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-34\)\) \+ Int64\(76\) AS col0" at position 0 and "\(\- nullif\(Int64\(21\), \(\- \(\- count\(\*\)\)\) \+ \(\- avg\(DISTINCT 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\(\-34\)\) \+ Int64\(76\) AS col0" at position 0 and "\(\- nullif\(Int64\(21\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- avg\(DISTINCT Int64\(\-29\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 34 + 76 AS col0, - NULLIF ( 21, - - COUNT ( * ) + - AVG ( DISTINCT - 29 ) ) AS col0 query II rowsort label-3856 @@ -20771,7 +20771,7 @@ SELECT 66 / - + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \- Int64\(\-83\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-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 37 - - 83 AS col2, - COUNT ( * ) AS col2 query I rowsort label-3949 @@ -21002,7 +21002,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\(\*\) AS col0" at position 0 and "count\(\*\) \- Int64\(66\) \* \(\- CASE Int64\(13\) WHEN Int64\(69\) \+ Int64\(88\) \* Int64\(\-99\) THEN NULL WHEN 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 @@ -21294,7 +21294,7 @@ SELECT 57 + 87 + - 3 # Datafusion - Expected - 4026 # 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 1 and "\(\- \(\- 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\(0\) 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 + 66 * 61, 0 AS col0, - - COUNT ( * ) AS col0 query I rowsort @@ -21891,7 +21891,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -325 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(\-54\) \* Int64\(6\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-54\) \* Int64\(6\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 23 AS col1, - 54 * + ( + + 6 ) + - COUNT ( * ) AS col1 query II rowsort @@ -23069,7 +23069,7 @@ SELECT ALL 37 * 98 # 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 "CASE count\(\*\) WHEN Int64\(\-48\) \+ \(\- Int64\(\-75\)\) THEN NULL WHEN Int64\(77\) \+ Int64\(\-70\) \* \(\- count\(Int64\(44\)\)\) THEN Int64\(\-22\) \+ count\(\*\) ELSE NULL END \+ Int64\(81\) 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 "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-48\) \+ \(\- Int64\(\-75\)\) THEN NULL WHEN Int64\(77\) \+ Int64\(\-70\) \* \(\- count\(Int64\(44\)\)\) THEN Int64\(\-22\) \+ count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END \+ Int64\(81\) AS col2" at position 0 and "Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE + COUNT ( * ) WHEN - 48 + - - 75 THEN NULL WHEN 77 + + - 70 * + - COUNT ( ALL 44 ) THEN - 22 + + COUNT ( * ) ELSE NULL END + + 81 AS col2, - 47 AS col2 query I rowsort @@ -23438,7 +23438,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\(\*\) 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\(\-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 @@ -23972,7 +23972,7 @@ SELECT 80, + 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 15730 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* \(\- count\(\*\)\) \- Int64\(67\) AS col0" at position 0 and "Int64\(13\) \* Int64\(55\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(67\) AS col0" at position 0 and "Int64\(13\) \* Int64\(55\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 21 * - COUNT ( * ) - + 67 AS col0, 13 * + 55 * + 22 AS col0 query I rowsort label-4557 @@ -25412,7 +25412,7 @@ SELECT - COALESCE ( - - 41, - 72 * - - 23, - + 67 + - COUNT ( * ) + + 37 / 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(48\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(48\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + + 45 col0, + 48 + + 38 AS col0 query I rowsort label-4837 @@ -25482,7 +25482,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\(\*\) 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 @@ -25523,7 +25523,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\(\*\) AS col0" at position 0 and "\(\- 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: @@ -26091,7 +26091,7 @@ SELECT ALL - 75 * - 21 - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3036528 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-18\) \* Int64\(71\) \* \(\- Int64\(\-24\)\) \* Int64\(99\) 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\(\*\)\) \* Int64\(\-18\) \* Int64\(71\) \* \(\- Int64\(\-24\)\) \* Int64\(99\) 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 ( * ) * + - 18 * + 71 * - - 24 * 99 col1, 17 AS col1 query I rowsort @@ -27064,7 +27064,7 @@ NULL # 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\(\*\)\) AS col0" at position 0 and "Int64\(35\) / \(\- count\(\*\)\) \+ count\(\*\) \- 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\(35\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, 35 / - + COUNT ( * ) + + COUNT ( * ) - 31 AS col0 query II rowsort @@ -27381,7 +27381,7 @@ SELECT - + 70 + + + 53 + 71 * + 19 # Datafusion - Expected - 58463 # Datafusion - Expected - -1 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 1 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 1 and "Int64\(\-67\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 19 * + - NULLIF ( 55, - MAX ( + 9 ) ) * - 56 + + - 28 + - 29 AS col1, - COUNT ( * ) AS col2, - 67 AS col2 query I rowsort label-5208 @@ -29165,7 +29165,7 @@ SELECT - 70 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1303 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(\(\- sum\(Int64\(\-86\)\)\) AS Int32\)\)\)\) \* Int64\(\-15\) \+ Int64\(13\) AS col0" at position 0 and "coalesce\(Int64\(\-14\), Int64\(\-12\) \+ CASE Int64\(88\) WHEN \(\- count\(\*\)\) \* \(\- Int64\(\-75\)\) THEN NULL WHEN \(\- \(\- \(\- CAST\(NULL AS Float64\)\)\)\) THEN Int64\(\-74\) \* Int64\(41\) ELSE \(\- sum\(\(\- Int64\(\-69\)\)\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(\(\- sum\(Int64\(\-86\)\)\) AS Int32\)\)\)\) \* Int64\(\-15\) \+ Int64\(13\) AS col0" at position 0 and "coalesce\(Int64\(\-14\), Int64\(\-12\) \+ CASE Int64\(88\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-75\)\) THEN NULL WHEN \(\- \(\- \(\- CAST\(NULL AS Float64\)\)\)\) THEN Int64\(\-74\) \* Int64\(41\) ELSE \(\- sum\(\(\- Int64\(\-69\)\)\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( - - CAST ( + - SUM ( - 86 ) AS INTEGER ) ) * - 15 + + + 13 col0, COALESCE ( - 14, - 12 + + CASE 88 WHEN - COUNT ( * ) * - - 75 THEN NULL WHEN - - ( - CAST ( NULL AS FLOAT8 ) ) THEN + - 74 * 41 ELSE - SUM ( ALL - ( + - 69 ) ) END ) AS col0 query I rowsort label-5550 @@ -29560,7 +29560,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "CASE \(\- Int64\(\-58\)\) WHEN \(\- Int64\(61\)\) \+ Int64\(\-27\) \* Int64\(88\) \* Int64\(75\) THEN Int64\(\-76\) \* \(\- \(\- count\(\*\)\)\) / \(\- Int64\(\-78\)\) \* count\(Int64\(96\)\) \* \(\- Int64\(\-13\)\) WHEN Int64\(24\) THEN NULL ELSE Int64\(\-38\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "CASE \(\- Int64\(\-58\)\) WHEN \(\- Int64\(61\)\) \+ Int64\(\-27\) \* Int64\(88\) \* Int64\(75\) THEN Int64\(\-76\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / \(\- Int64\(\-78\)\) \* count\(Int64\(96\)\) \* \(\- Int64\(\-13\)\) WHEN Int64\(24\) THEN NULL ELSE Int64\(\-38\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 AS col1, + CASE - - 58 WHEN - + 61 + + - 27 * 88 * + 75 THEN - 76 * + + ( - - COUNT ( * ) ) / - - 78 * + COUNT ( + + 96 ) * - - 13 WHEN 24 THEN NULL ELSE - 38 END AS col1 query I rowsort label-5626 @@ -29965,7 +29965,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\(\*\) AS col2" at position 1 have the 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 @@ -34107,7 +34107,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\(2\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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-6499 @@ -34139,7 +34139,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\(\*\) AS Int32\) AS col1" at position 1 have the 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 @@ -34757,7 +34757,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\(\*\) 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 @@ -35153,7 +35153,7 @@ SELECT DISTINCT - - CASE - 12 WHEN - 62 / + AVG ( + CAST ( + + 94 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(79\) \* \(\- CASE Int64\(36\) WHEN Int64\(37\) \+ count\(\*\) \+ Int64\(53\) / \(\- \(\- CASE count\(\*\) WHEN Int64\(45\) THEN NULL WHEN Int64\(\-67\) \+ Int64\(\-67\) / count\(\*\) THEN NULL ELSE \(\- count\(\*\)\) \* Int64\(\-19\) END\)\) \* Int64\(64\) THEN Int64\(16\) 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\(\-41\) AS col0" at position 0 and "Int64\(79\) \* \(\- CASE Int64\(36\) WHEN Int64\(37\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) / \(\- \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(45\) THEN NULL WHEN Int64\(\-67\) \+ Int64\(\-67\) / count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-19\) END\)\) \* Int64\(64\) THEN Int64\(16\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 41 AS col0, + 79 * - CASE + 36 WHEN + ( + 37 ) + + COUNT ( * ) + + 53 / - - CASE + COUNT ( * ) WHEN + 45 THEN NULL WHEN - 67 + + - 67 / COUNT ( * ) THEN NULL ELSE - COUNT ( * ) * - 19 END * 64 THEN 16 END AS col0 query I rowsort label-6699 @@ -35337,7 +35337,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\(\-13\) AS col1" at position 0 and "Int64\(99\) \* Int64\(26\) \* \(\- \(\- CAST\(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 @@ -35353,7 +35353,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\(\*\) 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 @@ -36048,7 +36048,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\(\*\) AS col0" at position 1 have 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 @@ -36476,7 +36476,7 @@ NULL # Datafusion - Expected - -62 # Datafusion - Expected - -65 # Datafusion - Expected - -682776261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 1 and "\(\- Int64\(20\)\) \+ Int64\(22\) \- Int64\(\-48\) \- count\(\*\) \+ Int64\(\-95\) \* Int64\(\-83\) \* Int64\(12\) \* \(\- max\(DISTINCT Int64\(88\)\)\) \* Int64\(82\) \+ Int64\(70\) \+ Int64\(35\) \* Int64\(44\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 1 and "\(\- Int64\(20\)\) \+ Int64\(22\) \- Int64\(\-48\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-95\) \* Int64\(\-83\) \* Int64\(12\) \* \(\- max\(DISTINCT Int64\(88\)\)\) \* Int64\(82\) \+ Int64\(70\) \+ Int64\(35\) \* Int64\(44\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 col1, - 65 AS col0, - + ( 20 ) + ( + 22 ) - - 48 - + + COUNT ( * ) + - 95 * + - 83 * 12 * - + MAX ( DISTINCT ( + ( 88 ) ) ) * + 82 + + 70 + + + 35 * + 44 AS col0 query I rowsort label-6953 @@ -36954,7 +36954,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 3608 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- \(\- coalesce\(Int64\(66\), Int64\(\-23\) \* Int64\(75\) \- \(\- nullif\(Int64\(8\), \(\- Int64\(21\)\)\)\), count\(\*\) \+ Int64\(26\) \+ Int64\(\-72\)\)\)\)\)\) AS col2" at position 0 and "Int64\(1\) \+ Int64\(43\) \* Int64\(84\) \+ Int64\(36\) \+ Int64\(\-82\) / 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 "\(\- \(\- \(\- \(\- coalesce\(Int64\(66\), Int64\(\-23\) \* Int64\(75\) \- \(\- nullif\(Int64\(8\), \(\- Int64\(21\)\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(26\) \+ Int64\(\-72\)\)\)\)\)\) AS col2" at position 0 and "Int64\(1\) \+ Int64\(43\) \* Int64\(84\) \+ Int64\(36\) \+ Int64\(\-82\) / Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - ( - - COALESCE ( + 66, - 23 * + 75 - - NULLIF ( 8, - + 21 ), + + COUNT ( * ) + ( + 26 ) + - 72 ) ) AS col2, 1 + + + 43 * + 84 + 36 + - 82 / + 2 col2 query I rowsort @@ -38481,7 +38481,7 @@ SELECT ALL 99 * - ( + COUNT ( * ) ) * - + ( + - NULLIF ( + 30, - 40 * - 83 / + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -54806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(60\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-86\) \+ \(\- Int64\(\-32\)\) \* \(\- Int64\(45\)\) \* 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\(40\) \+ Int64\(60\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-86\) \+ \(\- Int64\(\-32\)\) \* \(\- Int64\(45\)\) \* Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 + + 60 * - + COUNT ( * ) col1, - 86 + - - 32 * - + 45 * + 38 col1 # Datafusion - Datafusion expected results: @@ -38908,7 +38908,7 @@ SELECT - 31 + + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 1836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(26\) \* \(\- Int64\(\-67\)\) \+ \(\- count\(\*\)\) \+ 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\(36\) AS col0" at position 0 and "Int64\(26\) \* \(\- Int64\(\-67\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 36 AS col0, 26 * - - 67 + - COUNT ( * ) + + 95 col0 query I rowsort @@ -39264,7 +39264,7 @@ SELECT + 63 + 94 AS col0 # Datafusion - Expected - 87 # Datafusion - Expected - 30 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- 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\(88\) \+ \(\- 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 + ( 88 ) + - + COUNT ( * ) AS col0, + 30 col0, - 60 query I rowsort label-7484 @@ -39320,7 +39320,7 @@ SELECT + - 12 AS col2, - 39 * - 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 568 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-8\) / count\(\*\) \* 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\) AS col2" at position 0 and "Int64\(\-8\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 71 AS col2, - 8 / COUNT ( * ) * - 71 AS col2 query I rowsort @@ -39361,7 +39361,7 @@ SELECT DISTINCT - 23 + + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(\-32\) \+ count\(\(\- Int64\(\-82\)\)\) AS col2" at position 0 and "Int64\(62\) \- Int64\(36\) \- \(\- \(\- coalesce\(Int64\(54\), count\(\*\)\)\)\) AS col2" at position 1 have the 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\(\-32\) \+ count\(\(\- Int64\(\-82\)\)\) AS col2" at position 0 and "Int64\(62\) \- Int64\(36\) \- \(\- \(\- coalesce\(Int64\(54\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 5 + + - 32 + + COUNT ( - - 82 ) AS col2, 62 - + 36 - - - COALESCE ( + 54, + COUNT ( * ) ) AS col2 query I rowsort label-7502 @@ -39446,7 +39446,7 @@ SELECT - 15 * + + 44 + + 8 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(24\) \* \(\- Int64\(\-96\)\) \- \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 0 and "Int64\(97\) \+ coalesce\(\(\- CASE Int64\(45\) WHEN count\(\*\) THEN Int64\(\-79\) END\), Int64\(\-97\) \* Int64\(37\) \+ Int64\(\-25\) \+ count\(\*\) \* Int64\(41\) \* \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. 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\(24\) \* \(\- Int64\(\-96\)\) \- \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 0 and "Int64\(97\) \+ coalesce\(\(\- CASE Int64\(45\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-79\) END\), Int64\(\-97\) \* Int64\(37\) \+ Int64\(\-25\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) * + 24 * - - 96 - - CAST ( 9 AS INTEGER ) col2, 97 + + COALESCE ( + - CASE 45 WHEN COUNT ( * ) THEN + - 79 END, - 97 * 37 + - 25 + + COUNT ( * ) * + 41 * + + ( + - COUNT ( * ) ) ) AS col2 query I rowsort @@ -40306,7 +40306,7 @@ SELECT ALL MAX ( - NULLIF ( 34, - 23 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -53584 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \- Int64\(52\) \+ \(\- Int64\(54\)\) \* Int64\(38\) \* Int64\(26\) \- Int64\(5\) \* Int64\(35\) AS col0" at position 0 and "Int64\(37\) / Int64\(87\) \* Int64\(90\) \* Int64\(52\) \+ Int64\(71\) \+ nullif\(Int64\(71\), \(\- avg\(DISTINCT Int64\(81\)\)\) / Int64\(\-60\) \+ \(\- Int64\(\-93\)\) \+ Int64\(\-3\) \+ Int64\(51\) \- Int64\(82\) \* Int64\(81\) \+ \(\- \(\- count\(\*\)\)\) \* Int64\(49\) \+ \(\- count\(Int64\(10\)\)\) / 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\(\-5\) \- Int64\(52\) \+ \(\- Int64\(54\)\) \* Int64\(38\) \* Int64\(26\) \- Int64\(5\) \* Int64\(35\) AS col0" at position 0 and "Int64\(37\) / Int64\(87\) \* Int64\(90\) \* Int64\(52\) \+ Int64\(71\) \+ nullif\(Int64\(71\), \(\- avg\(DISTINCT Int64\(81\)\)\) / Int64\(\-60\) \+ \(\- Int64\(\-93\)\) \+ Int64\(\-3\) \+ Int64\(51\) \- Int64\(82\) \* Int64\(81\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(49\) \+ \(\- count\(Int64\(10\)\)\) / Int64\(29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 5 - + 52 + - + 54 * + 38 * 26 - + 5 * + 35 AS col0, 37 / 87 * 90 * 52 + 71 + NULLIF ( + 71, - AVG ( DISTINCT 81 ) / - 60 + - ( - 93 ) + - 3 + + 51 - 82 * + 81 + - - COUNT ( * ) * 49 + - COUNT ( + 10 ) / 29 ) AS col0 query I rowsort label-7680 @@ -40580,7 +40580,7 @@ SELECT ALL - ( ( + 62 ) ) / NULLIF ( - NULLIF ( ( - 94 ), + - COUNT ( * ) ), 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6560 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(74\) \- count\(\*\) \* Int64\(48\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(74\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 88 * 74 - + COUNT ( * ) * 48 AS col1, 51 AS col1 query II rowsort label-7732 @@ -40724,7 +40724,7 @@ SELECT ALL 65 + - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- 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\(20\) \+ \(\- 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 20 + - COUNT ( * ) AS col0, 22 AS col0 query I rowsort @@ -41243,7 +41243,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\(\*\) 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 @@ -43462,7 +43462,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(80\) AS col2" at position 0 and "Int64\(\-23\) \+ \(\- nullif\(Int64\(\-82\), 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\(\*\) \* Int64\(80\) AS col2" at position 0 and "Int64\(\-23\) \+ \(\- nullif\(Int64\(\-82\), Int64\(16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 80 AS col2, - 23 + - NULLIF ( - 82, + + 16 ) AS col2 query I rowsort label-8284 @@ -44593,7 +44593,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\(\*\) AS col1" at position 1 have the 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 @@ -44785,7 +44785,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\(\*\) 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 @@ -45126,7 +45126,7 @@ SELECT 36 / - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 235460 # Datafusion - Expected - -154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* Int64\(\-37\) \* Int64\(\-68\) \* Int64\(93\) \+ Int64\(\-32\) \* Int64\(\-46\) AS col1" at position 0 and "\(\- Int64\(35\)\) \- Int64\(\-7\) \* 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\(\*\)\)\) \* Int64\(\-37\) \* Int64\(\-68\) \* Int64\(93\) \+ Int64\(\-32\) \* Int64\(\-46\) AS col1" at position 0 and "\(\- Int64\(35\)\) \- Int64\(\-7\) \* Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + - COUNT ( * ) ) * - 37 * - 68 * 93 + - 32 * - 46 col1, - ( + + 35 ) - + - 7 * - 17 AS col1 query I rowsort label-8600 @@ -45255,7 +45255,7 @@ SELECT DISTINCT COUNT ( DISTINCT 50 ) + + - ( 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -424 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- \(\- CAST\(\(\- Int64\(85\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- Int64\(80\)\) \+ Int64\(54\) \+ \(\- Int64\(38\)\) \+ Int64\(9\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(\(\- Int64\(85\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- Int64\(80\)\) \+ Int64\(54\) \+ \(\- Int64\(38\)\) \+ Int64\(9\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + - - CAST ( - + 85 AS INTEGER ) col1, - ( + 80 ) + + 54 + - + 38 + 9 * - 40 AS col1 query I rowsort label-8624 @@ -45818,7 +45818,7 @@ SELECT + 6 * + + 51 + ( + COUNT ( * ) ) col1, ( 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(41\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(41\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 AS col2, + 41 + - COUNT ( * ) AS col2 query I rowsort label-8732 @@ -47652,7 +47652,7 @@ SELECT ALL + 4 * 58 * + 87 * + 48 AS col1 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col2, 69 col2 query I rowsort @@ -47770,7 +47770,7 @@ SELECT - 86 - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "nullif\(count\(\*\), coalesce\(count\(\*\), count\(\*\)\)\) \* avg\(Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* avg\(Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1, + NULLIF ( COUNT ( * ), + COALESCE ( COUNT ( * ), + COUNT ( * ) ) ) * + AVG ( - 41 ) AS col1 query I rowsort label-9105 @@ -48906,7 +48906,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\(\*\) AS col2" at position 0 and "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 @@ -49462,7 +49462,7 @@ SELECT ALL - + 75 * + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) AS col2" at position 0 and "Int64\(\-62\) \* CASE \(\- count\(\*\)\) WHEN \(\- Int64\(0\)\) THEN NULL WHEN Int64\(8\) \* avg\(\(\- Int64\(89\)\)\) \* \(\- CASE count\(\*\) WHEN \(\- count\(\*\)\) THEN Int64\(98\) \* count\(\*\) ELSE NULL END\) \- count\(\*\) THEN \(\- Int64\(\-89\)\) / \(\- Int64\(\-19\)\) \+ Int64\(22\) ELSE Int64\(\-49\) END / \(\- Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) AS col2" at position 0 and "Int64\(\-62\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(0\)\) THEN NULL WHEN Int64\(8\) \* avg\(\(\- Int64\(89\)\)\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(98\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) \- count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(\-89\)\) / \(\- Int64\(\-19\)\) \+ Int64\(22\) ELSE Int64\(\-49\) END / \(\- Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 34 AS col2, - 62 * CASE - COUNT ( * ) WHEN - - 0 THEN NULL WHEN + 8 * AVG ( - + 89 ) * - + CASE COUNT ( * ) WHEN - + COUNT ( * ) THEN 98 * + COUNT ( * ) ELSE NULL END - ( + COUNT ( * ) ) THEN - - 89 / + ( - ( - 19 ) ) + + 22 ELSE - 49 END / - + 86 AS col2 query II rowsort @@ -49647,7 +49647,7 @@ SELECT ALL - NULLIF ( + COUNT ( ALL 38 ), MAX ( DISTINCT 33 ) ) + - 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) \* \(\- Int64\(\-56\)\) \* Int64\(\-34\) \* Int64\(\-4\) \* Int64\(\-86\) \+ Int64\(62\) \+ sum\(Int64\(99\)\) \* count\(\*\) / Int64\(\-85\) \* CAST\(NULL AS Int32\) \- Int64\(25\) \+ \(\- Int64\(\-5\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) \* \(\- Int64\(\-56\)\) \* Int64\(\-34\) \* Int64\(\-4\) \* Int64\(\-86\) \+ Int64\(62\) \+ sum\(Int64\(99\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-85\) \* CAST\(NULL AS Int32\) \- Int64\(25\) \+ \(\- Int64\(\-5\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + 19 ) * - - 56 * - 34 * - 4 * - 86 + + 62 + + SUM ( ALL + + ( + 99 ) ) * COUNT ( * ) / - 85 * + CAST ( NULL AS INTEGER ) - + 25 + - - 5 AS col0, + 65 AS col0 query I rowsort label-9463 @@ -52153,7 +52153,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - + 64 AS col1, + 13 AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_15.slt b/data/sqlite/random/expr/slt_good_15.slt index a5fe2d5..818bcb6 100644 --- a/data/sqlite/random/expr/slt_good_15.slt +++ b/data/sqlite/random/expr/slt_good_15.slt @@ -65,7 +65,7 @@ SELECT - ( + 0 ) * + 85 * 13 # 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\(\*\)\)\) 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 - - COUNT ( * ) col0, + 43 AS col0 query I rowsort label-6 @@ -3710,7 +3710,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\(\*\) 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 @@ -3965,7 +3965,7 @@ SELECT ALL - 9 col0, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -110 # Datafusion - Expected - 1473 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-81\) \* \(\- Int64\(\-99\)\) \+ \(\- Int64\(62\)\) \+ Int64\(\-28\) \* Int64\(1\)\) / nullif\(Int64\(69\), Int64\(71\)\) \+ Int64\(63\) \- Int64\(56\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(24\) / \(\- nullif\(Int64\(34\), \(\- coalesce\(Int64\(1\), \(\- Int64\(82\)\) \* \(\- \(\- nullif\(Int64\(43\), Int64\(\-91\) \+ Int64\(46\) \+ Int64\(61\)\)\)\) \* Int64\(88\) \- Int64\(16\), count\(\*\), Int64\(85\)\)\) \* Int64\(30\)\)\) \+ Int64\(\-29\) \+ Int64\(99\) \* count\(\*\) \+ \(\- count\(DISTINCT Int64\(39\)\)\) \+ Int64\(72\) \+ Int64\(26\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-81\) \* \(\- Int64\(\-99\)\) \+ \(\- Int64\(62\)\) \+ Int64\(\-28\) \* Int64\(1\)\) / nullif\(Int64\(69\), Int64\(71\)\) \+ Int64\(63\) \- Int64\(56\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(24\) / \(\- nullif\(Int64\(34\), \(\- coalesce\(Int64\(1\), \(\- Int64\(82\)\) \* \(\- \(\- nullif\(Int64\(43\), Int64\(\-91\) \+ Int64\(46\) \+ Int64\(61\)\)\)\) \* Int64\(88\) \- Int64\(16\), count\(Int64\(1\)\) AS count\(\*\), Int64\(85\)\)\) \* Int64\(30\)\)\) \+ Int64\(\-29\) \+ Int64\(99\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(39\)\)\) \+ Int64\(72\) \+ Int64\(26\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - - ( + CAST ( NULL AS INTEGER ) ), - 81 * - - 99 + - + 62 + - 28 * 1 ) / + NULLIF ( 69, + 71 ) + + 63 - 56 AS col0, 58 + + + 24 / - NULLIF ( + 34, - COALESCE ( 1, - + 82 * - - NULLIF ( 43, + - 91 + + 46 + 61 ) * 88 - 16, + COUNT ( * ), ( 85 ) ) * + 30 ) + - 29 + 99 * + + COUNT ( * ) + - COUNT ( DISTINCT 39 ) + + 72 + + + 26 * 49 AS col0 query II rowsort label-742 @@ -4290,7 +4290,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-14\)\) AS col1" at position 0 and "Int64\(42\) \* \(\- count\(\*\)\) AS col1" at position 1 have 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\(\-14\)\) AS col1" at position 0 and "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( - 14 ) AS col1, + 42 * + - COUNT ( * ) col1 query II rowsort label-803 @@ -4334,7 +4334,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\(\*\) 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 @@ -5210,7 +5210,7 @@ SELECT DISTINCT - 58 - MAX ( DISTINCT 7 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-37\) 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\(\*\)\) \* Int64\(\-37\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - 37 AS col0, - 95 AS col0 query I rowsort label-975 @@ -5404,7 +5404,7 @@ NULL # 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\(\-32\)\) \+ Int64\(15\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(15\) AS col0" at 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 ) + + 15 col0, - COUNT ( * ) AS col0 query I rowsort label-1012 @@ -6803,7 +6803,7 @@ SELECT + + COUNT ( * ) * 97 * 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -19 -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\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 41 AS col0, COUNT ( * ) + - 20 AS col0 query II rowsort @@ -7086,7 +7086,7 @@ SELECT ALL 83 * + 82 AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - 57 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(3\) \+ Int64\(3\) \- 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\(3\) \+ Int64\(3\) \- Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, + 3 + 3 - + - 51 col1, 71 query II rowsort label-1336 @@ -7912,7 +7912,7 @@ SELECT ALL CASE + 37 WHEN 59 THEN + - COALESCE ( + 12, - 1 * - - 69 / 90 + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -627 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(71\) AS col0" at position 0 and "Int64\(19\) \* Int64\(33\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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\(71\) AS col0" at position 0 and "Int64\(19\) \* Int64\(33\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + + 71 AS col0, + 19 * + 33 * - COUNT ( * ) AS col0 query I rowsort @@ -8608,7 +8608,7 @@ SELECT DISTINCT 3 * - 55 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 136864 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(94\) \* Int64\(56\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(94\) \* Int64\(56\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col2, + 94 * 56 * + + 26 AS col2 query II rowsort label-1625 @@ -8798,7 +8798,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\(\*\) AS Int32\) AS col1" at position 1 have 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 - Datafusion expected results: @@ -9000,7 +9000,7 @@ SELECT ALL 11 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1520 # Datafusion - Expected - 1109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(min\(Int64\(\-38\)\), Int64\(32\) \+ Int64\(26\)\) \* Int64\(40\) \* \(\- count\(\*\)\) AS col1" at position 0 and "count\(\*\) \+ Int64\(56\) \+ nullif\(Int64\(61\), Int64\(25\)\) \+ \(\- count\(\*\)\) \* Int64\(42\) \- Int64\(\-56\) \* min\(Int64\(20\)\) \+ \(\- 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 "nullif\(min\(Int64\(\-38\)\), Int64\(32\) \+ Int64\(26\)\) \* Int64\(40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(56\) \+ nullif\(Int64\(61\), Int64\(25\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(42\) \- Int64\(\-56\) \* min\(Int64\(20\)\) \+ \(\- Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( NULLIF ( + + MIN ( + ( - 38 ) ), 32 + + 26 ) ) * 40 * - COUNT ( * ) AS col1, COUNT ( * ) + 56 + + NULLIF ( 61, + ( + 25 ) ) + + - COUNT ( * ) * + 42 - - 56 * MIN ( 20 ) + + ( - ( + 87 ) ) AS col1 query I rowsort label-1699 @@ -9208,7 +9208,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\(\*\) AS col2" at position 1 have the 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 @@ -9589,7 +9589,7 @@ SELECT DISTINCT + 0 * - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(77\) / CASE Int64\(42\) WHEN CASE Int64\(19\) WHEN Int64\(63\) THEN \(\- \(\- Int64\(\-81\)\)\) \+ Int64\(48\) \* Int64\(\-38\) WHEN CAST\(NULL AS Int32\) \* \(\- \(\- count\(\*\)\)\) \- Int64\(56\) \+ \(\- count\(\*\)\) \* sum\(DISTINCT Int64\(\-90\)\) \* count\(\*\) \* CAST\(coalesce\(Int64\(10\), Int64\(1\)\) AS Int32\) \* Int64\(17\) \+ Int64\(55\) \* Int64\(74\) THEN count\(\*\) / Int64\(\-18\) \+ Int64\(64\) / Int64\(97\) ELSE NULL END \+ Int64\(55\) \* Int64\(64\) THEN Int64\(\-95\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(77\) / CASE Int64\(42\) WHEN CASE Int64\(19\) WHEN Int64\(63\) THEN \(\- \(\- Int64\(\-81\)\)\) \+ Int64\(48\) \* Int64\(\-38\) WHEN CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT Int64\(\-90\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(coalesce\(Int64\(10\), Int64\(1\)\) AS Int32\) \* Int64\(17\) \+ Int64\(55\) \* Int64\(74\) THEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-18\) \+ Int64\(64\) / Int64\(97\) ELSE NULL END \+ Int64\(55\) \* Int64\(64\) THEN Int64\(\-95\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 AS col1, + 77 / + CASE 42 WHEN + CASE + 19 WHEN + 63 THEN + - ( ( - - 81 ) ) + + 48 * - 38 WHEN CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - + 56 + - + COUNT ( * ) * SUM ( DISTINCT + ( + - 90 ) ) * COUNT ( * ) * + CAST ( COALESCE ( 10, 1 ) AS INTEGER ) * + 17 + 55 * + 74 THEN COUNT ( * ) / - 18 + 64 / + 97 ELSE NULL END + 55 * + 64 THEN - 95 END AS col1 query I rowsort label-1812 @@ -10952,7 +10952,7 @@ SELECT - 79, 61 * 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 5554 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "Int64\(\-70\) \* Int64\(\-80\) \- \(\- count\(\*\)\) \* Int64\(\-96\) \+ 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\(7\) AS col1" at position 0 and "Int64\(\-70\) \* Int64\(\-80\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-96\) \+ Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 7 AS col1, + ( - 70 ) * - 80 - - COUNT ( * ) * - 96 + 50 AS col1 query II rowsort label-2071 @@ -11081,7 +11081,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(56\)\) AS col1" at position 0 and "Int64\(24\) \+ \(\- \(\- CAST\(Int64\(\-93\) AS Int32\)\)\) \+ count\(\*\) \- Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(56\)\) AS col1" at position 0 and "Int64\(24\) \+ \(\- \(\- CAST\(Int64\(\-93\) AS Int32\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT + 56 ) AS col1, 24 + - - CAST ( - 93 AS INTEGER ) + + COUNT ( * ) - + 66 AS col1 query I rowsort label-2095 @@ -12368,7 +12368,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- \(\- CASE \(\- Int64\(51\)\) WHEN \(\- Int64\(51\)\) THEN NULL ELSE Int64\(26\) \* count\(\*\) \+ Int64\(\-37\) \+ CAST\(Int64\(80\) AS Int32\) \* Int64\(\-23\) END\)\) \+ Int64\(90\) \+ Int64\(\-75\) AS col0" at position 0 and "Int64\(\-8\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- \(\- CASE \(\- Int64\(51\)\) WHEN \(\- Int64\(51\)\) THEN NULL ELSE Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) \+ CAST\(Int64\(80\) AS Int32\) \* Int64\(\-23\) END\)\) \+ Int64\(90\) \+ Int64\(\-75\) AS col0" at position 0 and "Int64\(\-8\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 + - - CASE - ( + 51 ) WHEN - ( + 51 ) THEN NULL ELSE + 26 * + COUNT ( * ) + + ( - 37 ) + CAST ( 80 AS INTEGER ) * - 23 END + + 90 + - 75 AS col0, - 8 + - 29 AS col0 query I rowsort @@ -17306,7 +17306,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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, + 53 AS col2 query I rowsort label-3285 @@ -17349,7 +17349,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\(\*\) AS col1" at position 0 and "Int64\(4\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -18016,7 +18016,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\(\*\) 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 @@ -18401,7 +18401,7 @@ SELECT 92 * 50 * + CASE - 84 WHEN + 1 THEN NULL WHEN - COUNT ( ALL ( 28 ) ) * + # 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 "CASE Int64\(95\) WHEN \(\- count\(Int64\(9\)\)\) THEN Int64\(5\) WHEN Int64\(75\) \* Int64\(63\) \* min\(\(\- Int64\(42\)\)\) THEN count\(\*\) ELSE NULL END 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 "CASE Int64\(95\) WHEN \(\- count\(Int64\(9\)\)\) THEN Int64\(5\) WHEN Int64\(75\) \* Int64\(63\) \* min\(\(\- Int64\(42\)\)\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE 95 WHEN - + COUNT ( + 9 ) THEN 5 WHEN + 75 * + 63 * + MIN ( - + 42 ) THEN + COUNT ( * ) ELSE NULL END AS col2, 87 AS col2 query I rowsort @@ -18914,7 +18914,7 @@ SELECT 18, 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37146 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- Int64\(92\)\) \- Int64\(89\) \* CAST\(\(\- \(\- nullif\(Int64\(26\), CAST\(CAST\(NULL AS Int32\) AS Int32\) \* Int64\(64\) \* Int64\(37\) \* \(\- \(\- Int64\(\-99\)\)\) / Int64\(94\) \+ Int64\(\-85\) \- Int64\(98\) \+ \(\- CASE Int64\(\-96\) WHEN Int64\(8\) \- Int64\(\-44\) THEN \(\- Int64\(29\)\) END\) \* Int64\(84\)\)\)\) AS Int32\) \* Int64\(\-16\) \* Int64\(\-1\) \+ Int64\(10\) AS col2" at position 0 and "Int64\(47\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(66\) \* \(\- coalesce\(Int64\(81\), nullif\(\(\- max\(Int64\(\-29\)\)\), Int64\(58\) \* Int64\(\-10\) \+ Int64\(38\)\) \+ Int64\(17\) \* Int64\(\-61\), Int64\(86\)\)\) \* \(\- count\(\*\)\) \+ Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- Int64\(92\)\) \- Int64\(89\) \* CAST\(\(\- \(\- nullif\(Int64\(26\), CAST\(CAST\(NULL AS Int32\) AS Int32\) \* Int64\(64\) \* Int64\(37\) \* \(\- \(\- Int64\(\-99\)\)\) / Int64\(94\) \+ Int64\(\-85\) \- Int64\(98\) \+ \(\- CASE Int64\(\-96\) WHEN Int64\(8\) \- Int64\(\-44\) THEN \(\- Int64\(29\)\) END\) \* Int64\(84\)\)\)\) AS Int32\) \* Int64\(\-16\) \* Int64\(\-1\) \+ Int64\(10\) AS col2" at position 0 and "Int64\(47\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(66\) \* \(\- coalesce\(Int64\(81\), nullif\(\(\- max\(Int64\(\-29\)\)\), Int64\(58\) \* Int64\(\-10\) \+ Int64\(38\)\) \+ Int64\(17\) \* Int64\(\-61\), Int64\(86\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 40 + - + 92 - 89 * CAST ( - - NULLIF ( 26, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 64 * + 37 * - - ( - 99 ) / 94 + - 85 - 98 + - + CASE - 96 WHEN 8 - + - 44 THEN - + 29 END * + 84 ) AS INTEGER ) * - 16 * - 1 + + 10 AS col2, 47 + - CAST ( NULL AS INTEGER ) + 66 * - COALESCE ( + 81, + NULLIF ( - MAX ( ALL - 29 ), 58 * - 10 + 38 ) + + 17 * - 61, + 86 ) * - ( + COUNT ( * ) ) + 78 AS col2 query I rowsort label-3592 @@ -19246,7 +19246,7 @@ SELECT 19 AS col0, - 49 + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "\(\- CASE \(\- \(\- Int64\(67\)\)\) WHEN Int64\(\-62\) THEN NULL WHEN Int64\(\-47\) \* Int64\(\-30\) THEN \(\- \(\- count\(\*\)\)\) ELSE count\(\*\) \* \(\- Int64\(\-74\)\) \+ Int64\(41\) END\) \+ 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\(54\) AS col2" at position 0 and "\(\- CASE \(\- \(\- Int64\(67\)\)\) WHEN Int64\(\-62\) THEN NULL WHEN Int64\(\-47\) \* Int64\(\-30\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-74\)\) \+ Int64\(41\) END\) \+ Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54 AS col2, - CASE - - ( 67 ) WHEN - 62 THEN NULL WHEN - 47 * - 30 THEN - - COUNT ( * ) ELSE + + COUNT ( * ) * - - 74 + ( + 41 ) END + 15 AS col2 # Datafusion - Types were automatically converted from: @@ -19439,7 +19439,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\(\*\) 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 @@ -19553,7 +19553,7 @@ SELECT ALL 9 + - 87, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(\-38\) AS col2" at position 0 and "Int64\(30\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-38\) 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 66 + - 38 AS col2, + 30 * - COUNT ( * ) AS col2 query I rowsort label-3713 @@ -20151,7 +20151,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\(\*\) AS col1" at position 1 have the 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 @@ -20198,7 +20198,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\(\*\) 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 @@ -23964,7 +23964,7 @@ SELECT 85 + - - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2418 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* count\(\*\) \* Int64\(78\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 * COUNT ( * ) * 78 AS col2, - 64 AS col2 query I rowsort label-4557 @@ -24126,7 +24126,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\(\*\) AS col0" at position 1 have 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 @@ -24566,7 +24566,7 @@ SELECT ALL - - 7, 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 11295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "Int64\(56\) \* \(\- Int64\(\-74\)\) \+ Int64\(48\) \- count\(\*\) \+ Int64\(\-72\) \+ Int64\(\-78\) \* 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\(\-65\) AS col2" at position 0 and "Int64\(56\) \* \(\- Int64\(\-74\)\) \+ Int64\(48\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) \+ Int64\(\-78\) \* Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 65 AS col2, + 56 * - - 74 + 48 - + COUNT ( * ) + - 72 + - 78 * - 92 AS col2 query I rowsort label-4672 @@ -24778,7 +24778,7 @@ SELECT ALL + 13 + - - ( COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(\-29\) \+ Int64\(24\) \- Int64\(99\) \+ CAST\(NULL AS Int32\) \* Int64\(87\) \* \(\- count\(\*\)\) \* Int64\(\-76\) / count\(\*\) \* Int64\(71\) \* Int64\(9\) \+ Int64\(83\) \+ \(\- Int64\(96\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(\-29\) \+ Int64\(24\) \- Int64\(99\) \+ CAST\(NULL AS Int32\) \* Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-76\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(71\) \* Int64\(9\) \+ Int64\(83\) \+ \(\- Int64\(96\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 15 AS col2, - 29 + 24 - + 99 + + CAST ( NULL AS INTEGER ) * 87 * - COUNT ( * ) * - 76 / COUNT ( * ) * 71 * + 9 + 83 + - ( ( 96 ) ) * + 61 AS col2 query II rowsort label-4713 @@ -26241,7 +26241,7 @@ SELECT + 77 * - COUNT ( * ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4316 # Datafusion - Expected - -1397 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(52\) AS col0" at position 0 and "count\(\*\) / count\(\*\) \* Int64\(\-2\) \* Int64\(29\) \* Int64\(24\) \+ Int64\(93\) \+ \(\- max\(DISTINCT Int64\(98\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(52\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-2\) \* Int64\(29\) \* Int64\(24\) \+ Int64\(93\) \+ \(\- max\(DISTINCT Int64\(98\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 83 * + 52 AS col0, COUNT ( * ) / COUNT ( * ) * - 2 * 29 * 24 + 93 + - MAX ( DISTINCT + + 98 ) col0 query I rowsort @@ -27271,7 +27271,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\(\*\) 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 @@ -28939,7 +28939,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\(\*\) AS col2" at position 1 have the 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 @@ -29770,7 +29770,7 @@ SELECT ALL 15 / - 22 * + + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ \(\- Int64\(92\)\) AS col2" at position 0 and "nullif\(Int64\(\-67\), Int64\(39\) \* Int64\(\-81\) \+ count\(\*\)\) AS col2" at position 1 have the 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\(92\)\) AS col2" at position 0 and "nullif\(Int64\(\-67\), Int64\(39\) \* Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 + - + 92 AS col2, NULLIF ( + - 67, + 39 * - 81 + + COUNT ( * ) ) col2 query I rowsort label-5659 @@ -30728,7 +30728,7 @@ SELECT 9 * + 4 * + 51 - + 97 + COUNT ( * ) # 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\) AS col2" at position 0 and "CASE \(\- Int64\(\-50\)\) WHEN Int64\(65\) \+ Int64\(86\) \+ Int64\(89\) \+ Int64\(48\) \* count\(\*\) THEN Int64\(97\) \* Int64\(80\) \+ Int64\(3\) ELSE Int64\(\-68\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "CASE \(\- Int64\(\-50\)\) WHEN Int64\(65\) \+ Int64\(86\) \+ Int64\(89\) \+ Int64\(48\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(97\) \* Int64\(80\) \+ Int64\(3\) ELSE Int64\(\-68\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 0 AS col2, + CASE + - ( - 50 ) WHEN 65 + 86 + 89 + 48 * + COUNT ( * ) THEN + 97 * 80 + 3 ELSE - 68 END AS col2 query I rowsort @@ -32596,7 +32596,7 @@ SELECT + + 70 - - MAX ( ALL + + ( - - 5 ) ) + - 28 # Datafusion - Expected - -51 # Datafusion - Expected - -31 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col2" at position 0 and "Int64\(54\) \+ Int64\(51\) / nullif\(\(\- count\(\*\)\), Int64\(7\)\) \+ 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 "Int64\(\-51\) AS col2" at position 0 and "Int64\(54\) \+ Int64\(51\) / nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(7\)\) \+ Int64\(\-89\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + ( - 51 ) ) AS col2, - 31 AS col0, 54 + + 51 / NULLIF ( - + COUNT ( * ), 7 ) + - 89 AS col2 query I rowsort label-6201 @@ -33569,7 +33569,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\(\*\) AS col1" at position 1 have the 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 @@ -35425,7 +35425,7 @@ SELECT ALL - SUM ( ALL + + 77 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2591 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-32\) \* Int64\(81\) AS col1" at position 0 and "max\(\(\- 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\(\*\) \+ Int64\(\-32\) \* Int64\(81\) AS col1" at position 0 and "max\(\(\- Int64\(44\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + + - 32 * 81 AS col1, + MAX ( ALL - ( + 44 ) ) col1 query I rowsort @@ -35811,7 +35811,7 @@ SELECT - COALESCE ( + 92, + - 91 / - NULLIF ( 47, 3 ) + + 20 * - 89 ) AS col0, 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-32\)\) WHEN Int64\(7\) \* count\(\*\) THEN NULL ELSE Int64\(52\) END 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 "CASE \(\- Int64\(\-32\)\) WHEN Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(52\) END AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE - - 32 WHEN + + 7 * + COUNT ( * ) THEN NULL ELSE 52 END AS col1, 64 AS col1 query I rowsort label-6811 @@ -37356,7 +37356,7 @@ SELECT + COUNT ( * ) * - CAST ( 73 AS INTEGER ) + + 94 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38526 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* Int64\(\-71\) \- Int64\(\-30\) \+ \(\- Int64\(\-92\)\) \+ Int64\(\-47\) \* Int64\(23\) \* Int64\(37\) AS col1" at position 0 and "count\(\*\) \+ CASE WHEN NULL < Int64\(92\) 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 "Int64\(\-19\) \* Int64\(\-71\) \- Int64\(\-30\) \+ \(\- Int64\(\-92\)\) \+ Int64\(\-47\) \* Int64\(23\) \* Int64\(37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CASE WHEN NULL < Int64\(92\) THEN Int64\(13\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 19 * - 71 - - 30 + - - 92 + - 47 * + 23 * 37 AS col1, COUNT ( * ) + + ( + CASE WHEN NULL < 92 THEN 13 ELSE NULL END ) AS col1 query I rowsort @@ -37524,7 +37524,7 @@ NULL # 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\(\*\)\) AS col2" at position 0 and "Int64\(22\) \+ \(\- 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\(22\) \+ \(\- Int64\(\-39\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 22 + - - 39 AS col2 query I rowsort @@ -38886,7 +38886,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\(\*\) AS col1" at position 1 have the 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 @@ -38994,7 +38994,7 @@ SELECT 84 * ( - 89 ) AS col0 # 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 "Int64\(21\) AS col0" at position 0 and "Int64\(30\) \+ Int64\(34\) \- \(\- count\(\*\)\) AS col0" at position 1 have the 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 "Int64\(30\) \+ Int64\(34\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 AS col0, 30 + + 34 - + - COUNT ( * ) AS col0 query I rowsort @@ -41325,7 +41325,7 @@ SELECT DISTINCT - 5 * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) / \(\- coalesce\(Int64\(\-20\), avg\(Int64\(29\)\) \+ Int64\(\-44\)\)\) \+ Int64\(75\) AS col2" at position 0 and "coalesce\(Int64\(51\), count\(\*\) \- sum\(Int64\(17\)\) \* Int64\(23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) / \(\- coalesce\(Int64\(\-20\), avg\(Int64\(29\)\) \+ Int64\(\-44\)\)\) \+ Int64\(75\) AS col2" at position 0 and "coalesce\(Int64\(51\), count\(Int64\(1\)\) AS count\(\*\) \- sum\(Int64\(17\)\) \* Int64\(23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 50 / - COALESCE ( - 20, + AVG ( ALL + 29 ) + ( - 44 ) ) + + 75 AS col2, COALESCE ( + 51, COUNT ( * ) - ( SUM ( ALL + 17 ) ) * + 23 ) AS col2 query II rowsort @@ -41417,7 +41417,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\(\*\) 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 @@ -41790,7 +41790,7 @@ SELECT + COUNT ( * ) - - 27 + 94 * + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 79 -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\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 16 col1, COUNT ( * ) + + + 78 AS col1 query II rowsort label-7947 @@ -42587,7 +42587,7 @@ SELECT ALL + + 65 * - 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2597 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* \(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(67\) \+ CASE \(\- CASE \(\- nullif\(Int64\(68\), Int64\(\-94\) \* \(\- Int64\(\-14\)\) \- Int64\(83\) \* Int64\(\-40\)\)\) WHEN \(\- Int64\(20\)\) \* count\(\*\) \+ Int64\(\-57\) \* Int64\(82\) \* Int64\(\-44\) \+ coalesce\(\(\- count\(\*\)\), Int64\(93\)\) THEN Int64\(88\) ELSE NULL END\) WHEN Int64\(37\) THEN \(\- avg\(DISTINCT Int64\(52\)\)\) WHEN Int64\(\-45\) THEN count\(\*\) \- CAST\(NULL AS Int32\) END \* Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* \(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(67\) \+ CASE \(\- CASE \(\- nullif\(Int64\(68\), Int64\(\-94\) \* \(\- Int64\(\-14\)\) \- Int64\(83\) \* Int64\(\-40\)\)\) WHEN \(\- Int64\(20\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-57\) \* Int64\(82\) \* Int64\(\-44\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(93\)\) THEN Int64\(88\) ELSE NULL END\) WHEN Int64\(37\) THEN \(\- avg\(DISTINCT Int64\(52\)\)\) WHEN Int64\(\-45\) THEN count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) END \* Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 49 * + ( - + 53 ) AS col1, + 67 + CASE - CASE - NULLIF ( 68, + - 94 * - - 14 - + ( + 83 ) * - 40 ) WHEN - + 20 * COUNT ( * ) + - 57 * + 82 * - 44 + + COALESCE ( - COUNT ( * ), + 93 ) THEN 88 ELSE NULL END WHEN 37 THEN - ( ( ( AVG ( DISTINCT 52 ) ) ) ) WHEN - 45 THEN + COUNT ( * ) - CAST ( NULL AS INTEGER ) END * 52 AS col1 query II rowsort label-8101 @@ -45210,7 +45210,7 @@ SELECT ALL + SUM ( + - 49 ) - - - 17 + NULLIF ( + 55, ( + - 43 ) ) AS col0, - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* min\(Int64\(70\)\) 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\(\*\) \* min\(Int64\(70\)\) 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 ( * ) ) * MIN ( ALL + + 70 ) AS col1, 56 col1 query I rowsort @@ -45238,7 +45238,7 @@ SELECT ( 43 ) * + ( + ( + + 71 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -40200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-73\) AS col0" at position 0 and "Int64\(25\) \* Int64\(67\) \* 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\(\*\) \* Int64\(\-73\) AS col0" at position 0 and "Int64\(25\) \* Int64\(67\) \* Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) * - 73 AS col0, ( 25 ) * + 67 * - 24 AS col0 query II rowsort @@ -45729,7 +45729,7 @@ SELECT DISTINCT - CAST ( + 98 AS INTEGER ) + + 69 - + 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \+ \(\- Int64\(7\)\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-10\) \* \(\- CASE \(\- Int64\(\-34\)\) WHEN Int64\(49\) THEN Int64\(69\) \* Int64\(80\) \* max\(Int64\(25\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \+ \(\- Int64\(7\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-10\) \* \(\- CASE \(\- Int64\(\-34\)\) WHEN Int64\(49\) THEN Int64\(69\) \* Int64\(80\) \* max\(Int64\(25\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 35 + - + 7 AS col1, ( COUNT ( * ) ) + - 10 * - + CASE - - 34 WHEN 49 THEN + 69 * + 80 * + ( + MAX ( ALL 25 ) ) END AS col1 query I rowsort @@ -46253,7 +46253,7 @@ SELECT - 51 / 6 + + 97 + - 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(39\) \+ \(\- coalesce\(Int64\(92\), \(\- Int64\(59\)\)\)\) \+ Int64\(\-35\) \+ \(\- count\(\*\)\) / nullif\(Int64\(53\), \(\- \(\- nullif\(Int64\(77\), Int64\(\-92\) \+ count\(\*\)\)\)\)\) AS col2" at position 1 have the 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\(39\) \+ \(\- coalesce\(Int64\(92\), \(\- Int64\(59\)\)\)\) \+ Int64\(\-35\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / nullif\(Int64\(53\), \(\- \(\- nullif\(Int64\(77\), Int64\(\-92\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 24 AS col2, + 39 + - COALESCE ( + 92, - + 59 ) + - 35 + ( - COUNT ( * ) ) / NULLIF ( 53, - - NULLIF ( 77, + - 92 + COUNT ( * ) ) ) col2 query I rowsort label-8793 @@ -46420,7 +46420,7 @@ SELECT + COALESCE ( - 68, + 95 + 22, - + 60 / - 36 + 65 + 5 / 83 * 33 ) * - 77 # 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\(\*\)\) AS col2" at position 1 have the 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 @@ -47849,7 +47849,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\(\*\) 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 @@ -51290,7 +51290,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\(\*\) AS col1" at position 1 have the 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 @@ -51991,7 +51991,7 @@ SELECT ALL + 71 * + SUM ( - - 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -4296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(\*\)\), Int64\(\-41\)\) AS col1" at position 0 and "Int64\(57\) \+ Int64\(\-75\) / Int64\(14\) \- min\(Int64\(38\)\) \+ Int64\(\-68\) \* \(\- Int64\(\-72\)\) \- Int64\(\-38\) \* Int64\(15\) \+ 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 "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-41\)\) AS col1" at position 0 and "Int64\(57\) \+ Int64\(\-75\) / Int64\(14\) \- min\(Int64\(38\)\) \+ Int64\(\-68\) \* \(\- Int64\(\-72\)\) \- Int64\(\-38\) \* Int64\(15\) \+ Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( + - COUNT ( * ), + - 41 ) AS col1, + 57 + + - 75 / 14 - MIN ( + 38 ) + - 68 * - - 72 - + - 38 * 15 + + 16 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 d424d01..2c73d87 100644 --- a/data/sqlite/random/expr/slt_good_16.slt +++ b/data/sqlite/random/expr/slt_good_16.slt @@ -328,7 +328,7 @@ NULL # Datafusion - Expected - -30 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CASE Int64\(68\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- CAST\(Int64\(69\) AS Int32\)\) ELSE Int64\(\-77\) \* Int64\(29\) \* Int64\(1\) / \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) END WHEN Int64\(\-56\) THEN Int64\(\-70\) ELSE NULL END / \(\- \(\- \(\- nullif\(\(\- Int64\(\-73\)\), avg\(DISTINCT Int64\(\-94\)\) \+ Int64\(72\)\)\)\)\) AS col2" at position 1 and "Int64\(\-97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CASE Int64\(68\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- CAST\(Int64\(69\) AS Int32\)\) ELSE Int64\(\-77\) \* Int64\(29\) \* Int64\(1\) / \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) END WHEN Int64\(\-56\) THEN Int64\(\-70\) ELSE NULL END / \(\- \(\- \(\- nullif\(\(\- Int64\(\-73\)\), avg\(DISTINCT Int64\(\-94\)\) \+ Int64\(72\)\)\)\)\) AS col2" at position 1 and "Int64\(\-97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 30 AS col1, + CASE + CASE + 68 WHEN - + CAST ( NULL AS INTEGER ) THEN - + CAST ( + 69 AS INTEGER ) ELSE - 77 * 29 * + + 1 / + - CAST ( - COUNT ( * ) AS INTEGER ) END WHEN + - 56 THEN + - 70 ELSE NULL END / - ( - ( - NULLIF ( - - 73, + AVG ( DISTINCT - 94 ) + + 72 ) ) ) AS col2, + - 97 AS col2 # Datafusion - Types were automatically converted from: @@ -357,7 +357,7 @@ SELECT ALL 8 + - ( 3 ) # 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\(87\) AS col2" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(87\) AS col2" at 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 ( * ) / 87 col2, + ( - - COUNT ( * ) ) AS col2 query I rowsort label-60 @@ -1435,7 +1435,7 @@ SELECT 0 * 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7980 # Datafusion - Expected - -111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(84\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-95\) \+ 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\(\-95\) \* Int64\(84\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-95\) \+ Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 95 * + + ( 84 ) AS col2, COUNT ( * ) * + - 95 + - 16 col2 query I rowsort @@ -2441,7 +2441,7 @@ SELECT + + COUNT ( * ) * - ( - 7 ) - - + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26520 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(96\) \+ Int64\(82\) \* nullif\(Int64\(65\), count\(\*\) \* Int64\(54\) \* avg\(Int64\(8\)\) \* Int64\(\-46\) \* \(\- Int64\(88\)\) \* \(\- CASE Int64\(71\) WHEN \(\- Int64\(27\)\) \* Int64\(\-56\) \+ \(\- Int64\(\-83\)\) THEN Int64\(\-94\) \* \(\- Int64\(\-46\)\) WHEN count\(\*\) \+ Int64\(\-26\) THEN Int64\(\-54\) ELSE NULL END\)\) \* Int64\(\-5\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(96\) \+ Int64\(82\) \* nullif\(Int64\(65\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\) \* avg\(Int64\(8\)\) \* Int64\(\-46\) \* \(\- Int64\(88\)\) \* \(\- CASE Int64\(71\) WHEN \(\- Int64\(27\)\) \* Int64\(\-56\) \+ \(\- Int64\(\-83\)\) THEN Int64\(\-94\) \* \(\- Int64\(\-46\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-26\) THEN Int64\(\-54\) ELSE NULL END\)\) \* Int64\(\-5\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 34 + + 96 + + 82 * + + NULLIF ( + 65, + COUNT ( * ) * 54 * AVG ( 8 ) * - 46 * - ( 88 ) * - + CASE + 71 WHEN - ( 27 ) * + - 56 + - - 83 THEN + - 94 * - - 46 WHEN COUNT ( * ) + - 26 THEN - 54 ELSE NULL END ) * - 5 col1, + 11 AS col1 query I rowsort @@ -2579,7 +2579,7 @@ SELECT DISTINCT - 52 * 26 col2, 94 * 46 # 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\(46\) \+ Int64\(\-91\) AS col1" at position 0 and "\(\- count\(\*\)\) / Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-91\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 46 + - 91 AS col1, - COUNT ( * ) / + 34 AS col1 query I rowsort @@ -3661,7 +3661,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 "Int64\(\-10\) AS col2" at position 0 and "coalesce\(count\(\*\), Int64\(\-85\) \* max\(DISTINCT Int64\(\-18\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-85\) \* max\(DISTINCT Int64\(\-18\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 AS col2, + COALESCE ( COUNT ( * ), - 85 * + + MAX ( DISTINCT - 18 ) ) AS col2 query I rowsort label-686 @@ -4855,7 +4855,7 @@ SELECT + - 60 * - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "\(\- count\(\*\)\) \- Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 43 AS col2, - COUNT ( * ) - - 13 AS col2 query I rowsort @@ -5697,7 +5697,7 @@ SELECT ALL 59 * - 94 * - 18 AS col2 # Datafusion - Expected - 74 # Datafusion - Expected - -96900 # Datafusion - Expected - 131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(74\), \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-84\) \+ Int64\(\-85\)\) AS col2" at position 0 and "CASE Int64\(45\) WHEN Int64\(46\) \* count\(\*\) THEN Int64\(27\) ELSE Int64\(82\) END \+ Int64\(49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(74\), \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-84\) \+ Int64\(\-85\)\) AS col2" at position 0 and "CASE Int64\(45\) WHEN Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(27\) ELSE Int64\(82\) END \+ Int64\(49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( + + 74, - - 60 * + CAST ( NULL AS INTEGER ) + - 84 + - 85 ) AS col2, 17 * - 75 * 76 AS col0, CASE + 45 WHEN + 46 * + COUNT ( * ) THEN + 27 ELSE + 82 END + 49 col2 query I rowsort label-1078 @@ -5732,7 +5732,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\(\*\) 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 @@ -6788,7 +6788,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\(\*\) AS col2" at position 1 have 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 @@ -6902,7 +6902,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\(99\) \* count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-79\), count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -7112,7 +7112,7 @@ SELECT DISTINCT 75 * + 72 # 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\(\-45\) \+ Int64\(64\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 - 45 + + 64 AS col1, - COUNT ( * ) AS col1 query I rowsort label-1346 @@ -7298,7 +7298,7 @@ SELECT + 85 + - 40 / - 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1517 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(37\) \* Int64\(41\) AS col2" at position 0 and "coalesce\(Int64\(6\), \(\- Int64\(0\)\) \* nullif\(\(\- Int64\(49\)\), Int64\(49\)\) \* CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(72\)\)\), count\(\*\) / Int64\(\-46\) \+ Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(37\) \* Int64\(41\) AS col2" at position 0 and "coalesce\(Int64\(6\), \(\- Int64\(0\)\) \* nullif\(\(\- Int64\(49\)\), Int64\(49\)\) \* CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(72\)\)\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-46\) \+ Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 37 * 41 AS col2, COALESCE ( 6, ( - - 0 ) * NULLIF ( - + 49, + 49 ) * CAST ( NULL AS INTEGER ) + - + COUNT ( + 72 ), + COUNT ( * ) / - 46 + 48 ) AS col2 query I rowsort label-1382 @@ -7388,7 +7388,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\(\*\) AS col0" at position 1 have the 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 @@ -7559,7 +7559,7 @@ SELECT + - 35 + - 56 + - 54 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 col1" at position 0 and "count\(DISTINCT Int64\(86\)\) / \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(DISTINCT Int64\(86\)\) / \(\- \(\- 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 ( DISTINCT + 86 ) / - - COUNT ( * ) AS col1 query I rowsort label-1432 @@ -7918,7 +7918,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\(84\) \+ \(\- count\(\*\)\) \+ Int64\(6\) \+ Int64\(\-64\) \+ Int64\(87\)\) AS col0" at position 0 and "Int64\(\-34\) \* \(\- min\(DISTINCT Int64\(\-79\)\)\) \* count\(\*\) AS col0" at position 1 have 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 @@ -8228,7 +8228,7 @@ SELECT + CASE + - 88 WHEN 12 THEN - 41 WHEN - 25 + - + 43 * + 38 * - - 64 THEN N # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(15\) AS col2" at position 0 and "\(\- sum\(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\(\*\) \+ Int64\(15\) AS col2" at position 0 and "\(\- sum\(Int64\(28\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + 15 AS col2, - SUM ( + + 28 ) col2 query I rowsort label-1558 @@ -8566,7 +8566,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\(\*\) 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 @@ -8629,7 +8629,7 @@ NULL # Datafusion - Expected - -635 # Datafusion - Expected - -26 # Datafusion - Expected - -4862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- max\(DISTINCT Int64\(\-26\)\)\)\), Int64\(98\) \* Int64\(4\) \* Int64\(\-49\) \* Int64\(\-16\) / Int64\(\-6\)\) AS col0" at position 1 and "Int64\(\-87\) \+ Int64\(\-12\) \+ \(\- \(\- count\(\*\)\)\) \* Int64\(82\) \+ Int64\(95\) \+ Int64\(76\) \* coalesce\(\(\- Int64\(\-65\)\), sum\(\(\- \(\- nullif\(Int64\(88\), \(\- \(\- Int64\(76\)\)\) \+ Int64\(14\) \+ Int64\(\-87\)\)\)\)\) \- max\(Int64\(38\)\)\) \* \(\- 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 "coalesce\(\(\- \(\- max\(DISTINCT Int64\(\-26\)\)\)\), Int64\(98\) \* Int64\(4\) \* Int64\(\-49\) \* Int64\(\-16\) / Int64\(\-6\)\) AS col0" at position 1 and "Int64\(\-87\) \+ Int64\(\-12\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(82\) \+ Int64\(95\) \+ Int64\(76\) \* coalesce\(\(\- Int64\(\-65\)\), sum\(\(\- \(\- nullif\(Int64\(88\), \(\- \(\- Int64\(76\)\)\) \+ Int64\(14\) \+ Int64\(\-87\)\)\)\)\) \- max\(Int64\(38\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 + + 22 * - + 29, COALESCE ( - - MAX ( DISTINCT - 26 ), 98 * + + 4 * - 49 * - 16 / - 6 ) AS col0, - 87 + - 12 + - - COUNT ( * ) * + + 82 + 95 + + 76 * COALESCE ( - - 65, + SUM ( ALL - - NULLIF ( 88, - - ( ( 76 ) ) + + 14 + - 87 ) ) - + MAX ( + 38 ) ) * - COUNT ( * ) AS col0 query II rowsort @@ -9112,7 +9112,7 @@ SELECT - 62 + + 41 AS col0 # 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\(41\) \+ Int64\(32\) AS col2" at position 0 and "\(\- count\(\*\)\) \* 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\(41\) \+ Int64\(32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 + 32 AS col2, - COUNT ( * ) * 3 AS col2 query I rowsort label-1724 @@ -10065,7 +10065,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\(\*\) 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 @@ -10655,7 +10655,7 @@ SELECT ALL 32 * - 95 + - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(60\)\) THEN Int64\(24\) \+ Int64\(54\) WHEN \(\- Int64\(43\)\) THEN NULL ELSE \(\- count\(\*\)\) END AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(60\)\) THEN Int64\(24\) \+ Int64\(54\) WHEN \(\- Int64\(43\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + CASE CAST ( NULL AS INTEGER ) WHEN - ( + + 60 ) THEN + ( + 24 ) + 54 WHEN - + 43 THEN NULL ELSE - COUNT ( * ) END AS col2, 58 AS col2 query I rowsort @@ -11559,7 +11559,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\(\*\) AS col1" at position 1 have the 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 @@ -12826,7 +12826,7 @@ SELECT COALESCE ( - 86, 55 * ( 49 * 79 ) ) + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(41\) \+ coalesce\(Int64\(91\), CAST\(Int64\(61\) AS Int32\) \* Int64\(4\) \- Int64\(68\) \* \(\- count\(\*\)\)\) \- Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(41\) \+ coalesce\(Int64\(91\), CAST\(Int64\(61\) AS Int32\) \* Int64\(4\) \- Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 AS col2, 41 + COALESCE ( 91, CAST ( 61 AS INTEGER ) * 4 - 68 * - COUNT ( * ) ) - + 51 AS col2 query I rowsort label-2432 @@ -16542,7 +16542,7 @@ SELECT DISTINCT + 80 * - - 88 AS col0, - COUNT ( * ) # 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\(24\) / Int64\(89\) \+ count\(\*\) \* Int64\(81\) 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 "Int64\(24\) / Int64\(89\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(81\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 24 / 89 + + COUNT ( * ) * 81 AS col0, + 75 AS col0 query I rowsort label-3141 @@ -17021,7 +17021,7 @@ SELECT DISTINCT - 58 * + + ( - 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(\(\- Int64\(58\)\)\)\) WHEN \(\- \(\- \(\- \(\- \(\- count\(\*\)\)\)\)\)\) THEN \(\- Int64\(\-80\)\) \- \(\- Int64\(39\)\) END 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 "CASE \(\- count\(\(\- Int64\(58\)\)\)\) WHEN \(\- \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\) THEN \(\- Int64\(\-80\)\) \- \(\- Int64\(39\)\) END 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 CASE - + COUNT ( - + 58 ) WHEN - ( - - ( - - COUNT ( * ) ) ) THEN - - 80 - - + 39 END col0, - 62 AS col0 query I rowsort @@ -17337,7 +17337,7 @@ SELECT ALL ( - COUNT ( * ) ) + + 68 AS col2 # 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 "coalesce\(Int64\(67\), Int64\(18\), count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(77\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(67\), Int64\(18\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(77\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( 67, 18, COUNT ( * ) ) AS col2, - ( COUNT ( 77 ) ) col2 query I rowsort label-3292 @@ -17888,7 +17888,7 @@ SELECT DISTINCT COUNT ( * ) - + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -490 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- count\(\*\)\) \* Int64\(70\) AS col2" at position 0 and "count\(\*\) / \(\- CASE \(\- Int64\(\-46\)\) WHEN Int64\(96\) \* Int64\(34\) THEN NULL WHEN Int64\(38\) \* \(\- Int64\(87\)\) THEN CAST\(Int64\(\-49\) AS Int32\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE \(\- Int64\(\-46\)\) WHEN Int64\(96\) \* Int64\(34\) THEN NULL WHEN Int64\(38\) \* \(\- Int64\(87\)\) THEN CAST\(Int64\(\-49\) AS Int32\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 7 * - + COUNT ( * ) * + 70 AS col2, COUNT ( * ) / - + CASE - - 46 WHEN + + 96 * + 34 THEN NULL WHEN 38 * - + 87 THEN + CAST ( - 49 AS INTEGER ) END AS col2 query II rowsort label-3398 @@ -18068,7 +18068,7 @@ SELECT DISTINCT + 69 - 84 + - - ( - COUNT ( * ) ) * COUNT ( * ) + 22 * - 21 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 8924 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-97\) \* Int64\(\-92\) AS col2" at position 0 and "count\(\*\) \- 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\(\*\) \* Int64\(\-97\) \* Int64\(\-92\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + - 97 * - 92 AS col2, COUNT ( * ) - + 39 AS col2 query I rowsort label-3431 @@ -18089,7 +18089,7 @@ SELECT 99 * - 18 * + COALESCE ( + SUM ( ALL + 80 ), - - 22 * + COUNT ( * ), + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-8\) \* Int64\(74\) \* count\(\*\) \- Int64\(\-55\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-8\) \* Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-55\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 97 * + - 8 * + + ( + 74 ) * COUNT ( * ) - - 55 + ( CAST ( NULL AS INTEGER ) ) col2, + ( + 21 ) AS col2 query II rowsort label-3435 @@ -20238,7 +20238,7 @@ SELECT + 73 AS col0, - 79 # Datafusion - Expected - NULL # Datafusion - Expected - 4272 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / Int64\(\-35\) \+ nullif\(count\(\*\), Int64\(35\) \* Int64\(\-1\) \+ Int64\(76\)\) \- \(\- \(\- CASE Int64\(\-6\) WHEN max\(Int64\(89\)\) THEN Int64\(\-52\) WHEN \(\- Int64\(\-89\)\) THEN Int64\(57\) \* Int64\(\-81\) \+ CAST\(NULL AS Int32\) \+ Int64\(40\) END\)\) AS col2" at position 0 and "Int64\(93\) \* \(\- \(\- sum\(Int64\(46\)\)\)\) \- Int64\(\-71\) \- Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / Int64\(\-35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(35\) \* Int64\(\-1\) \+ Int64\(76\)\) \- \(\- \(\- CASE Int64\(\-6\) WHEN max\(Int64\(89\)\) THEN Int64\(\-52\) WHEN \(\- Int64\(\-89\)\) THEN Int64\(57\) \* Int64\(\-81\) \+ CAST\(NULL AS Int32\) \+ Int64\(40\) END\)\) AS col2" at position 0 and "Int64\(93\) \* \(\- \(\- sum\(Int64\(46\)\)\)\) \- Int64\(\-71\) \- Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 37 / - 35 + + NULLIF ( COUNT ( * ), 35 * - 1 + + 76 ) - - - CASE - 6 WHEN MAX ( 89 ) THEN - 52 WHEN - ( - 89 ) THEN 57 * - 81 + + ( CAST ( NULL AS INTEGER ) ) + 40 END AS col2, + 93 * - - SUM ( ALL 46 ) - + - 71 - 77 AS col2, - 46 + 55 query I rowsort label-3841 @@ -21715,7 +21715,7 @@ SELECT ALL - 51 + + - 78 * + - 7 * - + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(86\) AS col2" at position 0 and "Int64\(84\) \+ \(\- Int64\(\-42\)\) \- Int64\(99\) / CASE Int64\(28\) WHEN CASE Int64\(38\) WHEN \(\- sum\(Int64\(\-11\)\)\) \* Int64\(58\) \- Int64\(\-36\) THEN Int64\(38\) \- Int64\(\-5\) END \* count\(\*\) \+ Int64\(62\) / Int64\(\-67\) THEN NULL WHEN nullif\(Int64\(5\), Int64\(1\) \+ Int64\(\-98\)\) \* Int64\(26\) \+ Int64\(21\) THEN Int64\(97\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col2" at position 0 and "Int64\(84\) \+ \(\- Int64\(\-42\)\) \- Int64\(99\) / CASE Int64\(28\) WHEN CASE Int64\(38\) WHEN \(\- sum\(Int64\(\-11\)\)\) \* Int64\(58\) \- Int64\(\-36\) THEN Int64\(38\) \- Int64\(\-5\) END \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(62\) / Int64\(\-67\) THEN NULL WHEN nullif\(Int64\(5\), Int64\(1\) \+ Int64\(\-98\)\) \* Int64\(26\) \+ Int64\(21\) THEN Int64\(97\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( COUNT ( * ) ) * + + 86 AS col2, 84 + - - 42 - 99 / CASE 28 WHEN CASE ( 38 ) WHEN - SUM ( ALL - 11 ) * 58 - - 36 THEN 38 - - 5 END * + COUNT ( * ) + + 62 / - 67 THEN NULL WHEN NULLIF ( 5, 1 + - 98 ) * + 26 + 21 THEN + 97 END AS col2 query I rowsort label-4127 @@ -21957,7 +21957,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\(\*\) AS col0" at position 1 have the same 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 @@ -22241,7 +22241,7 @@ SELECT ALL + - 73 + + 3 * - + 84 AS col2, COALESCE ( - 53, + 48 ) * - COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 1194 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(42\) \+ \(\- Int64\(66\)\) AS col0" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(42\) \+ \(\- Int64\(66\)\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 30 * 42 + - + 66 AS col0, CAST ( - COUNT ( * ) AS INTEGER ) col0 query I rowsort @@ -22864,7 +22864,7 @@ SELECT DISTINCT ( 71 ) * + + 20 * + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1743 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(15\) AS col0" at position 0 and "Int64\(83\) \* 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\(\*\) \+ Int64\(15\) AS col0" at position 0 and "Int64\(83\) \* Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + 15 AS col0, + 83 * - 21 AS col0 query I rowsort @@ -22985,7 +22985,7 @@ SELECT + ( 78 ) * - - 80 + + - 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97266 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-87\) \* \(\- Int64\(86\)\) AS col2" at position 0 and "count\(\*\) \* \(\- \(\- Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-87\) \* \(\- Int64\(86\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 13 * - 87 * - + 86 AS col2, COUNT ( * ) * - ( - - 72 ) AS col2 query I rowsort label-4366 @@ -23152,7 +23152,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\(\*\) 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 @@ -24264,7 +24264,7 @@ SELECT ALL ( + ( CASE ( COUNT ( * ) ) WHEN + + COUNT ( * ) THEN - ( + - 18 ) END # Datafusion - Datafusion expected results: # Datafusion - Expected - 593 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(\*\)\), Int64\(\-85\)\) \- Int64\(33\) \* Int64\(\-18\) AS col2" at position 0 and "min\(\(\- nullif\(Int64\(\-57\), Int64\(88\) \* \(\- CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-85\)\) \- Int64\(33\) \* Int64\(\-18\) AS col2" at position 0 and "min\(\(\- nullif\(Int64\(\-57\), Int64\(88\) \* \(\- CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + - COUNT ( * ), - 85 ) - + 33 * - 18 AS col2, MIN ( - NULLIF ( + - 57, + + 88 * - CAST ( NULL AS INTEGER ) ) ) AS col2 query I rowsort label-4608 @@ -26081,7 +26081,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\(\*\) AS col1" at position 1 have the 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 @@ -27256,7 +27256,7 @@ SELECT ALL + COUNT ( + + 51 ) * - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(22\) WHEN Int64\(97\) \+ Int64\(16\) THEN Int64\(\-67\) \+ count\(DISTINCT Int64\(34\)\) \* \(\- count\(\*\)\) \+ Int64\(86\) \* Int64\(71\) END 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 "CASE Int64\(22\) WHEN Int64\(97\) \+ Int64\(16\) THEN Int64\(\-67\) \+ count\(DISTINCT Int64\(34\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(86\) \* Int64\(71\) END 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 + CASE + 22 WHEN + 97 + 16 THEN - 67 + + + COUNT ( DISTINCT 34 ) * - COUNT ( * ) + 86 * 71 END AS col1, + 63 AS col1 query II rowsort label-5173 @@ -27268,7 +27268,7 @@ SELECT - 69 * 33 AS col2, - MAX ( + - 80 ) + - MIN ( + NULLIF ( - 78, - 11 ) ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(28\) AS col1" at position 0 and "Int64\(\-91\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(28\) AS col1" at position 0 and "Int64\(\-91\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - 28 AS col1, - 91 - 14 AS col1 query I rowsort label-5175 @@ -28556,7 +28556,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 4207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-39\)\) AS Int32\) \+ min\(Int64\(7\)\) \+ Int64\(\-12\) AS col1" at position 0 and "Int64\(\-20\) \+ \(\- Int64\(\-11\)\) \- \(\- Int64\(34\)\) \+ \(\- Int64\(\-51\)\) \* Int64\(\-82\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-39\)\) AS Int32\) \+ min\(Int64\(7\)\) \+ Int64\(\-12\) AS col1" at position 0 and "Int64\(\-20\) \+ \(\- Int64\(\-11\)\) \- \(\- Int64\(34\)\) \+ \(\- Int64\(\-51\)\) \* Int64\(\-82\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - 39 AS INTEGER ) + MIN ( + 7 ) + - 12 AS col1, - 20 + - - 11 - - + 34 + - ( - 51 ) * + - 82 * - + COUNT ( * ) AS col1 query I rowsort label-5418 @@ -28610,7 +28610,7 @@ SELECT COUNT ( * ) + 30 * + SUM ( ALL - 53 ) + 18 + + - 81 * + 80 AS col2 # Datafusion - Expected - 20 # Datafusion - Expected - -4409 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(65\)\) \+ Int64\(86\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(98\) 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\(86\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 65 + + 86 + - + COUNT ( * ) AS col0, + MIN ( ALL 50 ) + + 49 + - 98 * 46, + + 98 col0 query I rowsort @@ -28680,7 +28680,7 @@ SELECT DISTINCT + 24 - - 61 + + SUM ( + + 54 ) * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- nullif\(\(\- Int64\(\-78\)\), \(\- Int64\(55\)\)\) AS col0" at position 0 and "Int64\(\-96\) / \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- nullif\(\(\- Int64\(\-78\)\), \(\- Int64\(55\)\)\) 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 COUNT ( * ) - NULLIF ( - - 78, - + 55 ) col0, - 96 / + - COUNT ( * ) AS col0 query I rowsort label-5441 @@ -28936,7 +28936,7 @@ SELECT ALL CAST ( 86 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1189 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \- \(\- CAST\(Int64\(9\) AS Int32\)\) \* Int64\(17\) \* Int64\(8\) AS col1" at position 0 and "min\(Int64\(15\)\) \- CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-65\), Int64\(\-61\) \+ Int64\(26\)\)\) \+ Int64\(\-99\) \+ \(\- \(\- count\(\*\)\)\) \- Int64\(\-67\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \- \(\- CAST\(Int64\(9\) AS Int32\)\) \* Int64\(17\) \* Int64\(8\) AS col1" at position 0 and "min\(Int64\(15\)\) \- CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-65\), Int64\(\-61\) \+ Int64\(26\)\)\) \+ Int64\(\-99\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-67\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 35 - - CAST ( + 9 AS INTEGER ) * + 17 * + 8 AS col1, MIN ( ALL + 15 ) - CAST ( NULL AS INTEGER ) * - COALESCE ( - 65, - 61 + 26 ) + - 99 + - - COUNT ( * ) - + - 67 + 18 AS col1 query II rowsort label-5489 @@ -28979,7 +28979,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1435 # Datafusion - Expected - 1302 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(35\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(21\) \* 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\(\-41\) \* Int64\(35\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(21\) \* Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 41 * + 35 * - COUNT ( * ) AS col1, 21 * + 62 AS col1 query I rowsort @@ -29831,7 +29831,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\(\*\) AS col0" at position 1 have the 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 @@ -30764,7 +30764,7 @@ SELECT 17 * + 61 AS col1, 98 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\(\-22\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "count\(DISTINCT Int64\(\-1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(DISTINCT Int64\(\-1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 + - + COUNT ( * ) AS col0, + COUNT ( DISTINCT + - 1 ) col0 query I rowsort label-5842 @@ -30893,7 +30893,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\(\*\) 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: @@ -31382,7 +31382,7 @@ SELECT ALL COUNT ( * ) AS col1, COUNT ( ALL + - 90 ) / - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -63 -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\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 98 AS col0, + COUNT ( * ) + - 64 col0 query II rowsort @@ -33098,7 +33098,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\(\*\) AS col0" at position 1 have the 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 @@ -33191,7 +33191,7 @@ SELECT - 89 + + 77 + 6 # 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 "CASE \(\- Int64\(\-10\)\) WHEN Int64\(99\) \+ count\(\*\) THEN Int64\(4\) / count\(\*\) END / Int64\(\-70\) 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 "CASE \(\- Int64\(\-10\)\) WHEN Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(4\) / count\(Int64\(1\)\) AS count\(\*\) END / Int64\(\-70\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE - - 10 WHEN + 99 + COUNT ( * ) THEN + 4 / + COUNT ( * ) END / - 70 AS col2, + 17 col2 query I rowsort label-6305 @@ -33579,7 +33579,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\(\*\)\) AS col2" at position 0 and "Int64\(93\) \+ count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -34040,7 +34040,7 @@ SELECT - - ( - 47 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* CAST\(Int64\(\-87\) AS Int32\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-87\) AS Int32\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + CAST ( - 87 AS INTEGER ) AS col1, - 19 AS col1 query I rowsort label-6464 @@ -34169,7 +34169,7 @@ SELECT - 91 * 62 + + ( + + COALESCE ( + + 14, - + 51 / COUNT ( + 20 ) - + 47, 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2613 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(\*\), Int64\(\-71\)\)\) AS col1" at position 0 and "Int64\(39\) \* 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 "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-71\)\)\) AS col1" at position 0 and "Int64\(39\) \* Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( COUNT ( * ), - 71 ) AS col1, 39 * 67 AS col1 query I rowsort @@ -34273,7 +34273,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\(\*\) \* 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: @@ -34339,7 +34339,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\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(89\), Int64\(29\)\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -35403,7 +35403,7 @@ SELECT + 2 AS col0, + 45 col1 # Datafusion - Expected - 25 # Datafusion - Expected - 3 # Datafusion - Expected - 174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ Int64\(24\) AS col0" at position 0 and "count\(\*\) \* Int64\(6\) \* 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 "Int64\(1\) \+ Int64\(24\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(6\) \* Int64\(29\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 + 24 col0, + 27 + - 24, COUNT ( * ) * + 6 * + 29 col0 query I rowsort @@ -35978,7 +35978,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\(\*\) 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 @@ -36472,7 +36472,7 @@ SELECT ALL ( 34 ) + - 32 # Datafusion - Expected - -1615 # Datafusion - Expected - -61 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(17\)\), count\(\*\) \* avg\(Int64\(7\)\)\) \* Int64\(95\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(17\)\), count\(Int64\(1\)\) AS count\(\*\) \* avg\(Int64\(7\)\)\) \* Int64\(95\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - + 17, COUNT ( * ) * AVG ( 7 ) ) * + 95 AS col2, + 61 * + + ( - + COUNT ( * ) ), - 30 AS col2 query I rowsort @@ -36695,7 +36695,7 @@ SELECT DISTINCT - 63 + + 34 / 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(\*\), Int64\(62\) \+ max\(DISTINCT Int64\(45\)\) \- Int64\(\-66\) \+ \(\- \(\- min\(Int64\(87\)\)\)\) \+ Int64\(\-74\) / Int64\(\-26\)\)\) \+ Int64\(\-83\) AS col1" at position 0 and "Int64\(97\) \* Int64\(\-55\) \* Int64\(48\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(62\) \+ max\(DISTINCT Int64\(45\)\) \- Int64\(\-66\) \+ \(\- \(\- min\(Int64\(87\)\)\)\) \+ Int64\(\-74\) / Int64\(\-26\)\)\) \+ Int64\(\-83\) AS col1" at position 0 and "Int64\(97\) \* Int64\(\-55\) \* Int64\(48\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - NULLIF ( + COUNT ( * ), 62 + + MAX ( DISTINCT + 45 ) - + - 66 + - - MIN ( ALL 87 ) + - 74 / - 26 ) ) + - 83 AS col1, + 97 * - 55 * 48 / CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-6970 @@ -37044,7 +37044,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\(\*\) AS col2" at position 1 have the 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 @@ -37552,7 +37552,7 @@ SELECT DISTINCT + NULLIF ( + + 52, - 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(86\) \+ Int64\(85\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(86\) \+ Int64\(85\) \+ \(\- 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, + 86 + 85 + - COUNT ( * ) AS col1 query I rowsort label-7133 @@ -40554,7 +40554,7 @@ SELECT COUNT ( * ) - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 1377 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(\-27\) \* Int64\(51\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(\-27\) \* Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 25 AS col0, - 27 * + 51 * - COUNT ( * ) AS col0 query I rowsort @@ -40570,7 +40570,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\(\*\) AS col1" at position 1 have the 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 @@ -40696,7 +40696,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\(\*\) \* CAST\(NULL AS Int32\) ELSE NULL END\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have 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 @@ -41418,7 +41418,7 @@ SELECT - - 44 - + + 38 + + COUNT ( ALL - + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* \(\- nullif\(\(\- count\(Int64\(4\)\)\), \(\- Int64\(25\)\) \* Int64\(27\) \* \(\- 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 "Int64\(\-21\) \* \(\- nullif\(\(\- count\(Int64\(4\)\)\), \(\- Int64\(25\)\) \* Int64\(27\) \* \(\- 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 - 21 * - NULLIF ( - COUNT ( + 4 ), - + 25 * + 27 * - COUNT ( * ) ) AS col1, 49 AS col1 query II rowsort label-7879 @@ -41866,7 +41866,7 @@ SELECT - 61 + + ( - + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -315900 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-90\) \* \(\- CASE \(\- count\(\*\)\) WHEN \(\- count\(DISTINCT Int64\(\-3\)\)\) THEN Int64\(51\) \* Int64\(\-68\) \+ Int64\(60\) \+ \(\- coalesce\(Int64\(\-46\), \(\- Int64\(17\)\) \* \(\- Int64\(\-71\)\) / Int64\(\-45\)\)\) \- Int64\(72\) \+ \(\- Int64\(76\)\) ELSE Int64\(\-18\) END\) 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\(\*\) \* Int64\(\-90\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(DISTINCT Int64\(\-3\)\)\) THEN Int64\(51\) \* Int64\(\-68\) \+ Int64\(60\) \+ \(\- coalesce\(Int64\(\-46\), \(\- Int64\(17\)\) \* \(\- Int64\(\-71\)\) / Int64\(\-45\)\)\) \- Int64\(72\) \+ \(\- Int64\(76\)\) ELSE Int64\(\-18\) END\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - 90 * - CASE - COUNT ( * ) WHEN - ( COUNT ( DISTINCT - 3 ) ) THEN + 51 * - 68 + + ( 60 ) + - COALESCE ( - 46, - + 17 * - - 71 / + - 45 ) - 72 + - + ( + 76 ) ELSE - 18 END AS col1, 62 AS col1 query I rowsort label-7963 @@ -43075,7 +43075,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\(21\) \* count\(DISTINCT Int64\(72\)\) \* Int64\(27\) \* Int64\(\-35\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(26\) \* Int64\(64\) \+ Int64\(22\) \- count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -43544,7 +43544,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\(46\) \+ Int64\(75\) / Int64\(45\) \* 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 @@ -43659,7 +43659,7 @@ SELECT 75 / + + 97 * - NULLIF ( - 52, - 10 ) + - CASE AVG ( - + CAST ( NULL AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 58 -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\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 AS col1, - COUNT ( * ) * - 58 col1 query I rowsort label-8305 @@ -44626,7 +44626,7 @@ SELECT 64 + - 87 + + 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 928 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) \* coalesce\(\(\- Int64\(\-58\)\), \(\- Int64\(\-61\)\) / \(\- count\(\*\)\)\) AS col2" at position 0 and "count\(\*\) \+ CASE Int64\(50\) WHEN CAST\(NULL AS Int32\) THEN Int64\(97\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) \* coalesce\(\(\- Int64\(\-58\)\), \(\- Int64\(\-61\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CASE Int64\(50\) WHEN CAST\(NULL AS Int32\) THEN Int64\(97\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 16 * + COALESCE ( - - 58, - - 61 / + - COUNT ( * ) ) AS col2, COUNT ( * ) + + CASE + 50 WHEN + CAST ( NULL AS INTEGER ) THEN + 97 END AS col2 query II rowsort @@ -45817,7 +45817,7 @@ SELECT 71 * 26 # 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 "Int64\(75\) \+ Int64\(\-72\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(25\) \+ 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\(75\) \+ Int64\(\-72\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(25\) \+ Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 + + - 72 AS col2, - COUNT ( * ) * + 25 + + 72 AS col2 query I rowsort label-8718 @@ -47160,7 +47160,7 @@ SELECT DISTINCT - COALESCE ( 62, + 64 ) col1 # Datafusion - Expected - 93 # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 1 and "Int64\(29\) \* Int64\(\-46\) \+ CASE Int64\(\-41\) WHEN Int64\(\-92\) \+ count\(\*\) THEN Int64\(\-16\) WHEN Int64\(31\) THEN NULL END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 1 and "Int64\(29\) \* Int64\(\-46\) \+ CASE Int64\(\-41\) WHEN Int64\(\-92\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-16\) WHEN Int64\(31\) THEN NULL END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 col1, 18 col0, 29 * - 46 + + CASE - 41 WHEN - 92 + COUNT ( * ) THEN ( - 16 ) WHEN + 31 THEN NULL END AS col0 query I rowsort @@ -48363,7 +48363,7 @@ SELECT + 81 * - NULLIF ( + - 66, - ( - 89 ) * - 94 - COUNT ( * ) ) AS col0 # 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\(\*\)\) 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 ( * ) col0, 30 AS col0 query II rowsort @@ -48598,7 +48598,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\(\*\) AS col0" at position 1 have the 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 @@ -50012,13 +50012,13 @@ SELECT + NULLIF ( + 21, + 71 * - 70 ) / - ( - - 98 ) * + - 7 + - - 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(27\) \+ Int64\(\-19\) 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\(\*\) \* Int64\(27\) \+ Int64\(\-19\) 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 ( * ) * + 27 + - 19 AS col2, + 16 AS col2 # 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 "nullif\(count\(Int64\(87\)\), Int64\(41\) / \(\- \(\- CASE Int64\(\-67\) WHEN Int64\(31\) THEN Int64\(73\) \- Int64\(78\) \+ Int64\(\-55\) ELSE count\(\*\) END\)\) \+ Int64\(97\) \- min\(\(\- Int64\(59\)\)\)\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(87\)\), Int64\(41\) / \(\- \(\- CASE Int64\(\-67\) WHEN Int64\(31\) THEN Int64\(73\) \- Int64\(78\) \+ Int64\(\-55\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\)\) \+ Int64\(97\) \- min\(\(\- Int64\(59\)\)\)\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + COUNT ( ALL 87 ), 41 / - - CASE - 67 WHEN + 31 THEN + 73 - + 78 + + - 55 ELSE COUNT ( * ) END + + 97 - MIN ( - + 59 ) ) AS col2, - 21 AS col2 query I rowsort @@ -50061,7 +50061,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\(\*\) 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 @@ -50183,7 +50183,7 @@ SELECT ALL + 93 * - + 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-34\) \* Int64\(29\) \+ nullif\(Int64\(\-55\), Int64\(87\)\) \- 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\(\-34\) \* Int64\(29\) \+ nullif\(Int64\(\-55\), Int64\(87\)\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - 34 * 29 + ( NULLIF ( - 55, + 87 ) ) - - 33 AS col2 query I rowsort label-9553 @@ -50515,7 +50515,7 @@ SELECT COALESCE ( - 60, + 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4368 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(78\) \* Int64\(56\) 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\(\*\)\) \* Int64\(78\) \* Int64\(56\) 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 ( * ) * + + 78 * 56 AS col1, - 76 AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_17.slt b/data/sqlite/random/expr/slt_good_17.slt index b5072d2..453569b 100644 --- a/data/sqlite/random/expr/slt_good_17.slt +++ b/data/sqlite/random/expr/slt_good_17.slt @@ -775,7 +775,7 @@ SELECT - 15 + 60 + - 96 AS col0 # 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 "\(\- count\(\*\)\) \* Int64\(\-25\) AS col1" at position 0 and "count\(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\(\*\)\) \* Int64\(\-25\) AS col1" at position 0 and "count\(Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - 25 AS col1, + COUNT ( ALL 0 ) AS col1 query I rowsort label-139 @@ -1169,7 +1169,7 @@ SELECT ALL - - ( + 46 ) 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\(\*\)\) 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 ALL - COUNT ( * ) AS col0, 50 AS col0 query II rowsort @@ -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\(\*\) AS col0" at position 0 and "Int64\(\-12\) \+ Int64\(\-81\) \* Int64\(28\) \+ count\(\*\) AS col0" at position 1 have the 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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(\-88\) \- Int64\(13\) \- count\(\*\) \+ \(\- 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 @@ -4845,7 +4845,7 @@ SELECT ALL 85 * + + 12, 72 * COUNT ( * ) + 53 + - 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 3055 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(5\) \* \(\- count\(\*\)\) \+ Int64\(45\) \* 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\(\-53\) AS col1" at position 0 and "Int64\(5\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(45\) \* Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 AS col1, + ( + 5 ) * - COUNT ( * ) + 45 * + 68 AS col1 query II rowsort label-913 @@ -4992,7 +4992,7 @@ SELECT DISTINCT 86 * + - MAX ( - 60 ) # 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\(\*\)\) 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 ( * ) ) col1, - 6 AS col1 query I rowsort @@ -6348,7 +6348,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\(\*\) AS col2" at position 1 have the 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 @@ -8352,7 +8352,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\(99\) \* count\(\*\) AS col1" at position 1 have the same 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 @@ -8426,7 +8426,7 @@ SELECT ALL + CAST ( - - 35 AS INTEGER ) AS col1 # 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 "Int64\(\-89\) \+ Int64\(92\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ 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\(\-89\) \+ Int64\(92\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 89 + + 92 AS col2, - COUNT ( * ) + 7 col2 query I rowsort label-1595 @@ -9394,7 +9394,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\(\*\) AS col0" at position 1 have the 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 @@ -9827,7 +9827,7 @@ SELECT ALL - - 90 + - + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* count\(\*\) \+ CASE count\(\*\) WHEN Int64\(49\) \* coalesce\(Int64\(\-84\), Int64\(\-11\) \* \(\- Int64\(97\)\) \* \(\- Int64\(\-38\)\) \- Int64\(24\)\) THEN Int64\(53\) ELSE NULL END \+ Int64\(\-21\) \+ Int64\(\-53\) 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\(\-58\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(49\) \* coalesce\(Int64\(\-84\), Int64\(\-11\) \* \(\- Int64\(97\)\) \* \(\- Int64\(\-38\)\) \- Int64\(24\)\) THEN Int64\(53\) ELSE NULL END \+ Int64\(\-21\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 58 ) * COUNT ( * ) + + CASE + COUNT ( * ) WHEN + 49 * COALESCE ( - 84, - 11 * - + 97 * - - 38 - + 24 ) THEN 53 ELSE NULL END + - 21 + + - 53 AS col1, 85 AS col1 query I rowsort label-1858 @@ -11663,7 +11663,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\(\*\) AS col0" at position 1 have the 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 @@ -11690,7 +11690,7 @@ SELECT DISTINCT + SUM ( 97 ) * - + COUNT ( * ) * + ( + 50 ) # Datafusion - Expected - -71 # Datafusion - Expected - -75 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "nullif\(\(\- nullif\(Int64\(\-27\), Int64\(9\)\)\), Int64\(89\) / \(\- count\(\*\)\) \+ Int64\(35\)\) 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\(\-71\) AS col2" at position 0 and "nullif\(\(\- nullif\(Int64\(\-27\), Int64\(9\)\)\), Int64\(89\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(35\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 71 AS col2, ( - ( 75 ) ) AS col0, + NULLIF ( + - NULLIF ( - 27, + 9 ), 89 / - COUNT ( * ) + + 35 ) AS col2 query I rowsort @@ -11736,7 +11736,7 @@ SELECT ALL 37 * 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ max\(Int64\(\-6\)\) \- \(\- Int64\(\-70\)\) / Int64\(\-14\) AS col0" at position 0 and "Int64\(\-95\) \- \(\- CAST\(min\(DISTINCT Int64\(\-8\)\) AS Int32\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(\-6\)\) \- \(\- Int64\(\-70\)\) / Int64\(\-14\) AS col0" at position 0 and "Int64\(\-95\) \- \(\- CAST\(min\(DISTINCT Int64\(\-8\)\) AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + MAX ( - 6 ) - - - 70 / - 14 col0, - 95 - - CAST ( MIN ( DISTINCT - 8 ) AS INTEGER ) + - COUNT ( * ) col0 query I rowsort label-2227 @@ -12852,7 +12852,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\(\*\) 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 @@ -13787,7 +13787,7 @@ SELECT ALL - + 40 + - + 42 / COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "count\(\*\) \+ \(\- CAST\(CASE Int64\(69\) WHEN Int64\(64\) \+ \(\- Int64\(\-41\)\) \* Int64\(40\) \- Int64\(9\) \+ Int64\(14\) THEN Int64\(39\) \* \(\- Int64\(\-89\)\) \- Int64\(\-73\) \+ Int64\(20\) / Int64\(37\) \* Int64\(14\) WHEN \(\- min\(Int64\(\-4\)\)\) \* \(\- Int64\(61\) \* Int64\(76\) \+ Int64\(24\)\) THEN Int64\(4\) \* Int64\(4\) \- Int64\(55\) \* Int64\(34\) WHEN CASE Int64\(95\) WHEN Int64\(\-12\) THEN Int64\(\-64\) \+ Int64\(\-40\) / Int64\(54\) END THEN NULL ELSE NULL END AS Int32\)\) \- Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(CASE Int64\(69\) WHEN Int64\(64\) \+ \(\- Int64\(\-41\)\) \* Int64\(40\) \- Int64\(9\) \+ Int64\(14\) THEN Int64\(39\) \* \(\- Int64\(\-89\)\) \- Int64\(\-73\) \+ Int64\(20\) / Int64\(37\) \* Int64\(14\) WHEN \(\- min\(Int64\(\-4\)\)\) \* \(\- Int64\(61\) \* Int64\(76\) \+ Int64\(24\)\) THEN Int64\(4\) \* Int64\(4\) \- Int64\(55\) \* Int64\(34\) WHEN CASE Int64\(95\) WHEN Int64\(\-12\) THEN Int64\(\-64\) \+ Int64\(\-40\) / Int64\(54\) END THEN NULL ELSE NULL END AS Int32\)\) \- Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 84 AS col0, + COUNT ( * ) + - + CAST ( + + CASE + 69 WHEN 64 + - - 41 * + 40 - 9 + + 14 THEN + 39 * + ( - - 89 ) - - 73 + + 20 / + 37 * + 14 WHEN + - MIN ( ALL - 4 ) * - ( 61 * 76 + + 24 ) THEN 4 * + 4 - 55 * 34 WHEN CASE 95 WHEN - 12 THEN - 64 + - 40 / 54 END THEN NULL ELSE NULL END AS INTEGER ) - 27 col0 query I rowsort label-2617 @@ -14416,7 +14416,7 @@ SELECT DISTINCT 65 - 59 + - COALESCE ( - CAST ( - + 87 AS INTEGER ), 79 + NULLIF # Datafusion - Datafusion expected results: # Datafusion - Expected - -5727 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- Int64\(69\)\), count\(\*\) \- Int64\(5\)\)\)\) \* Int64\(83\) AS col0" at position 0 and "sum\(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 "\(\- \(\- nullif\(\(\- Int64\(69\)\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(5\)\)\)\) \* Int64\(83\) AS col0" at position 0 and "sum\(Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - NULLIF ( - + 69, + COUNT ( * ) - 5 ) * + 83 AS col0, SUM ( 40 ) AS col0 query I rowsort @@ -14715,7 +14715,7 @@ SELECT - CAST ( + + 16 AS INTEGER ) AS col0 # 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\(\*\)\) AS col2" at position 0 and "Int64\(10\) \+ Int64\(\-96\) \+ 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\(10\) \+ Int64\(\-96\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + - COUNT ( * ) ) AS col2, 10 + - 96 + + 57 AS col2 query II rowsort label-2794 @@ -14963,7 +14963,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\(\*\) AS col1" at position 1 have the 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 @@ -17061,7 +17061,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 39851 -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\(\-54\) \* Int64\(41\) \* Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-54\) \* Int64\(41\) \* Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 AS col2, - COUNT ( * ) + + - 54 * + + 41 * - 18 AS col2 query I rowsort label-3241 @@ -17858,7 +17858,7 @@ SELECT + 45 - + COALESCE ( - COUNT ( * ), - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-69\)\) \* \(\- 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\(\-69\)\) \* \(\- 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 - - 69 * - COUNT ( * ) AS col2, 30 AS col2 query II rowsort label-3393 @@ -17926,7 +17926,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\(\*\) 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 @@ -17953,7 +17953,7 @@ SELECT + 1, 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -269170 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-82\) \* Int64\(41\) \- Int64\(83\) \+ Int64\(\-60\) \+ nullif\(Int64\(67\), Int64\(56\) \+ Int64\(62\)\) \* \(\- 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\(80\) \* Int64\(\-82\) \* Int64\(41\) \- Int64\(83\) \+ Int64\(\-60\) \+ nullif\(Int64\(67\), Int64\(56\) \+ Int64\(62\)\) \* \(\- 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 80 * - 82 * 41 - 83 + + - 60 + NULLIF ( 67, 56 + + ( + 62 ) ) * - COUNT ( * ) AS col0, + 46 AS col0 query I rowsort label-3411 @@ -18329,7 +18329,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\(\*\) 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\(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 @@ -18382,7 +18382,7 @@ SELECT ALL 71 + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "count\(\*\) \* \(\- CASE count\(\*\) WHEN coalesce\(\(\- Int64\(67\)\), count\(Int64\(36\)\)\) THEN \(\- Int64\(\-10\)\) \+ Int64\(89\) 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\(\-82\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(\(\- Int64\(67\)\), count\(Int64\(36\)\)\) THEN \(\- Int64\(\-10\)\) \+ Int64\(89\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 82 AS col2, COUNT ( * ) * + - CASE + + COUNT ( * ) WHEN + COALESCE ( - ( + + 67 ), + COUNT ( 36 ) ) THEN - - 10 + + 89 END AS col2 query I rowsort label-3493 @@ -19972,7 +19972,7 @@ SELECT DISTINCT MIN ( ALL 30 ) col2 # Datafusion - Expected - -58 # Datafusion - Expected - 136 # Datafusion - Expected - -10 -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\) \+ Int64\(7\) \+ Int64\(70\) \* \(\- 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\(\-58\) AS col1" at position 0 and "Int64\(53\) \+ Int64\(7\) \+ Int64\(70\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 58 col1, 96 + + ( - - 40 ), 53 + + 7 + 70 * - COUNT ( * ) col1 query I rowsort label-3796 @@ -20018,7 +20018,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\(\*\) 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 @@ -21923,7 +21923,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\(\*\) 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 @@ -23809,7 +23809,7 @@ SELECT ALL NULLIF ( + COUNT ( * ), + AVG ( 15 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 1479 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(12\), Int64\(85\)\)\) \+ \(\- CASE Int64\(\-60\) WHEN Int64\(23\) THEN Int64\(\-25\) / \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-6\)\) / Int64\(57\) / \(\- CASE Int64\(66\) WHEN Int64\(\-42\) THEN CAST\(\(\- Int64\(72\)\) AS Int32\) ELSE NULL END\) \+ \(\- sum\(DISTINCT Int64\(\-72\)\)\) / Int64\(20\) ELSE Int64\(\-26\) \+ \(\- count\(\*\)\) END\) / Int64\(80\) AS col1" at position 0 and "Int64\(\-93\) \+ Int64\(93\) \* Int64\(16\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(12\), Int64\(85\)\)\) \+ \(\- CASE Int64\(\-60\) WHEN Int64\(23\) THEN Int64\(\-25\) / \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-6\)\) / Int64\(57\) / \(\- CASE Int64\(66\) WHEN Int64\(\-42\) THEN CAST\(\(\- Int64\(72\)\) AS Int32\) ELSE NULL END\) \+ \(\- sum\(DISTINCT Int64\(\-72\)\)\) / Int64\(20\) ELSE Int64\(\-26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) / Int64\(80\) AS col1" at position 0 and "Int64\(\-93\) \+ Int64\(93\) \* Int64\(16\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + + 12, + 85 ) + + - CASE - 60 WHEN + 23 THEN - 25 / - CAST ( NULL AS INTEGER ) * - - 6 / + 57 / - CASE + + 66 WHEN - 42 THEN + CAST ( + - ( + 72 ) AS INTEGER ) ELSE NULL END + - SUM ( DISTINCT - 72 ) / 20 ELSE - 26 + - COUNT ( * ) END / + + 80 AS col1, - 93 + 93 * + 16 + + 84 AS col1 query I rowsort label-4529 @@ -24097,7 +24097,7 @@ SELECT DISTINCT + - 28 - - 8 # Datafusion - Expected - 1 # Datafusion - Expected - 18 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-18\)\), Int64\(15\) \* \(\- count\(\*\)\) \* Int64\(74\)\) AS col0" at position 1 and "\(\- Int64\(\-82\)\) 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\(\-18\)\), Int64\(15\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(74\)\) AS col0" at position 1 and "\(\- Int64\(\-82\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), NULLIF ( - - 18, + 15 * - COUNT ( * ) * + 74 ) AS col0, - - 82 AS col0 query II rowsort label-4584 @@ -26970,7 +26970,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "sum\(DISTINCT Int64\(57\)\) \+ count\(\*\) \+ \(\- Int64\(\-94\)\) \+ Int64\(74\) / Int64\(\-53\) \+ Int64\(\-40\) \+ \(\- 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\(85\) AS col0" at position 0 and "sum\(DISTINCT Int64\(57\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-94\)\) \+ Int64\(74\) / Int64\(\-53\) \+ Int64\(\-40\) \+ \(\- Int64\(\-24\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 85 AS col0, ( + SUM ( DISTINCT 57 ) ) + + COUNT ( * ) + - - 94 + + + 74 / - 53 + - 40 + - - 24 AS col0 query I rowsort label-5127 @@ -27479,7 +27479,7 @@ SELECT MIN ( + 94 ) + + MIN ( ALL ( - COALESCE ( 33, - - 41 ) ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(74\)\) / Int64\(49\) AS col2" at position 0 and "Int64\(32\) \+ Int64\(\-28\) \+ Int64\(52\) \- max\(DISTINCT Int64\(87\)\) \+ Int64\(\-4\) \* Int64\(\-15\) \* CASE Int64\(24\) WHEN Int64\(\-71\) \* \(\- Int64\(5\)\) THEN NULL WHEN Int64\(\-26\) \+ Int64\(\-94\) \- Int64\(\-16\) \+ \(\- CASE Int64\(57\) WHEN \(\- Int64\(64\)\) THEN NULL WHEN Int64\(29\) THEN \(\- Int64\(\-44\)\) \* \(\- nullif\(Int64\(2\), Int64\(\-48\) \* nullif\(\(\- avg\(Int64\(\-75\)\)\), Int64\(\-34\) \* \(\- count\(\*\)\) / Int64\(32\)\)\)\) \* Int64\(66\) \* \(\- Int64\(\-87\)\) WHEN nullif\(\(\- coalesce\(Int64\(\-30\), Int64\(\-85\)\)\), CAST\(Int64\(\-48\) AS Int32\)\) THEN Int64\(\-77\) ELSE Int64\(85\) \* \(\- Int64\(\-2\)\) \* \(\- nullif\(Int64\(5\), Int64\(98\) \* min\(DISTINCT \(\- Int64\(\-21\)\)\) \* Int64\(94\) \* nullif\(Int64\(57\), count\(\*\) \+ Int64\(11\) \* Int64\(89\)\) \+ max\(Int64\(\-77\)\)\)\) \* Int64\(\-94\) END\) \* Int64\(26\) THEN Int64\(\-16\) \+ Int64\(97\) \* \(\- coalesce\(Int64\(17\) \+ Int64\(\-31\), Int64\(97\) \* Int64\(37\)\)\) ELSE NULL END \+ Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(74\)\) / Int64\(49\) AS col2" at position 0 and "Int64\(32\) \+ Int64\(\-28\) \+ Int64\(52\) \- max\(DISTINCT Int64\(87\)\) \+ Int64\(\-4\) \* Int64\(\-15\) \* CASE Int64\(24\) WHEN Int64\(\-71\) \* \(\- Int64\(5\)\) THEN NULL WHEN Int64\(\-26\) \+ Int64\(\-94\) \- Int64\(\-16\) \+ \(\- CASE Int64\(57\) WHEN \(\- Int64\(64\)\) THEN NULL WHEN Int64\(29\) THEN \(\- Int64\(\-44\)\) \* \(\- nullif\(Int64\(2\), Int64\(\-48\) \* nullif\(\(\- avg\(Int64\(\-75\)\)\), Int64\(\-34\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(32\)\)\)\) \* Int64\(66\) \* \(\- Int64\(\-87\)\) WHEN nullif\(\(\- coalesce\(Int64\(\-30\), Int64\(\-85\)\)\), CAST\(Int64\(\-48\) AS Int32\)\) THEN Int64\(\-77\) ELSE Int64\(85\) \* \(\- Int64\(\-2\)\) \* \(\- nullif\(Int64\(5\), Int64\(98\) \* min\(DISTINCT \(\- Int64\(\-21\)\)\) \* Int64\(94\) \* nullif\(Int64\(57\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(11\) \* Int64\(89\)\) \+ max\(Int64\(\-77\)\)\)\) \* Int64\(\-94\) END\) \* Int64\(26\) THEN Int64\(\-16\) \+ Int64\(97\) \* \(\- coalesce\(Int64\(17\) \+ Int64\(\-31\), Int64\(97\) \* Int64\(37\)\)\) ELSE NULL END \+ Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( 74 ) / 49 AS col2, 32 + - 28 + + 52 - MAX ( DISTINCT + 87 ) + - 4 * - 15 * + CASE 24 WHEN - 71 * - + 5 THEN NULL WHEN - 26 + + - 94 - + - 16 + + - CASE 57 WHEN - + 64 THEN NULL WHEN 29 THEN - - 44 * - NULLIF ( 2, - 48 * NULLIF ( + - AVG ( + - 75 ), - 34 * + - COUNT ( * ) / + 32 ) ) * 66 * - - 87 WHEN + + NULLIF ( - COALESCE ( - 30, + - 85 ), + CAST ( - 48 AS INTEGER ) ) THEN - 77 ELSE 85 * - - 2 * + ( + - ( NULLIF ( 5, 98 * MIN ( DISTINCT - - 21 ) * + + 94 * + ( NULLIF ( 57, COUNT ( * ) + + 11 * + 89 ) ) + MAX ( - 77 ) ) ) ) * - 94 END * + 26 THEN - 16 + 97 * - COALESCE ( 17 + - 31, 97 * + 37 ) ELSE NULL END + + 45 col2 query I rowsort label-5226 @@ -29106,7 +29106,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\(\*\) AS col0" at position 1 have the 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 @@ -30836,7 +30836,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\(\*\) 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 @@ -30978,7 +30978,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\(\*\) 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 @@ -32470,7 +32470,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\(64\)\) \* Int64\(73\) \* Int64\(\-68\) \+ Int64\(66\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -32576,7 +32576,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 "\(\- nullif\(count\(DISTINCT Int64\(\-44\)\), Int64\(16\) \+ Int64\(\-34\)\)\) \* \(\- 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 "\(\- nullif\(count\(DISTINCT Int64\(\-44\)\), Int64\(16\) \+ Int64\(\-34\)\)\) \* \(\- 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 - NULLIF ( COUNT ( DISTINCT - 44 ), + 16 + - 34 ) * - + COUNT ( * ) AS col1, - 19 AS col1 # Datafusion - Types were automatically converted from: @@ -32802,7 +32802,7 @@ SELECT DISTINCT + 92 + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(11\) AS col1" at position 0 and "\(\- CASE Int64\(66\) WHEN Int64\(\-14\) THEN NULL ELSE \(\- Int64\(\-89\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(11\) AS col1" at position 0 and "\(\- CASE Int64\(66\) WHEN Int64\(\-14\) THEN NULL ELSE \(\- Int64\(\-89\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + + 11 AS col1, + ( - CASE 66 WHEN - 14 THEN NULL ELSE - - 89 END ) AS col1 query I rowsort @@ -37417,7 +37417,7 @@ SELECT 6 * + 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- 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\(42\) \+ \(\- 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 + 42 + - + COUNT ( * ) AS col2, + 32 AS col2 # Datafusion - Datafusion expected results: @@ -37996,7 +37996,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\(\*\) AS col0" at position 1 have the 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 @@ -39278,7 +39278,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\(\*\)\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -40181,7 +40181,7 @@ SELECT - + 97 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- Int64\(49\) \+ \(\- count\(\*\)\) \* \(\- Int64\(22\)\) AS col0" at position 0 and "Int64\(27\) \* \(\- Int64\(6\)\) \+ \(\- Int64\(94\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- Int64\(49\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(22\)\) AS col0" at position 0 and "Int64\(27\) \* \(\- Int64\(6\)\) \+ \(\- Int64\(94\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 - 49 + - COUNT ( * ) * - + 22 AS col0, 27 * - + 6 + - ( 94 ) AS col0 query I rowsort @@ -40728,7 +40728,7 @@ SELECT ALL + COUNT ( * ) * + + 36 / - + 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- max\(Int64\(42\)\)\), \(\- Int64\(\-58\)\) / CAST\(NULL AS Int32\) \+ CASE Int64\(84\) WHEN Int64\(16\) THEN Int64\(94\) \+ count\(\*\) ELSE Int64\(49\) \* Int64\(63\) END \- Int64\(70\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- max\(Int64\(42\)\)\), \(\- Int64\(\-58\)\) / CAST\(NULL AS Int32\) \+ CASE Int64\(84\) WHEN Int64\(16\) THEN Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(49\) \* Int64\(63\) END \- Int64\(70\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( - MAX ( ALL + 42 ), ( - - 58 ) / CAST ( NULL AS INTEGER ) + CASE + 84 WHEN + + 16 THEN 94 + + COUNT ( * ) ELSE 49 * + 63 END - + 70 ) * 2 AS col1, CAST ( NULL AS INTEGER ) * + + 49 AS col1 query I rowsort @@ -40820,7 +40820,7 @@ SELECT DISTINCT + 99 * + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -124431 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(82\) \* Int64\(\-37\) \* Int64\(41\) \- Int64\(36\) 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\(\*\)\) \+ Int64\(82\) \* Int64\(\-37\) \* Int64\(41\) \- Int64\(36\) 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 ( * ) + + + 82 * - 37 * + 41 - + 36 AS col2, - 99 AS col2 query I rowsort @@ -41066,7 +41066,7 @@ SELECT DISTINCT - + 57 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "\(\- nullif\(count\(\*\), Int64\(98\) \* nullif\(\(\- coalesce\(Int64\(\-59\), Int64\(\-87\) \+ min\(DISTINCT Int64\(31\)\)\)\), Int64\(89\) \* Int64\(15\) \* Int64\(75\) / Int64\(57\)\) \+ Int64\(2\) / Int64\(40\) \+ Int64\(63\)\)\) \- 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\(43\) AS col1" at position 0 and "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(98\) \* nullif\(\(\- coalesce\(Int64\(\-59\), Int64\(\-87\) \+ min\(DISTINCT Int64\(31\)\)\)\), Int64\(89\) \* Int64\(15\) \* Int64\(75\) / Int64\(57\)\) \+ Int64\(2\) / Int64\(40\) \+ Int64\(63\)\)\) \- Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 AS col1, - NULLIF ( + COUNT ( * ), 98 * + NULLIF ( - COALESCE ( + - 59, - 87 + + + MIN ( DISTINCT + 31 ) ), + 89 * 15 * 75 / + 57 ) + + 2 / + 40 + 63 ) - + 84 AS col1 query I rowsort label-7817 @@ -41375,7 +41375,7 @@ SELECT ALL - COALESCE ( 78, - COUNT ( * ) ) / - 60 + - 84 - + 77 + - 96 * 61 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1919 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(23\) \+ Int64\(\-56\) AS col1" at position 0 and "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 "Int64\(\-81\) \* Int64\(23\) \+ Int64\(\-56\) 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 - 81 * + + 23 + ( - 56 ) AS col1, COUNT ( * ) * + 17 AS col1 query I rowsort label-7877 @@ -41875,7 +41875,7 @@ SELECT 86, - 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(34\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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 "Int64\(34\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 AS col1, 34 * - COUNT ( * ) AS col1 query II rowsort label-7971 @@ -42290,7 +42290,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\(\*\) AS col0" at position 1 have 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 @@ -42570,7 +42570,7 @@ SELECT + + 7 + - 13 * + + 97 * - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(\-16\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(69\) \- 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\(33\) \+ Int64\(\-16\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(69\) \- Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( 33 ) + - 16 * - + COUNT ( * ) col1, + 69 - + 11 AS col1 query II rowsort @@ -43153,7 +43153,7 @@ SELECT ALL + MIN ( DISTINCT 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(\*\), \(\- count\(\*\)\) \* Int64\(85\)\) / CAST\(NULL AS Int32\) \+ \(\- Int64\(1\)\) \- \(\- CASE Int64\(90\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-93\) / Int64\(\-73\) THEN Int64\(33\) / \(\- Int64\(\-36\)\) END\) \* Int64\(\-81\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(85\)\) / CAST\(NULL AS Int32\) \+ \(\- Int64\(1\)\) \- \(\- CASE Int64\(90\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-93\) / Int64\(\-73\) THEN Int64\(33\) / \(\- Int64\(\-36\)\) END\) \* Int64\(\-81\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + NULLIF ( + COUNT ( * ), - COUNT ( * ) * 85 ) / + CAST ( NULL AS INTEGER ) + - + 1 - - CASE + 90 WHEN 55 THEN NULL WHEN - 93 / + - 73 THEN 33 / - - 36 END * - 81 col2, 9 AS col2 query II rowsort label-8214 @@ -43547,7 +43547,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\(\*\) AS col1" at position 1 have the 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 @@ -45491,7 +45491,7 @@ SELECT ALL - COALESCE ( - 9, - - ( - 95 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-42\) 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\(\*\) \* Int64\(\-42\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + - 42 AS col0, + 74 AS col0 query I rowsort @@ -47803,7 +47803,7 @@ SELECT + 53 * - 37 * + - 5 # Datafusion - Expected - 57 # Datafusion - Expected - -720 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CASE count\(\*\) WHEN \(\- count\(\*\)\) THEN NULL ELSE Int64\(\-30\) END AS col0" at position 1 and "\(\- count\(Int64\(\-35\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(\-30\) END AS col0" at position 1 and "\(\- count\(Int64\(\-35\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 / + - ( - 45 ) + + 57 AS col1, + 24 * CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE - 30 END AS col0, - COUNT ( - 35 ) AS col0 query I rowsort label-9097 @@ -48226,7 +48226,7 @@ SELECT ALL MAX ( - 43 ) * + + 57 + + 25 + 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 468 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) / count\(\*\) \* \(\- Int64\(\-52\)\) AS col0" at position 0 and "\(\- min\(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\(9\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-52\)\) AS col0" at position 0 and "\(\- min\(Int64\(58\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 9 ) / COUNT ( * ) * - - 52 col0, - ( MIN ( + 58 ) ) AS col0 query I rowsort label-9177 @@ -48644,7 +48644,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\(\*\) 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 @@ -49193,7 +49193,7 @@ SELECT - COUNT ( * ) * + 1 + + 71 AS col1 # 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 "\(\- \(\- min\(\(\- Int64\(\-16\)\)\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) / Int64\(67\) \* \(\- Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(\(\- Int64\(\-16\)\)\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(67\) \* \(\- Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - MIN ( - - 16 ) ) AS col0, - COUNT ( * ) / + 67 * - + 55 AS col0 query I rowsort label-9362 @@ -49889,7 +49889,7 @@ SELECT 25 - 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "\(\- coalesce\(Int64\(18\), Int64\(11\) \+ Int64\(\-49\) / \(\- CASE Int64\(\-42\) WHEN Int64\(\-96\) \- \(\- nullif\(Int64\(44\), Int64\(76\) \* Int64\(92\) \+ Int64\(4\) \+ Int64\(98\)\)\) \- Int64\(\-18\) \* Int64\(52\) THEN Int64\(45\) WHEN \(\- \(\- count\(\*\)\)\) \* Int64\(21\) \+ \(\- Int64\(\-41\)\) \+ \(\- \(\- count\(\*\)\)\) THEN NULL END\) \* Int64\(50\) \+ \(\- Int64\(0\)\) \* Int64\(35\), Int64\(33\) \* Int64\(\-16\), \(\- nullif\(nullif\(\(\- Int64\(72\)\), Int64\(29\) \* \(\- Int64\(\-19\)\) \* Int64\(62\)\), Int64\(28\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "\(\- coalesce\(Int64\(18\), Int64\(11\) \+ Int64\(\-49\) / \(\- CASE Int64\(\-42\) WHEN Int64\(\-96\) \- \(\- nullif\(Int64\(44\), Int64\(76\) \* Int64\(92\) \+ Int64\(4\) \+ Int64\(98\)\)\) \- Int64\(\-18\) \* Int64\(52\) THEN Int64\(45\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(21\) \+ \(\- Int64\(\-41\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END\) \* Int64\(50\) \+ \(\- Int64\(0\)\) \* Int64\(35\), Int64\(33\) \* Int64\(\-16\), \(\- nullif\(nullif\(\(\- Int64\(72\)\), Int64\(29\) \* \(\- Int64\(\-19\)\) \* Int64\(62\)\), Int64\(28\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 5 AS col1, - COALESCE ( 18, + 11 + - 49 / - CASE - 42 WHEN + - 96 - - NULLIF ( + 44, + 76 * + 92 + 4 + 98 ) - - 18 * 52 THEN + 45 WHEN - - COUNT ( * ) * + 21 + - - 41 + - - COUNT ( * ) THEN NULL END * + 50 + - ( - 0 ) * + 35, 33 * + - 16, - NULLIF ( + NULLIF ( - + 72, 29 * - ( + - 19 ) * 62 ), + 28 ) ) AS col1 query II rowsort @@ -50119,7 +50119,7 @@ SELECT - 39 / - 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, 55 AS col1 query I rowsort label-9539 @@ -51522,7 +51522,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(79\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "CASE Int64\(65\) WHEN Int64\(10\) THEN Int64\(91\) \* Int64\(\-35\) \* Int64\(79\) END \- CAST\(Int64\(59\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "CASE Int64\(65\) WHEN Int64\(10\) THEN Int64\(91\) \* Int64\(\-35\) \* Int64\(79\) END \- CAST\(Int64\(59\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * 79 * + CAST ( NULL AS INTEGER ) AS col0, CASE 65 WHEN + + 10 THEN 91 * + - 35 * 79 END - + CAST ( 59 AS INTEGER ) col0 query I rowsort label-9804 @@ -51907,7 +51907,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\(\*\) 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 @@ -52364,7 +52364,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\(\*\) AS col0" at position 1 have the 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 ebec6e8..50342c0 100644 --- a/data/sqlite/random/expr/slt_good_18.slt +++ b/data/sqlite/random/expr/slt_good_18.slt @@ -1203,7 +1203,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\(\*\) AS col2" at position 1 have the 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 @@ -1498,7 +1498,7 @@ SELECT + + ( + 25 ) + + + 87 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\(\*\)\) 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 col0 query I rowsort @@ -2072,7 +2072,7 @@ SELECT DISTINCT 7 * + 70 * COUNT ( * ) + + 80 / - NULLIF ( 15, + ( - CASE + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- count\(\*\)\), Int64\(42\)\)\) \+ Int64\(11\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(42\)\)\) \+ Int64\(11\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - COUNT ( * ), 42 ) + 11 AS col0, 81 col0 query I rowsort @@ -2843,7 +2843,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\(\*\) 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 @@ -3053,7 +3053,7 @@ SELECT + 20 AS col0, 45 - - 53 * - 11 - + ( ( - - 53 ) ) / + 65 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- 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\(\-90\) \+ \(\- 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 - 90 + - COUNT ( * ) AS col1, 15 AS col1 query I rowsort @@ -3290,7 +3290,7 @@ SELECT ALL - NULLIF ( + ( 49 ), + 12 - - 9 ) + + - 4 AS col1 # 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\(\*\)\) AS col1" at position 0 and "Int64\(28\) \+ \(\- sum\(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 "Int64\(28\) \+ \(\- sum\(DISTINCT Int64\(\-89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 28 + - SUM ( DISTINCT - 89 ) AS col1 query I rowsort @@ -5374,7 +5374,7 @@ SELECT ALL 21 * + ( + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CASE Int64\(33\) WHEN Int64\(43\) THEN NULL WHEN \(\- Int64\(\-21\)\) THEN Int64\(7\) END \* \(\- nullif\(\(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), \(\- \(\- Int64\(66\)\)\)\)\)\), Int64\(44\) \+ coalesce\(Int64\(95\), Int64\(17\) \+ Int64\(\-76\)\) \* Int64\(\-90\)\)\) \* \(\- count\(\*\)\) \- Int64\(83\) \* Int64\(68\) \- CASE \(\- count\(\(\- Int64\(86\)\)\)\) WHEN coalesce\(Int64\(75\), Int64\(50\)\) THEN NULL ELSE Int64\(\-68\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CASE Int64\(33\) WHEN Int64\(43\) THEN NULL WHEN \(\- Int64\(\-21\)\) THEN Int64\(7\) END \* \(\- nullif\(\(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), \(\- \(\- Int64\(66\)\)\)\)\)\), Int64\(44\) \+ coalesce\(Int64\(95\), Int64\(17\) \+ Int64\(\-76\)\) \* Int64\(\-90\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(83\) \* Int64\(68\) \- CASE \(\- count\(\(\- Int64\(86\)\)\)\) WHEN coalesce\(Int64\(75\), Int64\(50\)\) THEN NULL ELSE Int64\(\-68\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 27 AS col2, CASE 33 WHEN + 43 THEN NULL WHEN - ( - 21 ) THEN + 7 END * + - NULLIF ( - ( - ( + + COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - - ( 66 ) ) ) ), 44 + + COALESCE ( + 95, 17 + - 76 ) * - 90 ) * - COUNT ( * ) - 83 * 68 - + CASE - + COUNT ( - ( 86 ) ) WHEN + + COALESCE ( 75, + 50 ) THEN NULL ELSE - 68 END AS col2 query I rowsort @@ -5406,7 +5406,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(\-32\) \- Int64\(\-15\) \+ Int64\(55\) \* CAST\(NULL AS Int32\) \+ count\(\*\) \+ \(\- Int64\(57\)\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(\-32\) \- Int64\(\-15\) \+ Int64\(55\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(57\)\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 AS col1, - 32 - - 15 + + + ( + 55 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) + - + 57 + - 56 AS col1 query I rowsort label-1031 @@ -5690,7 +5690,7 @@ SELECT COALESCE ( ( + NULLIF ( 59, + COUNT ( ALL - - 15 ) * - ( + - 3 ) ) ), - C # Datafusion - Datafusion expected results: # Datafusion - Expected - 3467285 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(22\) \+ Int64\(16\) \* \(\- Int64\(66\)\) \* Int64\(45\) \* \(\- CAST\(Int64\(73\) AS Int32\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "Int64\(89\) / Int64\(56\) \* CASE count\(\*\) WHEN Int64\(\-11\) \+ Int64\(\-29\) THEN Int64\(46\) \* Int64\(95\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(22\) \+ Int64\(16\) \* \(\- Int64\(66\)\) \* Int64\(45\) \* \(\- CAST\(Int64\(73\) AS Int32\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "Int64\(89\) / Int64\(56\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-11\) \+ Int64\(\-29\) THEN Int64\(46\) \* Int64\(95\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 80 * 22 + + 16 * + - ( + 66 ) * 45 * + - CAST ( + + 73 AS INTEGER ) + - ( ( - 85 ) ) AS col1, + 89 / 56 * + + CASE + COUNT ( * ) WHEN - 11 + - 29 THEN + + 46 * + 95 ELSE NULL END col1 query I rowsort label-1084 @@ -6324,7 +6324,7 @@ SELECT - NULLIF ( - 84, - 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 183064 # Datafusion - Expected - 1386 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(47\) \* Int64\(41\) \* Int64\(95\) AS col2" at position 0 and "Int64\(14\) \* \(\- coalesce\(Int64\(\-99\), \(\- \(\- count\(\*\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("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\) \* Int64\(41\) \* Int64\(95\) AS col2" at position 0 and "Int64\(14\) \* \(\- coalesce\(Int64\(\-99\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) + 47 * 41 * + 95 AS col2, 14 * - COALESCE ( + - 99, - ( ( - COUNT ( * ) ) ) ) AS col2 query I rowsort @@ -6626,7 +6626,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(\-73\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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 "Int64\(\-73\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 33 col2, - 73 * - - COUNT ( * ) AS col2 query I rowsort @@ -6637,7 +6637,7 @@ SELECT ALL + 34 + + 58 * ( - + 31 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 167 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-4\) \+ Int64\(44\) \- Int64\(\-58\) \+ \(\- 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\(\-4\) \+ Int64\(44\) \- Int64\(\-58\) \+ \(\- Int64\(\-69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, - 4 + + 44 - - 58 + - - 69 AS col1 query I rowsort @@ -6710,7 +6710,7 @@ SELECT + 84 * - + 53 + + + 27 * - - 33 + - + 86 / ( 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1980 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- Int64\(\-20\)\) \* \(\- 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 "Int64\(\-99\) \* \(\- Int64\(\-20\)\) \* \(\- 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 - 99 * - - 20 * - COUNT ( * ) AS col2, 18 col2 # Datafusion - Datafusion expected results: @@ -6880,7 +6880,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\(\*\) 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 @@ -8376,7 +8376,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10959265 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- nullif\(Int64\(34\), Int64\(\-52\) \* nullif\(Int64\(88\), Int64\(39\)\) \* Int64\(\-50\)\)\) \+ Int64\(75\) \* Int64\(\-41\) \* Int64\(\-99\) \* \(\- Int64\(36\)\) 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\(\*\) \- \(\- nullif\(Int64\(34\), Int64\(\-52\) \* nullif\(Int64\(88\), Int64\(39\)\) \* Int64\(\-50\)\)\) \+ Int64\(75\) \* Int64\(\-41\) \* Int64\(\-99\) \* \(\- Int64\(36\)\) 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 ( * ) - + - NULLIF ( + 34, - 52 * + NULLIF ( + + 88, 39 ) * - 50 ) + 75 * - 41 * - 99 * - + 36 AS col2, - 3 AS col2 query I rowsort label-1593 @@ -9751,7 +9751,7 @@ SELECT 99 * COUNT ( * ) - - COALESCE ( 47, - 30 * + - 41 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(34\) AS col1" at position 0 and "Int64\(10\) \+ 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\(\*\)\) \* Int64\(34\) AS col1" at position 0 and "Int64\(10\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 34 col1, 10 + + 87 AS col1 query I rowsort label-1859 @@ -9904,7 +9904,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\(\*\) 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 @@ -11028,7 +11028,7 @@ SELECT DISTINCT - 22 + + 88 col2, + COUNT ( - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(\-63\) AS col1" at position 0 and "count\(\*\) / \(\- CASE Int64\(20\) WHEN \(\- count\(Int64\(45\)\)\) THEN NULL ELSE CAST\(NULL AS Int32\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(\-63\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE Int64\(20\) WHEN \(\- count\(Int64\(45\)\)\) THEN NULL ELSE CAST\(NULL AS Int32\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 41 + - 63 AS col1, COUNT ( * ) / - CASE + + 20 WHEN - COUNT ( 45 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col1 query I rowsort label-2102 @@ -11903,7 +11903,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -7366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(\*\)\), Int64\(95\)\)\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(\-86\) \+ Int64\(31\) \+ Int64\(32\) \+ Int64\(85\) \+ Int64\(76\) \* Int64\(\-98\) \+ count\(\*\) \* count\(\*\) / Int64\(40\) \* 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 "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(95\)\)\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(\-86\) \+ Int64\(31\) \+ Int64\(32\) \+ Int64\(85\) \+ Int64\(76\) \* Int64\(\-98\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(40\) \* Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( + - COUNT ( * ), + ( + 95 ) ) AS col1, 20 + + - 86 + 31 + + 32 + 85 + + + 76 * - 98 + COUNT ( * ) * + COUNT ( * ) / 40 * 3 AS col1 query I rowsort label-2266 @@ -11955,7 +11955,7 @@ SELECT ALL + 85 / - + 98 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ min\(Int64\(\-4\)\) AS col1" at position 0 and "coalesce\(count\(\*\), Int64\(89\)\) \+ Int64\(67\) \+ count\(\*\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ min\(Int64\(\-4\)\) AS col1" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(89\)\) \+ Int64\(67\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 24 + MIN ( - 4 ) AS col1, COALESCE ( + + COUNT ( * ), 89 ) + + + 67 + + COUNT ( * ) * + 85 col1 query I rowsort @@ -12646,7 +12646,7 @@ SELECT ALL - + ( + 17 ) / + - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 345 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(8\) \* coalesce\(Int64\(43\), 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 "Int64\(55\) AS col1" at position 0 and "Int64\(8\) \* coalesce\(Int64\(43\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 55 AS col1, 8 * COALESCE ( + + 43, COUNT ( * ) ) + + 1 AS col1 query I rowsort label-2406 @@ -12673,7 +12673,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(22\) \* 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\(\-36\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(22\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 * + - COUNT ( * ) AS col2, 22 * + 12 AS col2 query I rowsort label-2411 @@ -12981,7 +12981,7 @@ SELECT 51 * 63 + + MAX ( DISTINCT - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) AS col0" at position 0 and "\(\- CAST\(CASE Int64\(38\) WHEN count\(\*\) \* \(\- \(\- Int64\(\-89\)\)\) \- Int64\(54\) \+ count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) \* Int64\(51\) \+ Int64\(47\) THEN Int64\(28\) WHEN Int64\(94\) THEN \(\- Int64\(33\)\) ELSE NULL END AS Int32\)\) \* Int64\(\-96\) / Int64\(65\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) AS col0" at position 0 and "\(\- CAST\(CASE Int64\(38\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- Int64\(\-89\)\)\) \- Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) \* Int64\(51\) \+ Int64\(47\) THEN Int64\(28\) WHEN Int64\(94\) THEN \(\- Int64\(33\)\) ELSE NULL END AS Int32\)\) \* Int64\(\-96\) / Int64\(65\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 89 AS col0, - CAST ( CASE 38 WHEN + COUNT ( * ) * - - ( + - 89 ) - 54 + + COUNT ( * ) * - CAST ( NULL AS FLOAT8 ) * 51 + + ( + + 47 ) THEN 28 WHEN + 94 THEN - + 33 ELSE NULL END AS INTEGER ) * - 96 / + 65 + + 61 AS col0 query I rowsort @@ -13087,7 +13087,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\(\*\) AS col0" at position 1 have the 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 @@ -13104,7 +13104,7 @@ SELECT 27 * + 53 * + 30 # Datafusion - Expected - -50 # Datafusion - Expected - 99 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \- \(\- Int64\(\-48\)\) AS col1" at position 0 and "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\(\-2\) \- \(\- Int64\(\-48\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 2 - - - 48 col1, COUNT ( * ) - - + 98 AS col1, - 68 AS col0 query I rowsort label-2492 @@ -13882,7 +13882,7 @@ SELECT + COALESCE ( + 66, 14 + - 84 / 39 * - 45 ) * + 13 * ( 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 461596 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) \* count\(\*\) \+ \(\- Int64\(\-85\)\) \* Int64\(56\) \* \(\- Int64\(\-97\)\) \+ Int64\(\-42\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-85\)\) \* Int64\(56\) \* \(\- Int64\(\-97\)\) \+ Int64\(\-42\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 82 * + COUNT ( * ) + - - 85 * + 56 * - - 97 + + - 42 col0, - 65 col0 query I rowsort label-2641 @@ -14206,7 +14206,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\(\*\) AS col1" at position 1 have the 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 @@ -14488,7 +14488,7 @@ SELECT ALL + 45 AS col0, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 174 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(95\) \+ \(\- Int64\(77\)\) \+ \(\- coalesce\(Int64\(\-95\), \(\- count\(Int64\(76\)\)\)\)\) \+ Int64\(61\) 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\(\*\) \* Int64\(95\) \+ \(\- Int64\(77\)\) \+ \(\- coalesce\(Int64\(\-95\), \(\- count\(Int64\(76\)\)\)\)\) \+ Int64\(61\) 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 ( * ) * 95 + - + 77 + - COALESCE ( - 95, - + COUNT ( 76 ) ) + + 61 AS col2, + 50 AS col2 query III rowsort label-2755 @@ -14728,7 +14728,7 @@ SELECT ALL + + 51 * - 67 - - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 782 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ count\(DISTINCT CAST\(Int64\(\-95\) AS Int32\)\) \+ Int64\(48\) \* Int64\(\-80\) / \(\- count\(\(\- Int64\(87\)\)\)\) \- Int64\(23\) \+ Int64\(\-35\) / Int64\(21\) \+ Int64\(13\) \+ \(\- \(\- Int64\(\-57\)\)\) \+ Int64\(\-63\) \- count\(\*\) \* \(\- sum\(Int64\(73\)\)\) / Int64\(13\) \+ \(\- Int64\(32\)\) \* Int64\(92\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ count\(DISTINCT CAST\(Int64\(\-95\) AS Int32\)\) \+ Int64\(48\) \* Int64\(\-80\) / \(\- count\(\(\- Int64\(87\)\)\)\) \- Int64\(23\) \+ Int64\(\-35\) / Int64\(21\) \+ Int64\(13\) \+ \(\- \(\- Int64\(\-57\)\)\) \+ Int64\(\-63\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(73\)\)\) / Int64\(13\) \+ \(\- Int64\(32\)\) \* Int64\(92\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 + COUNT ( DISTINCT + + CAST ( + - 95 AS INTEGER ) ) + 48 * - 80 / + - COUNT ( ALL - + 87 ) - + 23 + + - 35 / + 21 + + 13 + + ( - - ( + ( - 57 ) ) ) + - 63 - + + COUNT ( * ) * - SUM ( + 73 ) / + + 13 + - ( + 32 ) * 92 col0, 69 AS col0 query II rowsort label-2800 @@ -15630,7 +15630,7 @@ SELECT ( - MAX ( - - 8 ) ) * 22 - - 44 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\(\*\)\) AS col0" at position 1 have the 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 ALL - + 45 AS col0, - COUNT ( * ) AS col0 query II rowsort label-2972 @@ -15969,7 +15969,7 @@ SELECT DISTINCT - 70 + - - COUNT ( * ) + - 45 + - MAX ( ALL + 31 ) * - 62 # 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\(\*\)\) 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 ( * ) col1, 6 AS col1 query I rowsort label-3035 @@ -16320,7 +16320,7 @@ SELECT ( - + 55 ) + - COUNT ( * ) # 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\(\*\)\) 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 @@ -18294,7 +18294,7 @@ SELECT ALL - 29 * - 63 + - 19 + - 37 # Datafusion - Expected - 46 # Datafusion - Expected - 7 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) AS col0" at position 0 and "count\(\*\) \* Int64\(20\) \+ Int64\(14\) \+ \(\- Int64\(77\)\) \+ count\(\*\) \* Int64\(20\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) \+ Int64\(14\) \+ \(\- Int64\(77\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( 46 AS INTEGER ) AS col0, + 7 AS col2, COUNT ( * ) * + 20 + 14 + - + 77 + COUNT ( * ) * 20 AS col0 query I rowsort label-3478 @@ -18847,7 +18847,7 @@ SELECT DISTINCT - 43 AS col0, - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(54\)\) \* Int64\(0\) AS col0" at position 0 and "Int64\(36\) \* \(\- 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\(\*\) \* \(\- Int64\(54\)\) \* Int64\(0\) AS col0" at position 0 and "Int64\(36\) \* \(\- Int64\(\-30\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + COUNT ( * ) ) * - ( 54 ) * - 0 AS col0, 36 * - - 30 AS col0 query I rowsort label-3585 @@ -20161,7 +20161,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\(\*\) 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 @@ -20412,7 +20412,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(83\) 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\(\*\) \* Int64\(83\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) * + 83 AS col0, 79 col0 query I rowsort label-3881 @@ -21047,7 +21047,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\(\*\) 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 @@ -21828,7 +21828,7 @@ SELECT 53 * + + ( + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -6295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "\(\- min\(\(\- Int64\(\-83\)\)\)\) \* Int64\(75\) \- \(\- 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 "\(\- min\(\(\- Int64\(\-83\)\)\)\) \* Int64\(75\) \- \(\- Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - MIN ( - - 83 ) * 75 - - - 70 AS col2 query I rowsort @@ -22315,7 +22315,7 @@ SELECT ALL ( + 43 ) + + - 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "Int64\(\-57\) \- count\(\*\) \* 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\(\-31\) AS col2" at position 0 and "Int64\(\-57\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 31 AS col2, - 57 - COUNT ( * ) * + 93 AS col2 query II rowsort label-4242 @@ -22915,7 +22915,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\(\*\) 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 @@ -22993,7 +22993,7 @@ SELECT DISTINCT + COUNT ( * ) + - 27 AS col0 # 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\(12\) \+ Int64\(28\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 12 + 28 col0, ( - COUNT ( * ) ) AS col0 query I rowsort label-4372 @@ -24582,7 +24582,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\(\*\) AS col0" at position 0 and "Int64\(93\) / count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -25237,7 +25237,7 @@ SELECT DISTINCT + + MIN ( 17 ) 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\(\-35\) \+ Int64\(38\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(38\) AS col0" at 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 + 38 AS col0, - COUNT ( * ) AS col0 query I rowsort label-4798 @@ -25372,7 +25372,7 @@ SELECT + 61 + + 5 * - + 98 * - 67 # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 AS col2, + ( - COUNT ( * ) ) AS col2 query I rowsort @@ -26568,7 +26568,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\(\*\) 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 @@ -26944,7 +26944,7 @@ SELECT ALL - 27 - 9 + - 47 * - ( - COUNT ( * ) ) * + - 71 # 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\(0\) \* \(\- count\(\(\- Int64\(\-48\)\)\)\) \- \(\- Int64\(\-48\)\) \* Int64\(55\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-48\)\)\)\) \- \(\- Int64\(\-48\)\) \* 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 + 0 * - COUNT ( - - 48 ) - - - 48 * + 55 AS col2, - ( COUNT ( * ) ) AS col2 query II rowsort label-5126 @@ -28436,7 +28436,7 @@ SELECT 27, + 97 AS 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\(\*\)\) AS col0" at position 0 and "Int64\(\-30\) \+ \(\- min\(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\(\-30\) \+ \(\- min\(Int64\(54\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, - 30 + - MIN ( ALL + 54 ) AS col0 query I rowsort @@ -28755,7 +28755,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- avg\(Int64\(57\)\)\) \* Int64\(40\) \* \(\- \(\- CASE \(\- count\(\*\)\) WHEN Int64\(30\) THEN NULL WHEN Int64\(\-22\) \* count\(Int64\(7\)\) THEN \(\- Int64\(\-11\)\) \* Int64\(\-89\) \+ Int64\(\-30\) \+ Int64\(82\) WHEN Int64\(71\) THEN NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- avg\(Int64\(57\)\)\) \* Int64\(40\) \* \(\- \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(30\) THEN NULL WHEN Int64\(\-22\) \* count\(Int64\(7\)\) THEN \(\- Int64\(\-11\)\) \* Int64\(\-89\) \+ Int64\(\-30\) \+ Int64\(82\) WHEN Int64\(71\) THEN NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 AS col0, CAST ( NULL AS INTEGER ) + - + AVG ( ALL + 57 ) * + 40 * - - CASE + ( - COUNT ( * ) ) WHEN + 30 THEN NULL WHEN - 22 * COUNT ( ALL 7 ) THEN - - 11 * - 89 + - 30 + 82 WHEN 71 THEN NULL END col0 query I rowsort @@ -29516,7 +29516,7 @@ SELECT + SUM ( 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(30\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(89\)\)\) \- 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\(\*\)\) \+ Int64\(30\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(89\)\)\) \- Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) + 30 AS col0, - COUNT ( DISTINCT + + 89 ) - 24 col0 query I rowsort @@ -29753,7 +29753,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\(\*\) AS col1" at position 1 have the 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 @@ -31310,7 +31310,7 @@ SELECT + NULLIF ( 22, + 14 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- min\(\(\- Int64\(62\)\)\) / Int64\(13\) \+ Int64\(10\) AS col2" at position 0 and "count\(\*\) / Int64\(67\) / \(\- 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\(\*\) \- min\(\(\- Int64\(62\)\)\) / Int64\(13\) \+ Int64\(10\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(67\) / \(\- Int64\(94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) - + MIN ( ALL - + 62 ) / + 13 + + + 10 col2, COUNT ( * ) / 67 / - + 94 AS col2 # Datafusion - Types were automatically converted from: @@ -31410,7 +31410,7 @@ SELECT ALL 62 + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "CASE \(\- \(\- CAST\(NULL AS Int32\)\)\) WHEN Int64\(78\) THEN Int64\(\-20\) \+ Int64\(67\) ELSE Int64\(25\) \* \(\- count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CASE \(\- \(\- CAST\(NULL AS Int32\)\)\) WHEN Int64\(78\) THEN Int64\(\-20\) \+ Int64\(67\) ELSE Int64\(25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, CASE - - CAST ( NULL AS INTEGER ) WHEN 78 THEN - 20 + + 67 ELSE + 25 * ( - + COUNT ( * ) ) END AS col0 query II rowsort @@ -32246,7 +32246,7 @@ SELECT DISTINCT + 14 / ( - + 85 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(92\) \+ coalesce\(Int64\(31\), \(\- count\(\*\)\) \* Int64\(25\), Int64\(64\)\) \+ Int64\(\-8\) \* Int64\(14\) 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 "Int64\(72\) \+ Int64\(92\) \+ coalesce\(Int64\(31\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(25\), Int64\(64\)\) \+ Int64\(\-8\) \* Int64\(14\) 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 72 + 92 + COALESCE ( + 31, + - COUNT ( * ) * + 25, + 64 ) + - 8 * 14 AS col1, 94 AS col1 query II rowsort @@ -33332,7 +33332,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-51\) \* Int64\(0\) AS col1" at position 0 and "count\(\*\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-51\) \* Int64\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * - 51 * + 0 AS col1, + COUNT ( * ) + + + 51 AS col1 query II rowsort label-6340 @@ -33956,7 +33956,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\(\*\) \+ count\(\*\) \- Int64\(51\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -34827,7 +34827,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\(\*\) 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 @@ -35613,7 +35613,7 @@ SELECT ALL COUNT ( * ), - ( - 18 ) + - + COUNT ( * ) + 21 * 26 - 20 * + 2 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 1023 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(\-11\) \* Int64\(88\) \- Int64\(\-54\) 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\(\*\) \- Int64\(\-11\) \* Int64\(88\) \- Int64\(\-54\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) - - 11 * + + 88 - - 54 AS col1, - 1 AS col1 query I rowsort label-6776 @@ -35659,7 +35659,7 @@ SELECT - 0 + NULLIF ( + - 89, - 91 * - 92 * + + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3840 # Datafusion - Expected - 3280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-64\) \* Int64\(60\) AS col2" at position 0 and "Int64\(80\) \* 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\(\*\) \* Int64\(\-64\) \* Int64\(60\) AS col2" at position 0 and "Int64\(80\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * - 64 * 60 AS col2, 80 * 41 AS col2 query I rowsort @@ -36039,7 +36039,7 @@ SELECT - 36 / - MIN ( ALL + 92 ) - - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5471 # Datafusion - Expected - -1786 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(72\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(38\) \* 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\(76\) \* Int64\(72\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(38\) \* Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 * + + 72 + + - COUNT ( * ) AS col0, 38 * - 47 col0 # Datafusion - Datafusion expected results: @@ -37871,7 +37871,7 @@ SELECT - MAX ( + 70 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \- Int64\(46\) \+ \(\- max\(Int64\(\-22\)\)\) \+ Int64\(\-29\) \+ count\(\*\) \+ Int64\(45\) 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\(12\) \- Int64\(46\) \+ \(\- max\(Int64\(\-22\)\)\) \+ Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) 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 12 - + 46 + - MAX ( - 22 ) + - 29 + COUNT ( * ) + + 45 AS col0, 81 AS col0 query I rowsort @@ -38026,7 +38026,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\(\*\) 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 @@ -38462,7 +38462,7 @@ SELECT 69 + - + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3666 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) \* Int64\(39\) \+ \(\- count\(\*\)\) \+ nullif\(Int64\(40\), Int64\(40\) \- Int64\(71\) / Int64\(31\) \* Int64\(82\) \- coalesce\(Int64\(\-82\), \(\- count\(\*\)\) \* Int64\(16\)\) \* \(\- Int64\(2\)\) \* \(\- Int64\(57\)\)\) 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 "\(\- Int64\(\-93\)\) \* Int64\(39\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ nullif\(Int64\(40\), Int64\(40\) \- Int64\(71\) / Int64\(31\) \* Int64\(82\) \- coalesce\(Int64\(\-82\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(16\)\) \* \(\- Int64\(2\)\) \* \(\- Int64\(57\)\)\) 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 - - 93 * 39 + - COUNT ( * ) + ( NULLIF ( + 40, ( + + 40 ) - + 71 / 31 * 82 - + + COALESCE ( - 82, - COUNT ( * ) * 16 ) * - + 2 * - + 57 ) ) AS col1, ( - 6 ) AS col1 query II rowsort @@ -38527,7 +38527,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -38624,7 +38624,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\(\*\) 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 @@ -39698,7 +39698,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\(\*\) 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 @@ -40094,7 +40094,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\(\*\) AS col2" at position 1 have 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 @@ -41784,7 +41784,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\(\*\) 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 @@ -43254,7 +43254,7 @@ SELECT - 74 col1, 7 * + 15 + ( + 69 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 29 -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\(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\(30\) 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 30 AS col1, - ( COUNT ( * ) ) + 30 AS col1 query I rowsort @@ -44492,7 +44492,7 @@ SELECT 23 / + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(16\) \* nullif\(CASE Int64\(25\) WHEN \(\- Int64\(\-71\)\) \* \(\- Int64\(60\)\) \+ Int64\(55\) \+ coalesce\(Int64\(\-39\), CAST\(NULL AS Int32\)\) \+ Int64\(74\) THEN count\(\*\) WHEN Int64\(55\) \* Int64\(87\) THEN count\(\*\) END, Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(16\) \* nullif\(CASE Int64\(25\) WHEN \(\- Int64\(\-71\)\) \* \(\- Int64\(60\)\) \+ Int64\(55\) \+ coalesce\(Int64\(\-39\), CAST\(NULL AS Int32\)\) \+ Int64\(74\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(55\) \* Int64\(87\) THEN count\(Int64\(1\)\) AS count\(\*\) END, Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 AS col2, + 16 * NULLIF ( CASE 25 WHEN - - 71 * - + 60 + 55 + COALESCE ( - 39, + + CAST ( NULL AS INTEGER ) ) + 74 THEN + COUNT ( * ) WHEN 55 * 87 THEN + COUNT ( * ) END, + 47 ) AS col2 query I rowsort @@ -45212,7 +45212,7 @@ SELECT - 21 * 98 - + 64 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -744 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(21\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(\-91\) \+ \(\- \(\- CASE avg\(DISTINCT \(\- Int64\(\-60\)\)\) WHEN Int64\(87\) \+ count\(\*\) \- Int64\(67\) \* Int64\(60\) \+ \(\- CAST\(NULL AS Int32\)\) THEN count\(\*\) \* Int64\(37\) \- Int64\(21\) WHEN Int64\(65\) THEN NULL END\)\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(21\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(\-91\) \+ \(\- \(\- CASE avg\(DISTINCT \(\- Int64\(\-60\)\)\) WHEN Int64\(87\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(67\) \* Int64\(60\) \+ \(\- CAST\(NULL AS Int32\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) \- Int64\(21\) WHEN Int64\(65\) THEN NULL END\)\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 38 * 21 + 54 AS col0, - 91 + - - CASE + AVG ( DISTINCT - - 60 ) WHEN 87 + COUNT ( * ) - + 67 * 60 + + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + 37 - + + 21 WHEN + 65 THEN NULL END * + 33 AS col0 query II rowsort @@ -46061,7 +46061,7 @@ SELECT + + 97 * + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "count\(\*\) / \(\- min\(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\(24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(Int64\(\-26\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 24 AS col1, COUNT ( * ) / - MIN ( ALL ( - 26 ) ) AS col1 query II rowsort @@ -46576,7 +46576,7 @@ SELECT ALL + 42 AS col2, 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -54 -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\(\-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\(88\) 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 + 88 AS col1, COUNT ( * ) + - 55 AS col1 query I rowsort @@ -47086,7 +47086,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\(\*\) AS col1" at position 1 have the 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 @@ -48121,7 +48121,7 @@ SELECT ALL + CAST ( 65 AS INTEGER ) / 51 col2 # Datafusion - Expected - 1 # Datafusion - Expected - -10 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / Int64\(71\) AS col1" at position 0 and "Int64\(97\) \+ \(\- count\(\*\)\) \* Int64\(78\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / Int64\(71\) AS col1" at position 0 and "Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 94 / + 71 col1, - 10, 97 + - COUNT ( * ) * 78 AS col1 query I rowsort label-9159 @@ -48941,7 +48941,7 @@ SELECT ALL 50 / 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3895 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-70\)\) \- Int64\(74\) \* \(\- CASE Int64\(89\) WHEN Int64\(\-49\) THEN Int64\(\-81\) WHEN \(\- Int64\(83\)\) THEN NULL WHEN Int64\(\-20\) THEN \(\- count\(\*\)\) \+ Int64\(\-44\) \* \(\- Int64\(\-34\)\) \+ \(\- Int64\(57\)\) \+ count\(\*\) \+ Int64\(8\) / \(\- \(\- count\(\*\)\)\) \* count\(\*\) \- Int64\(16\) END\) / \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(41\) \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-70\)\) \- Int64\(74\) \* \(\- CASE Int64\(89\) WHEN Int64\(\-49\) THEN Int64\(\-81\) WHEN \(\- Int64\(83\)\) THEN NULL WHEN Int64\(\-20\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-44\) \* \(\- Int64\(\-34\)\) \+ \(\- Int64\(57\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(16\) END\) / \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(41\) \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( - 70 ) - 74 * + - CASE + + 89 WHEN - 49 THEN - 81 WHEN - + 83 THEN NULL WHEN - 20 THEN - COUNT ( * ) + - 44 * - - 34 + - + 57 + + COUNT ( * ) + + 8 / + ( + - ( - COUNT ( * ) ) ) * COUNT ( * ) - + + 16 END / - + 16 AS col2, + 41 * + + 95 AS col2 query II rowsort label-9313 @@ -49901,7 +49901,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\(\*\) 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 @@ -50217,7 +50217,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\(\*\) AS col2" at position 1 have the 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 @@ -50667,7 +50667,7 @@ SELECT DISTINCT 38 - - - 57 AS col1 # Datafusion - Expected - -29 # Datafusion - Expected - 16 # Datafusion - Expected - 115849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(54\) \+ Int64\(\-83\) 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\(\*\) \* Int64\(54\) \+ Int64\(\-83\) 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 ( * ) * 54 + - 83 AS col0, 16 col0, - ( 96 ) * 18 * - + 67 + - - NULLIF ( + + 73, - + ( - 11 ) * CAST ( NULL AS INTEGER ) / - 71 ) AS col1 # Datafusion - Datafusion expected results: @@ -50679,7 +50679,7 @@ SELECT 88 AS col2, - 85 * + - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col0" at position 0 and "Int64\(94\) \+ \(\- count\(\*\)\) \* 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\(\-96\)\) AS col0" at position 0 and "Int64\(94\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 96 col0, + 94 + - COUNT ( * ) * + - 40 AS col0 query I rowsort @@ -50801,7 +50801,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-67\) \* \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-67\) \* \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 + - + COUNT ( * ) AS col1, - 67 * - + 9 col1 query I rowsort label-9665 @@ -51971,7 +51971,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\(\*\) \* count\(Int64\(86\)\)\) \* count\(\*\) AS col2" at position 1 have the 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 0a44e96..c46cc3a 100644 --- a/data/sqlite/random/expr/slt_good_19.slt +++ b/data/sqlite/random/expr/slt_good_19.slt @@ -582,7 +582,7 @@ SELECT 63 * 61 + + - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* count\(\*\) \- Int64\(22\) AS col1" at position 0 and "count\(\*\) / Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(22\) 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 + 45 * + COUNT ( * ) - 22 col1, + ( + COUNT ( * ) ) / 43 AS col1 query I rowsort label-104 @@ -3587,7 +3587,7 @@ SELECT DISTINCT + 75, 48 / SUM ( - ( + 62 ) ) * + 53 * + 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7580457 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* Int64\(\-41\) \* Int64\(63\) \* \(\- Int64\(89\)\) \+ Int64\(\-78\) \+ \(\- Int64\(52\)\) \+ Int64\(\-69\) \+ Int64\(\-98\) / \(\- count\(\*\)\) \- Int64\(\-65\) \* Int64\(91\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* Int64\(\-41\) \* Int64\(63\) \* \(\- Int64\(89\)\) \+ Int64\(\-78\) \+ \(\- Int64\(52\)\) \+ Int64\(\-69\) \+ Int64\(\-98\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-65\) \* Int64\(91\) 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 - 33 * + - 41 * + 63 * - + 89 + - 78 + - + 52 + - 69 + - 98 / - COUNT ( * ) - - 65 * 91 AS col1, 34 AS col1 query I rowsort label-675 @@ -4418,7 +4418,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\(\*\) AS col0" at position 1 have the 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 @@ -4643,7 +4643,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\(\*\) 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 @@ -4889,7 +4889,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -5433,7 +5433,7 @@ SELECT DISTINCT + 27 * 81 # Datafusion - Expected - 1 # Datafusion - Expected - -12 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\)" at position 0 and "count\(\*\)" at position 2 have the same name\. Consider aliasing \("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 "count\(Int64\(1\)\) AS count\(\*\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), 6 * + + ( - 2 ) AS col0, + + COUNT ( * ) query I rowsort label-1025 @@ -6740,7 +6740,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\(\*\) AS col0" at position 1 have the 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 @@ -7719,7 +7719,7 @@ SELECT ALL - - 83 / + 42 + - MAX ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col0" at position 0 and "nullif\(nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(\-79\) \* Int64\(99\) \+ Int64\(73\) \* nullif\(Int64\(30\), Int64\(31\)\)\), Int64\(\-97\)\) / Int64\(76\) \- Int64\(\-42\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "nullif\(nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(\-79\) \* Int64\(99\) \+ Int64\(73\) \* nullif\(Int64\(30\), Int64\(31\)\)\), Int64\(\-97\)\) / Int64\(76\) \- Int64\(\-42\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0, + NULLIF ( NULLIF ( - CAST ( NULL AS FLOAT8 ), - 79 * + 99 + 73 * + NULLIF ( 30, + 31 ) ), - 97 ) / 76 - - 42 * + 85 AS col0 query I rowsort label-1467 @@ -8332,7 +8332,7 @@ SELECT ALL - 48 * 3 * + COALESCE ( 65, 50 + 42 * 4 ) + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 556 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(39\) \+ count\(\*\) \* Int64\(88\) AS col0" at position 0 and "Int64\(40\) \* \(\- sum\(Int64\(2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(39\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(88\) AS col0" at position 0 and "Int64\(40\) \* \(\- sum\(Int64\(2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 12 * + 39 + + COUNT ( * ) * + 88 AS col0, 40 * - SUM ( 2 ) col0 query I rowsort label-1585 @@ -9644,7 +9644,7 @@ SELECT ALL + COUNT ( * ) AS col2, 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(\*\) / Int64\(64\) \* Int64\(31\) \+ \(\- count\(\*\)\) / Int64\(46\) \* Int64\(\-89\) 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(64\) \* Int64\(31\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(46\) \* Int64\(\-89\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) / + 64 * 31 + - COUNT ( * ) / + + 46 * - 89 AS col0, 98 AS col0 query II rowsort label-1833 @@ -10319,7 +10319,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\(\-11\) \+ Int64\(\-54\) \+ Int64\(\-35\) \+ count\(\*\) AS col2" at position 0 and "nullif\(\(\- 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: @@ -10521,7 +10521,7 @@ SELECT - 22 + 12 + + 75 + + 85 / 8 # 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\(\*\)\) AS col1" at position 0 and "Int64\(\-13\) \+ Int64\(68\) \- Int64\(71\) / 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\(\-13\) \+ Int64\(68\) \- Int64\(71\) / Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, - 13 + 68 - 71 / - 97 col1 # Datafusion - Datafusion expected results: @@ -10717,7 +10717,7 @@ SELECT DISTINCT - - 36 * + - 9 * + 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2796 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-98\), \(\- \(\- count\(\*\)\)\)\)\) \* Int64\(\-38\) \+ Int64\(\-16\) \* Int64\(\-58\) AS col2" at position 0 and "\(\- nullif\(Int64\(31\), Int64\(\-24\) \+ count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-98\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \* Int64\(\-38\) \+ Int64\(\-16\) \* Int64\(\-58\) AS col2" at position 0 and "\(\- nullif\(Int64\(31\), Int64\(\-24\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - 98, - - COUNT ( * ) ) * - 38 + - 16 * ( - 58 ) AS col2, + ( - NULLIF ( 31, + - 24 + COUNT ( * ) ) ) AS col2 query I rowsort @@ -11413,7 +11413,7 @@ SELECT COUNT ( * ), + 73 - - - 66 + + + ( + 23 ) + - 54 * - CAST ( - COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6237 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- count\(\*\)\)\), count\(\*\) \- Int64\(2\)\) AS col0" at position 0 and "Int64\(78\) \* \(\- Int64\(\-79\)\) \+ Int64\(\-5\) \+ Int64\(51\) \* \(\- count\(\*\)\) / Int64\(\-81\) \+ coalesce\(Int64\(80\), Int64\(\-81\) / 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 "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(2\)\) AS col0" at position 0 and "Int64\(78\) \* \(\- Int64\(\-79\)\) \+ Int64\(\-5\) \+ Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-81\) \+ coalesce\(Int64\(80\), Int64\(\-81\) / Int64\(2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( - - COUNT ( * ), COUNT ( * ) - 2 ) AS col0, + 78 * - - 79 + - 5 + 51 * - COUNT ( * ) / - 81 + + COALESCE ( 80, - 81 / + 2 ) col0 query I rowsort label-2172 @@ -14037,7 +14037,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\(\*\) 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 @@ -14267,7 +14267,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\(\*\) 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 @@ -15308,13 +15308,13 @@ SELECT ALL + 38 - - 4 + - + 44 * SUM ( ( + 0 ) ) - + + 87 + + + 76 AS col1, 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5082 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \* Int64\(\-66\) \* \(\- \(\- count\(Int64\(23\)\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \* Int64\(\-66\) \* \(\- \(\- count\(Int64\(23\)\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 77 AS INTEGER ) * - 66 * - - COUNT ( 23 ) AS col1, - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2134 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(22\) \* Int64\(97\) 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\(\*\) \* Int64\(22\) \* Int64\(97\) 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 ( * ) * 22 * + 97 col1, + 72 AS col1 query I rowsort @@ -16695,7 +16695,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\(\*\) 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 @@ -21777,7 +21777,7 @@ SELECT + + 94 / - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ sum\(Int64\(75\)\) 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\(\*\)\) \+ sum\(Int64\(75\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + + SUM ( 75 ) AS col2, 51 AS col2 query I rowsort label-4138 @@ -22529,7 +22529,7 @@ SELECT + 20 * + 53 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\(\*\)\)\) 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 ( * ) ) col1, 41 AS col1 query I rowsort label-4283 @@ -22986,7 +22986,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\(\*\) 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 @@ -26082,7 +26082,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5396 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-71\) \* Int64\(\-76\) AS col2" at position 0 and "CASE count\(\*\) WHEN Int64\(64\) THEN avg\(Int64\(82\)\) \+ \(\- Int64\(\-84\)\) WHEN Int64\(\-49\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-71\) \* Int64\(\-76\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(64\) THEN avg\(Int64\(82\)\) \+ \(\- Int64\(\-84\)\) WHEN Int64\(\-49\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 71 * + - 76 AS col2, + CASE + + COUNT ( * ) WHEN + 64 THEN AVG ( ALL 82 ) + - - 84 WHEN + - 49 THEN NULL END AS col2 query I rowsort label-4963 @@ -26120,7 +26120,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6336 # Datafusion - Expected - -2784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) / Int64\(57\) \+ \(\- Int64\(\-72\)\) \* nullif\(Int64\(88\), Int64\(3\) \+ Int64\(\-54\) \+ Int64\(84\)\) AS col0" at position 0 and "Int64\(\-87\) \* 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\(\*\)\)\) / Int64\(57\) \+ \(\- Int64\(\-72\)\) \* nullif\(Int64\(88\), Int64\(3\) \+ Int64\(\-54\) \+ Int64\(84\)\) AS col0" at position 0 and "Int64\(\-87\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) / 57 + - - 72 * NULLIF ( 88, + 3 + - 54 + + 84 ) AS col0, + ( + - 87 ) * + 32 col0 query I rowsort @@ -26147,7 +26147,7 @@ SELECT - 49 + 50 AS col2, - 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 457 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(\-77\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(50\) \+ Int64\(44\) \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-77\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(50\) \+ Int64\(44\) \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - - 77 AS col2, + 11 + + 50 + + 44 * + 9 AS col2 query I rowsort @@ -27630,7 +27630,7 @@ SELECT - 50 * - ( - - 28 ) + - 56 + - COALESCE ( + MAX ( 74 ), - + 28 ) # 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\(\*\)\) 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 query I rowsort label-5258 @@ -27684,7 +27684,7 @@ SELECT ALL 47 col1, + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(69\) 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\(\*\) \* Int64\(69\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 69 AS col2, 66 AS col2 query II rowsort @@ -27877,7 +27877,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\(\*\) AS col2" at position 1 have the 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 @@ -28051,7 +28051,7 @@ SELECT - 60 + - COUNT ( * ) # Datafusion - Expected - 41 # Datafusion - Expected - 444912 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(92\) \* Int64\(78\) AS col0" at position 1 and "Int64\(83\) \+ \(\- count\(\*\)\) \+ Int64\(27\) \+ Int64\(93\) / CASE Int64\(89\) WHEN Int64\(58\) THEN Int64\(73\) WHEN avg\(Int64\(87\)\) THEN NULL END / \(\- count\(\*\)\) \+ Int64\(1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(92\) \* Int64\(78\) AS col0" at position 1 and "Int64\(83\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\) \+ Int64\(93\) / CASE Int64\(89\) WHEN Int64\(58\) THEN Int64\(73\) WHEN avg\(Int64\(87\)\) THEN NULL END / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 66 - 25, 62 * + 92 * 78 AS col0, 83 + - COUNT ( * ) + 27 + + + 93 / CASE + 89 WHEN 58 THEN + 73 WHEN + AVG ( ALL + 87 ) THEN NULL END / - COUNT ( * ) + 1 AS col0 query II rowsort label-5337 @@ -28933,7 +28933,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\(\*\), \(\- min\(\(\- Int64\(\-8\)\)\)\) \* \(\- Int64\(31\)\), \(\- Int64\(54\)\)\)\)\) THEN Int64\(9\) \+ Int64\(\-1\) END \+ Int64\(46\) \* Int64\(\-24\) / \(\- Int64\(94\)\) \* 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 @@ -29646,7 +29646,7 @@ SELECT - + 85 col2, ( + + 42 ) + + ( 3 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(1\) 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\(\*\) \+ Int64\(1\) 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 ( * ) + ( 1 ) AS col0, 85 AS col0 query I rowsort @@ -29971,7 +29971,7 @@ SELECT - CAST ( + 9 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \+ \(\- 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 "Int64\(\-25\) \+ \(\- 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 - 25 + - COUNT ( * ) AS col2, 46 AS col2 query I rowsort @@ -29992,7 +29992,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\(8\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -30360,7 +30360,7 @@ SELECT ALL NULLIF ( + 25, - 84 * MIN ( ALL + + 86 ) * + + MIN ( DISTINCT - + ( ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "\(\- max\(Int64\(93\)\)\) \+ \(\- CASE \(\- Int64\(93\)\) WHEN \(\- Int64\(\-69\)\) / Int64\(\-13\) \* Int64\(\-56\) \- Int64\(\-19\) THEN NULL ELSE Int64\(35\) / Int64\(32\) \+ CASE Int64\(35\) WHEN Int64\(3\) THEN Int64\(45\) WHEN Int64\(\-89\) THEN CASE Int64\(\-5\) WHEN Int64\(32\) \* count\(DISTINCT Int64\(\-27\)\) \+ Int64\(69\) THEN Int64\(1\) \* nullif\(\(\- nullif\(Int64\(12\), Int64\(\-35\)\)\), Int64\(\-62\) \* Int64\(\-87\) \- Int64\(94\) / Int64\(\-43\) \+ coalesce\(Int64\(\-14\), Int64\(69\), Int64\(\-7\) \* Int64\(68\)\) \- \(\- Int64\(17\)\)\) \- nullif\(CASE Int64\(40\) WHEN Int64\(\-72\) THEN Int64\(94\) / \(\- count\(\*\)\) END, \(\- avg\(DISTINCT Int64\(11\)\)\)\) \+ Int64\(\-82\) END \* Int64\(6\) END 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\(\-77\) AS col1" at position 0 and "\(\- max\(Int64\(93\)\)\) \+ \(\- CASE \(\- Int64\(93\)\) WHEN \(\- Int64\(\-69\)\) / Int64\(\-13\) \* Int64\(\-56\) \- Int64\(\-19\) THEN NULL ELSE Int64\(35\) / Int64\(32\) \+ CASE Int64\(35\) WHEN Int64\(3\) THEN Int64\(45\) WHEN Int64\(\-89\) THEN CASE Int64\(\-5\) WHEN Int64\(32\) \* count\(DISTINCT Int64\(\-27\)\) \+ Int64\(69\) THEN Int64\(1\) \* nullif\(\(\- nullif\(Int64\(12\), Int64\(\-35\)\)\), Int64\(\-62\) \* Int64\(\-87\) \- Int64\(94\) / Int64\(\-43\) \+ coalesce\(Int64\(\-14\), Int64\(69\), Int64\(\-7\) \* Int64\(68\)\) \- \(\- Int64\(17\)\)\) \- nullif\(CASE Int64\(40\) WHEN Int64\(\-72\) THEN Int64\(94\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END, \(\- avg\(DISTINCT Int64\(11\)\)\)\) \+ Int64\(\-82\) END \* Int64\(6\) END END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 77 AS col1, - MAX ( ALL + 93 ) + - + CASE - + 93 WHEN - - 69 / - 13 * - 56 - - 19 THEN NULL ELSE 35 / + 32 + + CASE + 35 WHEN 3 THEN 45 WHEN - 89 THEN CASE - 5 WHEN + 32 * + + COUNT ( DISTINCT - 27 ) + + 69 THEN 1 * + + NULLIF ( - NULLIF ( + + 12, - 35 ), - 62 * - 87 - + 94 / - 43 + + COALESCE ( - 14, + 69, + - 7 * + 68 ) - - + 17 ) - + + NULLIF ( + CASE 40 WHEN - 72 THEN 94 / - COUNT ( * ) END, - ( AVG ( DISTINCT + 11 ) ) ) + - 82 END * 6 END END AS col1 query II rowsort label-5777 @@ -30706,7 +30706,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\(\*\) 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 @@ -30732,7 +30732,7 @@ SELECT 50 * + + 40 AS col1 # 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 "nullif\(\(\- count\(\*\)\), Int64\(15\) \+ Int64\(\-47\)\) / 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\(\-86\) AS col1" at position 0 and "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(15\) \+ Int64\(\-47\)\) / Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 86 col1, NULLIF ( - COUNT ( * ), + 15 + + - 47 ) / - 20 AS col1 query I rowsort label-5848 @@ -34237,7 +34237,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\(\*\) 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 @@ -34406,7 +34406,7 @@ SELECT - - SUM ( DISTINCT 73 ) * + 71 + - 98 + + - 16 + - - 34 * + - 93 + + 46 * # 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 col2" at position 0 and "CASE \(\- count\(\*\)\) WHEN Int64\(83\) THEN Int64\(84\) ELSE NULL END \- 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\(5\) AS col2" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(83\) THEN Int64\(84\) ELSE NULL END \- Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 5 AS col2, + CASE + - COUNT ( * ) WHEN 83 THEN + 84 ELSE NULL END - - 34 AS col2 query II rowsort label-6550 @@ -34661,7 +34661,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\(\*\) AS col2" at position 1 have the 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 @@ -34721,7 +34721,7 @@ SELECT ALL 41 - 97 / - 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10716 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(2\) \* Int64\(94\) \* Int64\(\-57\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN count\(\*\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(71\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(2\) \* Int64\(94\) \* Int64\(\-57\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(71\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 2 * + 94 * - 57 AS col0, + CASE - 98 WHEN + COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) * 71 ELSE NULL END AS col0 query I rowsort label-6610 @@ -35392,7 +35392,7 @@ SELECT 47, + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -77 -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\(\-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\(17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 AS col0, + COUNT ( * ) * - 77 col0 query I rowsort label-6738 @@ -35912,7 +35912,7 @@ SELECT - 90 + - - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -616 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / \(\- Int64\(\-50\)\) AS col0" at position 0 and "coalesce\(\(\- \(\- Int64\(\-22\)\)\), Int64\(3\) \* count\(\*\)\) \* Int64\(7\) \* 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\(48\) / \(\- Int64\(\-50\)\) AS col0" at position 0 and "coalesce\(\(\- \(\- Int64\(\-22\)\)\), Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(7\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 48 / - - 50 AS col0, COALESCE ( - - ( - 22 ), 3 * ( COUNT ( * ) ) ) * 7 * + 4 AS col0 query I rowsort label-6835 @@ -36172,7 +36172,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\(\*\) 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 @@ -37487,7 +37487,7 @@ SELECT DISTINCT + MAX ( + 0 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -2886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(78\) \* 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\(78\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, 78 * + - 37 col2 query II rowsort label-7138 @@ -38697,7 +38697,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\(78\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -39623,7 +39623,7 @@ SELECT DISTINCT - COUNT ( * ), + 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 11 * - - COUNT ( * ) AS col0, + 14 AS col0 query I rowsort @@ -40160,7 +40160,7 @@ SELECT DISTINCT - COUNT ( DISTINCT 93 ) # Datafusion - Expected - 64 # Datafusion - Expected - 128 # Datafusion - Expected - 97 -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\(74\) \+ 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\(\-64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(74\) \+ Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 64 AS col1, + COUNT ( * ) + 74 + + 53 col1, + + 97 query I rowsort @@ -40238,7 +40238,7 @@ SELECT ALL - 69 + - 26 * + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) / \(\- count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(62\), 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\(70\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(62\), Int64\(73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 70 / - COUNT ( * ) AS col2, + NULLIF ( 62, 73 ) AS col2 query I rowsort label-7664 @@ -43196,7 +43196,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\(\*\)\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -43445,7 +43445,7 @@ SELECT - - COALESCE ( COUNT ( * ), + 35 ) + - 69 + SUM ( 3 ), - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col2" at position 0 and "Int64\(90\) \* \(\- Int64\(\-11\)\) \+ coalesce\(Int64\(82\), Int64\(88\) \* count\(\*\) \+ Int64\(\-63\) \* count\(\*\) \- count\(\*\) \+ \(\- Int64\(48\)\)\) \+ Int64\(11\) / Int64\(22\) \* Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col2" at position 0 and "Int64\(90\) \* \(\- Int64\(\-11\)\) \+ coalesce\(Int64\(82\), Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-63\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(48\)\)\) \+ Int64\(11\) / Int64\(22\) \* Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 87 col2, + 90 * - - 11 + + COALESCE ( + 82, + 88 * COUNT ( * ) + - 63 * + ( + COUNT ( * ) ) - ( COUNT ( * ) ) + - + 48 ) + + 11 / 22 * - 9 col2 query I rowsort label-8282 @@ -43552,7 +43552,7 @@ SELECT DISTINCT - 45 * - - 87 * 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(94\) WHEN Int64\(\-23\) \* Int64\(41\) \* \(\- Int64\(\-97\)\) THEN \(\- Int64\(46\)\) WHEN CAST\(Int64\(\-52\) AS Int32\) THEN Int64\(66\) \* \(\- count\(\*\)\) \* Int64\(25\) WHEN Int64\(\-15\) THEN NULL END \+ Int64\(\-30\) / \(\- Int64\(32\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(94\) WHEN Int64\(\-23\) \* Int64\(41\) \* \(\- Int64\(\-97\)\) THEN \(\- Int64\(46\)\) WHEN CAST\(Int64\(\-52\) AS Int32\) THEN Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(25\) WHEN Int64\(\-15\) THEN NULL END \+ Int64\(\-30\) / \(\- Int64\(32\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE 94 WHEN - 23 * 41 * - - 97 THEN - + ( + 46 ) WHEN + + CAST ( - 52 AS INTEGER ) THEN + 66 * - + COUNT ( * ) * + 25 WHEN - 15 THEN NULL END + + - 30 / - + 32 AS col1, 85 col1 query I rowsort label-8302 @@ -44568,7 +44568,7 @@ SELECT DISTINCT 73 - - 8 + + 31 - 58 * - - 26 * + - 68 * + - ( + COUNT ( * ) ) + # 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\(\*\)\) AS col1" at position 0 and "Int64\(83\) / 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\(83\) / Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 83 / 17 AS col1 query I rowsort label-8495 @@ -46357,7 +46357,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\(\*\) 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 @@ -46555,7 +46555,7 @@ SELECT ALL 7 * - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ Int64\(39\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(16\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ Int64\(39\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(16\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 78 + + + 39 + - COUNT ( * ) AS col2, + 16 - - 4 AS col2 query I rowsort label-8870 @@ -48676,7 +48676,7 @@ SELECT ALL + 76 + - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(\-34\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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 "Int64\(\-34\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 31 AS col0, - 34 + - COUNT ( * ) col0 query I rowsort @@ -48917,7 +48917,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-66\), count\(\*\) \- Int64\(21\) \+ Int64\(\-90\)\)\) \+ Int64\(2\) \+ Int64\(\-86\) AS col1" at position 0 and "nullif\(\(\- \(\- max\(Int64\(97\)\)\)\), CASE \(\- count\(\*\)\) WHEN \(\- Int64\(22\)\) THEN count\(\*\) \* \(\- Int64\(41\)\) ELSE CAST\(NULL AS Int32\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-66\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) \+ Int64\(\-90\)\)\) \+ Int64\(2\) \+ Int64\(\-86\) AS col1" at position 0 and "nullif\(\(\- \(\- max\(Int64\(97\)\)\)\), CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(22\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(41\)\) ELSE CAST\(NULL AS Int32\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( + ( + - 66 ), COUNT ( * ) - ( + 21 ) + - 90 ) + 2 + - 86 AS col1, + NULLIF ( - - MAX ( ALL 97 ), CASE - COUNT ( * ) WHEN - + ( 22 ) THEN + COUNT ( * ) * - + 41 ELSE + ( + CAST ( NULL AS INTEGER ) ) END ) AS col1 query I rowsort @@ -50007,7 +50007,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\(\*\) WHEN Int64\(\-54\) \* Int64\(\-65\) THEN Int64\(\-75\) ELSE Int64\(0\) \* count\(Int64\(74\) \* Int64\(92\)\) END \* count\(\*\) AS col2" at position 1 have the 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 @@ -50918,7 +50918,7 @@ SELECT DISTINCT - 6 - + 37 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4823 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(39\) WHEN \(\- Int64\(80\)\) \* count\(\*\) \* Int64\(\-40\) THEN Int64\(\-1\) END \- Int64\(\-71\) AS col0" at position 0 and "Int64\(91\) \* 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 "CASE Int64\(39\) WHEN \(\- Int64\(80\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-40\) THEN Int64\(\-1\) END \- Int64\(\-71\) AS col0" at position 0 and "Int64\(91\) \* Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE 39 WHEN ( - + 80 ) * COUNT ( * ) * - 40 THEN - 1 END - - 71 AS col0, 91 * - 53 AS col0 query I rowsort @@ -51454,7 +51454,7 @@ SELECT + ( 68 ) * - 14 + - 72 - 87 * - + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7400 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-68\) WHEN Int64\(\-74\) THEN Int64\(10\) WHEN Int64\(\-96\) THEN NULL WHEN Int64\(\-52\) THEN Int64\(48\) ELSE Int64\(\-99\) \+ \(\- count\(\*\)\) END\) \* Int64\(74\) AS col2" at position 0 and "Int64\(75\) / Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-68\) WHEN Int64\(\-74\) THEN Int64\(10\) WHEN Int64\(\-96\) THEN NULL WHEN Int64\(\-52\) THEN Int64\(48\) ELSE Int64\(\-99\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* Int64\(74\) AS col2" at position 0 and "Int64\(75\) / Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CASE - 68 WHEN - 74 THEN 10 WHEN - 96 THEN NULL WHEN - 52 THEN 48 ELSE ( - 99 ) + - COUNT ( * ) END * 74 AS col2, 75 / - 57 col2 query I rowsort label-9805 @@ -51924,7 +51924,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\(\*\) 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 6543dc9..88ab399 100644 --- a/data/sqlite/random/expr/slt_good_2.slt +++ b/data/sqlite/random/expr/slt_good_2.slt @@ -1629,7 +1629,7 @@ SELECT ALL - 44 AS col0 # Datafusion - Expected - 97 # Datafusion - Expected - 24 # Datafusion - Expected - -7341 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- CAST\(Int64\(94\) AS Int32\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(53\)\) \+ Int64\(89\) \* Int64\(\-81\) \+ Int64\(\-79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- CAST\(Int64\(94\) AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(53\)\) \+ Int64\(89\) \* Int64\(\-81\) \+ Int64\(\-79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 + - CAST ( + 94 AS INTEGER ) * - COUNT ( * ) AS col0, 24, - ( + 53 ) + + 89 * - 81 + - 79 AS col0 query I rowsort label-308 @@ -1782,7 +1782,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\(\-19\) \* count\(\*\) \+ Int64\(98\) \+ CASE Int64\(63\) WHEN Int64\(57\) THEN Int64\(81\) ELSE NULL END \+ Int64\(84\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(98\) \+ CASE Int64\(63\) WHEN Int64\(57\) THEN Int64\(81\) ELSE NULL END \+ 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 - 19 * + COUNT ( * ) + + 98 + + CASE 63 WHEN 57 THEN + 81 ELSE NULL END + + 84 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -2329,7 +2329,7 @@ SELECT 44 * - 95 + + 28 - ( - 83 ) col0, - 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 1425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ \(\- \(\- sum\(Int64\(7\)\)\)\) \- \(\- nullif\(Int64\(68\), Int64\(38\) / Int64\(\-5\) \+ Int64\(\-43\)\)\) \+ nullif\(count\(\*\), \(\- count\(\*\)\) \+ Int64\(54\)\) \* Int64\(12\) AS col1" at position 0 and "Int64\(25\) \* \(\- Int64\(\-57\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ \(\- \(\- sum\(Int64\(7\)\)\)\) \- \(\- nullif\(Int64\(68\), Int64\(38\) / Int64\(\-5\) \+ Int64\(\-43\)\)\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(54\)\) \* Int64\(12\) AS col1" at position 0 and "Int64\(25\) \* \(\- Int64\(\-57\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 14 + - ( - SUM ( + 7 ) ) - - NULLIF ( + 68, + + 38 / + - 5 + + ( - 43 ) ) + + NULLIF ( + COUNT ( * ), - COUNT ( * ) + 54 ) * + 12 AS col1, 25 * - ( - 57 ) AS col1 query I rowsort @@ -2444,7 +2444,7 @@ SELECT DISTINCT - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 83 -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\(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\(44\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - ( - + 44 ) ) col0, COUNT ( * ) * + 83 AS col0 query I rowsort @@ -3533,7 +3533,7 @@ SELECT ALL - ( 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -792 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(33\)\) \* \(\- CASE \(\- count\(\*\)\) WHEN Int64\(56\) THEN Int64\(44\) \* Int64\(\-49\) WHEN Int64\(79\) \* \(\- Int64\(\-7\)\) \+ Int64\(27\) THEN Int64\(\-49\) ELSE Int64\(4\) END\) \* Int64\(6\) 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 "min\(Int64\(33\)\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(56\) THEN Int64\(44\) \* Int64\(\-49\) WHEN Int64\(79\) \* \(\- Int64\(\-7\)\) \+ Int64\(27\) THEN Int64\(\-49\) ELSE Int64\(4\) END\) \* Int64\(6\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( + 33 ) * + - CASE - COUNT ( * ) WHEN + 56 THEN + 44 * + - 49 WHEN + 79 * - - 7 + 27 THEN - 49 ELSE 4 END * 6 AS col0, + 41 AS col0 query I rowsort @@ -4189,7 +4189,7 @@ SELECT ALL - 78 * - 59 * + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(\-87\)\) \* Int64\(68\) / Int64\(25\) \+ nullif\(Int64\(91\), Int64\(\-2\)\) \* CASE \(\- min\(Int64\(63\)\)\) WHEN Int64\(\-45\) \* Int64\(79\) \- Int64\(\-78\) THEN Int64\(\-30\) WHEN Int64\(89\) \- \(\- Int64\(\-35\)\) THEN CAST\(NULL AS Int32\) ELSE NULL END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-87\)\) \* Int64\(68\) / Int64\(25\) \+ nullif\(Int64\(91\), Int64\(\-2\)\) \* CASE \(\- min\(Int64\(63\)\)\) WHEN Int64\(\-45\) \* Int64\(79\) \- Int64\(\-78\) THEN Int64\(\-30\) WHEN Int64\(89\) \- \(\- Int64\(\-35\)\) THEN CAST\(NULL AS Int32\) ELSE NULL END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - - 87 * + 68 / 25 + NULLIF ( 91, - 2 ) * CASE + - MIN ( + 63 ) WHEN - 45 * + 79 - - 78 THEN - 30 WHEN 89 - - - 35 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END col0, - 3 AS col0 query I rowsort @@ -5403,7 +5403,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / Int64\(\-73\) \* \(\- count\(\*\)\) \- Int64\(\-72\) AS col2" at position 0 and "nullif\(Int64\(\-91\), Int64\(59\) \+ count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / Int64\(\-73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-72\) AS col2" at position 0 and "nullif\(Int64\(\-91\), Int64\(59\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 / - 73 * - COUNT ( * ) - + - 72 AS col2, NULLIF ( - 91, + 59 + + + COUNT ( * ) ) AS col2 query I rowsort label-1036 @@ -5758,7 +5758,7 @@ SELECT + - 30 * + ( + 19 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN Int64\(75\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-66\) / Int64\(58\) THEN Int64\(\-86\) \+ Int64\(\-38\) / Int64\(\-71\) WHEN \(\- Int64\(\-53\)\) THEN Int64\(14\) ELSE NULL END AS col0" at position 0 and "Int64\(73\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN Int64\(75\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-66\) / Int64\(58\) THEN Int64\(\-86\) \+ Int64\(\-38\) / Int64\(\-71\) WHEN \(\- Int64\(\-53\)\) THEN Int64\(14\) ELSE NULL END AS col0" at position 0 and "Int64\(73\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + 32 WHEN + 75 * - CAST ( NULL AS INTEGER ) + - 66 / + 58 THEN - 86 + - 38 / - 71 WHEN - - 53 THEN + 14 ELSE NULL END AS col0, 73 / - - COUNT ( * ) AS col0 query I rowsort label-1106 @@ -5909,7 +5909,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\(\*\) 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 @@ -6899,7 +6899,7 @@ SELECT DISTINCT + 57 * - + ( 59 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(43\) WHEN Int64\(68\) THEN Int64\(60\) WHEN Int64\(49\) THEN NULL WHEN Int64\(49\) THEN \(\- count\(\*\)\) ELSE Int64\(\-2\) END 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 "CASE Int64\(43\) WHEN Int64\(68\) THEN Int64\(60\) WHEN Int64\(49\) THEN NULL WHEN Int64\(49\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(\-2\) END AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE + 43 WHEN 68 THEN + 60 WHEN 49 THEN NULL WHEN + + 49 THEN - COUNT ( * ) ELSE - 2 END col1, + 47 AS col1 query I rowsort @@ -7148,7 +7148,7 @@ SELECT 73 - - CASE - + 99 WHEN - 74 * - NULLIF ( CASE + - 42 WHEN - + 62 + + + N # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "CAST\(Int64\(23\) AS Int32\) \+ Int64\(69\) \+ count\(\*\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "CAST\(Int64\(23\) AS Int32\) \+ Int64\(69\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 9 AS col0, + CAST ( 23 AS INTEGER ) + + 69 + + COUNT ( * ) + - 80 AS col0 query I rowsort label-1376 @@ -7714,7 +7714,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\(\*\) 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 @@ -11958,7 +11958,7 @@ SELECT + 41 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) query I rowsort label-2314 @@ -13052,7 +13052,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\(\*\) AS col0" at position 1 have the 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 @@ -13254,7 +13254,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\(\*\) 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: @@ -14010,7 +14010,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\(\*\) 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 @@ -16011,7 +16011,7 @@ SELECT ALL 21 AS col2, + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-28\)\) \* Int64\(1\) AS col1" at position 0 and "Int64\(22\) \+ \(\- max\(Int64\(27\)\)\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-28\)\) \* Int64\(1\) AS col1" at position 0 and "Int64\(22\) \+ \(\- max\(Int64\(27\)\)\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - - 28 * + 1 AS col1, 22 + - + MAX ( + 27 ) + + 31 AS col1 query I rowsort @@ -16896,7 +16896,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\(\*\) 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 @@ -17265,7 +17265,7 @@ SELECT + 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col1" at position 0 and "Int64\(59\) \* count\(\*\) \+ \(\- Int64\(66\)\) \+ sum\(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\(\-32\) AS col1" at position 0 and "Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(66\)\) \+ sum\(Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 32 AS col1, + 59 * + COUNT ( * ) + + - ( + + 66 ) + SUM ( 68 ) AS col1 query I rowsort @@ -19245,7 +19245,7 @@ SELECT - + COUNT ( * ) + - ( 76 ) + + 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(48\), \(\- Int64\(82\)\) \- Int64\(\-47\) \* Int64\(\-95\) \* Int64\(9\) \* Int64\(12\) \- \(\- \(\- avg\(Int64\(80\)\)\)\)\) \- Int64\(\-69\) \+ Int64\(80\) \* Int64\(\-91\) \+ count\(\*\) \+ \(\- \(\- nullif\(\(\- count\(\*\)\), \(\- count\(\*\)\)\)\)\) \* Int64\(\-34\) \* Int64\(49\) \+ Int64\(\-24\) \* Int64\(\-64\) / count\(\*\) \* Int64\(\-2\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(48\), \(\- Int64\(82\)\) \- Int64\(\-47\) \* Int64\(\-95\) \* Int64\(9\) \* Int64\(12\) \- \(\- \(\- avg\(Int64\(80\)\)\)\)\) \- Int64\(\-69\) \+ Int64\(80\) \* Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \* Int64\(\-34\) \* Int64\(49\) \+ Int64\(\-24\) \* Int64\(\-64\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-2\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( 48, + - ( 82 ) - - 47 * + - 95 * 9 * 12 - - - AVG ( ALL + 80 ) ) - - 69 + + 80 * + - 91 + COUNT ( * ) + - - NULLIF ( - COUNT ( * ), + + ( - COUNT ( * ) ) ) * + - 34 * + + 49 + + - 24 * - 64 / COUNT ( * ) * + - 2 AS col0, + 56 AS col0 query I rowsort @@ -19821,7 +19821,7 @@ NULL # 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 "\(\- CASE CASE Int64\(84\) WHEN Int64\(3\) THEN \(\- Int64\(96\)\) ELSE NULL END WHEN Int64\(\-93\) THEN \(\- count\(\*\)\) END\) AS col2" at position 0 and "Int64\(11\) \+ 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 "\(\- CASE CASE Int64\(84\) WHEN Int64\(3\) THEN \(\- Int64\(96\)\) ELSE NULL END WHEN Int64\(\-93\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CASE + CASE + 84 WHEN + 3 THEN - + 96 ELSE NULL END WHEN - 93 THEN - + COUNT ( * ) END AS col2, 11 + - 17 AS col2 query I rowsort label-3832 @@ -21313,7 +21313,7 @@ NULL # Datafusion - Expected - -104 # Datafusion - Expected - -1 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT \(\- Int64\(\-62\)\)\)\) \- \(\- Int64\(\-42\)\) AS col0" at position 0 and "coalesce\(\(\- count\(\*\)\), \(\- count\(Int64\(86\)\)\) \* Int64\(57\) / Int64\(62\) \- 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 "\(\- sum\(DISTINCT \(\- Int64\(\-62\)\)\)\) \- \(\- Int64\(\-42\)\) AS col0" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(86\)\)\) \* Int64\(57\) / Int64\(62\) \- Int64\(\-99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + SUM ( DISTINCT - - 62 ) - - - 42 AS col0, COALESCE ( - COUNT ( * ), - COUNT ( 86 ) * + + ( 57 ) / 62 - - 99 ) AS col0, + 21 query I rowsort label-4116 @@ -21639,7 +21639,7 @@ SELECT DISTINCT - 36 + - 91 * COUNT ( * ) - 27 AS col0 # Datafusion - Expected - -29 # Datafusion - Expected - -67680 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(15\) WHEN \(\- \(\- count\(\*\)\)\) THEN NULL WHEN count\(\*\) \+ Int64\(\-74\) THEN Int64\(\-51\) \* \(\- count\(\*\)\) \* \(\- count\(\*\)\) \+ min\(Int64\(60\)\) \+ \(\- Int64\(\-25\)\) \* nullif\(Int64\(65\), Int64\(46\) \* Int64\(50\)\) \* \(\- Int64\(\-82\)\) \* \(\- sum\(Int64\(\-29\)\)\) \+ Int64\(35\) ELSE Int64\(31\) END \+ Int64\(\-60\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(15\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-74\) THEN Int64\(\-51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ min\(Int64\(60\)\) \+ \(\- Int64\(\-25\)\) \* nullif\(Int64\(65\), Int64\(46\) \* Int64\(50\)\) \* \(\- Int64\(\-82\)\) \* \(\- sum\(Int64\(\-29\)\)\) \+ Int64\(35\) ELSE Int64\(31\) END \+ Int64\(\-60\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE + 15 WHEN - - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + - 74 THEN - 51 * - COUNT ( * ) * - COUNT ( * ) + + MIN ( ALL + + 60 ) + - - 25 * + NULLIF ( + 65, 46 * + ( + + 50 ) ) * - - 82 * - SUM ( - 29 ) + + + 35 ELSE + 31 END + - 60 AS col2, 45 * - 47 * 32, 43 AS col2 query I rowsort @@ -21958,7 +21958,7 @@ SELECT ALL - - COUNT ( * ) * - - ( - 54 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- max\(Int64\(66\)\)\) 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\(\*\)\) \* \(\- max\(Int64\(66\)\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - MAX ( + 66 ) AS col0, 30 col0 query I rowsort @@ -24731,7 +24731,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(26\) / Int64\(34\) 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\(\*\) \* Int64\(26\) / Int64\(34\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * 26 / + 34 AS col0, 60 AS col0 query I rowsort @@ -25469,7 +25469,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -29620,7 +29620,7 @@ SELECT ALL COUNT ( * ), - 13 * + + 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "nullif\(Int64\(27\), max\(DISTINCT Int64\(\-10\)\) \* Int64\(58\) \+ Int64\(89\) \+ Int64\(\-63\) \* Int64\(\-70\) \* count\(\*\) \- Int64\(64\) \* \(\- 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\(47\) AS col2" at position 0 and "nullif\(Int64\(27\), max\(DISTINCT Int64\(\-10\)\) \* Int64\(58\) \+ Int64\(89\) \+ Int64\(\-63\) \* Int64\(\-70\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(64\) \* \(\- Int64\(\-16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 47 AS col2, + NULLIF ( + 27, MAX ( DISTINCT - 10 ) * 58 + + 89 + - 63 * - 70 * COUNT ( * ) - 64 * - - 16 ) AS col2 query I rowsort @@ -31600,7 +31600,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\(\*\) 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 @@ -32452,7 +32452,7 @@ SELECT DISTINCT + 93 * + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -741 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(8\), \(\- \(\- coalesce\(Int64\(\-47\), Int64\(77\), Int64\(47\)\)\)\) \* \(\- Int64\(47\)\) \+ count\(\*\) \+ sum\(DISTINCT Int64\(\-32\)\) \* \(\- Int64\(62\)\)\) AS col1" at position 0 and "Int64\(12\) \* Int64\(\-69\) \+ Int64\(33\) \+ \(\- Int64\(\-54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(8\), \(\- \(\- coalesce\(Int64\(\-47\), Int64\(77\), Int64\(47\)\)\)\) \* \(\- Int64\(47\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(DISTINCT Int64\(\-32\)\) \* \(\- Int64\(62\)\)\) AS col1" at position 0 and "Int64\(12\) \* Int64\(\-69\) \+ Int64\(33\) \+ \(\- Int64\(\-54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + + 8, - - COALESCE ( - 47, + 77, 47 ) * - + 47 + + COUNT ( * ) + + SUM ( DISTINCT + - 32 ) * - + 62 ) AS col1, 12 * - 69 + + 33 + + - ( - 54 ) AS col1 query I rowsort label-6269 @@ -32483,7 +32483,7 @@ SELECT ALL + 40 AS col0 # 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 "coalesce\(\(\- count\(\*\)\), Int64\(85\) \* Int64\(81\) \* Int64\(\-52\) \+ \(\- Int64\(58\)\) \- Int64\(57\) \+ Int64\(32\) \* Int64\(30\)\) 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 "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(85\) \* Int64\(81\) \* Int64\(\-52\) \+ \(\- Int64\(58\)\) \- Int64\(57\) \+ Int64\(32\) \* Int64\(30\)\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - + COUNT ( * ), 85 * + 81 * - 52 + + ( - + 58 ) - 57 + + 32 * 30 ) AS col1, 58 AS col1 query I rowsort @@ -32815,7 +32815,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\(\*\) 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 @@ -32937,7 +32937,7 @@ SELECT ALL 98 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- Int64\(\-63\)\) \+ Int64\(66\) \* \(\- \(\- sum\(Int64\(\-66\)\)\)\) \* \(\- CASE count\(\*\) WHEN CASE CAST\(\(\- Int64\(99\)\) AS Int32\) WHEN Int64\(19\) THEN NULL ELSE Int64\(4\) END THEN Int64\(58\) \* Int64\(13\) \- min\(DISTINCT CAST\(Int64\(90\) AS Int32\)\) END\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- Int64\(\-63\)\) \+ Int64\(66\) \* \(\- \(\- sum\(Int64\(\-66\)\)\)\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CASE CAST\(\(\- Int64\(99\)\) AS Int32\) WHEN Int64\(19\) THEN NULL ELSE Int64\(4\) END THEN Int64\(58\) \* Int64\(13\) \- min\(DISTINCT CAST\(Int64\(90\) AS Int32\)\) END\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 + - - 63 + 66 * - - SUM ( ALL - 66 ) * - + CASE COUNT ( * ) WHEN + + CASE CAST ( - + 99 AS INTEGER ) WHEN 19 THEN NULL ELSE + + 4 END THEN 58 * + 13 - ( + + MIN ( DISTINCT CAST ( + 90 AS INTEGER ) ) ) END AS col1, ( 19 ) AS col1 query I rowsort @@ -33102,7 +33102,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\(\*\) \* 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 @@ -37256,7 +37256,7 @@ SELECT ALL + COUNT ( * ) * - 49 / 98 + - + ( + 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1556 # Datafusion - Expected - 2126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) \+ \(\- \(\- coalesce\(Int64\(\-38\), Int64\(44\), Int64\(79\) \* CAST\(NULL AS Int32\) \* Int64\(38\) \* Int64\(29\)\)\)\) \+ Int64\(99\) \* Int64\(\-15\) AS col2" at position 0 and "Int64\(69\) \* \(\- \(\- nullif\(Int64\(32\), \(\- count\(\*\)\)\)\)\) \- Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) \+ \(\- \(\- coalesce\(Int64\(\-38\), Int64\(44\), Int64\(79\) \* CAST\(NULL AS Int32\) \* Int64\(38\) \* Int64\(29\)\)\)\) \+ Int64\(99\) \* Int64\(\-15\) AS col2" at position 0 and "Int64\(69\) \* \(\- \(\- nullif\(Int64\(32\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \- Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + 33 ) + - - COALESCE ( - 38, 44, + 79 * CAST ( NULL AS INTEGER ) * 38 * + 29 ) + + 99 * - 15 col2, 69 * - - NULLIF ( + + 32, + - COUNT ( * ) ) - + 82 AS col2 query II rowsort label-7199 @@ -38400,7 +38400,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\(\*\) 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 @@ -43159,7 +43159,7 @@ SELECT ALL + - 12 AS col2 # 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\(\*\) / nullif\(Int64\(22\), \(\- 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\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / nullif\(Int64\(22\), \(\- Int64\(11\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 78 col0, COUNT ( * ) / NULLIF ( + 22, - + 11 ) AS col0 query I rowsort @@ -43962,7 +43962,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\(\*\) 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 @@ -45832,7 +45832,7 @@ SELECT ( + 35 ) + COUNT ( * ) AS col1 # Datafusion - Expected - -57 # Datafusion - Expected - 1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "Int64\(93\) \* \(\- \(\- 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\(\-57\) AS col1" at position 0 and "Int64\(93\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 57 AS col1, + COUNT ( * ), 93 * - - COUNT ( * ) AS col1 query I rowsort @@ -47261,7 +47261,7 @@ SELECT ALL COUNT ( * ) * 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-87\), count\(\*\) \+ count\(\*\)\) AS col1" at position 0 and "sum\(\(\- Int64\(\-24\)\)\) \- Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-87\), count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "sum\(\(\- Int64\(\-24\)\)\) \- Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - 87, COUNT ( * ) + COUNT ( * ) ) AS col1, SUM ( - - 24 ) - 91 AS col1 query I rowsort label-9133 @@ -48955,7 +48955,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\(\-28\) \+ \(\- count\(\*\)\) \* Int64\(84\) \* 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 @@ -49767,7 +49767,7 @@ SELECT + 75 * + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ Int64\(68\) AS col2" at position 0 and "count\(\*\) \+ CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ Int64\(68\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 81 + + 68 AS col2, COUNT ( * ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 query I rowsort @@ -49848,7 +49848,7 @@ SELECT - - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- count\(\*\)\) AS col1" at position 0 and "\(\- coalesce\(CAST\(coalesce\(Int64\(93\), Int64\(\-55\), Int64\(27\)\) AS Int32\), \(\- Int64\(73\)\), Int64\(\-14\) \+ Int64\(5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- coalesce\(CAST\(coalesce\(Int64\(93\), Int64\(\-55\), Int64\(27\)\) AS Int32\), \(\- Int64\(73\)\), Int64\(\-14\) \+ Int64\(5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 37 * - + COUNT ( * ) AS col1, - ( + COALESCE ( ( CAST ( + + COALESCE ( 93, - 55, 27 ) AS INTEGER ) ), - + 73, + - 14 + 5 ) ) AS col1 query II rowsort label-9629 @@ -50163,7 +50163,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\(\*\) AS col2" at position 1 have the 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 @@ -50996,7 +50996,7 @@ SELECT 13 + 36 * 4 # 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\(61\) \+ Int64\(63\) 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\(\*\) \- Int64\(61\) \+ Int64\(63\) 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 ( * ) - + 61 + 63 col0, - 41 AS col0 query I rowsort label-9849 @@ -51570,7 +51570,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\(\*\) AS col0" at position 1 have the 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 b50aae2..b5a82bf 100644 --- a/data/sqlite/random/expr/slt_good_20.slt +++ b/data/sqlite/random/expr/slt_good_20.slt @@ -360,7 +360,7 @@ SELECT ALL 34 * + 65 * - 52 + 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1472 # Datafusion - Expected - -1445 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(64\) AS col0" at position 0 and "Int64\(\-86\) \* Int64\(\-18\) \* \(\- count\(\*\)\) \+ \(\- Int64\(\-62\)\) \+ \(\- Int64\(\-85\)\) \+ Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(64\) AS col0" at position 0 and "Int64\(\-86\) \* Int64\(\-18\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-62\)\) \+ \(\- Int64\(\-85\)\) \+ Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 23 * + 64 AS col0, - 86 * - 18 * - + COUNT ( * ) + - - 62 + - - 85 + - 44 AS col0 query I rowsort @@ -599,7 +599,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ CASE Int64\(73\) WHEN \(\- count\(\*\)\) \+ Int64\(\-15\) \+ \(\- count\(\*\)\) \* Int64\(18\) \* \(\- Int64\(\-37\)\) THEN NULL WHEN Int64\(62\) THEN NULL ELSE Int64\(\-82\) END \+ Int64\(20\) AS col1" at position 0 and "Int64\(53\) \+ max\(DISTINCT Int64\(\-95\)\) \+ coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(12\) \+ Int64\(46\) \+ \(\- Int64\(\-87\)\)\) \* CAST\(NULL AS Int32\) \* Int64\(\-98\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ CASE Int64\(73\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \* \(\- Int64\(\-37\)\) THEN NULL WHEN Int64\(62\) THEN NULL ELSE Int64\(\-82\) END \+ Int64\(20\) AS col1" at position 0 and "Int64\(53\) \+ max\(DISTINCT Int64\(\-95\)\) \+ coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(12\) \+ Int64\(46\) \+ \(\- Int64\(\-87\)\)\) \* CAST\(NULL AS Int32\) \* Int64\(\-98\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 81 + CASE 73 WHEN - COUNT ( * ) + - 15 + + - COUNT ( * ) * 18 * - - 37 THEN NULL WHEN + 62 THEN NULL ELSE - 82 END + + + 20 AS col1, 53 + + MAX ( DISTINCT - 95 ) + + + COALESCE ( + - ( + CAST ( NULL AS INTEGER ) ), 12 + 46 + - - 87 ) * + CAST ( NULL AS INTEGER ) * - 98 * - 21 AS col1 query I rowsort label-107 @@ -615,7 +615,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\(\*\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -985,7 +985,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\(\*\) 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 @@ -1142,7 +1142,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\(\*\) AS col2" at position 1 have the 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 @@ -1793,7 +1793,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\(\*\) 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 @@ -2070,7 +2070,7 @@ SELECT ( - + 4 ) * - 80 * - - COUNT ( * ) * ( - + 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 384 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(8\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(99\) \* Int64\(1\) \+ \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-58\) THEN NULL WHEN Int64\(\-53\) THEN NULL ELSE Int64\(71\) \* Int64\(\-11\) \- Int64\(12\) \* Int64\(\-81\) / Int64\(29\) \+ Int64\(\-27\) \+ Int64\(89\) \+ \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \+ Int64\(86\) \+ count\(\(\- Int64\(35\)\)\) END\) \+ CASE \(\- sum\(Int64\(45\)\)\) WHEN \(\- \(\- CASE Int64\(70\) WHEN Int64\(22\) \+ sum\(DISTINCT Int64\(\-72\)\) \+ Int64\(39\) THEN Int64\(12\) \+ Int64\(45\) ELSE NULL END\)\) THEN nullif\(Int64\(25\), sum\(Int64\(\-85\)\) \* Int64\(\-45\)\) \* Int64\(90\) WHEN Int64\(\-52\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(8\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(99\) \* Int64\(1\) \+ \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-58\) THEN NULL WHEN Int64\(\-53\) THEN NULL ELSE Int64\(71\) \* Int64\(\-11\) \- Int64\(12\) \* Int64\(\-81\) / Int64\(29\) \+ Int64\(\-27\) \+ Int64\(89\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(86\) \+ count\(\(\- Int64\(35\)\)\) END\) \+ CASE \(\- sum\(Int64\(45\)\)\) WHEN \(\- \(\- CASE Int64\(70\) WHEN Int64\(22\) \+ sum\(DISTINCT Int64\(\-72\)\) \+ Int64\(39\) THEN Int64\(12\) \+ Int64\(45\) ELSE NULL END\)\) THEN nullif\(Int64\(25\), sum\(Int64\(\-85\)\) \* Int64\(\-45\)\) \* Int64\(90\) WHEN Int64\(\-52\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 48 * + 8 AS col1, + 95 + + + 99 * + 1 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 58 THEN NULL WHEN + - 53 THEN NULL ELSE 71 * - 11 - 12 * - 81 / + 29 + - 27 + 89 + - + CAST ( - COUNT ( * ) AS INTEGER ) + + + 86 + COUNT ( - + 35 ) END + + CASE - + ( + SUM ( 45 ) ) WHEN - - CASE + 70 WHEN + 22 + SUM ( DISTINCT + - 72 ) + 39 THEN + ( 12 ) + 45 ELSE NULL END THEN NULLIF ( 25, + SUM ( ALL - 85 ) * - 45 ) * 90 WHEN - 52 THEN NULL ELSE NULL END AS col1 query I rowsort @@ -4265,7 +4265,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\(\*\) AS col2" at position 1 have 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 @@ -5809,7 +5809,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\(\*\) AS col1" at position 1 have the 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 @@ -7973,7 +7973,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\(\*\) 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 @@ -8014,7 +8014,7 @@ SELECT DISTINCT - + 71 * - 81 + 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -139 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(\-80\) AS col0" at position 0 and "Int64\(45\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(\-80\) 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 - 59 + + ( + - 80 ) AS col0, + 45 / - - COUNT ( * ) AS col0 query I rowsort @@ -8800,7 +8800,7 @@ SELECT DISTINCT + 38 / 62 AS col2, + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \- Int64\(40\) AS col0" at position 0 and "count\(\*\) \* \(\- 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\(32\) \- Int64\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 32 - + 40 AS col0, + ( COUNT ( * ) ) * - - 79 AS col0 query I rowsort @@ -9104,7 +9104,7 @@ SELECT ALL + 14 * - - 63 - 8 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- 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\(96\) \* \(\- 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 + 96 * - + COUNT ( * ) AS col0, 51 AS col0 query II rowsort label-1731 @@ -9527,7 +9527,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\(\*\) AS col0" at position 1 have the 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 @@ -10214,7 +10214,7 @@ SELECT + + 30, 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(\-23\) / \(\- count\(\*\)\) \- Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(\-23\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 17 AS col2, - 23 / - COUNT ( * ) - 88 AS col2 query I rowsort @@ -11006,7 +11006,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- \(\- \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 - - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 23 AS col1 query I rowsort label-2095 @@ -11596,7 +11596,7 @@ SELECT DISTINCT - 16 AS col1, + NULLIF ( - 81, - + 83 * + - 92 ) / + - CAST ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(8\) 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\(\*\) / Int64\(8\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + + COUNT ( * ) ) / 8 AS col0, 43 AS col0 query II rowsort label-2207 @@ -11740,7 +11740,7 @@ SELECT 74 * 4 AS col2 # Datafusion - Expected - -85 # Datafusion - Expected - 39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- Int64\(2\) / Int64\(\-76\) AS col2" at position 1 and "Int64\(35\) \* Int64\(98\) \+ Int64\(\-60\) \+ Int64\(25\) \* Int64\(3\) \- Int64\(\-70\) \+ CAST\(NULL AS Float64\) \* Int64\(\-3\) \- coalesce\(Int64\(\-93\), Int64\(\-11\) \- Int64\(0\) \* Int64\(70\), count\(\*\) \* count\(\*\) \* Int64\(\-54\) \+ Int64\(56\) \* \(\- CASE \(\- Int64\(89\)\) WHEN avg\(\(\- Int64\(47\)\)\) \* Int64\(\-86\) THEN Int64\(31\) ELSE NULL END\) \+ Int64\(\-19\)\) \+ count\(\*\) \* Int64\(52\) \* Int64\(53\) \* Int64\(26\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- Int64\(2\) / Int64\(\-76\) AS col2" at position 1 and "Int64\(35\) \* Int64\(98\) \+ Int64\(\-60\) \+ Int64\(25\) \* Int64\(3\) \- Int64\(\-70\) \+ CAST\(NULL AS Float64\) \* Int64\(\-3\) \- coalesce\(Int64\(\-93\), Int64\(\-11\) \- Int64\(0\) \* Int64\(70\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-54\) \+ Int64\(56\) \* \(\- CASE \(\- Int64\(89\)\) WHEN avg\(\(\- Int64\(47\)\)\) \* Int64\(\-86\) THEN Int64\(31\) ELSE NULL END\) \+ Int64\(\-19\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(52\) \* Int64\(53\) \* Int64\(26\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 85 AS col1, 39 - 2 / - 76 AS col2, + + 35 * + 98 + - 60 + + 25 * + + 3 - - 70 + CAST ( NULL AS FLOAT8 ) * - 3 - + ( COALESCE ( - 93, + - 11 - 0 * + 70, + + COUNT ( * ) * COUNT ( * ) * + - 54 + 56 * - CASE - + 89 WHEN + AVG ( ALL - + 47 ) * - 86 THEN 31 ELSE NULL END + - 19 ) ) + + COUNT ( * ) * + 52 * 53 * 26 AS col2 # Datafusion - Types were automatically converted from: @@ -11907,7 +11907,7 @@ SELECT DISTINCT 33 * - + COALESCE ( + COALESCE ( 6, + 66 ), + 71 * + 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1768 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(26\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(72\) \* Int64\(50\) \* 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\(26\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(72\) \* Int64\(50\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 68 * 26 AS col0, - COUNT ( * ) * 72 * 50 * 0 AS col0 query I rowsort label-2264 @@ -13188,7 +13188,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-84\)\) AS col0" at position 0 and "coalesce\(Int64\(\-89\), \(\- Int64\(\-86\)\), Int64\(21\) / max\(DISTINCT 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\(\*\) \* \(\- Int64\(\-84\)\) AS col0" at position 0 and "coalesce\(Int64\(\-89\), \(\- Int64\(\-86\)\), Int64\(21\) / max\(DISTINCT Int64\(17\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - ( - 84 ) AS col0, COALESCE ( + - 89, - - 86, + + 21 / + MAX ( DISTINCT 17 ) ) col0 query I rowsort label-2509 @@ -14254,7 +14254,7 @@ SELECT + ( - 7 ) / + 89 * + + 74 + - 86 # 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\(\*\)\) AS col2" at position 0 and "Int64\(29\) \* \(\- CASE count\(\*\) WHEN Int64\(40\) / Int64\(\-49\) THEN Int64\(71\) \+ Int64\(\-45\) WHEN min\(Int64\(82\)\) THEN Int64\(\-26\) \+ \(\- count\(\*\)\) WHEN Int64\(61\) \- Int64\(50\) THEN \(\- CAST\(NULL AS Float64\)\) \* Int64\(32\) 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\(29\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(40\) / Int64\(\-49\) THEN Int64\(71\) \+ Int64\(\-45\) WHEN min\(Int64\(82\)\) THEN Int64\(\-26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(61\) \- Int64\(50\) THEN \(\- CAST\(NULL AS Float64\)\) \* Int64\(32\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, + 29 * + - CASE COUNT ( * ) WHEN + 40 / + - 49 THEN 71 + - 45 WHEN ( + MIN ( ALL + 82 ) ) THEN - 26 + - COUNT ( * ) WHEN ( ( 61 ) ) - 50 THEN ( - CAST ( NULL AS FLOAT8 ) ) * 32 END AS col2 query I rowsort @@ -14621,7 +14621,7 @@ SELECT COALESCE ( + 37, + 33 ) * + 46 + - - MAX ( ( - 23 ) ) - - - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -109 # Datafusion - Expected - -30576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- count\(\*\)\) \- Int64\(85\) AS col2" at position 0 and "Int64\(49\) \* Int64\(\-8\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(85\) AS col2" at position 0 and "Int64\(49\) \* Int64\(\-8\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 23 + - COUNT ( * ) - 85 AS col2, + 49 * - 8 * + 78 AS col2 query I rowsort label-2786 @@ -14867,7 +14867,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\(\*\) 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 @@ -15865,7 +15865,7 @@ SELECT DISTINCT + 43 + 56 * 55 * - 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ Int64\(1\) / Int64\(18\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ Int64\(1\) / Int64\(18\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 68 + + 1 / + 18 col1, COUNT ( * ) + - 90 AS col1 query I rowsort label-3024 @@ -16973,7 +16973,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\(\*\) 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 @@ -18038,7 +18038,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\(\*\) 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 @@ -19742,7 +19742,7 @@ SELECT DISTINCT + COUNT ( * ) AS col2, + 76 / + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / nullif\(\(\- Int64\(\-79\)\), count\(\*\) / \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-37\) \+ \(\- Int64\(48\)\) \* Int64\(74\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / nullif\(\(\- Int64\(\-79\)\), count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-37\) \+ \(\- Int64\(48\)\) \* Int64\(74\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 41 / + + NULLIF ( - - 79, COUNT ( * ) / - - SUM ( CAST ( NULL AS INTEGER ) ) * - 37 + - + 48 * 74 ) AS col2, + ( 10 ) AS col2 query I rowsort label-3753 @@ -20814,7 +20814,7 @@ SELECT + 3 * 25 + - + 9 + + 45 * ( + 28 ) 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 "Int64\(\-39\) / Int64\(95\) \* \(\- count\(\*\)\) \* \(\- Int64\(\-61\)\) AS col2" at position 0 and "Int64\(\-14\) \* Int64\(6\) \* \(\- count\(\*\)\) \* count\(Int64\(80\)\) \+ Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) / Int64\(95\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-61\)\) AS col2" at position 0 and "Int64\(\-14\) \* Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(80\)\) \+ Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 39 / 95 * - COUNT ( * ) * - - 61 AS col2, - 14 * + + 6 * - COUNT ( * ) * + COUNT ( ALL + 80 ) + - 91 AS col2 query I rowsort @@ -23804,7 +23804,7 @@ SELECT ALL 71 + - + 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(6\) AS col2" at position 0 and "\(\- CASE \(\- Int64\(43\)\) WHEN count\(\*\) THEN Int64\(50\) / \(\- Int64\(\-54\)\) \- \(\- CAST\(NULL AS Int32\)\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(6\) AS col2" at position 0 and "\(\- CASE \(\- Int64\(43\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(50\) / \(\- Int64\(\-54\)\) \- \(\- CAST\(NULL AS Int32\)\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 2 + 6 AS col2, - CASE - + 43 WHEN COUNT ( * ) THEN + 50 / - - 54 - + ( + - CAST ( NULL AS INTEGER ) ) END AS col2 query II rowsort label-4531 @@ -24641,7 +24641,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- CAST\(Int64\(\-67\) AS Int32\)\), count\(\*\) / Int64\(17\)\) AS col2" at position 0 and "coalesce\(min\(Int64\(16\)\), Int64\(\-28\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- CAST\(Int64\(\-67\) AS Int32\)\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(17\)\) AS col2" at position 0 and "coalesce\(min\(Int64\(16\)\), Int64\(\-28\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( - CAST ( - 67 AS INTEGER ), COUNT ( * ) / 17 ) AS col2, COALESCE ( + MIN ( 16 ), + - 28 ) col2 query II rowsort @@ -25262,7 +25262,7 @@ NULL # 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\(\*\)\) AS col2" at position 0 and "Int64\(81\) \+ \(\- count\(\*\)\) \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col2, 81 + + - COUNT ( * ) + + 5 AS col2 query I rowsort label-4810 @@ -28688,7 +28688,7 @@ SELECT 8 * 89 / 93 * - 61 + - 58 # Datafusion - Expected - 78408 # Datafusion - Expected - -13 # Datafusion - Expected - -2305 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-33\)\), Int64\(42\) \+ Int64\(\-74\) \+ count\(\*\)\) \* Int64\(27\) \* Int64\(88\) AS col2" at position 0 and "min\(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 "coalesce\(\(\- Int64\(\-33\)\), Int64\(42\) \+ Int64\(\-74\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(27\) \* Int64\(88\) AS col2" at position 0 and "min\(Int64\(\-13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - - 33, + 42 + - 74 + COUNT ( * ) ) * + 27 * 88 AS col2, MIN ( + - 13 ) col2, - + 68 * + 34 + - COUNT ( * ) + + MIN ( ALL 8 ) query I rowsort label-5465 @@ -29009,7 +29009,7 @@ SELECT - + COUNT ( 29 ) 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 I rowsort @@ -29158,7 +29158,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\(\*\) END AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -29529,7 +29529,7 @@ SELECT COUNT ( * ) + + + 98 - 94 * 84 * - 64 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\(\*\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(35\) \+ nullif\(Int64\(\-2\), count\(\*\) \* \(\- Int64\(94\)\) \* Int64\(97\) \+ CASE Int64\(63\) WHEN Int64\(\-8\) \+ Int64\(\-73\) \* Int64\(\-4\) THEN Int64\(7\) \* Int64\(\-26\) \+ Int64\(11\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(35\) \+ nullif\(Int64\(\-2\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(94\)\) \* Int64\(97\) \+ CASE Int64\(63\) WHEN Int64\(\-8\) \+ Int64\(\-73\) \* Int64\(\-4\) THEN Int64\(7\) \* Int64\(\-26\) \+ Int64\(11\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, COUNT ( * ) * + 35 + NULLIF ( - 2, COUNT ( * ) * - + 94 * 97 + CASE 63 WHEN + - 8 + - 73 * - 4 THEN 7 * - 26 + 11 ELSE NULL END ) AS col1 query I rowsort label-5625 @@ -30225,7 +30225,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\(\*\) AS col1" at position 1 have the 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 @@ -31813,7 +31813,7 @@ SELECT ALL - 80 - - COUNT ( * ) + 27 - - - SUM ( DISTINCT 66 ) * - + 8 * - + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(28\) AS col2" at position 0 and "Int64\(54\) \* 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\(\*\) / Int64\(28\) AS col2" at position 0 and "Int64\(54\) \* Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / 28 AS col2, 54 * - 40 AS col2 query I rowsort label-6065 @@ -32330,7 +32330,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-86\) \+ count\(\*\) / \(\- count\(\*\)\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 33 * - COUNT ( * ) AS col0, - 86 + + COUNT ( * ) / + - COUNT ( * ) * - 1 AS col0 query I rowsort @@ -32727,7 +32727,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\(\*\) / CASE WHEN sum\(\(\- Int64\(\-4\)\)\) <= Int64\(46\) THEN Int64\(\-6\) \+ Int64\(72\) WHEN 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\(\*\) THEN Int64\(\-61\) \* Int64\(43\) ELSE NULL END / count\(\*\) AS col2" at position 1 have the 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: @@ -32880,7 +32880,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\(\*\)\)\)\) AS col1" at position 0 and "count\(\*\) \- Int64\(\-96\) \* \(\- Int64\(10\)\) \* count\(\*\) AS col1" at position 1 have 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 @@ -34920,7 +34920,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\(\*\) AS col0" at position 1 have the 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 @@ -35346,7 +35346,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\(\*\) AS col2" at position 1 have the 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 @@ -36255,7 +36255,7 @@ SELECT ALL - + 85, + 64 AS col0, - - COALESCE ( + 14, COALESCE ( + COUNT ( * ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -279 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(24\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-93\) \* 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\(24\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 24 * + - COUNT ( * ) AS col0, - 93 * + 3 AS col0 query III rowsort label-6910 @@ -36566,7 +36566,7 @@ SELECT + 22 AS col2, 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -106650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col0" at position 0 and "max\(CAST\(Int64\(5\) AS Int32\)\) \* Int64\(27\) \* \(\- nullif\(Int64\(79\), \(\- Int64\(49\)\) \* \(\- min\(Int64\(\-49\)\)\) \+ Int64\(19\) \* Int64\(92\)\)\) \* \(\- nullif\(\(\- Int64\(10\)\), count\(\*\) \* \(\- min\(Int64\(40\)\)\) \+ Int64\(74\) \* Int64\(33\) \+ Int64\(52\) \+ Int64\(\-45\) \* Int64\(0\) / Int64\(\-17\) \+ Int64\(43\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col0" at position 0 and "max\(CAST\(Int64\(5\) AS Int32\)\) \* Int64\(27\) \* \(\- nullif\(Int64\(79\), \(\- Int64\(49\)\) \* \(\- min\(Int64\(\-49\)\)\) \+ Int64\(19\) \* Int64\(92\)\)\) \* \(\- nullif\(\(\- Int64\(10\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(40\)\)\) \+ Int64\(74\) \* Int64\(33\) \+ Int64\(52\) \+ Int64\(\-45\) \* Int64\(0\) / Int64\(\-17\) \+ Int64\(43\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 54 col0, + MAX ( + + CAST ( 5 AS INTEGER ) ) * 27 * - NULLIF ( + 79, - + ( + 49 ) * - MIN ( ( - 49 ) ) + 19 * 92 ) * - + NULLIF ( - + 10, + COUNT ( * ) * - MIN ( 40 ) + 74 * 33 + 52 + - 45 * 0 / - 17 + + 43 ) AS col0 query II rowsort @@ -36651,7 +36651,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\(\*\) AS col0" at position 1 have the 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 @@ -36776,7 +36776,7 @@ SELECT + 50 AS col1, + 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -96444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CASE Int64\(29\) WHEN Int64\(\-51\) THEN NULL WHEN \(\- Int64\(\-29\)\) \* \(\- Int64\(\-87\)\) THEN Int64\(\-65\) WHEN \(\- Int64\(7\)\) THEN NULL END\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-83\) AS Int32\) \* count\(\*\) \* Int64\(\-43\) \* Int64\(\-27\) \+ Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CASE Int64\(29\) WHEN Int64\(\-51\) THEN NULL WHEN \(\- Int64\(\-29\)\) \* \(\- Int64\(\-87\)\) THEN Int64\(\-65\) WHEN \(\- Int64\(7\)\) THEN NULL END\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-83\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\) \* Int64\(\-27\) \+ Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - AVG ( ALL - + CASE + 29 WHEN - 51 THEN NULL WHEN - - 29 * - - 87 THEN - 65 WHEN - + 7 THEN NULL END ) AS col2, CAST ( - 83 AS INTEGER ) * COUNT ( * ) * + ( - 43 ) * - 27 + - 81 col2 query I rowsort @@ -37462,7 +37462,7 @@ SELECT ALL COALESCE ( - ( + 98 ), + 65 * - 89 * - COUNT ( * ) + + NULLIF ( + 15, # Datafusion - Datafusion expected results: # Datafusion - Expected - 4948 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(68\) \+ \(\- count\(\*\)\) \* Int64\(84\) AS col2" at position 0 and "Int64\(\-99\) / Int64\(87\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(68\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(84\) AS col2" at position 0 and "Int64\(\-99\) / Int64\(87\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 * + + 68 + - COUNT ( * ) * + 84 col2, - 99 / 87 + + 19 AS col2 query I rowsort label-7140 @@ -37810,7 +37810,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\(\*\) AS col0" at position 1 have the 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 @@ -38059,7 +38059,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ count\(\*\) \+ Int64\(\-83\) 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 "Int64\(39\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 + + COUNT ( * ) + - 83 AS col2, - 53 AS col2 query I rowsort label-7252 @@ -38113,7 +38113,7 @@ SELECT - 66 + - - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-44\), Int64\(\-12\) \* Int64\(3\) / \(\- \(\- Int64\(19\)\)\) / Int64\(10\) \- Int64\(\-69\), Int64\(64\)\)\) AS col2" at position 0 and "count\(\*\) \+ 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 "\(\- coalesce\(Int64\(\-44\), Int64\(\-12\) \* Int64\(3\) / \(\- \(\- Int64\(19\)\)\) / Int64\(10\) \- Int64\(\-69\), Int64\(64\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - 44, - 12 * + 3 / - - ( 19 ) / 10 - - 69, + 64 ) AS col2, COUNT ( * ) + - 49 AS col2 query I rowsort @@ -39866,7 +39866,7 @@ SELECT DISTINCT 50 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -43 -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\(\-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\(89\) 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 89 AS col1, COUNT ( * ) * - 43 AS col1 query I rowsort @@ -40399,7 +40399,7 @@ SELECT 86 * + 23 * - 59 * - + 26 col1, + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "\(\- CASE Int64\(27\) WHEN Int64\(47\) THEN Int64\(83\) ELSE NULL END\) / Int64\(31\) \* Int64\(86\) \- \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "\(\- CASE Int64\(27\) WHEN Int64\(47\) THEN Int64\(83\) ELSE NULL END\) / Int64\(31\) \* Int64\(86\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 AS col0, - CASE + 27 WHEN 47 THEN 83 ELSE NULL END / + + 31 * + 86 - - COUNT ( * ) col0 query I rowsort label-7704 @@ -40599,7 +40599,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / \(\- 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 "Int64\(\-64\) / \(\- 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 - 64 / - + COUNT ( * ) AS col2, + 65 col2 query II rowsort label-7742 @@ -40764,7 +40764,7 @@ SELECT - + MIN ( DISTINCT 90 ) + + COUNT ( * ) + + - 79 * - 5 + + COUNT ( * ) AS # 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\(\*\)\) AS col2" at position 1 have the 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 query II rowsort @@ -41629,7 +41629,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\(\*\) AS col0" at position 1 have the 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 @@ -42139,7 +42139,7 @@ SELECT 91 - - 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(95\)\) AS col1" at position 0 and "Int64\(92\) \- Int64\(\-40\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(95\)\) AS col1" at position 0 and "Int64\(92\) \- Int64\(\-40\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - + 95 AS col1, 92 - + - 40 + 7 AS col1 query I rowsort label-8036 @@ -43049,7 +43049,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\(\*\) AS col2" at position 1 have the 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 @@ -43248,7 +43248,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\(\*\)\) \- 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 @@ -43724,7 +43724,7 @@ SELECT ALL + CAST ( + + 60 AS INTEGER ) col0 # Datafusion - Expected - 0 # Datafusion - Expected - 41 # Datafusion - Expected - 2745 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) / Int64\(\-95\) \* coalesce\(Int64\(64\), Int64\(69\), Int64\(31\) \+ \(\- Int64\(\-15\)\) \+ \(\- count\(\*\)\) \+ CASE \(\- Int64\(91\)\) WHEN count\(\*\) \+ Int64\(36\) \* Int64\(24\) THEN Int64\(\-2\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-79\) \* Int64\(35\) / Int64\(\-25\) \* Int64\(\-35\) END\) / Int64\(\-60\) AS col2" at position 0 and "Int64\(45\) \* Int64\(61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) / Int64\(\-95\) \* coalesce\(Int64\(64\), Int64\(69\), Int64\(31\) \+ \(\- Int64\(\-15\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- Int64\(91\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) \* Int64\(24\) THEN Int64\(\-2\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-79\) \* Int64\(35\) / Int64\(\-25\) \* Int64\(\-35\) END\) / Int64\(\-60\) AS col2" at position 0 and "Int64\(45\) \* Int64\(61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - 48 ) / + - 95 * + COALESCE ( + 64, 69, + 31 + - - 15 + - COUNT ( * ) + + CASE - + 91 WHEN COUNT ( * ) + 36 * + 24 THEN - 2 * - CAST ( NULL AS INTEGER ) * + - 79 * + 35 / - 25 * - 35 END ) / - 60 AS col2, 41 AS col1, 45 * + 61 AS col2 query II rowsort label-8336 @@ -44119,7 +44119,7 @@ SELECT DISTINCT COALESCE ( 15, + - 52 * - CAST ( NULL AS INTEGER ) / - ( MIN ( D # Datafusion - Datafusion expected results: # Datafusion - Expected - -351 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ \(\- Int64\(43\)\) \- Int64\(42\) \* Int64\(5\) AS col1" at position 0 and "count\(\*\) / sum\(\(\- Int64\(21\)\)\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ \(\- Int64\(43\)\) \- Int64\(42\) \* Int64\(5\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / sum\(\(\- Int64\(21\)\)\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 98 + - + 43 - 42 * 5 AS col1, + COUNT ( * ) / + SUM ( - + 21 ) * 30 AS col1 query I rowsort label-8410 @@ -44265,7 +44265,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\(\*\) 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 @@ -44296,7 +44296,7 @@ SELECT DISTINCT 7 * + ( + + 46 ) # 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 "CASE Int64\(8\) WHEN \(\- count\(\*\)\) THEN Int64\(59\) \+ Int64\(\-92\) ELSE NULL END \- Int64\(\-87\) \+ nullif\(Int64\(52\), count\(\*\) \* Int64\(\-65\) \+ Int64\(\-4\)\) \* Int64\(10\) 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 "CASE Int64\(8\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(59\) \+ Int64\(\-92\) ELSE NULL END \- Int64\(\-87\) \+ nullif\(Int64\(52\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-65\) \+ Int64\(\-4\)\) \* Int64\(10\) AS col2" at position 0 and "Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE ( + 8 ) WHEN - COUNT ( * ) THEN 59 + - 92 ELSE NULL END - - 87 + + NULLIF ( + 52, COUNT ( * ) * + - 65 + - 4 ) * + 10 AS col2, - 24 AS col2 query I rowsort label-8444 @@ -45205,7 +45205,7 @@ SELECT 68 + - NULLIF ( + 43, - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(35\) AS col2" at position 0 and "CASE \(\- Int64\(\-1\)\) WHEN \(\- Int64\(\-83\)\) THEN NULL WHEN Int64\(14\) THEN Int64\(\-20\) \+ \(\- count\(\*\)\) \+ \(\- CASE Int64\(61\) WHEN Int64\(\-74\) \* Int64\(\-1\) \* Int64\(24\) \* \(\- CASE Int64\(\-55\) WHEN Int64\(80\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(\-94\) \* Int64\(74\) / Int64\(\-78\) THEN \(\- Int64\(50\)\) \* Int64\(6\) WHEN Int64\(64\) \* Int64\(\-26\) / CASE Int64\(44\) WHEN Int64\(86\) \+ Int64\(74\) THEN Int64\(\-84\) ELSE NULL END THEN Int64\(\-33\) END\) \- Int64\(\-72\) THEN Int64\(\-69\) \* \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \+ Int64\(\-76\) WHEN Int64\(33\) \* Int64\(9\) \+ Int64\(21\) THEN NULL WHEN Int64\(21\) THEN NULL END\) END \* Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(35\) AS col2" at position 0 and "CASE \(\- Int64\(\-1\)\) WHEN \(\- Int64\(\-83\)\) THEN NULL WHEN Int64\(14\) THEN Int64\(\-20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE Int64\(61\) WHEN Int64\(\-74\) \* Int64\(\-1\) \* Int64\(24\) \* \(\- CASE Int64\(\-55\) WHEN Int64\(80\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(\-94\) \* Int64\(74\) / Int64\(\-78\) THEN \(\- Int64\(50\)\) \* Int64\(6\) WHEN Int64\(64\) \* Int64\(\-26\) / CASE Int64\(44\) WHEN Int64\(86\) \+ Int64\(74\) THEN Int64\(\-84\) ELSE NULL END THEN Int64\(\-33\) END\) \- Int64\(\-72\) THEN Int64\(\-69\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(\-76\) WHEN Int64\(33\) \* Int64\(9\) \+ Int64\(21\) THEN NULL WHEN Int64\(21\) THEN NULL END\) END \* Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 * + 35 AS col2, + CASE - + ( + - 1 ) WHEN - - 83 THEN NULL WHEN 14 THEN - 20 + - COUNT ( * ) + - + CASE + ( + 61 ) WHEN - 74 * - 1 * + 24 * - CASE - 55 WHEN + 80 + + - MIN ( ALL + 12 ) * - 94 * + + 74 / + - 78 THEN - + 50 * + ( + 6 ) WHEN + 64 * - 26 / + CASE + 44 WHEN + + 86 + + 74 THEN - 84 ELSE NULL END THEN + - 33 END - - 72 THEN + - 69 * - + CAST ( - COUNT ( * ) AS INTEGER ) + - 76 WHEN + 33 * + 9 + 21 THEN NULL WHEN + 21 THEN NULL END END * - 52 AS col2 query I rowsort label-8618 @@ -45762,7 +45762,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\(\-57\) \* Int64\(6\) \* Int64\(66\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -46127,7 +46127,7 @@ SELECT + 81 + + 55 + - 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) AS col2" at position 0 and "Int64\(5\) \- Int64\(28\) \+ \(\- Int64\(\-48\)\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(5\) \- Int64\(28\) \+ \(\- Int64\(\-48\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 22 AS col2, 5 - 28 + - - 48 + - + COUNT ( * ) AS col2 query I rowsort label-8794 @@ -46606,7 +46606,7 @@ SELECT DISTINCT - CASE + 79 WHEN 95 * + + 75 * + - 38 THEN NULL ELSE - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 3395 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- Int64\(\-35\)\) AS col0" at position 0 and "\(\- CASE Int64\(\-98\) WHEN Int64\(\-59\) THEN \(\- CASE Int64\(5\) WHEN \(\- count\(\*\)\) THEN \(\- nullif\(Int64\(21\), \(\- \(\- Int64\(\-1\)\)\) / \(\- Int64\(\-47\)\)\)\) WHEN \(\- \(\- \(\- count\(DISTINCT Int64\(82\)\)\)\)\) THEN Int64\(71\) ELSE NULL END\) WHEN Int64\(10\) THEN NULL ELSE NULL END\) \* \(\- sum\(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\(97\) \* \(\- Int64\(\-35\)\) AS col0" at position 0 and "\(\- CASE Int64\(\-98\) WHEN Int64\(\-59\) THEN \(\- CASE Int64\(5\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- nullif\(Int64\(21\), \(\- \(\- Int64\(\-1\)\)\) / \(\- Int64\(\-47\)\)\)\) WHEN \(\- \(\- \(\- count\(DISTINCT Int64\(82\)\)\)\)\) THEN Int64\(71\) ELSE NULL END\) WHEN Int64\(10\) THEN NULL ELSE NULL END\) \* \(\- sum\(Int64\(\-28\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 97 * - - 35 AS col0, - CASE + - 98 WHEN + - 59 THEN - + CASE + + 5 WHEN - COUNT ( * ) THEN - NULLIF ( 21, - ( - - 1 ) / - - 47 ) WHEN - - ( + - COUNT ( DISTINCT + + ( + + 82 ) ) ) THEN + 71 ELSE NULL END WHEN ( 10 ) THEN NULL ELSE NULL END * - SUM ( ALL - 28 ) AS col0 query I rowsort label-8884 @@ -47946,7 +47946,7 @@ SELECT 35 + + 92, - MAX ( DISTINCT + 87 ) * 58 - + 80 + CASE WHEN ( + 25 ) > 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(10\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- count\(\*\)\) \+ CAST\(Int64\(\-17\) AS Int32\) \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(10\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(\-17\) AS Int32\) \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 10 / - - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + + CAST ( - 17 AS INTEGER ) * + 43 AS col2 query I rowsort @@ -48460,7 +48460,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- Int64\(83\)\) AS col2" at position 0 and "Int64\(41\) / \(\- count\(\*\)\) AS col2" at position 1 have the 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\(83\)\) 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 + 92 + - + 83 AS col2, 41 / - COUNT ( * ) AS col2 query I rowsort label-9246 @@ -49370,7 +49370,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\(\*\) AS col2" at position 1 have the 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 @@ -49957,7 +49957,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\(\*\) 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 @@ -51073,7 +51073,7 @@ SELECT COALESCE ( + 8, + - 34 + + CAST ( + ( + 24 ) AS INTEGER ), - CASE - 53 WH # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE count\(\*\) WHEN \(\- Int64\(44\)\) THEN NULL WHEN Int64\(61\) THEN Int64\(97\) \* \(\- Int64\(57\)\) \* \(\- nullif\(Int64\(89\), nullif\(Int64\(\-71\), Int64\(78\)\) \+ \(\- count\(\*\)\) \* Int64\(94\)\)\) \* \(\- Int64\(\-22\)\) \+ Int64\(74\) / count\(\*\) \+ Int64\(95\) END\) \* \(\- Int64\(67\)\) \- Int64\(\-37\) 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 "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(44\)\) THEN NULL WHEN Int64\(61\) THEN Int64\(97\) \* \(\- Int64\(57\)\) \* \(\- nullif\(Int64\(89\), nullif\(Int64\(\-71\), Int64\(78\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(94\)\)\) \* \(\- Int64\(\-22\)\) \+ Int64\(74\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(95\) END\) \* \(\- Int64\(67\)\) \- Int64\(\-37\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CASE + COUNT ( * ) WHEN - + 44 THEN NULL WHEN + + 61 THEN 97 * - + 57 * - NULLIF ( + 89, + + NULLIF ( - 71, + 78 ) + - + COUNT ( * ) * + 94 ) * - - 22 + 74 / COUNT ( * ) + + 95 END * + ( - + 67 ) - - 37 AS col2, 45 AS col2 query I rowsort label-9741 @@ -51220,7 +51220,7 @@ SELECT ALL COUNT ( * ) + - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(16\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(16\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + 16 AS col1, - 27 AS col1 query I rowsort @@ -51509,7 +51509,7 @@ SELECT + 52 * + + COUNT ( * ) + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 19 -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\(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\(21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 21 AS col0, COUNT ( * ) * 19 AS col0 query I rowsort @@ -51578,7 +51578,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\(\*\) AS col0" at position 1 have the 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 @@ -51655,7 +51655,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\(\*\) AS col1" at position 1 have the 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 @@ -52060,7 +52060,7 @@ SELECT - 94 - 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -109 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(\-97\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- CASE \(\- count\(\*\)\) WHEN Int64\(\-75\) THEN Int64\(\-1\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(\-97\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-75\) THEN Int64\(\-1\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 + - 97 AS col2, CAST ( NULL AS INTEGER ) * - CASE - COUNT ( * ) WHEN + - 75 THEN + - 1 END col2 query I rowsort @@ -52400,7 +52400,7 @@ SELECT ALL 23 * - - 51 * 95 AS col1, COUNT ( * ) 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 "Int64\(22\) / Int64\(13\) \* \(\- 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 "Int64\(22\) / Int64\(13\) \* \(\- 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 22 / 13 * - + COUNT ( * ) AS col2, 67 AS col2 query I rowsort label-9993 diff --git a/data/sqlite/random/expr/slt_good_21.slt b/data/sqlite/random/expr/slt_good_21.slt index ea8d832..da5a735 100644 --- a/data/sqlite/random/expr/slt_good_21.slt +++ b/data/sqlite/random/expr/slt_good_21.slt @@ -835,7 +835,7 @@ SELECT ALL - + 16 + + COUNT ( DISTINCT + + 63 ) # 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 "\(\- CASE Int64\(\-74\) WHEN Int64\(51\) THEN Int64\(\-34\) ELSE count\(\*\) END\) 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 "\(\- CASE Int64\(\-74\) WHEN Int64\(51\) THEN Int64\(\-34\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE - 74 WHEN + 51 THEN - 34 ELSE + COUNT ( * ) END col2, 46 AS col2 query II rowsort label-151 @@ -2141,7 +2141,7 @@ SELECT ALL 48 * + + 13 * 96 # 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 "nullif\(count\(\*\), Int64\(24\)\) 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 "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(24\)\) 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 + NULLIF ( COUNT ( * ), + 24 ) AS col0, 58 AS col0 query I rowsort label-397 @@ -2632,7 +2632,7 @@ SELECT ALL + 59 - - 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(\-82\) WHEN Int64\(36\) \+ coalesce\(Int64\(\-95\), Int64\(13\)\) \+ \(\- \(\- count\(\*\)\)\) \+ \(\- count\(\*\)\) \+ Int64\(78\) THEN NULL WHEN Int64\(63\) THEN \(\- Int64\(99\)\) \+ Int64\(57\) \+ Int64\(89\) WHEN \(\- count\(\*\)\) THEN Int64\(\-22\) ELSE NULL END AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(\-82\) WHEN Int64\(36\) \+ coalesce\(Int64\(\-95\), Int64\(13\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) THEN NULL WHEN Int64\(63\) THEN \(\- Int64\(99\)\) \+ Int64\(57\) \+ Int64\(89\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-22\) ELSE NULL END AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + CASE - 82 WHEN + 36 + COALESCE ( + - 95, + + 13 ) + - - COUNT ( * ) + + - COUNT ( * ) + + 78 THEN NULL WHEN 63 THEN - + 99 + 57 + + 89 WHEN - + COUNT ( * ) THEN + - 22 ELSE NULL END AS col2, - 31 AS col2 query II rowsort @@ -2880,7 +2880,7 @@ SELECT DISTINCT - 50 + - 33 / + 95 + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 421262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(\-65\) \* \(\- coalesce\(Int64\(90\), \(\- \(\- CASE \(\- count\(\*\)\) WHEN Int64\(99\) THEN NULL WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- \(\- max\(DISTINCT Int64\(67\)\)\)\) \+ Int64\(\-81\) END\)\), Int64\(99\)\)\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(\-65\) \* \(\- coalesce\(Int64\(90\), \(\- \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(99\) THEN NULL WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- \(\- max\(DISTINCT Int64\(67\)\)\)\) \+ Int64\(\-81\) END\)\), Int64\(99\)\)\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 AS col2, 62 + + - 65 * - COALESCE ( 90, - - CASE - COUNT ( * ) WHEN + 99 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - - MAX ( DISTINCT 67 ) + - 81 END, 99 ) * 72 AS col2 query II rowsort @@ -5719,7 +5719,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\(\*\) AS col1" at position 1 have the 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: @@ -6593,7 +6593,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\(\*\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) AS col0, + 26 col0 query I rowsort @@ -6619,7 +6619,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(62\) \* count\(\*\) \+ count\(\*\) \+ Int64\(14\) / coalesce\(CAST\(Int64\(51\) AS Int32\), Int64\(\-57\) \+ Int64\(38\)\) \* Int64\(84\) \+ Int64\(18\) \- Int64\(\-87\) \- Int64\(87\) \+ Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) / coalesce\(CAST\(Int64\(51\) AS Int32\), Int64\(\-57\) \+ Int64\(38\)\) \* Int64\(84\) \+ Int64\(18\) \- Int64\(\-87\) \- Int64\(87\) \+ Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 38 AS col2, 62 * COUNT ( * ) + + COUNT ( * ) + + 14 / COALESCE ( CAST ( + 51 AS INTEGER ), - 57 + + 38 ) * + 84 + + 18 - - 87 - + 87 + - 40 AS col2 query I rowsort label-1256 @@ -7300,7 +7300,7 @@ SELECT ALL 10 / - + NULLIF ( - MAX ( + 56 ), CASE - 89 WHEN + + 43 THEN - - 29 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 2415 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(7\) \* Int64\(50\) AS col0" at position 0 and "Int64\(69\) \* \(\- Int64\(\-35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(7\) \* Int64\(50\) AS col0" at position 0 and "Int64\(69\) \* \(\- Int64\(\-35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / + 7 * + 50 col0, 69 * - - 35 col0 query I rowsort label-1385 @@ -7381,7 +7381,7 @@ SELECT DISTINCT 96 AS col2, COUNT ( * ) 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 "Int64\(4\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ALL 4 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -7409,7 +7409,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\(\*\) AS col0" at position 1 have the 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 @@ -8030,7 +8030,7 @@ SELECT 85 / - 67 + - 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 161 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ \(\- count\(\*\)\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(10\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\*\)\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(10\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 76 + - + COUNT ( * ) + + 86 AS col0, ( 10 ) * - COUNT ( * ) AS col0 query II rowsort @@ -8092,7 +8092,7 @@ SELECT + 64 * 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-33\) \* Int64\(45\) \+ CASE Int64\(\-12\) WHEN \(\- Int64\(61\)\) \+ avg\(\(\- Int64\(93\)\)\) \+ \(\- Int64\(60\)\) \+ \(\- \(\- count\(Int64\(20\)\)\)\) THEN NULL WHEN Int64\(29\) THEN \(\- sum\(Int64\(87\)\)\) ELSE NULL END AS col0" at position 0 and "count\(\*\) \- 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\(25\) \* Int64\(\-33\) \* Int64\(45\) \+ CASE Int64\(\-12\) WHEN \(\- Int64\(61\)\) \+ avg\(\(\- Int64\(93\)\)\) \+ \(\- Int64\(60\)\) \+ \(\- \(\- count\(Int64\(20\)\)\)\) THEN NULL WHEN Int64\(29\) THEN \(\- sum\(Int64\(87\)\)\) ELSE NULL END AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 * ( - 33 ) * + 45 + + CASE + - 12 WHEN - + 61 + AVG ( ALL - + 93 ) + - + 60 + - - COUNT ( + 20 ) THEN NULL WHEN + 29 THEN - + SUM ( 87 ) ELSE NULL END AS col0, COUNT ( * ) - 71 AS col0 query I rowsort @@ -8567,7 +8567,7 @@ SELECT ALL 7 * + CASE + 54 WHEN + - AVG ( ALL - 2 ) + - + 97 + - - 61 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -779 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(Int64\(83\)\) \+ \(\- nullif\(count\(\*\), Int64\(53\)\)\) \* Int64\(15\) \* \(\- Int64\(\-52\)\) AS col0" at position 0 and "sum\(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\(\*\) \* count\(Int64\(83\)\) \+ \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(53\)\)\) \* Int64\(15\) \* \(\- Int64\(\-52\)\) AS col0" at position 0 and "sum\(Int64\(42\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * COUNT ( 83 ) + + - NULLIF ( COUNT ( * ), 53 ) * + 15 * - - 52 AS col0, SUM ( ( 42 ) ) AS col0 query I rowsort @@ -9259,7 +9259,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\(\*\) AS col0" at position 1 have the 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 @@ -9464,7 +9464,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\(\*\) 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 @@ -10896,7 +10896,7 @@ SELECT DISTINCT ( - - 54 ) / ( + 98 ) + + + 68 * - - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / coalesce\(\(\- Int64\(80\)\), Int64\(9\)\) \* Int64\(46\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / coalesce\(\(\- Int64\(80\)\), Int64\(9\)\) \* 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 + 43 / + COALESCE ( - + 80, + 9 ) * + 46 AS col2, - COUNT ( * ) AS col2 query I rowsort label-2067 @@ -10963,7 +10963,7 @@ SELECT ALL + 61 * - + 54 / - ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) \+ \(\- 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\(19\)\) \+ \(\- 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 - ( + + 19 ) + + ( - COUNT ( * ) ) AS col0, 85 AS col0 query I rowsort label-2080 @@ -11285,7 +11285,7 @@ SELECT DISTINCT - - 3 * - 66, 96 + - 36 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(26\)\)\) \* Int64\(6\) \- Int64\(\-52\) \* Int64\(10\) / CASE count\(\*\) WHEN sum\(Int64\(21\)\) THEN Int64\(\-14\) \* \(\- Int64\(\-7\)\) \- \(\- Int64\(26\)\) \+ Int64\(\-92\) \+ Int64\(\-39\) \+ Int64\(87\) \+ \(\- CASE Int64\(46\) WHEN \(\- \(\- CASE \(\- Int64\(\-98\)\) WHEN Int64\(78\) THEN Int64\(\-28\) WHEN Int64\(\-55\) / Int64\(\-96\) \* Int64\(\-14\) THEN Int64\(\-84\) END\)\) THEN Int64\(80\) \+ Int64\(57\) END\) \* Int64\(\-65\) \+ max\(Int64\(\-59\)\) END \* Int64\(4\) \+ nullif\(count\(Int64\(\-42\)\), Int64\(45\)\) AS col1" at position 0 and "Int64\(0\) \+ sum\(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 "\(\- avg\(Int64\(26\)\)\) \* Int64\(6\) \- Int64\(\-52\) \* Int64\(10\) / CASE count\(Int64\(1\)\) AS count\(\*\) WHEN sum\(Int64\(21\)\) THEN Int64\(\-14\) \* \(\- Int64\(\-7\)\) \- \(\- Int64\(26\)\) \+ Int64\(\-92\) \+ Int64\(\-39\) \+ Int64\(87\) \+ \(\- CASE Int64\(46\) WHEN \(\- \(\- CASE \(\- Int64\(\-98\)\) WHEN Int64\(78\) THEN Int64\(\-28\) WHEN Int64\(\-55\) / Int64\(\-96\) \* Int64\(\-14\) THEN Int64\(\-84\) END\)\) THEN Int64\(80\) \+ Int64\(57\) END\) \* Int64\(\-65\) \+ max\(Int64\(\-59\)\) END \* Int64\(4\) \+ nullif\(count\(Int64\(\-42\)\), Int64\(45\)\) AS col1" at position 0 and "Int64\(0\) \+ sum\(Int64\(4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - AVG ( ALL + 26 ) * 6 - - 52 * 10 / CASE COUNT ( * ) WHEN + SUM ( 21 ) THEN + - 14 * - - 7 - - + 26 + + - 92 + - 39 + 87 + - + CASE 46 WHEN - + ( - + CASE - - 98 WHEN + 78 THEN - 28 WHEN - 55 / - 96 * - 14 THEN + ( - 84 ) END ) THEN + 80 + + 57 END * - 65 + MAX ( - 59 ) END * + 4 + + NULLIF ( + COUNT ( ALL - 42 ), 45 ) AS col1, - 0 + SUM ( ALL + 4 ) col1 query I rowsort label-2140 @@ -12085,7 +12085,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\(\*\) AS col0" at position 1 have the 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 @@ -12627,7 +12627,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\(\*\) 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 @@ -13130,7 +13130,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\(\*\) 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 @@ -14068,7 +14068,7 @@ SELECT DISTINCT + 22 AS col1, + 34 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(84\) \* count\(\*\) \+ Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(84\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 12 AS col2, 84 * COUNT ( * ) + - 23 AS col2 query I rowsort label-2675 @@ -14926,7 +14926,7 @@ SELECT 65 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(90\) 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\(\*\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + + + 90 AS col0, 74 AS col0 query I rowsort label-2838 @@ -15914,7 +15914,7 @@ SELECT ALL COUNT ( * ) - + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1326 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(39\)\), Int64\(53\) \+ \(\- \(\- Int64\(7\)\)\) \+ Int64\(20\) \+ \(\- min\(Int64\(\-2\)\)\) \* \(\- count\(\*\)\) \+ Int64\(1\) / Int64\(\-28\) \* Int64\(91\), \(\- max\(DISTINCT \(\- Int64\(\-69\)\)\)\)\)\) \* Int64\(34\) AS col2" at position 0 and "count\(\*\) \* 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 "\(\- coalesce\(\(\- Int64\(39\)\), Int64\(53\) \+ \(\- \(\- Int64\(7\)\)\) \+ Int64\(20\) \+ \(\- min\(Int64\(\-2\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) / Int64\(\-28\) \* Int64\(91\), \(\- max\(DISTINCT \(\- Int64\(\-69\)\)\)\)\)\) \* Int64\(34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - + ( 39 ), + + 53 + - ( - + 7 ) + + 20 + + - MIN ( ALL - 2 ) * - + COUNT ( * ) + + 1 / + ( + - 28 ) * + 91, - + MAX ( DISTINCT - - 69 ) ) * 34 AS col2, COUNT ( * ) * - 17 AS col2 query I rowsort label-3025 @@ -17425,7 +17425,7 @@ SELECT - - 22 * - 89 - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- Int64\(70\)\), \(\- nullif\(Int64\(72\), \(\- Int64\(\-38\)\)\)\) / Int64\(\-73\) \* \(\- count\(\*\)\)\)\)\) AS col0" at position 0 and "count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- Int64\(70\)\), \(\- nullif\(Int64\(72\), \(\- Int64\(\-38\)\)\)\) / Int64\(\-73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col0" at position 0 and "count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - NULLIF ( + ( - ( + 70 ) ), - NULLIF ( 72, - - 38 ) / - 73 * - COUNT ( * ) ) AS col0, + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -18604,7 +18604,7 @@ SELECT - + ( 7 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- min\(DISTINCT Int64\(\-32\)\)\) \+ \(\- CASE count\(\*\) WHEN \(\- Int64\(\-10\)\) \* sum\(Int64\(73\)\) THEN \(\- nullif\(Int64\(88\), Int64\(68\)\)\) WHEN CASE Int64\(\-3\) WHEN Int64\(\-13\) THEN NULL WHEN Int64\(62\) \* \(\- count\(\*\)\) THEN Int64\(\-71\) END THEN NULL ELSE NULL END\) AS col0" at position 0 and "Int64\(97\) \* Int64\(\-38\) \+ Int64\(\-83\) \+ CAST\(NULL AS Int32\) \- \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- min\(DISTINCT Int64\(\-32\)\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-10\)\) \* sum\(Int64\(73\)\) THEN \(\- nullif\(Int64\(88\), Int64\(68\)\)\) WHEN CASE Int64\(\-3\) WHEN Int64\(\-13\) THEN NULL WHEN Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-71\) END THEN NULL ELSE NULL END\) AS col0" at position 0 and "Int64\(97\) \* Int64\(\-38\) \+ Int64\(\-83\) \+ CAST\(NULL AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 + - MIN ( DISTINCT - 32 ) + - CASE COUNT ( * ) WHEN - - 10 * + SUM ( 73 ) THEN + - ( + NULLIF ( + 88, 68 ) ) WHEN + + CASE - 3 WHEN - 13 THEN NULL WHEN 62 * - COUNT ( * ) THEN - 71 END THEN NULL ELSE NULL END AS col0, 97 * + - 38 + ( - 83 ) + + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col0 query I rowsort @@ -21246,7 +21246,7 @@ NULL # Datafusion - Expected - -106 # Datafusion - Expected - NULL # Datafusion - Expected - 256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(0\)\) \* \(\- Int64\(\-6\)\) AS col0" at position 1 and "Int64\(20\) \* count\(\*\) \* Int64\(11\) \+ Int64\(36\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(0\)\) \* \(\- Int64\(\-6\)\) AS col0" at position 1 and "Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \+ Int64\(36\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 48 ) - - SUM ( DISTINCT - 58 ) AS col2, - CAST ( NULL AS INTEGER ) / - - 0 * - - 6 AS col0, 20 * + COUNT ( * ) * 11 + + 36 AS col0 query I rowsort @@ -21305,7 +21305,7 @@ SELECT CASE - + ( + NULLIF ( + 70, 32 / + 47 ) ) WHEN - 44 THEN NULL WHEN + + CA # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(96\)\)\), Int64\(57\)\) AS col0" at position 0 and "Int64\(84\) \* CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-54\), Int64\(\-74\) / \(\- count\(\*\)\)\)\) \+ Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(96\)\)\), Int64\(57\)\) AS col0" at position 0 and "Int64\(84\) \* CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-54\), Int64\(\-74\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + - COUNT ( + 96 ), + 57 ) col0, 84 * + CAST ( NULL AS INTEGER ) * - COALESCE ( - 54, - 74 / - COUNT ( * ) ) + - 18 AS col0 query I rowsort label-4054 @@ -22990,7 +22990,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\(\*\) 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 @@ -23217,7 +23217,7 @@ NULL # 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\(50\) \* \(\- count\(\*\)\) \- Int64\(18\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(18\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 * + - COUNT ( * ) - + 18 col0, 13 col0 query I rowsort label-4419 @@ -23449,7 +23449,7 @@ SELECT + 50 * - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(20\) \+ Int64\(1\) \+ Int64\(8\) \- CAST\(NULL AS Int32\) \+ count\(\*\) \* Int64\(12\) AS col2" at position 0 and "Int64\(44\) \* count\(\*\) \- Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(20\) \+ Int64\(1\) \+ Int64\(8\) \- CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(12\) AS col2" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 54 * + 20 + 1 + 8 - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 12 AS col2, + 44 * COUNT ( * ) - + 73 AS col2 query II rowsort @@ -24354,7 +24354,7 @@ SELECT - MAX ( DISTINCT - + 29 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-90\) 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\(\*\) \* Int64\(\-90\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - 90 AS col1, + 19 AS col1 query I rowsort @@ -25442,7 +25442,7 @@ SELECT + 46 * + 51 + + - 67 # 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 "nullif\(Int64\(97\), \(\- \(\- count\(\*\)\)\)\) \- Int64\(88\) 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 "nullif\(Int64\(97\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(88\) 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 + NULLIF ( + 97, - - COUNT ( * ) ) - + 88 AS col0, + 72 AS col0 query I rowsort label-4845 @@ -26328,7 +26328,7 @@ SELECT COALESCE ( + COUNT ( * ), - ( + 11 ), - 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -5478 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(22\)\) / Int64\(\-66\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(22\)\) / Int64\(\-66\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - + ( + 22 ) / - 66 AS col1, 83 * + - 66 AS col1 query I rowsort label-5014 @@ -26391,7 +26391,7 @@ SELECT ALL - 82 * + 89 + - COUNT ( * ) - - SUM ( 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -157263 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- count\(\*\)\) \* Int64\(31\) \* Int64\(\-57\) AS col2" at position 0 and "count\(Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(31\) \* Int64\(\-57\) AS col2" at position 0 and "count\(Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 89 * - + COUNT ( * ) * + 31 * - 57 col2, COUNT ( ALL + - 22 ) AS col2 query I rowsort label-5026 @@ -26529,7 +26529,7 @@ SELECT ALL 98 / + 98 + + - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(93\) \+ 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\(50\) AS col1" at position 0 and "Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 50 AS col1, 93 + COUNT ( * ) * 30 col1 query I rowsort label-5052 @@ -27296,7 +27296,7 @@ SELECT ALL - 53 - + + 6 # Datafusion - Expected - -1435 # Datafusion - Expected - -17 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ \(\- count\(\*\)\) AS col1" at position 1 and "Int64\(\-57\) 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\(\-16\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "Int64\(\-57\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( - 19, + 93 ) * + + 76 - + CAST ( - 9 AS INTEGER ), - 16 + + - COUNT ( * ) AS col1, - 57 AS col1 query I rowsort @@ -27312,7 +27312,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\(\*\) AS col1" at position 1 have the 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 @@ -27453,7 +27453,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\(\*\) 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 @@ -27523,7 +27523,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\(\*\) 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 @@ -27749,7 +27749,7 @@ SELECT + COALESCE ( 7, - ( + + 73 ) * - + CASE - ( - - 86 ) WHEN - - 45 * - - 78 # 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\(\-14\) \+ Int64\(39\) AS col0" at position 0 and "CASE Int64\(95\) WHEN Int64\(56\) THEN Int64\(42\) \+ Int64\(50\) WHEN Int64\(17\) THEN NULL ELSE count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ Int64\(39\) AS col0" at position 0 and "CASE Int64\(95\) WHEN Int64\(56\) THEN Int64\(42\) \+ Int64\(50\) WHEN Int64\(17\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 14 + + + 39 AS col0, + CASE 95 WHEN + 56 THEN + 42 + 50 WHEN + 17 THEN NULL ELSE + COUNT ( * ) END AS col0 query I rowsort @@ -31035,7 +31035,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\(\*\) AS col1" at position 0 and "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 @@ -31094,7 +31094,7 @@ SELECT ALL + 55 + - ( 18 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \+ Int64\(81\) \* count\(\*\) \+ Int64\(70\) 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\(\-49\) \+ Int64\(81\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 49 + 81 * + COUNT ( * ) + + 70 AS col1, + 71 AS col1 query I rowsort label-5925 @@ -32737,7 +32737,7 @@ SELECT + 48 + 94 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(\-24\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(16\)\)\) AS Float64\) \+ CASE \(\- sum\(Int64\(\-76\)\)\) WHEN count\(\*\) THEN NULL WHEN \(\- max\(\(\- \(\- Int64\(53\)\)\)\)\) THEN Int64\(54\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(\-24\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(16\)\)\) AS Float64\) \+ CASE \(\- sum\(Int64\(\-76\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN \(\- max\(\(\- \(\- Int64\(53\)\)\)\)\) THEN Int64\(54\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 54 + - 24 AS col1, CAST ( - COUNT ( 16 ) AS FLOAT8 ) + CASE + - SUM ( + - 76 ) WHEN + COUNT ( * ) THEN NULL WHEN + - MAX ( - - ( + 53 ) ) THEN 54 ELSE NULL END AS col1 query I rowsort @@ -34012,7 +34012,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\(\*\) 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 @@ -34586,7 +34586,7 @@ SELECT ALL - ( 42 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(0\) \* Int64\(37\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-40\) \- 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\(21\) \* Int64\(0\) \* Int64\(37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-40\) \- Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 21 * 0 * + 37 AS col1, + COUNT ( * ) + - 40 - + 71 AS col1 query II rowsort @@ -34675,7 +34675,7 @@ SELECT ALL + COUNT ( DISTINCT + + 55 ) - MAX ( - + 46 ) - - - 23 * - 70 + - 29 c # 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\(\*\)\) \* \(\- CASE \(\- avg\(Int64\(69\)\)\) WHEN Int64\(\-81\) \+ \(\- avg\(Int64\(40\)\)\) \+ \(\- Int64\(\-86\)\) \* Int64\(\-3\) \* \(\- Int64\(\-29\)\) \* \(\- Int64\(\-94\)\) \* Int64\(20\) THEN Int64\(77\) \+ Int64\(98\) \- count\(\*\) ELSE NULL END\) \+ Int64\(0\) \* Int64\(14\) AS col2" at position 0 and "Int64\(45\) / 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\(\*\)\) \* \(\- CASE \(\- avg\(Int64\(69\)\)\) WHEN Int64\(\-81\) \+ \(\- avg\(Int64\(40\)\)\) \+ \(\- Int64\(\-86\)\) \* Int64\(\-3\) \* \(\- Int64\(\-29\)\) \* \(\- Int64\(\-94\)\) \* Int64\(20\) THEN Int64\(77\) \+ Int64\(98\) \- count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) \+ Int64\(0\) \* Int64\(14\) AS col2" at position 0 and "Int64\(45\) / Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - CASE - AVG ( ALL + 69 ) WHEN - 81 + + ( + - AVG ( ALL + 40 ) ) + - - 86 * - 3 * - + ( + - 29 ) * - - 94 * + 20 THEN + 77 + 98 - COUNT ( * ) ELSE NULL END + + - 0 * + 14 AS col2, ( 45 ) / + - 78 AS col2 query I rowsort @@ -34819,7 +34819,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\(\*\) \+ 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\(\*\)\) \- \(\- \(\- count\(\*\)\)\) THEN Int64\(43\) \* Int64\(79\) END \+ \(\- Int64\(71\)\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -35514,7 +35514,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 142397 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) AS col2" at position 0 and "coalesce\(Int64\(43\), Int64\(39\) \* count\(\*\), Int64\(82\)\) \+ \(\- Int64\(\-95\)\) \- \(\- Int64\(\-62\)\) \+ Int64\(\-56\) \* Int64\(\-82\) \* Int64\(31\) \+ 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\(56\)\) AS col2" at position 0 and "coalesce\(Int64\(43\), Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(82\)\) \+ \(\- Int64\(\-95\)\) \- \(\- Int64\(\-62\)\) \+ Int64\(\-56\) \* Int64\(\-82\) \* Int64\(31\) \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 56 AS col2, COALESCE ( + + 43, + 39 * COUNT ( * ), 82 ) + - - 95 - - - 62 + - 56 * - 82 * 31 + - 31 AS col2 query I rowsort label-6766 @@ -36142,7 +36142,7 @@ SELECT ALL COUNT ( DISTINCT + 0 ) AS col1, 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ \(\- 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\(54\) \+ \(\- 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 DISTINCT + 54 + - COUNT ( * ) AS col1, + 7 col1 query I rowsort label-6887 @@ -36217,7 +36217,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\(\*\) 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 @@ -36339,7 +36339,7 @@ SELECT ALL - - 57 * CASE - COALESCE ( - + MIN ( ALL + 87 ), 9 ) WHEN 12 THEN NUL # 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\(51\) / Int64\(71\) \+ Int64\(59\) AS col1" at position 0 and "Int64\(23\) \* \(\- CASE Int64\(83\) WHEN Int64\(\-31\) THEN Int64\(\-76\) END\) \* count\(\*\) \* Int64\(87\) \* Int64\(12\) \+ 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 "Int64\(51\) / Int64\(71\) \+ Int64\(59\) AS col1" at position 0 and "Int64\(23\) \* \(\- CASE Int64\(83\) WHEN Int64\(\-31\) THEN Int64\(\-76\) END\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(87\) \* Int64\(12\) \+ Int64\(48\) \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 51 / + + 71 + + + 59 AS col1, 23 * - + CASE + + 83 WHEN + ( - 31 ) THEN - 76 END * + + COUNT ( * ) * 87 * + 12 + 48 + + - 77 AS col1 query II rowsort label-6923 @@ -37669,7 +37669,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -55 -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\(\-72\) \+ 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\(91\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 91 col2, COUNT ( * ) + - 72 + + 16 AS col2 query I rowsort label-7180 @@ -37696,7 +37696,7 @@ SELECT - 54 * - + COUNT ( * ) AS col0 # Datafusion - Expected - 0 # Datafusion - Expected - -9311 # Datafusion - Expected - -31 -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\(97\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 0 AS col0, + COUNT ( * ) + 97 * - 96 AS col0, + - 31 AS col2 query I rowsort @@ -38319,7 +38319,7 @@ SELECT + 2 * 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 327 -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\(82\)\) \* Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(82\)\) \* Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 71 AS col2, - COUNT ( * ) + - + 82 * - 4 AS col2 query I rowsort label-7304 @@ -39717,7 +39717,7 @@ SELECT + 2 + - + 32 * + + COALESCE ( + 75, ( 56 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 240 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(10\) \* Int64\(\-24\) AS col0" at position 0 and "Int64\(\-89\) / 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\(\*\)\) \* Int64\(10\) \* Int64\(\-24\) AS col0" at position 0 and "Int64\(\-89\) / Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - COUNT ( * ) ) * + 10 * - 24 AS col0, - 89 / + - 96 AS col0 query I rowsort label-7570 @@ -39800,7 +39800,7 @@ SELECT 61 + + - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4090 # Datafusion - Expected - 3375 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(11\) \- \(\- count\(\*\)\) \+ Int64\(52\) \- Int64\(63\) \+ Int64\(72\) \* sum\(DISTINCT Int64\(85\)\) \* \(\- count\(DISTINCT Int64\(76\)\)\) \+ \(\- count\(\*\)\) \* Int64\(74\) \* \(\- Int64\(13\)\) AS col1" at position 0 and "Int64\(45\) \* \(\- 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\(98\) \* Int64\(11\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(52\) \- Int64\(63\) \+ Int64\(72\) \* sum\(DISTINCT Int64\(85\)\) \* \(\- count\(DISTINCT Int64\(76\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(74\) \* \(\- Int64\(13\)\) AS col1" at position 0 and "Int64\(45\) \* \(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 * 11 - - COUNT ( * ) + 52 - 63 + + + 72 * SUM ( DISTINCT + 85 ) * - COUNT ( DISTINCT 76 ) + ( + - COUNT ( * ) ) * + 74 * - + 13 AS col1, 45 * - - 75 AS col1 query I rowsort label-7586 @@ -40015,7 +40015,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -40511,7 +40511,7 @@ SELECT DISTINCT + 99 * - - 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ count\(\*\) \* Int64\(3\) AS col2" at position 0 and "Int64\(0\) / \(\- count\(\*\)\) \* avg\(DISTINCT Int64\(42\)\) \+ \(\- CAST\(NULL AS Float64\)\) / Int64\(\-55\) \* Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) AS col2" at position 0 and "Int64\(0\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* avg\(DISTINCT Int64\(42\)\) \+ \(\- CAST\(NULL AS Float64\)\) / Int64\(\-55\) \* Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 27 + + + ( COUNT ( * ) ) * 3 AS col2, - 0 / - COUNT ( * ) * + AVG ( DISTINCT 42 ) + - + CAST ( NULL AS FLOAT8 ) / - 55 * - 10 AS col2 # Datafusion - Types were automatically converted from: @@ -40914,7 +40914,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1913 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(Int64\(41\)\)\) \+ Int64\(87\) \+ \(\- Int64\(87\)\) \* \(\- Int64\(21\)\) 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\(41\)\)\) \+ Int64\(87\) \+ \(\- Int64\(87\)\) \* \(\- Int64\(21\)\) 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 ( * ) * + - COUNT ( + 41 ) + 87 + - + 87 * - + 21 AS col1, 99 AS col1 query II rowsort label-7798 @@ -41419,7 +41419,7 @@ SELECT - 98 * + - 79 * - + COUNT ( * ) * 75 * 31 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4420 # Datafusion - Expected - -64874 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* Int64\(68\) AS col2" at position 0 and "Int64\(31\) \* \(\- \(\- CASE Int64\(91\) WHEN Int64\(85\) THEN NULL WHEN \(\- Int64\(89\)\) THEN NULL ELSE \(\- count\(\*\)\) \* \(\- coalesce\(Int64\(55\), Int64\(15\), Int64\(86\) \* Int64\(\-90\)\)\) END\)\) \* Int64\(\-38\) \+ Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* Int64\(68\) AS col2" at position 0 and "Int64\(31\) \* \(\- \(\- CASE Int64\(91\) WHEN Int64\(85\) THEN NULL WHEN \(\- Int64\(89\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(Int64\(55\), Int64\(15\), Int64\(86\) \* Int64\(\-90\)\)\) END\)\) \* Int64\(\-38\) \+ Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 * + ( + 68 ) col2, 31 * - ( - + CASE 91 WHEN 85 THEN NULL WHEN - + 89 THEN NULL ELSE + - COUNT ( * ) * - COALESCE ( + ( 55 ), 15, + 86 * - 90 ) END ) * - 38 + - 84 AS col2 query I rowsort @@ -42115,7 +42115,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\(\*\) AS col1" at position 1 have the 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 @@ -42205,7 +42205,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\(\*\) AS col2" at position 1 have the 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 @@ -42783,7 +42783,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\(7\)\) \+ Int64\(\-83\) \* Int64\(17\) \+ count\(\*\) \+ Int64\(88\) \* 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 @@ -44074,7 +44074,7 @@ SELECT ALL 60 / - - 33 + - - COALESCE ( - + 55, + 78, + + ( - 23 ) / + 16 * 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 "Int64\(82\) / Int64\(43\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(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 DISTINCT 82 / + 43 AS col2, - ( COUNT ( * ) ) AS col2 query I rowsort label-8402 @@ -44239,7 +44239,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\(\*\) 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 @@ -46562,7 +46562,7 @@ SELECT DISTINCT 59 AS col2, 17 * - + 71 - CASE WHEN 26 NOT BETWEEN ( - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "\(\- \(\- coalesce\(Int64\(29\), Int64\(68\) \+ Int64\(\-96\), \(\- CASE Int64\(\-22\) WHEN \(\- Int64\(21\)\) THEN \(\- count\(\*\)\) WHEN Int64\(50\) THEN NULL ELSE NULL END\) \* Int64\(8\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "\(\- \(\- coalesce\(Int64\(29\), Int64\(68\) \+ Int64\(\-96\), \(\- CASE Int64\(\-22\) WHEN \(\- Int64\(21\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(50\) THEN NULL ELSE NULL END\) \* Int64\(8\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 10 AS col1, - ( - COALESCE ( 29, 68 + - 96, - CASE - 22 WHEN - ( 21 ) THEN - COUNT ( * ) WHEN ( + 50 ) THEN NULL ELSE NULL END * + 8 ) ) AS col1 query II rowsort label-8881 @@ -46832,7 +46832,7 @@ SELECT - + 81 * + 72 + - COALESCE ( + 87, + 10 * - - 90 ) / + 67 + - MIN ( - 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- \(\- Int64\(59\)\) AS col2" at position 0 and "Int64\(87\) / \(\- count\(\*\)\) AS col2" at position 1 have the 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 col2" at position 0 and "Int64\(87\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 - - + 59 AS col2, 87 / - COUNT ( * ) AS col2 query I rowsort label-8932 @@ -46974,7 +46974,7 @@ SELECT 31 + + 57 + + 79 * - 56 + - - 65 + COALESCE ( + 89, ( + 22 ) * + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "count\(\*\) \* Int64\(14\) \+ Int64\(73\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) \+ Int64\(73\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col0, + COUNT ( * ) * + + 14 + + 73 * + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-8959 @@ -47139,7 +47139,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\(\*\) AS col0" at position 1 have the 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 @@ -48525,7 +48525,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\(\*\) AS col1" at position 1 have the 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 @@ -48853,7 +48853,7 @@ SELECT + COUNT ( * ), 82 + + ( + 11 ) AS col2 # 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\(\*\)\)\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) AS col2, + ( + - 41 ) AS col2 query I rowsort @@ -49079,7 +49079,7 @@ SELECT - 97 + 62 + 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -5695 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-19\), \(\- count\(\*\)\)\)\) AS col2" at position 0 and "Int64\(\-85\) \* \(\- sum\(\(\- 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 "\(\- nullif\(Int64\(\-19\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 0 and "Int64\(\-85\) \* \(\- sum\(\(\- Int64\(67\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( - 19, - COUNT ( * ) ) AS col2, - 85 * - SUM ( - + 67 ) AS col2 query I rowsort label-9362 @@ -49413,7 +49413,7 @@ SELECT ALL - ( ( - 36 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -339917 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(Int64\(5\) AS Int32\) \+ Int64\(\-74\) AS col2" at position 0 and "Int64\(18\) \+ Int64\(\-53\) \+ \(\- Int64\(\-57\)\) \- Int64\(\-59\) \* Int64\(\-80\) \* Int64\(72\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(5\) AS Int32\) \+ Int64\(\-74\) AS col2" at position 0 and "Int64\(18\) \+ Int64\(\-53\) \+ \(\- Int64\(\-57\)\) \- Int64\(\-59\) \* Int64\(\-80\) \* Int64\(72\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + COUNT ( * ) ) + + CAST ( 5 AS INTEGER ) + + - 74 AS col2, 18 + - 53 + - - 57 - - 59 * - 80 * + 72 + - + 99 AS col2 query I rowsort @@ -49435,7 +49435,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\(\*\) AS col1" at position 0 and "Int64\(\-12\) \+ Int64\(\-2\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -49808,7 +49808,7 @@ SELECT 25 * - 74 + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2253 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* nullif\(Int64\(\-74\), nullif\(\(\- Int64\(\-22\)\), Int64\(\-25\) \* Int64\(\-19\) \* Int64\(52\)\) \+ Int64\(52\) \* CASE \(\- Int64\(\-52\)\) WHEN Int64\(55\) THEN Int64\(46\) ELSE count\(\*\) END\) \+ \(\- min\(Int64\(33\)\)\) AS col1" at position 0 and "Int64\(30\) \+ CAST\(Int64\(\-8\) AS Float64\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-20\) \* \(\- nullif\(Int64\(11\), Int64\(92\) \- CAST\(NULL AS Int32\) \+ Int64\(97\) \* Int64\(85\)\)\) \+ Int64\(72\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* nullif\(Int64\(\-74\), nullif\(\(\- Int64\(\-22\)\), Int64\(\-25\) \* Int64\(\-19\) \* Int64\(52\)\) \+ Int64\(52\) \* CASE \(\- Int64\(\-52\)\) WHEN Int64\(55\) THEN Int64\(46\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) \+ \(\- min\(Int64\(33\)\)\) AS col1" at position 0 and "Int64\(30\) \+ CAST\(Int64\(\-8\) AS Float64\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-20\) \* \(\- nullif\(Int64\(11\), Int64\(92\) \- CAST\(NULL AS Int32\) \+ Int64\(97\) \* Int64\(85\)\)\) \+ Int64\(72\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 * NULLIF ( - 74, + NULLIF ( - - 22, - 25 * - 19 * + + 52 ) + 52 * CASE - - 52 WHEN + 55 THEN + 46 ELSE COUNT ( * ) END ) + - ( MIN ( ALL + + 33 ) ) AS col1, + 30 + + CAST ( - 8 AS FLOAT8 ) + - CAST ( NULL AS INTEGER ) * - 20 * - + NULLIF ( + 11, + 92 - + + CAST ( NULL AS INTEGER ) + + 97 * 85 ) + + 72 * 89 col1 query I rowsort label-9500 @@ -50192,7 +50192,7 @@ SELECT COALESCE ( + - MAX ( + ( 16 ) ), + COUNT ( * ) + - + CAST ( - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) / Int64\(\-95\) AS col2" at position 0 and "max\(Int64\(\-88\)\) \+ Int64\(28\) \+ \(\- coalesce\(Int64\(\-27\), CASE Int64\(\-32\) WHEN \(\- Int64\(\-36\)\) THEN Int64\(\-21\) WHEN Int64\(29\) THEN NULL ELSE Int64\(56\) END \+ count\(\*\), Int64\(28\) \* count\(\*\) \+ 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 "Int64\(\-47\) / Int64\(\-95\) AS col2" at position 0 and "max\(Int64\(\-88\)\) \+ Int64\(28\) \+ \(\- coalesce\(Int64\(\-27\), CASE Int64\(\-32\) WHEN \(\- Int64\(\-36\)\) THEN Int64\(\-21\) WHEN Int64\(29\) THEN NULL ELSE Int64\(56\) END \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(28\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(56\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 47 / + - 95 AS col2, + MAX ( ALL - 88 ) + + 28 + - + COALESCE ( + - 27, CASE - 32 WHEN - - 36 THEN - 21 WHEN + 29 THEN NULL ELSE + + 56 END + COUNT ( * ), + ( + 28 ) * + COUNT ( * ) + + + 56 ) AS col2 query I rowsort @@ -50678,7 +50678,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\(\*\) AS col1" at position 1 have the 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 @@ -51387,7 +51387,7 @@ SELECT + 40 - + ( + 13 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-21\)\) AS col0" at position 0 and "Int64\(63\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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 "Int64\(63\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 21 AS col0, 63 + - COUNT ( * ) AS col0 query I rowsort @@ -51998,7 +51998,7 @@ SELECT ALL 86 + - 20 + 1 - 61 * 4 # 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\(\*\)\) 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 query II rowsort @@ -52147,7 +52147,7 @@ SELECT + - 59, 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- count\(\*\)\) \* \(\- 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\(0\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 0 AS col1, - COUNT ( * ) * - + 82 AS col1 query II rowsort label-9947 diff --git a/data/sqlite/random/expr/slt_good_22.slt b/data/sqlite/random/expr/slt_good_22.slt index 73d55bd..82ab237 100644 --- a/data/sqlite/random/expr/slt_good_22.slt +++ b/data/sqlite/random/expr/slt_good_22.slt @@ -373,7 +373,7 @@ SELECT DISTINCT - - 0 * - - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "min\(Int64\(81\)\) / \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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 "min\(Int64\(81\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 col2, + MIN ( + 81 ) / - - ( COUNT ( * ) ) AS col2 query I rowsort label-65 @@ -440,7 +440,7 @@ SELECT - 99 / - - 39 # 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 "Int64\(39\) / Int64\(34\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / Int64\(34\) 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 DISTINCT + 39 / 34 AS col1, COUNT ( * ) + - 43 AS col1 query I rowsort @@ -919,7 +919,7 @@ SELECT ALL - + 47 * 11 + - 61 + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "nullif\(Int64\(57\), coalesce\(Int64\(33\), CASE CAST\(NULL AS Int32\) WHEN Int64\(\-91\) THEN Int64\(\-72\) \+ Int64\(\-3\) \* \(\- Int64\(86\)\) \- Int64\(89\) END \* \(\- Int64\(\-52\)\) \- Int64\(\-18\)\) \+ \(\- count\(\*\)\) \* Int64\(56\) \* count\(\*\) \- count\(\*\)\) \* count\(\(\- Int64\(\-51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "nullif\(Int64\(57\), coalesce\(Int64\(33\), CASE CAST\(NULL AS Int32\) WHEN Int64\(\-91\) THEN Int64\(\-72\) \+ Int64\(\-3\) \* \(\- Int64\(86\)\) \- Int64\(89\) END \* \(\- Int64\(\-52\)\) \- Int64\(\-18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(56\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(\(\- Int64\(\-51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 85 col0, + NULLIF ( + 57, + COALESCE ( + 33, CASE CAST ( NULL AS INTEGER ) WHEN - 91 THEN - 72 + - 3 * - + 86 - 89 END * - - 52 - - 18 ) + - COUNT ( * ) * + + 56 * + COUNT ( * ) - COUNT ( * ) ) * + COUNT ( ALL - - 51 ) AS col0 query I rowsort @@ -965,7 +965,7 @@ SELECT + 51 * - + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(\-22\) 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\(\*\)\) / Int64\(\-22\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) / - 22 AS col1, 24 AS col1 query I rowsort @@ -2211,7 +2211,7 @@ SELECT ALL CAST ( + 20 AS INTEGER ) * 53 + - ( + 65 ) + + 21 * 6 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 11 -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\(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\(41\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 41 col0, COUNT ( * ) * ( + + 11 ) AS col0 query II rowsort label-421 @@ -2830,7 +2830,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\(\*\) 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 @@ -3092,7 +3092,7 @@ SELECT DISTINCT 67 AS col1, + ( MAX ( - 37 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "\(\- CASE count\(\*\) WHEN Int64\(\-92\) THEN Int64\(12\) 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\(\-19\) AS col0" at position 0 and "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-92\) THEN Int64\(12\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 19 AS col0, - CASE + COUNT ( * ) WHEN - 92 THEN + 12 END AS col0 query II rowsort label-590 @@ -3197,7 +3197,7 @@ SELECT + 17 * - 2 + + + 77 * - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(49\)\) AS col2" at position 0 and "Int64\(10\) / CASE Int64\(\-95\) WHEN Int64\(81\) THEN Int64\(\-60\) \* Int64\(49\) / \(\- count\(\*\)\) \- \(\- Int64\(\-74\)\) WHEN Int64\(11\) \- Int64\(68\) \* Int64\(\-97\) THEN NULL WHEN Int64\(27\) \+ Int64\(\-96\) THEN NULL ELSE NULL END \+ \(\- 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 "\(\- Int64\(49\)\) AS col2" at position 0 and "Int64\(10\) / CASE Int64\(\-95\) WHEN Int64\(81\) THEN Int64\(\-60\) \* Int64\(49\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-74\)\) WHEN Int64\(11\) \- Int64\(68\) \* Int64\(\-97\) THEN NULL WHEN Int64\(27\) \+ Int64\(\-96\) THEN NULL ELSE NULL END \+ \(\- Int64\(\-56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 49 AS col2, 10 / CASE - 95 WHEN 81 THEN - 60 * + 49 / - COUNT ( * ) - - ( - 74 ) WHEN + 11 - + 68 * - 97 THEN NULL WHEN + ( + 27 ) + + ( - 96 ) THEN NULL ELSE NULL END + - ( - 56 ) AS col2 query I rowsort label-610 @@ -5681,7 +5681,7 @@ SELECT 17, - 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- \(\- count\(\*\)\)\) \- Int64\(\-93\) \+ \(\- Int64\(37\)\) \+ \(\- Int64\(41\)\) \* count\(DISTINCT \(\- CAST\(nullif\(Int64\(35\), Int64\(90\)\) AS Int32\)\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "CASE Int64\(\-38\) WHEN Int64\(\-69\) THEN NULL ELSE Int64\(31\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-93\) \+ \(\- Int64\(37\)\) \+ \(\- Int64\(41\)\) \* count\(DISTINCT \(\- CAST\(nullif\(Int64\(35\), Int64\(90\)\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CASE Int64\(\-38\) WHEN Int64\(\-69\) THEN NULL ELSE Int64\(31\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 + - - COUNT ( * ) - - 93 + - + 37 + - + 41 * + COUNT ( DISTINCT - + CAST ( NULLIF ( + 35, 90 ) AS INTEGER ) ) * + - COUNT ( * ) AS col0, CASE - 38 WHEN - 69 THEN NULL ELSE + 31 END col0 query II rowsort label-1087 @@ -5784,7 +5784,7 @@ SELECT 7 * - 14 - - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) AS col2" at position 0 and "CASE \(\- Int64\(61\)\) WHEN \(\- Int64\(\-73\)\) THEN Int64\(88\) END / count\(\*\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) AS col2" at position 0 and "CASE \(\- Int64\(61\)\) WHEN \(\- Int64\(\-73\)\) THEN Int64\(88\) END / count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( 94 ) AS col2, + CASE - + 61 WHEN - - 73 THEN + ( 88 ) END / COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-1106 @@ -5906,7 +5906,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(37\) \+ Int64\(3\) \+ \(\- \(\- Int64\(\-58\)\)\) \+ count\(\*\) \* nullif\(CASE Int64\(26\) WHEN Int64\(81\) THEN NULL ELSE \(\- Int64\(95\)\) END, Int64\(\-68\)\) / Int64\(28\) AS col1" at position 0 and "CAST\(Int64\(98\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(37\) \+ Int64\(3\) \+ \(\- \(\- Int64\(\-58\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(CASE Int64\(26\) WHEN Int64\(81\) THEN NULL ELSE \(\- Int64\(95\)\) END, Int64\(\-68\)\) / Int64\(28\) AS col1" at position 0 and "CAST\(Int64\(98\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 97 + + 37 + + 3 + - + ( - - 58 ) + + COUNT ( * ) * + NULLIF ( + CASE + + 26 WHEN 81 THEN NULL ELSE - ( + + 95 ) END, - 68 ) / + 28 AS col1, CAST ( + 98 AS INTEGER ) AS col1 query I rowsort label-1129 @@ -7525,7 +7525,7 @@ SELECT DISTINCT - 80 + + ( + + COUNT ( * ) ) + + 68 + ( - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 1107431 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \+ Int64\(87\) \- Int64\(52\) AS col2" at position 0 and "\(\- count\(\*\)\) / Int64\(\-3\) \+ \(\- count\(\*\)\) \+ Int64\(\-54\) \* \(\- Int64\(\-85\)\) \* \(\- Int64\(\-68\)\) \+ Int64\(16\) \* \(\- coalesce\(Int64\(\-93\), \(\- Int64\(\-47\)\), \(\- Int64\(\-47\)\)\)\) \* Int64\(\-53\) \* Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \+ Int64\(87\) \- Int64\(52\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-3\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-54\) \* \(\- Int64\(\-85\)\) \* \(\- Int64\(\-68\)\) \+ Int64\(16\) \* \(\- coalesce\(Int64\(\-93\), \(\- Int64\(\-47\)\), \(\- Int64\(\-47\)\)\)\) \* Int64\(\-53\) \* Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 26 + 87 - 52 col2, - COUNT ( * ) / - 3 + - + COUNT ( * ) + + - 54 * - - 85 * - - 68 + + 16 * - COALESCE ( ( - 93 ), - - 47, - - 47 ) * - 53 * - 18 AS col2 query I rowsort label-1438 @@ -7953,7 +7953,7 @@ SELECT DISTINCT - + 77 * - 7 * 98 AS col1, - ( 67 ) * - ( - - ( - 44 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 172 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(93\) AS col2" at position 0 and "Int64\(\-66\) \- \(\- Int64\(50\)\) \- \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(93\) AS col2" at position 0 and "Int64\(\-66\) \- \(\- Int64\(50\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 79 + + + ( 93 ) col2, - 66 - - ( + + 50 ) - - COUNT ( * ) AS col2 query I rowsort label-1520 @@ -8245,7 +8245,7 @@ SELECT 13 * + - 7 AS col0, 58 + + 78 AS col1 # Datafusion - Expected - 84 # Datafusion - Expected - 4690 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* max\(Int64\(70\)\) AS col1" at position 1 and "count\(\*\) \- \(\- CAST\(count\(Int64\(71\)\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* max\(Int64\(70\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(count\(Int64\(71\)\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 83 - - COUNT ( * ), + 67 * + MAX ( 70 ) AS col1, COUNT ( * ) - + - CAST ( + COUNT ( ALL + 71 ) AS INTEGER ) AS col1 query II rowsort @@ -8453,7 +8453,7 @@ SELECT DISTINCT + COUNT ( * ) AS col0, - 93 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\(\*\)\) 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 ALL + - COUNT ( * ) col0, 68 col0 query I rowsort label-1613 @@ -8948,7 +8948,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\(\*\) 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: @@ -11148,7 +11148,7 @@ SELECT + ( + + 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "\(\- count\(\*\)\) \* nullif\(Int64\(\-92\), \(\- coalesce\(Int64\(\-56\), Int64\(\-9\)\)\)\) / \(\- Int64\(88\)\) \* CASE count\(\*\) WHEN Int64\(\-92\) \+ Int64\(64\) THEN Int64\(\-17\) WHEN Int64\(46\) THEN CASE Int64\(37\) WHEN Int64\(73\) \* Int64\(\-17\) THEN Int64\(38\) ELSE NULL END END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-92\), \(\- coalesce\(Int64\(\-56\), Int64\(\-9\)\)\)\) / \(\- Int64\(88\)\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-92\) \+ Int64\(64\) THEN Int64\(\-17\) WHEN Int64\(46\) THEN CASE Int64\(37\) WHEN Int64\(73\) \* Int64\(\-17\) THEN Int64\(38\) ELSE NULL END END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 82 ) AS col0, - COUNT ( * ) * + NULLIF ( - 92, - + COALESCE ( - 56, - 9 ) ) / - + 88 * CASE COUNT ( * ) WHEN - 92 + 64 THEN - 17 WHEN 46 THEN CASE 37 WHEN 73 * - 17 THEN 38 ELSE NULL END END AS col0 query I rowsort label-2133 @@ -13495,7 +13495,7 @@ SELECT + COALESCE ( + 92, - 34 * COUNT ( * ) / + 45 + + - 52 + - ( - 50 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -337 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(\-18\) \+ Int64\(\-13\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(\-18\) \+ 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 18 * + - 18 + - 13 AS col1, - COUNT ( * ) AS col1 query I rowsort label-2579 @@ -15276,7 +15276,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- \(\- count\(\*\)\)\)\)\) \* count\(\*\) / Int64\(\-48\) AS col0" at position 0 and "coalesce\(Int64\(64\), sum\(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\(\*\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-48\) AS col0" at position 0 and "coalesce\(Int64\(64\), sum\(Int64\(\-82\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - ( - - COUNT ( * ) ) * + COUNT ( * ) / - 48 AS col0, COALESCE ( + ( + 64 ), SUM ( - 82 ) ) col0 query I rowsort label-2918 @@ -16516,7 +16516,7 @@ SELECT + - 92 + + 14 + 75 + - - CAST ( + 19 AS INTEGER ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3342 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ min\(DISTINCT Int64\(54\)\) \+ Int64\(48\) \* Int64\(69\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(55\) \+ 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\(\-24\) \+ min\(DISTINCT Int64\(54\)\) \+ Int64\(48\) \* Int64\(69\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(55\) \+ Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 24 + + MIN ( DISTINCT + 54 ) + + 48 * 69 col0, + ( - COUNT ( * ) ) * ( 55 ) + + + 67 AS col0 query I rowsort label-3151 @@ -16787,7 +16787,7 @@ SELECT COUNT ( 92 ) + - 89 * COUNT ( * ) - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1136 # Datafusion - Expected - 169 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* nullif\(Int64\(16\), Int64\(14\)\) AS col1" at position 0 and "Int64\(65\) \+ count\(\*\) \+ Int64\(29\) / count\(\*\) \+ coalesce\(Int64\(74\), Int64\(73\) \* Int64\(\-32\) \+ CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* nullif\(Int64\(16\), Int64\(14\)\) AS col1" at position 0 and "Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(29\) / count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(74\), Int64\(73\) \* Int64\(\-32\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * + + NULLIF ( 16, 14 ) AS col1, 65 + COUNT ( * ) + + 29 / + + COUNT ( * ) + + COALESCE ( + 74, 73 * - 32 + + + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 query I rowsort label-3203 @@ -17190,7 +17190,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\(\*\) AS col0" at position 1 have the 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 @@ -19016,7 +19016,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\(\*\) AS col2" at position 1 have the 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 @@ -19786,7 +19786,7 @@ SELECT - 40 + - 57 * + - 16 * - 86 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \- Int64\(38\) AS col2" at position 0 and "count\(\*\) \+ Int64\(72\) \+ 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\(46\) \- Int64\(38\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 46 - 38 col2, COUNT ( * ) + + 72 + - 79 AS col2 query I rowsort @@ -21394,7 +21394,7 @@ SELECT ALL + MIN ( DISTINCT + 58 ) + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 441898200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(\-61\), Int64\(98\) \* sum\(Int64\(1\)\)\)\)\) AS col0" at position 0 and "Int64\(73\) \* Int64\(50\) \* CASE Int64\(76\) WHEN Int64\(57\) THEN NULL WHEN Int64\(57\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(\-85\) THEN Int64\(20\) \+ Int64\(95\) \* Int64\(79\) \* Int64\(19\) ELSE count\(\*\) \* Int64\(\-37\) \* Int64\(\-73\) \* Int64\(45\) \- Int64\(\-9\) \* \(\- Int64\(53\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(\-61\), Int64\(98\) \* sum\(Int64\(1\)\)\)\)\) AS col0" at position 0 and "Int64\(73\) \* Int64\(50\) \* CASE Int64\(76\) WHEN Int64\(57\) THEN NULL WHEN Int64\(57\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-85\) THEN Int64\(20\) \+ Int64\(95\) \* Int64\(79\) \* Int64\(19\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-37\) \* Int64\(\-73\) \* Int64\(45\) \- Int64\(\-9\) \* \(\- Int64\(53\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - NULLIF ( - 61, + 98 * + SUM ( 1 ) ) AS col0, 73 * 50 * + CASE 76 WHEN 57 THEN NULL WHEN 57 * - - COUNT ( * ) + - 85 THEN 20 + + + 95 * 79 * + 19 ELSE COUNT ( * ) * - 37 * - 73 * + 45 - - 9 * - ( 53 ) END AS col0 query I rowsort @@ -22469,7 +22469,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -181085 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(0\) \+ \(\- \(\- coalesce\(Int64\(19\), Int64\(95\) \+ Int64\(5\) \+ Int64\(\-98\) / count\(\*\) / \(\- CAST\(NULL AS Int32\)\) / Int64\(\-3\), Int64\(31\)\)\)\) \+ Int64\(88\) \* Int64\(49\) \* \(\- Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(0\) \+ \(\- \(\- coalesce\(Int64\(19\), Int64\(95\) \+ Int64\(5\) \+ Int64\(\-98\) / count\(Int64\(1\)\) AS count\(\*\) / \(\- CAST\(NULL AS Int32\)\) / Int64\(\-3\), Int64\(31\)\)\)\) \+ Int64\(88\) \* Int64\(49\) \* \(\- Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 3 col1, 0 + - - COALESCE ( 19, 95 + + + 5 + - 98 / COUNT ( * ) / - + CAST ( NULL AS INTEGER ) / - 3, + 31 ) + 88 * 49 * - + 42 AS col1 query I rowsort @@ -22749,7 +22749,7 @@ SELECT - COUNT ( * ) + 87 + + ( + + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(97\) AS col0" at position 0 and "Int64\(49\) \+ 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\(\*\)\) \* Int64\(97\) AS col0" at position 0 and "Int64\(49\) \+ Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - ( + COUNT ( * ) ) * + + 97 AS col0, + 49 + ( + 16 ) col0 query II rowsort @@ -23130,7 +23130,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\(\*\) 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 @@ -23229,7 +23229,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\(\*\) 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 @@ -23394,7 +23394,7 @@ SELECT DISTINCT + - 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(42\) \+ count\(\*\) / count\(Int64\(66\)\) \+ count\(\*\) \- \(\- coalesce\(\(\- Int64\(\-8\)\), Int64\(\-92\)\)\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(42\) \+ count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(66\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- coalesce\(\(\- Int64\(\-8\)\), Int64\(\-92\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 82 AS col0, 42 + COUNT ( * ) / COUNT ( ALL 66 ) + + COUNT ( * ) - + - COALESCE ( - - 8, - 92 ) * - COUNT ( * ) AS col0 query I rowsort label-4465 @@ -23488,7 +23488,7 @@ SELECT + 85 / - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -2067 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-55\) \+ Int64\(\-99\) AS col2" at position 0 and "Int64\(53\) \* \(\- count\(\*\)\) \* 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\(\*\)\) \* Int64\(\-55\) \+ Int64\(\-99\) AS col2" at position 0 and "Int64\(53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + - COUNT ( * ) ) * - 55 + - 99 AS col2, + 53 * - COUNT ( * ) * + 39 AS col2 query I rowsort label-4482 @@ -23525,7 +23525,7 @@ SELECT ALL COALESCE ( 20, 66 + + 59 + + - 96 + + - ( - 98 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(\-58\) \+ Int64\(\-83\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(\-58\) \+ Int64\(\-83\) \+ \(\- 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, ( - 58 ) + - 83 + - COUNT ( * ) AS col0 query I rowsort @@ -23987,7 +23987,7 @@ SELECT DISTINCT 82 col1, 94 * - 85 + + + 85 / - + COUNT ( ALL COALESCE ( + 48, 9 # Datafusion - Expected - -2688 # Datafusion - Expected - 177 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- Int64\(95\)\)\), count\(\*\) \* Int64\(82\) \* Int64\(\-29\) \+ Int64\(\-71\), Int64\(\-92\), \(\- count\(\*\)\)\) \+ Int64\(82\) AS col2" at position 1 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- Int64\(95\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(82\) \* Int64\(\-29\) \+ Int64\(\-71\), Int64\(\-92\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(82\) AS col2" at position 1 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 28 * - + 96, COALESCE ( - - ( + 95 ), + COUNT ( * ) * + 82 * + - 29 + - 71, - 92, - COUNT ( * ) ) + 82 AS col2, + CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-4575 @@ -24077,7 +24077,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\(\*\) AS col0" at position 1 have the 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 @@ -25033,7 +25033,7 @@ SELECT ALL - + 94 + SUM ( + 97 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 2705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(0\) \+ Int64\(69\) AS col2" at position 0 and "Int64\(16\) \+ \(\- nullif\(Int64\(37\), count\(\*\)\)\) \* Int64\(\-71\) \- Int64\(67\) \+ \(\- Int64\(\-96\)\) \* count\(\*\) \- nullif\(Int64\(95\), count\(\*\) \+ Int64\(35\)\) / \(\- nullif\(Int64\(\-39\), CAST\(\(\- Int64\(73\)\) AS Int32\) / Int64\(14\) \+ Int64\(\-65\)\)\) \+ Int64\(36\) \+ \(\- count\(Int64\(\-50\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(0\) \+ Int64\(69\) AS col2" at position 0 and "Int64\(16\) \+ \(\- nullif\(Int64\(37\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-71\) \- Int64\(67\) \+ \(\- Int64\(\-96\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- nullif\(Int64\(95\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\)\) / \(\- nullif\(Int64\(\-39\), CAST\(\(\- Int64\(73\)\) AS Int32\) / Int64\(14\) \+ Int64\(\-65\)\)\) \+ Int64\(36\) \+ \(\- count\(Int64\(\-50\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 * - 0 + + 69 AS col2, 16 + - NULLIF ( ( + 37 ), + COUNT ( * ) ) * - 71 - + 67 + - - 96 * COUNT ( * ) - NULLIF ( + 95, COUNT ( * ) + + 35 ) / + - NULLIF ( - 39, + + CAST ( - + 73 AS INTEGER ) / + 14 + - 65 ) + + 36 + - COUNT ( ALL - 50 ) AS col2 query I rowsort label-4773 @@ -25799,7 +25799,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\(9\) \- \(\- count\(\*\)\) \+ Int64\(\-37\) \* Int64\(21\) / Int64\(81\)\) AS col1" at position 0 and "\(\- CAST\(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 @@ -26051,7 +26051,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\(\*\) AS col1" at position 1 have the 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 @@ -28247,7 +28247,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\(\*\) 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 @@ -28323,7 +28323,7 @@ SELECT ALL - - 49 col1, - 84 / + - 49 + 87 * + 9 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 7056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(98\) \* 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\(98\) \* Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, 98 * + 72 col0 query I rowsort @@ -28608,7 +28608,7 @@ SELECT - - ( + 51 ) col0, 65 + 72 + 93 + 55 * + 87 * 90 AS col1 # Datafusion - Expected - 90 # Datafusion - Expected - -32 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-32\) AS col1" at position 1 and "Int64\(83\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-32\) AS col1" at position 1 and "Int64\(83\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) + - MIN ( - 91 ), + COUNT ( * ) * + - 32 col1, 83 AS col1 query I rowsort label-5457 @@ -29324,7 +29324,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -29459,7 +29459,7 @@ SELECT ALL + + CAST ( 16 AS INTEGER ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ Int64\(13\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(67\) \+ 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\(\-27\) \+ Int64\(13\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(67\) \+ Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 27 + 13 AS col0, - COUNT ( * ) * + + 67 + + - 32 col0 query II rowsort label-5621 @@ -29757,7 +29757,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 94 -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\(\-39\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-25\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-39\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 25 AS col2, ( COUNT ( * ) ) / - 39 + + 94 AS col2 query I rowsort label-5678 @@ -29835,13 +29835,13 @@ SELECT + 38 + 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-5\) \* \(\- max\(Int64\(9\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-5\) \* \(\- max\(Int64\(9\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 5 * - MAX ( ALL + 9 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(85\) / count\(\*\) AS col0" at position 1 have the 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 @@ -30637,7 +30637,7 @@ SELECT + NULLIF ( - + 23, ( + - 47 ) ) AS col0, ( + + MIN ( 32 ) ) # 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 "nullif\(\(\- count\(\*\)\), Int64\(1\) \+ count\(\*\)\) AS col0" at position 0 and "count\(Int64\(82\)\) \+ \(\- nullif\(\(\- Int64\(\-95\)\), Int64\(74\)\)\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(1\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(82\)\) \+ \(\- nullif\(\(\- Int64\(\-95\)\), Int64\(74\)\)\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - COUNT ( * ), 1 + COUNT ( * ) ) AS col0, COUNT ( + + 82 ) + - ( + NULLIF ( - - 95, 74 ) ) + 18 AS col0 # Datafusion - Datafusion expected results: @@ -32015,7 +32015,7 @@ NULL # Datafusion - Expected - 95 # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(72\)\) \* Int64\(10\) \+ \(\- count\(\*\)\) \- Int64\(\-33\) \* \(\- CASE \(\- \(\- count\(\*\)\)\) WHEN Int64\(\-59\) THEN Int64\(50\) \* Int64\(57\) \+ Int64\(51\) END\) \+ Int64\(60\) \+ CASE Int64\(16\) WHEN Int64\(62\) \* \(\- sum\(Int64\(42\)\)\) THEN NULL WHEN Int64\(15\) THEN Int64\(32\) ELSE \(\- CAST\(NULL AS Float64\)\) END \+ Int64\(26\) AS col2" at position 1 and "Int64\(38\) 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 "avg\(Int64\(72\)\) \* Int64\(10\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-33\) \* \(\- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-59\) THEN Int64\(50\) \* Int64\(57\) \+ Int64\(51\) END\) \+ Int64\(60\) \+ CASE Int64\(16\) WHEN Int64\(62\) \* \(\- sum\(Int64\(42\)\)\) THEN NULL WHEN Int64\(15\) THEN Int64\(32\) ELSE \(\- CAST\(NULL AS Float64\)\) END \+ Int64\(26\) AS col2" at position 1 and "Int64\(38\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - - 95 ), AVG ( ALL 72 ) * 10 + + ( - + COUNT ( * ) ) - + - 33 * - CASE - - COUNT ( * ) WHEN + ( + - 59 ) THEN 50 * 57 + 51 END + 60 + + CASE 16 WHEN + 62 * - SUM ( 42 ) THEN NULL WHEN + 15 THEN + 32 ELSE - + CAST ( NULL AS FLOAT8 ) END + + + 26 AS col2, + + 38 AS col2 query I rowsort label-6109 @@ -32120,7 +32120,7 @@ SELECT DISTINCT 21, 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 686 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(2\), Int64\(22\) \* Int64\(\-78\) \- count\(\*\)\) \+ Int64\(19\) \* \(\- sum\(Int64\(\-31\)\)\) \+ 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 "nullif\(Int64\(2\), Int64\(22\) \* Int64\(\-78\) \- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(19\) \* \(\- sum\(Int64\(\-31\)\)\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + NULLIF ( 2, 22 * + - 78 - COUNT ( * ) ) + + + 19 * - SUM ( - 31 ) + 95 AS col2 # Datafusion - Datafusion expected results: @@ -33187,7 +33187,7 @@ SELECT ( + + 33 ) + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -202331 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(\-21\) \+ \(\- sum\(Int64\(\-62\)\)\) \* Int64\(\-52\) \* \(\- Int64\(63\)\) \* \(\- count\(\*\)\) \+ Int64\(25\) AS col1" at position 0 and "Int64\(8\) \+ 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\(\-36\) \* Int64\(\-21\) \+ \(\- sum\(Int64\(\-62\)\)\) \* Int64\(\-52\) \* \(\- Int64\(63\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(25\) AS col1" at position 0 and "Int64\(8\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 * - 21 + - SUM ( - 62 ) * - 52 * - + 63 * ( - + COUNT ( * ) ) + + 25 AS col1, + 8 + + 59 AS col1 query I rowsort label-6332 @@ -33881,7 +33881,7 @@ SELECT - 6 - COUNT ( 0 ) + - 69 + + + COUNT ( * ) * ( + - 0 ) * + 35 * 13 + + 99 # 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\(\*\)\) 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 @@ -36093,7 +36093,7 @@ SELECT DISTINCT - ( ( + 93 ) ) / + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "count\(\*\) \+ \(\- 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\(27\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 27 col1, COUNT ( * ) + - MAX ( ALL + 89 ) AS col1 query I rowsort @@ -36664,7 +36664,7 @@ SELECT + 33 + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 5164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(66\) \* count\(\*\) \* Int64\(79\) \+ 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\(66\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) \+ Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - COUNT ( * ) ) AS col0, 66 * + COUNT ( * ) * + + 79 + - 50 AS col0 query I rowsort label-6998 @@ -36998,7 +36998,7 @@ SELECT CAST ( - + ( + 64 ) AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116928 # Datafusion - Expected - -4179 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* \(\- Int64\(21\)\) \* Int64\(\-87\) AS col2" at position 0 and "Int64\(\-65\) \- \(\- \(\- Int64\(\-67\)\)\) \+ \(\- Int64\(\-95\)\) \* \(\- Int64\(44\)\) \+ \(\- count\(\*\)\) \+ Int64\(\-1\) / Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* \(\- Int64\(21\)\) \* Int64\(\-87\) AS col2" at position 0 and "Int64\(\-65\) \- \(\- \(\- Int64\(\-67\)\)\) \+ \(\- Int64\(\-95\)\) \* \(\- Int64\(44\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-1\) / Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 * + ( - + 21 ) * - 87 AS col2, - 65 - - - ( - 67 ) + - - 95 * - + 44 + - COUNT ( * ) + - 1 / 24 AS col2 query I rowsort @@ -37687,7 +37687,7 @@ SELECT - 18 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3493 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(74\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(92\) \* CASE min\(Int64\(26\)\) WHEN Int64\(69\) \* \(\- count\(\*\)\) THEN NULL WHEN nullif\(Int64\(\-14\), count\(\*\) / Int64\(\-56\)\) THEN CAST\(Int64\(68\) AS Int32\) \+ Int64\(39\) / Int64\(88\) ELSE NULL END / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(74\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(92\) \* CASE min\(Int64\(26\)\) WHEN Int64\(69\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN nullif\(Int64\(\-14\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-56\)\) THEN CAST\(Int64\(68\) AS Int32\) \+ Int64\(39\) / Int64\(88\) ELSE NULL END / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 * 74 + + - 59 AS col1, + 92 * CASE + MIN ( + 26 ) WHEN + 69 * - + COUNT ( * ) THEN NULL WHEN NULLIF ( + - 14, + COUNT ( * ) / - 56 ) THEN + CAST ( + + 68 AS INTEGER ) + 39 / 88 ELSE NULL END / 52 AS col1 query I rowsort label-7192 @@ -37868,7 +37868,7 @@ SELECT 13 AS col2, + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 134 -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\(75\) \+ 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\(\-27\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 27 AS col1, COUNT ( * ) * 75 + + 59 col1 query I rowsort label-7227 @@ -38302,7 +38302,7 @@ SELECT - 12 * - 31 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(36\) / \(\- CASE Int64\(\-90\) WHEN count\(\*\) THEN \(\- Int64\(91\)\) WHEN Int64\(70\) \+ Int64\(99\) THEN Int64\(\-50\) ELSE Int64\(\-34\) / Int64\(86\) \+ count\(\*\) \* Int64\(\-73\) \* Int64\(25\) / Int64\(15\) \* Int64\(\-47\) \+ count\(Int64\(12\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(36\) / \(\- CASE Int64\(\-90\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(91\)\) WHEN Int64\(70\) \+ Int64\(99\) THEN Int64\(\-50\) ELSE Int64\(\-34\) / Int64\(86\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) \* Int64\(25\) / Int64\(15\) \* Int64\(\-47\) \+ count\(Int64\(12\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 AS col0, + 36 / - + CASE - 90 WHEN COUNT ( * ) THEN - + 91 WHEN 70 + + 99 THEN - 50 ELSE - 34 / + 86 + + COUNT ( * ) * - 73 * 25 / 15 * - 47 + + COUNT ( 12 ) END AS col0 query I rowsort label-7308 @@ -39040,7 +39040,7 @@ SELECT - 99 * - - 76 - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(\-6\) 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\(\*\) \- Int64\(\-6\) 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 ( * ) - - 6 col2, 65 AS col2 query I rowsort label-7448 @@ -39610,7 +39610,7 @@ SELECT - 28 + + 15 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 616 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(99\) AS col2" at position 0 and "Int64\(7\) \* 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\(\*\) \* Int64\(99\) AS col2" at position 0 and "Int64\(7\) \* Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 99 AS col2, + 7 * + 88 AS col2 query I rowsort label-7557 @@ -41638,7 +41638,7 @@ SELECT DISTINCT - COUNT ( * ) + - 85 + + + 39, 42 AS col2 # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col0, - 71 AS col0 query I rowsort @@ -42684,7 +42684,7 @@ SELECT - 81 * - ( - 46 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-15\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \- Int64\(10\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-15\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(10\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - 15 ) AS col0, - COUNT ( * ) - 10 / CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-8140 @@ -42925,7 +42925,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\(\*\)\) WHEN \(\- count\(\*\)\) \+ Int64\(67\) THEN \(\- count\(\*\)\) \* \(\- Int64\(19\)\) \+ \(\- count\(\*\)\) \* \(\- Int64\(8\)\) END \+ 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 @@ -45579,7 +45579,7 @@ SELECT 15, 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(72\)\) \+ CAST\(NULL AS Int32\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(72\)\) \+ CAST\(NULL AS Int32\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, + MIN ( DISTINCT 72 ) + + CAST ( NULL AS INTEGER ) * 30 AS col1 query I rowsort label-8697 @@ -46328,7 +46328,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -46647,7 +46647,7 @@ SELECT DISTINCT 92 * - 48 * 81 col2, + 34 / - ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4136 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* count\(\*\) \* Int64\(47\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 * COUNT ( * ) * + 47 AS col2, + ( 3 ) AS col2 query I rowsort label-8900 @@ -48407,7 +48407,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\(\*\) AS col0" at position 1 have the 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 @@ -48433,7 +48433,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\(\*\) 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 @@ -48902,7 +48902,7 @@ SELECT ALL + COALESCE ( 68, + 77 * - ( + 62 ) / - + 23 * CAST ( + - 92 AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - 169 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(92\) \+ Int64\(77\) 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\(\*\) \* Int64\(92\) \+ Int64\(77\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * + + 92 + 77 AS col0, + 55 AS col0 query I rowsort @@ -49502,7 +49502,7 @@ SELECT - MIN ( ALL 14 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7412 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ sum\(Int64\(\-39\)\) \+ Int64\(\-96\) \- \(\- count\(\*\)\) \* Int64\(64\) / Int64\(38\) \* Int64\(\-61\) / Int64\(86\) \+ \(\- \(\- count\(\*\)\)\) \- Int64\(\-76\) \* max\(Int64\(99\)\) AS col2" at position 0 and "min\(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\(22\) \+ sum\(Int64\(\-39\)\) \+ Int64\(\-96\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(64\) / Int64\(38\) \* Int64\(\-61\) / Int64\(86\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-76\) \* max\(Int64\(99\)\) AS col2" at position 0 and "min\(Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 22 + + + SUM ( ALL + - 39 ) + + - 96 - + - ( + COUNT ( * ) ) * + + 64 / 38 * - 61 / + 86 + - - COUNT ( * ) - - 76 * + MAX ( 99 ) AS col2, MIN ( ALL + + 16 ) AS col2 query I rowsort label-9438 @@ -49885,7 +49885,7 @@ SELECT DISTINCT - 8 * - - COUNT ( * ) AS col2, - 73 + 67 # Datafusion - Expected - 61 # Datafusion - Expected - -1 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) / Int64\(51\) AS col2" at position 1 and "\(\- coalesce\(max\(\(\- Int64\(42\)\)\), count\(\*\) \* Int64\(1\) \+ Int64\(\-93\)\)\) \* Int64\(\-4\) \+ \(\- Int64\(\-6\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) / Int64\(51\) AS col2" at position 1 and "\(\- coalesce\(max\(\(\- Int64\(42\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(1\) \+ Int64\(\-93\)\)\) \* Int64\(\-4\) \+ \(\- Int64\(\-6\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61, - ( 95 ) / 51 AS col2, - COALESCE ( MAX ( - + 42 ), ( COUNT ( * ) ) * 1 + - 93 ) * - 4 + - - 6 AS col2 query II rowsort @@ -50047,7 +50047,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\(\*\) AS col1" at position 1 have the 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 d52dbe0..0b81722 100644 --- a/data/sqlite/random/expr/slt_good_23.slt +++ b/data/sqlite/random/expr/slt_good_23.slt @@ -2534,7 +2534,7 @@ SELECT DISTINCT - 93 AS col2, - 93 - - 78 / 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(70\) \+ \(\- \(\- sum\(\(\- 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\(32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(70\) \+ \(\- \(\- sum\(\(\- Int64\(\-15\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 32 * - COUNT ( * ) AS col0, 70 + - - SUM ( - - 15 ) col0 query II rowsort @@ -3224,7 +3224,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\(\*\) AS col0" at position 1 have the 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 @@ -3335,7 +3335,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\(\*\) 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 @@ -4682,7 +4682,7 @@ SELECT + 84 + - 44 / - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3456 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(36\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(36\) AS col0" at 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 * 36 col0, - COUNT ( * ) AS col0 query I rowsort label-887 @@ -6529,7 +6529,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\(\*\) 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 @@ -6934,7 +6934,7 @@ SELECT - 77 - + - ( - 35 ) AS 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\(\*\)\) 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 query I rowsort label-1317 @@ -9223,7 +9223,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\(\*\) AS col0" at position 1 have the 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 @@ -9616,7 +9616,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 1790 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-14\), Int64\(57\)\) AS col0" at position 0 and "coalesce\(Int64\(30\), Int64\(47\) \* Int64\(59\) \+ count\(\*\) \+ Int64\(65\) \* Int64\(53\) \+ max\(Int64\(75\)\) \* Int64\(49\)\) \* Int64\(60\) \- Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-14\), Int64\(57\)\) AS col0" at position 0 and "coalesce\(Int64\(30\), Int64\(47\) \* Int64\(59\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \* Int64\(53\) \+ max\(Int64\(75\)\) \* Int64\(49\)\) \* Int64\(60\) \- Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + - 14, + 57 ) AS col0, COALESCE ( + + 30, + + 47 * 59 + + COUNT ( * ) + + 65 * 53 + MAX ( ( 75 ) ) * + 49 ) * 60 - 10 AS col0 # Datafusion - Types were automatically converted from: @@ -9711,7 +9711,7 @@ SELECT - - CAST ( - 69 AS INTEGER ) + 29 * 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 199 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) \+ \(\- Int64\(\-94\)\) \+ Int64\(60\) AS col1" at position 0 and "CASE Int64\(59\) WHEN count\(\*\) / Int64\(98\) \+ Int64\(9\) \* Int64\(\-52\) THEN Int64\(35\) END / 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\(\-45\)\) \+ \(\- Int64\(\-94\)\) \+ Int64\(60\) AS col1" at position 0 and "CASE Int64\(59\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(98\) \+ Int64\(9\) \* Int64\(\-52\) THEN Int64\(35\) END / Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 45 + - - 94 + + 60 AS col1, CASE + 59 WHEN + + COUNT ( * ) / + 98 + + + 9 * - 52 THEN 35 END / 94 AS col1 query II rowsort label-1849 @@ -9985,7 +9985,7 @@ SELECT COUNT ( * ) * 39 * + 23 + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- CAST\(Int64\(\-27\) AS Int32\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(Int64\(\-27\) AS Int32\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - CAST ( - 27 AS INTEGER ) col2, + 86 col2 query I rowsort label-1902 @@ -10546,7 +10546,7 @@ SELECT ALL - 97 - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 query I rowsort label-2008 @@ -10864,7 +10864,7 @@ SELECT ALL + 24 * + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "coalesce\(Int64\(66\), coalesce\(\(\- Int64\(\-8\)\), Int64\(78\) \- Int64\(91\) \+ \(\- sum\(DISTINCT Int64\(53\)\)\) \* count\(\*\) \* Int64\(90\) \* \(\- Int64\(88\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "coalesce\(Int64\(66\), coalesce\(\(\- Int64\(\-8\)\), Int64\(78\) \- Int64\(91\) \+ \(\- sum\(DISTINCT Int64\(53\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(90\) \* \(\- Int64\(88\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col2, + COALESCE ( + 66, + COALESCE ( - - 8, + 78 - + + 91 + + ( - SUM ( DISTINCT 53 ) ) * + + COUNT ( * ) * + 90 * - + 88 ) ) AS col2 query I rowsort label-2068 @@ -11326,7 +11326,7 @@ SELECT + 32 AS col2, CAST ( + 59 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 7640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "Int64\(91\) \* Int64\(74\) \+ \(\- Int64\(88\)\) \+ Int64\(2\) \* sum\(DISTINCT Int64\(\-53\)\) \* \(\- count\(\*\)\) \* sum\(DISTINCT Int64\(\-49\)\) \+ max\(Int64\(\-91\)\) \* \(\- 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\(\-95\) AS col0" at position 0 and "Int64\(91\) \* Int64\(74\) \+ \(\- Int64\(88\)\) \+ Int64\(2\) \* sum\(DISTINCT Int64\(\-53\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT Int64\(\-49\)\) \+ max\(Int64\(\-91\)\) \* \(\- Int64\(68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 95 AS col0, 91 * + 74 + - + 88 + + 2 * + SUM ( DISTINCT - 53 ) * - COUNT ( * ) * SUM ( DISTINCT - 49 ) + + MAX ( ALL - 91 ) * - + 68 AS col0 query I rowsort label-2156 @@ -11895,7 +11895,7 @@ SELECT CAST ( - + 82 AS INTEGER ) / 33 - - 42 + - - 39 / + + 62 + + - 50 * - - 2 # 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 col0" at position 0 and "count\(\*\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 col0, COUNT ( * ) * - 1 AS col0 query I rowsort label-2265 @@ -12736,7 +12736,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\(\*\) 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 @@ -12901,7 +12901,7 @@ SELECT ALL + NULLIF ( - + 17, + 81 * 68 ) * + 70 * + 60 + - 18 + 24 * 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ \(\- 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\(\-45\) \+ \(\- 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 - 45 + - COUNT ( * ) col2, + 97 col2 query I rowsort label-2455 @@ -12988,7 +12988,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\(\*\) 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 @@ -13255,7 +13255,7 @@ SELECT ALL + ( - ( + 85 ) ) + + 24 * + - 91 AS col1, 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6395 # Datafusion - Expected - -1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \- Int64\(\-73\) \- count\(\*\) \- Int64\(\-79\) \* Int64\(79\) \+ \(\- \(\- max\(Int64\(69\)\)\)\) AS col0" at position 0 and "Int64\(51\) \* 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\(13\) \- Int64\(\-73\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-79\) \* Int64\(79\) \+ \(\- \(\- max\(Int64\(69\)\)\)\) AS col0" at position 0 and "Int64\(51\) \* Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 13 - - 73 - COUNT ( * ) - - 79 * + + 79 + - - MAX ( 69 ) AS col0, 51 * - 23 AS col0 query I rowsort label-2521 @@ -13438,7 +13438,7 @@ SELECT + 10 * - - COUNT ( * ) * + 88 AS col1, 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 384 # Datafusion - Expected - -3200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(\-24\) AS col1" at position 0 and "count\(\*\) \* Int64\(80\) \* 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\(\-16\) \* Int64\(\-24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 * + ( - 24 ) AS col1, COUNT ( * ) * + 80 * - 40 AS col1 query I rowsort label-2556 @@ -15128,7 +15128,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\(\*\) AS col2" at position 1 have the 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 @@ -15503,7 +15503,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1838 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) / count\(Int64\(86\)\) AS col1" at position 0 and "CASE Int64\(56\) WHEN Int64\(\-64\) \* Int64\(57\) \+ Int64\(29\) \+ Int64\(\-97\) THEN NULL ELSE \(\- \(\- Int64\(94\)\)\) \+ Int64\(23\) END \* \(\- count\(\*\)\) \* Int64\(\-15\) \+ Int64\(22\) \+ 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\(\-21\) / count\(Int64\(86\)\) AS col1" at position 0 and "CASE Int64\(56\) WHEN Int64\(\-64\) \* Int64\(57\) \+ Int64\(29\) \+ Int64\(\-97\) THEN NULL ELSE \(\- \(\- Int64\(94\)\)\) \+ Int64\(23\) END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-15\) \+ Int64\(22\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 21 / + COUNT ( + 86 ) AS col1, ( + CASE 56 WHEN - 64 * 57 + + 29 + - 97 THEN NULL ELSE - - ( + 94 ) + 23 END ) * - + ( COUNT ( * ) ) * - 15 + + + 22 + 61 AS col1 query I rowsort label-2952 @@ -16091,7 +16091,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\(\*\) AS col0" at position 0 and "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 @@ -16541,7 +16541,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\(\*\) AS col1" at position 1 have the 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 @@ -17325,7 +17325,7 @@ SELECT + COUNT ( * ) * - ( 93 ) AS col0 # 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\(\*\)\) 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 @@ -18364,7 +18364,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\(\*\) 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 @@ -19374,7 +19374,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\(\*\) AS col0" at position 1 have the 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 @@ -19554,7 +19554,7 @@ SELECT DISTINCT - 53 * + 68 AS col2, 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 151 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) \+ Int64\(73\) \+ Int64\(30\) AS col2" at position 0 and "count\(\*\) \+ nullif\(Int64\(\-30\), Int64\(\-26\) / 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\(\-48\)\) \+ Int64\(73\) \+ Int64\(30\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(\-30\), Int64\(\-26\) / Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 48 + + + 73 + 30 AS col2, COUNT ( * ) + NULLIF ( + - 30, ( - 26 ) / + 86 ) col2 query I rowsort label-3727 @@ -19601,7 +19601,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5455 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(65\) \- Int64\(\-24\) \+ Int64\(28\) \- Int64\(\-47\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(65\) \- Int64\(\-24\) \+ Int64\(28\) \- Int64\(\-47\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 84 * + 65 - + - 24 + 28 - - 47 * - ( COUNT ( * ) ) AS col1, 45 AS col1 query II rowsort @@ -20170,7 +20170,7 @@ SELECT DISTINCT + COUNT ( * ) * - 79 * + - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-88\) \* coalesce\(Int64\(1\), Int64\(\-42\) / Int64\(73\) \+ Int64\(68\) \* Int64\(\-79\) \* \(\- Int64\(46\)\) \+ Int64\(\-34\)\) \+ CAST\(NULL AS Int32\) \* Int64\(95\) \+ \(\- nullif\(Int64\(10\), \(\- nullif\(Int64\(17\), Int64\(79\) \* Int64\(47\) \+ Int64\(67\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-88\) \* coalesce\(Int64\(1\), Int64\(\-42\) / Int64\(73\) \+ Int64\(68\) \* Int64\(\-79\) \* \(\- Int64\(46\)\) \+ Int64\(\-34\)\) \+ CAST\(NULL AS Int32\) \* Int64\(95\) \+ \(\- nullif\(Int64\(10\), \(\- nullif\(Int64\(17\), Int64\(79\) \* Int64\(47\) \+ Int64\(67\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 88 ) + - - COUNT ( * ) AS col2, - 88 * COALESCE ( + 1, + - 42 / + 73 + + 68 * - 79 * - ( + + 46 ) + - 34 ) + + CAST ( NULL AS INTEGER ) * 95 + - NULLIF ( + 10, - NULLIF ( + 17, + 79 * 47 + 67 ) ) AS col2 query I rowsort label-3843 @@ -20379,7 +20379,7 @@ SELECT ALL 93 / 8 * + 69 * - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 3510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- Int64\(\-51\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-45\)\) AS Int32\) \* count\(\*\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- Int64\(\-51\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-45\)\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 - - 51 AS col2, CAST ( + ( - - 45 ) AS INTEGER ) * + COUNT ( * ) * 78 AS col2 query I rowsort @@ -20659,7 +20659,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\(\*\) \+ nullif\(coalesce\(Int64\(41\), Int64\(13\) \- Int64\(\-10\) \* Int64\(33\)\), Int64\(\-31\)\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -20675,7 +20675,7 @@ SELECT DISTINCT - 93 - - + 95 * + 4 * + COUNT ( + 14 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- CASE Int64\(39\) WHEN \(\- nullif\(\(\- Int64\(\-51\)\), \(\- Int64\(4\)\)\)\) \* Int64\(18\) \+ Int64\(\-75\) THEN NULL WHEN Int64\(8\) THEN Int64\(34\) / \(\- count\(\*\)\) END\), \(\- Int64\(86\)\)\)\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- CASE Int64\(39\) WHEN \(\- nullif\(\(\- Int64\(\-51\)\), \(\- Int64\(4\)\)\)\) \* Int64\(18\) \+ Int64\(\-75\) THEN NULL WHEN Int64\(8\) THEN Int64\(34\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\), \(\- Int64\(86\)\)\)\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + NULLIF ( - + CASE + 39 WHEN + - NULLIF ( ( - - 51 ), - + 4 ) * + 18 + - 75 THEN NULL WHEN + 8 THEN 34 / - COUNT ( * ) END, - + 86 ) AS col1, 86 AS col1 query I rowsort label-3936 @@ -21684,7 +21684,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\(\*\) AS col0" at position 1 have 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 @@ -22985,7 +22985,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-14\)\) AS col1" at position 0 and "Int64\(92\) \+ count\(\*\) \+ 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 "max\(DISTINCT Int64\(\-14\)\) AS col1" at position 0 and "Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + MAX ( DISTINCT + ( - 14 ) ) AS col1, + 92 + + COUNT ( * ) + - 35 AS col1 query I rowsort @@ -23027,7 +23027,7 @@ SELECT + 91 * + 99 # 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 "\(\- count\(\*\)\) \* \(\- Int64\(41\)\) AS col2" at position 0 and "Int64\(61\) / max\(DISTINCT Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(41\)\) AS col2" at position 0 and "Int64\(61\) / max\(DISTINCT Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - + 41 col2, + 61 / + MAX ( DISTINCT 12 ) AS col2 query I rowsort @@ -23559,7 +23559,7 @@ SELECT ALL 14 / - 37 # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 "\(\- 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, - COUNT ( * ) AS col0 query I rowsort label-4485 @@ -23580,7 +23580,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\(\*\) 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 @@ -23950,7 +23950,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\(\*\) 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 @@ -24555,7 +24555,7 @@ SELECT ALL - 75 AS col2, - ( + 3 ) * + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -31 -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\(\-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\(\-65\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 AS col0, COUNT ( * ) + + - 32 AS col0 query II rowsort label-4674 @@ -26239,7 +26239,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "CASE count\(\*\) WHEN \(\- Int64\(\-17\)\) \+ Int64\(96\) THEN NULL WHEN \(\- Int64\(77\)\) / coalesce\(Int64\(28\) \* Int64\(\-27\), Int64\(22\) \+ Int64\(0\)\) THEN \(\- count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-17\)\) \+ Int64\(96\) THEN NULL WHEN \(\- Int64\(77\)\) / coalesce\(Int64\(28\) \* Int64\(\-27\), Int64\(22\) \+ Int64\(0\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 AS col0, CASE COUNT ( * ) WHEN - - 17 + 96 THEN NULL WHEN - + ( 77 ) / + COALESCE ( 28 * - 27, 22 + - 0 ) THEN - COUNT ( * ) END col0 query I rowsort label-4996 @@ -27809,7 +27809,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\(\*\) 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 @@ -28202,7 +28202,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\(\*\) AS col2" at position 0 and "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 @@ -28772,7 +28772,7 @@ SELECT + 46 + + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -156440 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ min\(Int64\(56\)\) \- Int64\(45\) \* Int64\(49\) \* Int64\(71\) AS col1" at position 0 and "\(\- count\(\*\)\) \* \(\- Int64\(62\)\) \+ 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\(59\) \+ min\(Int64\(56\)\) \- Int64\(45\) \* Int64\(49\) \* Int64\(71\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(62\)\) \+ Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 59 + + + MIN ( + 56 ) - + 45 * 49 * + 71 col1, - COUNT ( * ) * + - ( + 62 ) + - 47 AS col1 query I rowsort label-5477 @@ -29431,7 +29431,7 @@ SELECT DISTINCT - 59 + - - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(78\) \* count\(\*\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(78\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 col0, + 78 * + + ( + COUNT ( * ) ) + - ( - CAST ( 99 AS INTEGER ) ) AS col0 query II rowsort label-5604 @@ -29868,7 +29868,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\(\*\) 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 @@ -31946,7 +31946,7 @@ SELECT ALL + 74, 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(10\) 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\(\*\) \+ Int64\(10\) 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 ( * ) + + + 10 AS col1, + ( - 70 ) AS col1 query II rowsort label-6081 @@ -32051,7 +32051,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\(\*\)\)\)\) \+ 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 @@ -32982,7 +32982,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\(\-98\)\)\) \* \(\- Int64\(50\)\) \* Int64\(\-8\) \* Int64\(0\) / Int64\(\-48\) \* Int64\(25\) / \(\- Int64\(81\)\) \* \(\- count\(\*\)\) \+ Int64\(\-31\) \+ Int64\(\-90\) \+ CAST\(Int64\(\-74\) AS Int32\) \* Int64\(63\) AS col0" at position 0 and "count\(\*\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -35041,7 +35041,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\(\*\) AS col1" at position 1 have the 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 @@ -35598,7 +35598,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\(\*\) AS col1" at position 1 have the 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 @@ -35732,7 +35732,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\(\*\) / count\(\*\) AS col1" at position 0 and "nullif\(Int64\(66\), coalesce\(count\(\*\), 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 @@ -36266,7 +36266,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\(\*\) AS col0" at position 1 have the 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 @@ -36954,7 +36954,7 @@ SELECT - COUNT ( + 51 ) AS col0, 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -99 -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\(21\) \- Int64\(44\) \- 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\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(21\) \- Int64\(44\) \- Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 76 AS col0, COUNT ( * ) + + 21 - 44 - + 77 AS col0 query I rowsort label-7040 @@ -37179,7 +37179,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\(\*\)\) \- CAST\(NULL AS Int32\) \* Int64\(\-52\) \+ count\(\*\) AS col0" at position 0 and "Int64\(47\) \+ Int64\(53\) \* CASE nullif\(count\(\*\), Int64\(38\) \* \(\- count\(\*\)\)\) WHEN Int64\(58\) \+ Int64\(86\) \* Int64\(68\) \+ \(\- \(\- CAST\(Int64\(88\) AS Int32\)\)\) \* Int64\(53\) \+ \(\- Int64\(6\)\) THEN 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 @@ -37522,7 +37522,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\(\*\) AS col1" at position 0 and "Int64\(49\) \* 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 @@ -37904,7 +37904,7 @@ SELECT ALL 81 + - + 24 * + 73 + - MAX ( ALL + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(11\) 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\(\*\) \+ Int64\(11\) 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 ( * ) + + 11 AS col1, 92 AS col1 query I rowsort label-7221 @@ -38025,7 +38025,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\(\*\) AS col2" at position 1 have the 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 @@ -38221,7 +38221,7 @@ SELECT ALL + COUNT ( * ) / + 40 + - - 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int32\) \* CASE Int64\(20\) WHEN Int64\(\-63\) \+ Int64\(5\) THEN Int64\(61\) WHEN CAST\(Int64\(67\) AS Int32\) THEN NULL ELSE Int64\(\-83\) END / Int64\(\-9\) \* Int64\(42\) \+ \(\- nullif\(Int64\(87\), Int64\(\-64\)\)\) \+ Int64\(98\) \* Int64\(\-83\) AS col1" at position 0 and "count\(\*\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int32\) \* CASE Int64\(20\) WHEN Int64\(\-63\) \+ Int64\(5\) THEN Int64\(61\) WHEN CAST\(Int64\(67\) AS Int32\) THEN NULL ELSE Int64\(\-83\) END / Int64\(\-9\) \* Int64\(42\) \+ \(\- nullif\(Int64\(87\), Int64\(\-64\)\)\) \+ Int64\(98\) \* Int64\(\-83\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - - 60 * CAST ( NULL AS INTEGER ) * CASE + + 20 WHEN - 63 + + 5 THEN 61 WHEN ( CAST ( + 67 AS INTEGER ) ) THEN NULL ELSE + ( - 83 ) END / - 9 * + + 42 + - + NULLIF ( + + 87, + - 64 ) + 98 * - 83 AS col1, COUNT ( * ) / 39 AS col1 query I rowsort @@ -39454,7 +39454,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\(\*\) 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 @@ -39987,7 +39987,7 @@ SELECT ( + - 85 ) + - - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1, 13 AS col1 query I rowsort @@ -42231,7 +42231,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\(\*\) AS col2" at position 1 have the 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 @@ -42656,7 +42656,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\(\*\) 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 @@ -42955,7 +42955,7 @@ SELECT COUNT ( * ) * SUM ( ALL + 83 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1594 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* \(\- Int64\(48\)\) AS col1" at position 0 and "count\(\*\) \* coalesce\(\(\- \(\- CASE Int64\(\-6\) WHEN Int64\(54\) THEN Int64\(67\) \* Int64\(57\) \+ Int64\(51\) END\)\), Int64\(\-19\), Int64\(10\) / min\(Int64\(51\)\) \+ nullif\(Int64\(\-99\), Int64\(0\) \* Int64\(98\) \+ Int64\(49\)\)\) \* Int64\(82\) \+ Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* \(\- Int64\(48\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- \(\- CASE Int64\(\-6\) WHEN Int64\(54\) THEN Int64\(67\) \* Int64\(57\) \+ Int64\(51\) END\)\), Int64\(\-19\), Int64\(10\) / min\(Int64\(51\)\) \+ nullif\(Int64\(\-99\), Int64\(0\) \* Int64\(98\) \+ Int64\(49\)\)\) \* Int64\(82\) \+ Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS FLOAT8 ) * - + 48 AS col1, COUNT ( * ) * COALESCE ( - - CASE - 6 WHEN + ( 54 ) THEN 67 * 57 + ( 51 ) END, - 19, 10 / MIN ( ALL 51 ) + + NULLIF ( - 99, + ( + 0 ) * 98 + 49 ) ) * 82 + - 36 col1 query I rowsort label-8191 @@ -43089,7 +43089,7 @@ SELECT ALL - 45 * + + 77 + + 6 + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3999 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(64\) \+ Int64\(31\) AS col1" at position 0 and "CASE count\(\*\) WHEN Int64\(88\) THEN NULL WHEN Int64\(\-12\) \* count\(Int64\(29\)\) \+ Int64\(27\) THEN Int64\(32\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(64\) \+ Int64\(31\) AS col1" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(88\) THEN NULL WHEN Int64\(\-12\) \* count\(Int64\(29\)\) \+ Int64\(27\) THEN Int64\(32\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 62 * + + 64 + + 31 AS col1, + CASE COUNT ( * ) WHEN + 88 THEN NULL WHEN + - 12 * COUNT ( + 29 ) + 27 THEN + 32 ELSE NULL END AS col1 query I rowsort label-8216 @@ -43714,7 +43714,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\(\*\) 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 @@ -44825,7 +44825,7 @@ SELECT ALL - 31 * - - 18 * + - MIN ( 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\(\*\)\) AS col1" at position 0 and "Int64\(63\) / 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\(63\) / Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, 63 / - 47 AS col1 query II rowsort label-8546 @@ -45495,7 +45495,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\(\*\) AS col2" at position 1 have the 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: @@ -46384,7 +46384,7 @@ SELECT - 45 / - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-66\) 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\(\*\)\) \* Int64\(\-66\) 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 ( * ) * - 66 col0, - 54 col0 query I rowsort label-8842 @@ -46778,7 +46778,7 @@ SELECT ALL 24 / + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(18\), Int64\(\-23\) \* Int64\(92\)\) AS col0" at position 0 and "Int64\(\-42\) \+ max\(Int64\(\-7\)\) \* \(\- \(\- coalesce\(Int64\(\-5\), CASE Int64\(18\) WHEN \(\- count\(\*\)\) \* Int64\(3\) \+ Int64\(59\) \- Int64\(46\) THEN Int64\(\-61\) \+ Int64\(58\) \+ Int64\(62\) \- Int64\(22\) \* nullif\(\(\- CAST\(\(\- CASE Int64\(\-11\) WHEN \(\- count\(\*\)\) THEN Int64\(\-99\) END\) AS Int32\)\), Int64\(\-37\) \* Int64\(84\)\) / Int64\(13\) WHEN count\(\*\) THEN coalesce\(Int64\(\-83\), Int64\(\-45\) \- Int64\(52\)\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(18\), Int64\(\-23\) \* Int64\(92\)\) AS col0" at position 0 and "Int64\(\-42\) \+ max\(Int64\(\-7\)\) \* \(\- \(\- coalesce\(Int64\(\-5\), CASE Int64\(18\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(3\) \+ Int64\(59\) \- Int64\(46\) THEN Int64\(\-61\) \+ Int64\(58\) \+ Int64\(62\) \- Int64\(22\) \* nullif\(\(\- CAST\(\(\- CASE Int64\(\-11\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-99\) END\) AS Int32\)\), Int64\(\-37\) \* Int64\(84\)\) / Int64\(13\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(Int64\(\-83\), Int64\(\-45\) \- Int64\(52\)\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( + + 18, - 23 * + 92 ) AS col0, - 42 + MAX ( ALL - 7 ) * - - COALESCE ( ( + - 5 ), + CASE + 18 WHEN - COUNT ( * ) * + 3 + + 59 - + 46 THEN - 61 + 58 + 62 - + 22 * + + NULLIF ( ( - CAST ( - CASE - 11 WHEN - COUNT ( * ) THEN - 99 END AS INTEGER ) ), + - 37 * 84 ) / 13 WHEN COUNT ( * ) THEN + COALESCE ( - 83, - 45 - 52 ) END ) AS col0 query I rowsort label-8916 @@ -47492,7 +47492,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\(\*\) AS col1" at position 1 have the 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 - Datafusion expected results: @@ -48252,7 +48252,7 @@ SELECT DISTINCT + MIN ( + + 40 ) + + 40 # Datafusion - Expected - -5250767 # Datafusion - Expected - NULL # Datafusion - Expected - 2768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- nullif\(Int64\(70\), Int64\(19\)\)\) \+ Int64\(\-21\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-79\) \* \(\- coalesce\(Int64\(\-19\), coalesce\(Int64\(85\), \(\- Int64\(\-61\)\) \- Int64\(65\), Int64\(\-65\)\), Int64\(80\) \* Int64\(\-41\) \- Int64\(78\) \+ \(\- \(\- Int64\(65\)\)\) \* Int64\(55\) \+ Int64\(91\) \* max\(Int64\(\-94\)\) \* Int64\(76\), \(\- count\(\*\)\) \* Int64\(43\) / count\(\*\)\)\) \* Int64\(66\) \- Int64\(88\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- nullif\(Int64\(70\), Int64\(19\)\)\) \+ Int64\(\-21\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-79\) \* \(\- coalesce\(Int64\(\-19\), coalesce\(Int64\(85\), \(\- Int64\(\-61\)\) \- Int64\(65\), Int64\(\-65\)\), Int64\(80\) \* Int64\(\-41\) \- Int64\(78\) \+ \(\- \(\- Int64\(65\)\)\) \* Int64\(55\) \+ Int64\(91\) \* max\(Int64\(\-94\)\) \* Int64\(76\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(66\) \- Int64\(88\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 90 + - NULLIF ( + 70, + 19 ) + - 21 + - - 53 * ( - 79 ) * - + COALESCE ( - 19, + COALESCE ( 85, - - 61 - + 65, - 65 ), + 80 * + + ( + ( - 41 ) ) - 78 + - - ( 65 ) * + 55 + + 91 * MAX ( ALL ( - 94 ) ) * + + ( + 76 ), - COUNT ( * ) * + 43 / + + COUNT ( * ) ) * + + 66 - + 88 AS col2, CAST ( NULL AS INTEGER ) + + 24 AS col2, + + 39 * 3 * + 23 + + 77 # Datafusion - Datafusion expected results: @@ -48490,7 +48490,7 @@ SELECT + 54 * - 45 * + 6 AS col2 # 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\(\*\)\)\) 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 query I rowsort label-9241 @@ -48931,7 +48931,7 @@ SELECT + 95 + + + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) / Int64\(\-1\) AS col2" at position 0 and "count\(\*\) \+ 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\(\-13\) / Int64\(\-1\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 13 / - 1 AS col2, COUNT ( * ) + 42 AS col2 query I rowsort @@ -48953,7 +48953,7 @@ SELECT + ( - 67 ) col1, - 74 * - CAST ( - - 64 AS INTEGER ) + - 68 # 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 "nullif\(\(\- count\(\*\)\), Int64\(\-50\) \+ \(\- CASE Int64\(\-40\) WHEN Int64\(90\) \+ Int64\(57\) THEN Int64\(38\) \* \(\- count\(\*\)\) ELSE NULL END\)\) 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 "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-50\) \+ \(\- CASE Int64\(\-40\) WHEN Int64\(90\) \+ Int64\(57\) THEN Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - COUNT ( * ), + - 50 + + ( + - CASE - 40 WHEN 90 + 57 THEN 38 * - COUNT ( * ) ELSE NULL END ) ) AS col1, 84 AS col1 query I rowsort label-9331 @@ -49998,7 +49998,7 @@ SELECT - 18 * + + ( + - 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -4714 -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\(52\) \* \(\- Int64\(92\)\) \+ nullif\(Int64\(69\), 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\(30\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(52\) \* \(\- Int64\(92\)\) \+ nullif\(Int64\(69\), Int64\(11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 col1, + COUNT ( * ) + 52 * - + ( 92 ) + + + NULLIF ( 69, + 11 ) col1 query I rowsort @@ -51211,7 +51211,7 @@ SELECT 9 * 78, + 78 * - 37 - - + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1825 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* Int64\(\-25\) AS col2" at position 0 and "Int64\(42\) \* count\(\*\) \- 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\(\-73\) \* Int64\(\-25\) AS col2" at position 0 and "Int64\(42\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT ( * ) - + - 3 AS col2 query I rowsort label-9766 diff --git a/data/sqlite/random/expr/slt_good_24.slt b/data/sqlite/random/expr/slt_good_24.slt index fa77cec..c2cc33f 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\(\*\) 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\(\*\) 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 @@ -3426,7 +3426,7 @@ SELECT ALL 30 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "\(\- CASE Int64\(45\) WHEN \(\- Int64\(\-27\)\) \* Int64\(\-25\) \* Int64\(\-91\) THEN coalesce\(Int64\(19\), Int64\(5\), Int64\(\-46\) \+ Int64\(\-63\)\) WHEN count\(DISTINCT Int64\(34\)\) \* avg\(Int64\(96\)\) THEN count\(\*\) WHEN Int64\(67\) / sum\(Int64\(\-65\)\) THEN Int64\(2\) \+ count\(\*\) \* Int64\(56\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "\(\- CASE Int64\(45\) WHEN \(\- Int64\(\-27\)\) \* Int64\(\-25\) \* Int64\(\-91\) THEN coalesce\(Int64\(19\), Int64\(5\), Int64\(\-46\) \+ Int64\(\-63\)\) WHEN count\(DISTINCT Int64\(34\)\) \* avg\(Int64\(96\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(67\) / sum\(Int64\(\-65\)\) THEN Int64\(2\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(56\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT ( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT ( * ) WHEN 67 / + SUM ( ALL - 65 ) THEN + 2 + COUNT ( * ) * 56 END AS col1 query I rowsort @@ -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\(\*\) 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 @@ -3701,7 +3701,7 @@ SELECT ALL - 11 * - 78 AS col1 # 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\(\*\)\) \* \(\- sum\(Int64\(3\)\)\) 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\(\*\)\) \* \(\- sum\(Int64\(3\)\)\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2 query I rowsort @@ -4868,7 +4868,7 @@ SELECT ALL 23 * + - 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4346 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* \(\- Int64\(53\)\) AS col0" at position 0 and "Int64\(\-83\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(53\)\) 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 DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT ( * ) AS col0 query I rowsort @@ -5522,7 +5522,7 @@ SELECT ALL 67 AS col0 # 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 "Int64\(1\) AS col1" at position 0 and "count\(\*\) \* \(\- Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 AS col1, COUNT ( * ) * - - 77 AS col1 query I rowsort @@ -6524,7 +6524,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\(\*\) AS col2" at position 0 and "coalesce\(Int64\(\-90\), count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -6602,7 +6602,7 @@ SELECT - + 52 * - 91 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 "\(\- coalesce\(\(\- count\(\*\)\), Int64\(\-91\) \+ Int64\(\-17\), Int64\(57\)\)\) 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 "\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-91\) \+ Int64\(\-17\), Int64\(57\)\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - + COUNT ( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0 query I rowsort label-1259 @@ -7579,7 +7579,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\(\*\) 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 @@ -7667,7 +7667,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\(\*\) AS col1" at position 1 have the 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: @@ -7919,7 +7919,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1406 # Datafusion - Expected - -87472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 * 37 * - - CAST ( - COALESCE ( COUNT ( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS INTEGER ) AS col2, 88 * 14 * + - 71 AS col2 query I rowsort @@ -10540,7 +10540,7 @@ SELECT - 56 * + 2 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "nullif\(Int64\(\-82\), count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "nullif\(Int64\(\-82\), 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, + NULLIF ( + - 82, + COUNT ( * ) ) AS col0 query I rowsort @@ -11010,7 +11010,7 @@ SELECT ALL - - 75 + - COUNT ( * ) / + 97 * + - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(\-20\)\) WHEN Int64\(88\) THEN count\(\*\) ELSE NULL END\) \- max\(DISTINCT \(\- Int64\(67\)\)\) / Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(\-20\)\) WHEN Int64\(88\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) \- max\(DISTINCT \(\- Int64\(67\)\)\) / Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT ( * ) ELSE NULL END - + MAX ( DISTINCT - ( + 67 ) ) / - 60 AS col0 query II rowsort label-2100 @@ -11842,7 +11842,7 @@ SELECT - 10 * 0 # 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\(\*\)\) AS col2" at position 0 and "Int64\(17\) \+ count\(\*\) \+ 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\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + 17 + + + COUNT ( * ) + + 0 AS col2 query I rowsort @@ -12410,7 +12410,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\(\*\) 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 @@ -13735,7 +13735,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\(\*\) 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 @@ -14814,7 +14814,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\(\*\) 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 @@ -15496,7 +15496,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\(\*\)\) \* 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 @@ -16080,7 +16080,7 @@ SELECT DISTINCT 54 + - 72 # Datafusion - Expected - 0 # Datafusion - Expected - -90 # Datafusion - Expected - 5310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* count\(\*\) / Int64\(\-37\) \* Int64\(75\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-37\) \* Int64\(75\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 * + COUNT ( * ) / + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86 query I rowsort label-3074 @@ -16152,7 +16152,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\(\*\) AS col2" at position 1 have 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 @@ -17370,7 +17370,7 @@ SELECT 79 + - - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1022 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int32\)\)\)\), count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int32\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 73 * + - 14 col0, + COUNT ( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX ( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN ( - + CAST ( NULL AS INTEGER ) ) ), + + COUNT ( * ) ) ) AS col0 query I rowsort @@ -17439,7 +17439,7 @@ SELECT DISTINCT 14 + - 10 col2 # Datafusion - Expected - 31 # Datafusion - Expected - -88 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- count\(\*\)\) \+ Int64\(\-21\) AS col0" at position 1 and "count\(Int64\(\-51\)\) \* min\(Int64\(55\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-21\) AS col0" at position 1 and "count\(Int64\(\-51\)\) \* min\(Int64\(55\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 28 + + 3, + 67 * - COUNT ( * ) + - 21 AS col0, + COUNT ( - 51 ) * MIN ( 55 ) AS col0 query I rowsort @@ -17470,7 +17470,7 @@ SELECT ALL 13 + + 12 + - SUM ( ALL 20 ) * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(48\), 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 "coalesce\(Int64\(48\), 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 DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0 query I rowsort @@ -17690,7 +17690,7 @@ SELECT ALL - - 6 * + - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1054 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(47\) \- Int64\(\-62\) \+ Int64\(27\) \* \(\- min\(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\(47\) \- Int64\(\-62\) \+ Int64\(27\) \* \(\- min\(Int64\(\-35\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col2, 47 - - 62 + + 27 * + - MIN ( + - 35 ) AS col2 query I rowsort label-3381 @@ -19275,7 +19275,7 @@ SELECT ALL - SUM ( + 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 AS col0, 45 * + 67 * 67 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0 query I rowsort label-3685 @@ -20866,7 +20866,7 @@ SELECT - + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(91\) AS col0" at position 0 and "count\(\(\- Int64\(\-20\)\)\) \* 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\(\*\)\) \+ Int64\(91\) AS col0" at position 0 and "count\(\(\- Int64\(\-20\)\)\) \* Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + + 91 AS col0, COUNT ( - - 20 ) * + 91 col0 query I rowsort label-3993 @@ -22041,7 +22041,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\(\*\) 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 @@ -22228,7 +22228,7 @@ SELECT - 59 * - MAX ( - + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(98\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 "Int64\(98\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0 query I rowsort label-4258 @@ -22417,7 +22417,7 @@ SELECT DISTINCT - 82 + - 89 AS col0 # 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\(\*\)\) 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 col2 query I rowsort label-4295 @@ -23852,7 +23852,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\(\*\) / 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 @@ -23899,7 +23899,7 @@ SELECT ALL 52 + 84 + NULLIF ( + 68, 40 ) AS col0, 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- 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 "Int64\(59\) \+ \(\- 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 ( + + 59 ) + - COUNT ( * ) AS col2, 65 col2 query I rowsort @@ -24694,7 +24694,7 @@ SELECT ALL 90 * - - 95 # 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\(\-42\)\) AS col1" at position 0 and "Int64\(\-49\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same 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 col1" at position 0 and "Int64\(\-49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - 42 ) col1, - 49 * + - COUNT ( * ) AS col1 query I rowsort label-4735 @@ -25177,7 +25177,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int32\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(\*\) \* CAST\(NULL AS Int32\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int32\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 17 AS col1, - 31 + CASE COUNT ( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN ( + + 47 ) + + - CAST ( 3 AS INTEGER ) * - 36 THEN 81 * - 76 + 15 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) END AS col1 query I rowsort label-4826 @@ -25874,7 +25874,7 @@ SELECT DISTINCT - - ( - - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7015 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \- Int64\(\-92\) \* Int64\(77\) AS col0" at position 0 and "count\(\*\) \* 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\(\-69\) \- Int64\(\-92\) \* Int64\(77\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 69 - - 92 * 77 col0, COUNT ( * ) * 65 AS col0 query I rowsort @@ -25905,7 +25905,7 @@ SELECT ALL - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6203 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ \(\- Int64\(\-88\)\) \* Int64\(70\) AS col2" at position 0 and "count\(\*\) \* count\(Int64\(68\)\) \* CASE Int64\(\-46\) WHEN Int64\(44\) THEN count\(Int64\(\-37\)\) \+ Int64\(\-19\) ELSE \(\- count\(\*\)\) END \* 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\(43\) \+ \(\- Int64\(\-88\)\) \* Int64\(70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(68\)\) \* CASE Int64\(\-46\) WHEN Int64\(44\) THEN count\(Int64\(\-37\)\) \+ Int64\(\-19\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 + - ( - 88 ) * 70 AS col2, + COUNT ( * ) * COUNT ( ALL 68 ) * CASE - 46 WHEN + 44 THEN COUNT ( ALL - 37 ) + - 19 ELSE + - COUNT ( * ) END * + 68 AS col2 query I rowsort @@ -27502,7 +27502,7 @@ SELECT - ( 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 AS col1 query I rowsort label-5270 @@ -28628,7 +28628,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\(\*\)\)\) \* count\(\*\) AS col0" at position 0 and "Int64\(40\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -29215,7 +29215,7 @@ SELECT ALL 86 / - + ( - 94 ) + - 99 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) query II rowsort label-5600 @@ -29237,7 +29237,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 "\(\- CASE \(\- Int64\(11\)\) WHEN \(\- Int64\(71\)\) \+ CAST\(NULL AS Float64\) \+ \(\- count\(\*\)\) THEN Int64\(25\) ELSE count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(97\) \+ Int64\(35\) END\) \* Int64\(41\) \+ Int64\(6\) AS col2" at position 0 and "Int64\(97\) \- 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 "\(\- CASE \(\- Int64\(11\)\) WHEN \(\- Int64\(71\)\) \+ CAST\(NULL AS Float64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(25\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(97\) \+ Int64\(35\) END\) \* Int64\(41\) \+ Int64\(6\) AS col2" at position 0 and "Int64\(97\) \- Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CASE - + 11 WHEN - + 71 + ( CAST ( NULL AS FLOAT8 ) ) + - COUNT ( * ) THEN 25 ELSE COUNT ( * ) * - CAST ( NULL AS FLOAT8 ) + 97 + + 35 END * 41 + + 6 AS col2, + 97 - + + 69 col2 query II rowsort @@ -29648,7 +29648,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\(\*\) AS col2" at position 1 have the 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 @@ -30027,7 +30027,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-14\) AS col1" at position 0 and "Int64\(\-8\) \* CASE \(\- Int64\(\-54\)\) WHEN Int64\(83\) THEN CASE Int64\(69\) WHEN Int64\(97\) THEN Int64\(\-22\) \* sum\(Int64\(78\)\) \+ \(\- Int64\(\-47\)\) WHEN Int64\(\-11\) THEN NULL END \* \(\- count\(\*\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-14\) AS col1" at position 0 and "Int64\(\-8\) \* CASE \(\- Int64\(\-54\)\) WHEN Int64\(83\) THEN CASE Int64\(69\) WHEN Int64\(97\) THEN Int64\(\-22\) \* sum\(Int64\(78\)\) \+ \(\- Int64\(\-47\)\) WHEN Int64\(\-11\) THEN NULL END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 39 + - 14 AS col1, - 8 * + ( CASE - - 54 WHEN + 83 THEN CASE + 69 WHEN + 97 THEN + - 22 * + SUM ( + 78 ) + - - 47 WHEN - 11 THEN NULL END * - COUNT ( * ) ELSE NULL END ) AS col1 query I rowsort @@ -30454,7 +30454,7 @@ SELECT ALL - MAX ( - 38 ) * MAX ( ALL + 83 ) * 55 - 9 + + 66 + - - CAST ( 42 AS # Datafusion - Expected - 39 # Datafusion - Expected - -6 skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(CAST\(NULL AS Float64\), \(\- \(\- Int64\(87\)\)\) \+ Int64\(95\)\)\) \+ \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(85\)\) AS col1" at position 0 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 "\(\- nullif\(CAST\(NULL AS Float64\), \(\- \(\- Int64\(87\)\)\) \+ Int64\(95\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(85\)\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - NULLIF ( CAST ( NULL AS FLOAT8 ), - - ( + 87 ) + 95 ) + - - COUNT ( * ) * - + 85 AS col1, - CAST ( - SUM ( DISTINCT + 79 ) AS INTEGER ) + - + CASE - - 4 WHEN + - NULLIF ( + 75, 13 ) + - 98 + - + 96 * - 52 + 87 * + ( - 92 ) * + 34 * 5 * - ( 29 ) * + 92 * + - 81 / NULLIF ( - CASE + 4 WHEN + + 88 THEN + 87 ELSE + CAST ( + + 90 AS FLOAT8 ) + 54 END, + - 35 - - + 70 ) + + 89 * + 92 + + + AVG ( DISTINCT - 11 ) THEN NULL ELSE 40 END, - 6 AS col1 # Datafusion - Types were automatically converted from: @@ -31915,7 +31915,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\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) \* Int64\(13\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -32060,7 +32060,7 @@ SELECT + - COUNT ( * ) * + - 72 # 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\(\*\)\) 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 AS col1 query I rowsort @@ -32199,7 +32199,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 + MAX ( - 92 ) + - - COUNT ( * ) * - 52 / - 33 AS col2, CAST ( - 3 AS INTEGER ) AS col2 query I rowsort @@ -32302,7 +32302,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\(85\) \* count\(\*\) AS col1" at position 1 have the same 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 @@ -33341,7 +33341,7 @@ SELECT ALL ( 62 ) AS col0, 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- Int64\(30\)\) 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\(\*\)\) \+ \(\- Int64\(30\)\) 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 ( * ) + - + 30 AS col0, + 91 AS col0 query I rowsort label-6392 @@ -34146,7 +34146,7 @@ SELECT DISTINCT - 45 + - 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -445 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-89\) \* \(\- 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\(86\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-89\) \* \(\- Int64\(\-5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 86 * + - COUNT ( * ) AS col1, - 89 * - - 5 AS col1 query I rowsort label-6547 @@ -34560,7 +34560,7 @@ SELECT 49, 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5807676 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(6\) \+ Int64\(98\) \* Int64\(\-17\) \* Int64\(83\) \* Int64\(42\) 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\(\*\)\) / Int64\(6\) \+ Int64\(98\) \* Int64\(\-17\) \* Int64\(83\) \* Int64\(42\) 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 ( * ) / + 6 + 98 * - 17 * + 83 * 42 AS col0, 60 AS col0 query I rowsort label-6624 @@ -34658,7 +34658,7 @@ SELECT ALL + ( - 8 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -967 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(86\) \+ count\(\*\) \- Int64\(30\) \- CASE \(\- \(\- count\(\*\)\)\) WHEN count\(\*\) THEN Int64\(64\) \* Int64\(16\) ELSE Int64\(55\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(86\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(30\) \- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(64\) \* Int64\(16\) ELSE Int64\(55\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 76 ) AS col1, + 86 + + + COUNT ( * ) - 30 - + CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN + 64 * + 16 ELSE + 55 END AS col1 query I rowsort @@ -36713,7 +36713,7 @@ SELECT + 39 * 97 / + 67 AS col2 # 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 "nullif\(\(\- coalesce\(count\(\*\), Int64\(\-29\) \+ Int64\(96\) \* Int64\(\-76\) \* Int64\(\-18\)\)\), Int64\(14\) \+ Int64\(23\)\) AS col0" at position 0 and "Int64\(\-97\) \- 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 "nullif\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-29\) \+ Int64\(96\) \* Int64\(\-76\) \* Int64\(\-18\)\)\), Int64\(14\) \+ Int64\(23\)\) AS col0" at position 0 and "Int64\(\-97\) \- Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - COALESCE ( + COUNT ( * ), - 29 + + 96 * - 76 * - 18 ), 14 + + 23 ) AS col0, - 97 - 51 AS col0 query II rowsort label-7038 @@ -36782,7 +36782,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(\-18\) / \(\- 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 "Int64\(32\) \+ Int64\(\-18\) / \(\- 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 + 32 + - 18 / - + COUNT ( * ) AS col0, - 76 AS col0 query I rowsort @@ -37078,7 +37078,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\(\*\) AS col0" at position 1 have the 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 @@ -37603,7 +37603,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\(\*\) 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 @@ -37783,7 +37783,7 @@ SELECT ALL - COUNT ( * ) + - - 99 + - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- CASE Int64\(71\) WHEN \(\- Int64\(68\)\) \* Int64\(72\) \+ Int64\(13\) \* coalesce\(count\(\*\), count\(\*\) \* Int64\(54\) \+ \(\- Int64\(95\)\), Int64\(\-61\)\) \* Int64\(36\) THEN sum\(DISTINCT \(\- Int64\(9\)\)\) \- min\(Int64\(9\)\) \+ Int64\(22\) / Int64\(35\) WHEN \(\- \(\- count\(\*\)\)\) THEN NULL END\) \* Int64\(\-6\) / \(\- Int64\(\-28\)\) \- 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\(76\) AS col2" at position 0 and "\(\- CASE Int64\(71\) WHEN \(\- Int64\(68\)\) \* Int64\(72\) \+ Int64\(13\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\) \+ \(\- Int64\(95\)\), Int64\(\-61\)\) \* Int64\(36\) THEN sum\(DISTINCT \(\- Int64\(9\)\)\) \- min\(Int64\(9\)\) \+ Int64\(22\) / Int64\(35\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END\) \* Int64\(\-6\) / \(\- Int64\(\-28\)\) \- Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 col2, - CASE 71 WHEN - + 68 * + 72 + 13 * COALESCE ( + COUNT ( * ), + COUNT ( * ) * 54 + - ( + 95 ), - 61 ) * + 36 THEN SUM ( DISTINCT - + 9 ) - MIN ( 9 ) + 22 / + 35 WHEN - - COUNT ( * ) THEN NULL END * + - 6 / - - 28 - - 57 AS col2 query I rowsort label-7241 @@ -38674,13 +38674,13 @@ SELECT ALL + ( 18 ) - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(58\) \+ \(\- Int64\(\-18\)\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) \* Int64\(94\) \- count\(\*\)\) \* count\(\*\) AS col1" at position 0 and "nullif\(CASE Int64\(\-21\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(67\) \* Int64\(\-18\) \+ \(\- 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: # Datafusion - Expected - 1967625 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int32\)\) / count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 15 * - + CASE + ( CAST ( NULL AS INTEGER ) ) WHEN + - 32 THEN + - 73 * - 84 WHEN 61 * + + 22 + - 21 * - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) THEN NULL ELSE + MIN ( DISTINCT + 40 ) * + - 71 + - COALESCE ( + 75, - 54 * + - COUNT ( * ) * + ( + - 30 ) ) END * 45 AS col2, - 95 AS col2 query I rowsort @@ -39572,7 +39572,7 @@ SELECT ALL 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-72\) \+ \(\- \(\- min\(Int64\(6\)\)\)\) \+ Int64\(9\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\) \+ \(\- \(\- min\(Int64\(6\)\)\)\) \+ Int64\(9\) \* \(\- 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, - 72 + - - MIN ( + 6 ) + + 9 * + - ( + COUNT ( * ) ) AS col1 query I rowsort @@ -40950,7 +40950,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\(\*\) 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 @@ -42435,7 +42435,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 756 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(42\) \* Int64\(18\) 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\(\*\) \* Int64\(42\) \* Int64\(18\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + 42 * + 18 AS col2, 0 AS col2 query II rowsort label-8139 @@ -42943,13 +42943,13 @@ 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\(\*\) 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: # Datafusion - Expected - -91 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) / Int64\(\-32\) \+ count\(\*\) \+ Int64\(\-93\) \+ Int64\(1\) AS col0" at position 0 and "Int64\(97\) \+ 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\(\-27\)\) / Int64\(\-32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-93\) \+ Int64\(1\) AS col0" at position 0 and "Int64\(97\) \+ Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - 27 ) / + - 32 + COUNT ( * ) + - 93 + + 1 AS col0, + 97 + - 90 AS col0 query I rowsort label-8236 @@ -43054,7 +43054,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\(\*\) 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 @@ -44682,7 +44682,7 @@ SELECT DISTINCT - 39 * - 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0 # Datafusion - Types were automatically converted from: @@ -45087,7 +45087,7 @@ SELECT + ( + ( 51 ) ) * - + 34 * 15 + + - 38 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(73\)\) \* \(\- Int64\(50\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(8\) \- Int64\(\-89\) \+ 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\(73\)\) \* \(\- Int64\(50\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(8\) \- Int64\(\-89\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( ALL 73 ) * - + 50 AS col0, COUNT ( * ) * + 8 - - 89 + 38 AS col0 query I rowsort label-8646 @@ -45207,7 +45207,7 @@ SELECT ALL - 85 + 81 - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -665 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-1\)\) \+ nullif\(Int64\(32\), \(\- \(\- count\(\*\)\)\)\) \+ Int64\(\-12\) \+ \(\- Int64\(\-76\)\) \* Int64\(\-9\) \* Int64\(1\) 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 "min\(DISTINCT Int64\(\-1\)\) \+ nullif\(Int64\(32\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(\-12\) \+ \(\- Int64\(\-76\)\) \* Int64\(\-9\) \* Int64\(1\) 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 MIN ( DISTINCT - 1 ) + NULLIF ( 32, + - ( - COUNT ( * ) ) ) + - 12 + - - 76 * - 9 * 1 AS col2, - 68 AS col2 query I rowsort @@ -45395,7 +45395,7 @@ SELECT ALL - COUNT ( * ) * - + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(\*\)\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int32\) \+ \(\- count\(\*\)\) \* \(\- count\(\*\)\) \* \(\- coalesce\(\(\- count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 87 * - 69 * - + 74 / ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) col1, 91 * + CAST ( + 32 AS INTEGER ) + + - COUNT ( * ) * + - COUNT ( * ) * + - COALESCE ( - ( COUNT ( * ) ), 52 + + + 93, + 38 + NULLIF ( CAST ( NULL AS INTEGER ), - 49 ) ) - SUM ( ALL + ( 9 ) ) AS col1 query I rowsort label-8705 @@ -45406,7 +45406,7 @@ SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(\*\) \+ CAST\(NULL AS Int32\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 AS col1, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 55, + + 57 ) + + COUNT ( * ) + - + NULLIF ( 47, + - CAST ( - + 19 AS FLOAT8 ) ) * - 27 AS col1 query I rowsort @@ -45417,7 +45417,7 @@ SELECT - - 26 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -117 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-98\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(\-51\) / 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\(\*\) \* Int64\(\-98\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(\-51\) / Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) * - 98 + - 19 AS col0, - 51 / + 5 col0 query I rowsort label-8709 @@ -46990,7 +46990,7 @@ SELECT ALL + - 37 - 53 - + - ( 73 ) + + SUM ( 0 ) * 84 / 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "count\(\*\) / \(\- min\(Int64\(88\)\)\) \* Int64\(47\) \+ 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\(90\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(Int64\(88\)\)\) \* Int64\(47\) \+ Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 AS col0, COUNT ( * ) / - MIN ( ALL 88 ) * + + 47 + + 90 AS col0 query I rowsort label-9008 @@ -47390,7 +47390,7 @@ SELECT ALL ( 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(32\) AS col2" at position 0 and "count\(\*\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 32 + 32 col2, + COUNT ( * ) * + 5 AS col2 query I rowsort @@ -48429,7 +48429,7 @@ SELECT - SUM ( DISTINCT - 57 ) 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 "\(\- \(\- count\(\*\)\)\) \+ Int64\(\-59\) AS col1" at position 0 and "coalesce\(\(\- count\(\*\)\), Int64\(82\), Int64\(\-77\) \* \(\- Int64\(\-88\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-59\) AS col1" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(82\), Int64\(\-77\) \* \(\- Int64\(\-88\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - - COUNT ( * ) ) + - 59 AS col1, COALESCE ( - COUNT ( * ), 82, - 77 * - - 88 ) AS col1 query II rowsort label-9284 @@ -48496,7 +48496,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\(\*\) 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 @@ -50215,7 +50215,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\(\*\) 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 @@ -50597,7 +50597,7 @@ SELECT ALL ( + 85 ) + 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "CASE Int64\(33\) WHEN \(\- Int64\(16\)\) \* Int64\(88\) \+ Int64\(9\) \* Int64\(\-98\) THEN CASE Int64\(37\) WHEN Int64\(53\) / count\(\*\) THEN Int64\(75\) WHEN \(\- coalesce\(Int64\(30\), \(\- count\(\*\)\) \* Int64\(94\) \- Int64\(38\)\)\) THEN Int64\(40\) END WHEN Int64\(52\) THEN Int64\(\-46\) WHEN Int64\(\-56\) THEN NULL WHEN Int64\(50\) THEN NULL ELSE NULL END \+ 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\(\-65\) AS col1" at position 0 and "CASE Int64\(33\) WHEN \(\- Int64\(16\)\) \* Int64\(88\) \+ Int64\(9\) \* Int64\(\-98\) THEN CASE Int64\(37\) WHEN Int64\(53\) / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(75\) WHEN \(\- coalesce\(Int64\(30\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(94\) \- Int64\(38\)\)\) THEN Int64\(40\) END WHEN Int64\(52\) THEN Int64\(\-46\) WHEN Int64\(\-56\) THEN NULL WHEN Int64\(50\) THEN NULL ELSE NULL END \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 AS col1, CASE 33 WHEN - + 16 * + + 88 + + 9 * - 98 THEN CASE 37 WHEN 53 / COUNT ( * ) THEN 75 WHEN - ( COALESCE ( 30, - COUNT ( * ) * + 94 - 38 ) ) THEN + 40 END WHEN 52 THEN - 46 WHEN - 56 THEN NULL WHEN + 50 THEN NULL ELSE NULL END + 88 col1 query I rowsort @@ -50757,7 +50757,7 @@ SELECT ALL + 85 + - + 98 + + - 52 / 10 - + 25 * + 95 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 36 + COUNT ( * ) + - CAST ( 10 AS INTEGER ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0 query I rowsort @@ -51506,7 +51506,7 @@ SELECT ALL - 94 * - + 8 * - 85 + 8 * + 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 462 # Datafusion - Expected - -2293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(33\) AS col2" at position 0 and "Int64\(\-25\) \* count\(\*\) \* Int64\(94\) \+ 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\(14\) \* Int64\(33\) AS col2" at position 0 and "Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(94\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( + 14 ) * 33 AS col2, - 25 * + + COUNT ( * ) * + 94 + + 57 AS col2 query I rowsort label-9878 diff --git a/data/sqlite/random/expr/slt_good_25.slt b/data/sqlite/random/expr/slt_good_25.slt index e2d2158..7012b69 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\(\*\) 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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -2888,7 +2888,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\(\*\) 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 @@ -3982,7 +3982,7 @@ SELECT ALL - 46 * - 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "\(\- CASE Int64\(18\) WHEN \(\- count\(\*\)\) \+ Int64\(15\) \* Int64\(27\) THEN NULL WHEN \(\- Int64\(11\)\) THEN \(\- \(\- Int64\(30\)\)\) END\) \* 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\(93\) AS col1" at position 0 and "\(\- CASE Int64\(18\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(15\) \* Int64\(27\) THEN NULL WHEN \(\- Int64\(11\)\) THEN \(\- \(\- Int64\(30\)\)\) END\) \* Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 93 AS col1, - CASE + + 18 WHEN + - COUNT ( * ) + 15 * + ( + 27 ) THEN NULL WHEN - + 11 THEN - - ( 30 ) END * 4 AS col1 query I rowsort label-753 @@ -4395,7 +4395,7 @@ SELECT + 73 / + NULLIF ( + 74, - 69 ) * + 11 + + + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -300 # Datafusion - Expected - 1718 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(5\) \+ Int64\(41\) \+ nullif\(Int64\(35\), CASE count\(\*\) WHEN Int64\(97\) THEN Int64\(99\) \+ Int64\(87\) WHEN \(\- sum\(Int64\(14\)\)\) \* Int64\(86\) \- Int64\(65\) THEN NULL END \* \(\- Int64\(\-83\)\)\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(18\) / \(\- count\(\*\)\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(5\) \+ Int64\(41\) \+ nullif\(Int64\(35\), CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(97\) THEN Int64\(99\) \+ Int64\(87\) WHEN \(\- sum\(Int64\(14\)\)\) \* Int64\(86\) \- Int64\(65\) THEN NULL END \* \(\- Int64\(\-83\)\)\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(18\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 88 * 5 + + 41 + NULLIF ( 35, + + CASE + COUNT ( * ) WHEN 97 THEN 99 + 87 WHEN - SUM ( ALL + 14 ) * + 86 - + 65 THEN NULL END * - - 83 ) + + 64 AS col0, - 93 * + 18 / - COUNT ( * ) + + 44 AS col0 query II rowsort label-833 @@ -5951,7 +5951,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\(\*\) 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 @@ -6156,7 +6156,7 @@ SELECT DISTINCT COUNT ( * ) * - - 57 * + COUNT ( - 61 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 col2, ( + - 3 ) * + + COUNT ( * ) / + 34 + + - CAST ( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS INTEGER ) col2 # Datafusion - Datafusion expected results: @@ -6379,7 +6379,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\(\*\) AS col0" at position 1 have the 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 @@ -6396,7 +6396,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -2070 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(23\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(23\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 39 + - + COUNT ( * ) AS col2, 23 * - 90 AS col2 query I rowsort @@ -6728,7 +6728,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\(\*\) 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 @@ -7602,7 +7602,7 @@ SELECT 4 * - 78 / + ( - COUNT ( * ) ) + + 70 + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -2 -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\(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\(34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 AS col2, + COUNT ( * ) - 3 AS col2 query I rowsort label-1451 @@ -7613,7 +7613,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\(\*\) AS col1" at position 1 have the 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 @@ -8506,7 +8506,7 @@ SELECT ALL 94 + - CASE + 48 WHEN - 35 THEN + - 89 ELSE - 3 * - 27 + - 91 + NULLI # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -3100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "sum\(DISTINCT Int64\(65\)\) / Int64\(\-55\) \+ \(\- count\(\*\)\) \* Int64\(44\) \* Int64\(71\) \- \(\- 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\(34\) AS col2" at position 0 and "sum\(DISTINCT Int64\(65\)\) / Int64\(\-55\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(44\) \* Int64\(71\) \- \(\- min\(Int64\(25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 AS col2, SUM ( DISTINCT + 65 ) / + + ( + - 55 ) + + - COUNT ( * ) * 44 * + + 71 - - MIN ( ALL + 25 ) AS col2 query I rowsort label-1626 @@ -10661,7 +10661,7 @@ SELECT ALL NULLIF ( - 96, + 59 ) + - + 73 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 37 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(\-36\)\) AS col2" at position 1 and "Int64\(44\) \* Int64\(0\) \+ Int64\(\-74\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-36\)\) AS col2" at position 1 and "Int64\(44\) \* Int64\(0\) \+ Int64\(\-74\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + 53 * - CAST ( NULL AS INTEGER ) + - 65, + COUNT ( * ) + - ( - 36 ) AS col2, 44 * - 0 + - 74 AS col2 query I rowsort @@ -10917,7 +10917,7 @@ SELECT + - 45 + 31 - - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- count\(\*\)\)\)\) \- Int64\(\-44\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-44\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - - COUNT ( * ) ) - - 44 AS col2, 88 AS col2 query I rowsort @@ -11045,7 +11045,7 @@ SELECT ALL + 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -5290 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "count\(\*\) \- nullif\(Int64\(\-99\), Int64\(38\)\) \+ Int64\(77\) \* 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\(46\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- nullif\(Int64\(\-99\), Int64\(38\)\) \+ Int64\(77\) \* Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 46 AS col2, COUNT ( * ) - + NULLIF ( - 99, 38 ) + 77 * - 70 AS col2 query I rowsort @@ -11187,7 +11187,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\(\*\) AS col1" at position 1 have the 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 @@ -11399,7 +11399,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\(\*\) 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 @@ -13038,7 +13038,7 @@ SELECT - 19 * - - 80 + 33 * 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- Int64\(\-64\) / Int64\(13\) / Int64\(\-98\) \* Int64\(80\) AS col1" at position 0 and "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 "Int64\(83\) \- Int64\(\-64\) / Int64\(13\) / Int64\(\-98\) \* Int64\(80\) 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 + ( + 83 ) - - 64 / 13 / + + ( + - 98 ) * + 80 AS col1, + COUNT ( * ) - 66 AS col1 query II rowsort label-2500 @@ -13160,7 +13160,7 @@ SELECT - + 86 + - - 59 * 42 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\(\*\)\) AS col0" at position 0 and "Int64\(\-11\) \+ Int64\(40\) \+ 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-11\) \+ Int64\(40\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, - 11 + + 40 + + 59 AS col0 query I rowsort @@ -13568,7 +13568,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\(\*\) 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 @@ -14316,7 +14316,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -237539 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / \(\- nullif\(count\(\*\), Int64\(\-95\)\)\) AS col1" at position 0 and "Int64\(29\) \* Int64\(89\) \- Int64\(92\) \* Int64\(\-58\) \* Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-95\)\)\) AS col1" at position 0 and "Int64\(29\) \* Int64\(89\) \- Int64\(92\) \* Int64\(\-58\) \* Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 34 / - NULLIF ( COUNT ( * ), - 95 ) AS col1, ( + 29 ) * + 89 - 92 * - 58 * - 45 AS col1 query I rowsort @@ -14560,7 +14560,7 @@ SELECT - 26 * - 95 AS col2, + 44 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - 0 AS INTEGER ) * + - CASE - + 28 WHEN 70 * - - ( - 47 ) THEN + 50 END - + 82 AS col0, COUNT ( * ) * + NULLIF ( 18, + + 38 * + 8 / + 76 ) * - + 80 + - 58 + + - NULLIF ( - NULLIF ( + 40, + 76 * 86 * + + 86 ), - - 72 * 9 + - + 64 ) - + CASE - 97 WHEN - + CAST ( NULL AS INTEGER ) THEN + 21 ELSE - 14 * + + COUNT ( * ) + - + 75 / - COUNT ( * ) END AS col0 query I rowsort @@ -17897,7 +17897,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\(\*\) 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 @@ -18703,7 +18703,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\(78\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -18714,7 +18714,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\(20\) \+ \(\- CAST\(count\(\*\) AS Int32\)\) THEN Int64\(31\) \* CAST\(Int64\(32\) AS Int32\) ELSE Int64\(\-42\) \+ CASE Int64\(41\) WHEN Int64\(32\) \+ count\(\*\) \* Int64\(\-96\) THEN NULL WHEN Int64\(88\) \+ \(\- \(\- 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 @@ -18784,7 +18784,7 @@ SELECT - 91 + - 26 AS col1 # Datafusion - Expected - 12 # Datafusion - Expected - 4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(79\) AS col0" at position 0 and "\(\- coalesce\(\(\- count\(\*\)\), Int64\(29\)\)\) / CASE \(\- count\(\*\)\) WHEN Int64\(\-57\) THEN Int64\(18\) / Int64\(\-27\) WHEN Int64\(\-97\) THEN Int64\(41\) \* Int64\(\-1\) ELSE \(\- CASE Int64\(93\) WHEN Int64\(\-32\) / Int64\(20\) THEN Int64\(\-84\) \* Int64\(11\) ELSE NULL END\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(79\) AS col0" at position 0 and "\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(29\)\)\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-57\) THEN Int64\(18\) / Int64\(\-27\) WHEN Int64\(\-97\) THEN Int64\(41\) \* Int64\(\-1\) ELSE \(\- CASE Int64\(93\) WHEN Int64\(\-32\) / Int64\(20\) THEN Int64\(\-84\) \* Int64\(11\) ELSE NULL END\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 67 + + 79 AS col0, + CASE - - 83 WHEN - COUNT ( * ) THEN NULL ELSE - ( - MIN ( ALL + ( 4 ) ) ) END, - COALESCE ( - ( COUNT ( * ) ), 29 ) / + CASE - COUNT ( * ) WHEN - 57 THEN + 18 / - 27 WHEN - 97 THEN 41 * - 1 ELSE - ( + CASE 93 WHEN - 32 / + 20 THEN - 84 * 11 ELSE NULL END ) END col0 query I rowsort @@ -18903,7 +18903,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\(\*\) 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 @@ -21991,7 +21991,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\(\*\) AS col1" at position 1 have the 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 @@ -22316,7 +22316,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\(\*\) AS col0" at position 1 have the 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 @@ -22389,7 +22389,7 @@ SELECT ALL + 35 + + 28 * - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \+ \(\- count\(\*\)\) \* Int64\(\-30\) 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 "Int64\(\-43\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 + - COUNT ( * ) * + - 30 AS col1, 70 AS col1 query I rowsort label-4292 @@ -23653,7 +23653,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\(\*\) AS col1" at position 1 have the 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 @@ -24029,7 +24029,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-85\) \+ Int64\(\-3\) 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\(\*\) \* Int64\(\-85\) \+ Int64\(\-3\) 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 ( * ) * + - 85 + + - 3 AS col0, - 78 col0 query I rowsort label-4604 @@ -25866,7 +25866,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\(\*\) AS col2" at position 1 have 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 @@ -25913,7 +25913,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -26212,7 +26212,7 @@ SELECT 27 * - 73 # Datafusion - Expected - 26 # Datafusion - Expected - 3976 # Datafusion - Expected - -108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(42\) \+ nullif\(\(\- CASE Int64\(\-52\) WHEN Int64\(\-20\) \* Int64\(32\) \+ \(\- count\(\*\)\) THEN Int64\(27\) \* Int64\(36\) ELSE \(\- Int64\(\-53\)\) \+ Int64\(97\) END\), Int64\(\-5\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(42\) \+ nullif\(\(\- CASE Int64\(\-52\) WHEN Int64\(\-20\) \* Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(27\) \* Int64\(36\) ELSE \(\- Int64\(\-53\)\) \+ Int64\(97\) END\), Int64\(\-5\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 26 col2, + 56 * 71, 42 + NULLIF ( - CASE - 52 WHEN - 20 * + 32 + - COUNT ( * ) THEN + + 27 * + 36 ELSE - - 53 + + 97 END, - 5 ) col2 query I rowsort @@ -27843,7 +27843,7 @@ SELECT - + 73 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, 67 + - + COUNT ( * ) + + 74 * + 80 AS col1 query I rowsort @@ -27991,7 +27991,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\(\*\) \* count\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -28358,7 +28358,7 @@ SELECT 93 AS col0, SUM ( DISTINCT - 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 2361 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(18\) \- Int64\(75\) \- CASE Int64\(\-51\) WHEN Int64\(\-65\) \+ Int64\(\-1\) THEN NULL WHEN coalesce\(Int64\(\-69\), CASE Int64\(\-76\) WHEN Int64\(42\) THEN NULL WHEN Int64\(32\) THEN Int64\(64\) WHEN Int64\(14\) \+ Int64\(71\) \* Int64\(\-10\) THEN Int64\(42\) \* Int64\(27\) END, Int64\(46\)\) \+ Int64\(19\) THEN count\(\*\) ELSE Int64\(45\) \- Int64\(63\) END \+ Int64\(80\) \* 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\(\-34\) AS col0" at position 0 and "Int64\(18\) \- Int64\(75\) \- CASE Int64\(\-51\) WHEN Int64\(\-65\) \+ Int64\(\-1\) THEN NULL WHEN coalesce\(Int64\(\-69\), CASE Int64\(\-76\) WHEN Int64\(42\) THEN NULL WHEN Int64\(32\) THEN Int64\(64\) WHEN Int64\(14\) \+ Int64\(71\) \* Int64\(\-10\) THEN Int64\(42\) \* Int64\(27\) END, Int64\(46\)\) \+ Int64\(19\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(45\) \- Int64\(63\) END \+ Int64\(80\) \* Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 col0, + 18 - + 75 - + CASE - 51 WHEN - 65 + - 1 THEN NULL WHEN COALESCE ( - 69, + CASE - 76 WHEN + 42 THEN NULL WHEN 32 THEN ( + 64 ) WHEN 14 + 71 * - 10 THEN 42 * 27 END, 46 ) + 19 THEN + COUNT ( * ) ELSE 45 - + 63 END + 80 * + 30 AS col0 query I rowsort @@ -29672,7 +29672,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\(\*\) AS col2" at position 1 have the same 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 @@ -29809,7 +29809,7 @@ SELECT + - 74 * - 58 * - + 79 # 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\(\*\)\) 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 II rowsort @@ -29959,7 +29959,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -30418,7 +30418,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\(\*\) 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 @@ -31379,7 +31379,7 @@ SELECT DISTINCT - 63 AS col0, - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* coalesce\(count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 col0, + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), + + 32, 21 * ( - + ( + 82 ) ) - + + 55 - + 29 - + CAST ( 81 AS FLOAT8 ) ) AS col0 query II rowsort @@ -31834,7 +31834,7 @@ SELECT ALL - + 2 + + - ( - 80 ) + + 55 * + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int32\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int32\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 6 - + ( + 10 ) AS col1, ( + COUNT ( * ) ) * 11 - CAST ( 61 AS INTEGER ) + + - 37 * 70 AS col1 query I rowsort @@ -31944,7 +31944,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\(66\)\) \* Int64\(88\) \- 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 @@ -32054,7 +32054,7 @@ SELECT SUM ( 46 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 175 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(25\), \(\- Int64\(\-31\)\), Int64\(\-50\)\) \* Int64\(7\) AS col2" at position 0 and "min\(Int64\(66\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(25\), \(\- Int64\(\-31\)\), Int64\(\-50\)\) \* Int64\(7\) AS col2" at position 0 and "min\(Int64\(66\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + + 25, - - 31, - 50 ) * 7 AS col2, MIN ( ALL + 66 ) * - COUNT ( * ) AS col2 query I rowsort @@ -32246,7 +32246,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\(\*\) 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 @@ -32979,7 +32979,7 @@ SELECT ALL 10 - - 77 + 25 # 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\(\*\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + 10 AS col1 query I rowsort @@ -33177,7 +33177,7 @@ SELECT DISTINCT ( - ( - 16 ) ) # 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 "\(\- sum\(DISTINCT Int64\(\-23\)\)\) AS col0" at position 0 and "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 "\(\- sum\(DISTINCT Int64\(\-23\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( DISTINCT - 23 ) AS col0, COUNT ( * ) * - - 3 AS col0 query I rowsort label-6355 @@ -33316,7 +33316,7 @@ SELECT ( 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(\*\)\) AS Int32\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * NULLIF ( - 88, - 46 * 12 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 60 + 92 ) AS col2, - COALESCE ( + 19, + - 50 ) - + - 28 / + 83 AS col2 query I rowsort label-6382 @@ -33429,7 +33429,7 @@ SELECT ALL - + 98 + - - 58 * - 71 + + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(24\)\)\) \+ CASE count\(\*\) WHEN Int64\(\-25\) THEN Int64\(\-78\) \+ Int64\(55\) ELSE NULL END 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\(24\)\)\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-25\) THEN Int64\(\-78\) \+ Int64\(55\) ELSE NULL END 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 - - ( + 24 ) + CASE + COUNT ( * ) WHEN - 25 THEN - 78 + 55 ELSE NULL END AS col0, + 11 AS col0 query I rowsort label-6404 @@ -33625,7 +33625,7 @@ SELECT - - 27 # 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 col1" at position 1 have the 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\(\*\)\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 70 AS col1, - COUNT ( * ) * 1 AS col1 query I rowsort @@ -37088,7 +37088,7 @@ SELECT - SUM ( DISTINCT + - 22 ) * 10 AS col0 # 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\(90\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(52\) \- \(\- Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(52\) \- \(\- Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 90 ) + - COUNT ( * ) col2, + 52 - - - 55 AS col2 query I rowsort label-7109 @@ -37467,7 +37467,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + - MIN ( 44 ) ) / AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - 11 AS col2, + 0 * - COUNT ( * ) AS col2 query I rowsort @@ -38397,7 +38397,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3512 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(62\) \* Int64\(56\) \+ Int64\(40\) 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\(\*\) \* Int64\(62\) \* Int64\(56\) \+ Int64\(40\) 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 ( * ) * 62 * + 56 + + 40 AS col2, 96 col2 query I rowsort @@ -39630,7 +39630,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\(\*\) 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 @@ -40968,7 +40968,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\(\*\) 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 @@ -41154,7 +41154,7 @@ SELECT 21 + - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29988 # Datafusion - Expected - -111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* Int64\(68\) \* Int64\(\-21\) AS col0" at position 0 and "Int64\(\-97\) \+ Int64\(14\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(68\) \* Int64\(\-21\) AS col0" at position 0 and "Int64\(\-97\) \+ Int64\(14\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 21 * + 68 * - 21 AS col0, - 97 + + 14 * + - COUNT ( * ) AS col0 query I rowsort label-7881 @@ -41854,7 +41854,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(8\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(8\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( 8 ) AS col1, + COUNT ( * ) * - 8 AS col1 query I rowsort label-8015 @@ -42267,7 +42267,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -362 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col2" at position 0 and "Int64\(36\) \* nullif\(Int64\(\-8\), Int64\(22\) \+ count\(\*\) \+ Int64\(\-26\) / Int64\(66\) \- count\(\(\- Int64\(\-10\)\)\)\) \* \(\- \(\- count\(DISTINCT Int64\(83\)\)\)\) \+ 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\(\-64\)\) AS col2" at position 0 and "Int64\(36\) \* nullif\(Int64\(\-8\), Int64\(22\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-26\) / Int64\(66\) \- count\(\(\- Int64\(\-10\)\)\)\) \* \(\- \(\- count\(DISTINCT Int64\(83\)\)\)\) \+ Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 64 AS col2, + 36 * NULLIF ( - 8, + 22 + + COUNT ( * ) + - 26 / 66 - + COUNT ( - - 10 ) ) * - - COUNT ( DISTINCT + 83 ) + - 74 AS col2 query I rowsort label-8093 @@ -42714,7 +42714,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\(\*\) AS col1" at position 1 have the 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 @@ -42872,7 +42872,7 @@ SELECT + 24 col0 # Datafusion - Expected - -5440 # Datafusion - Expected - 48 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) \* Int64\(\-8\) \+ \(\- nullif\(Int64\(\-58\), \(\- count\(\*\)\)\)\) \* Int64\(\-96\) AS col2" at position 0 and "Int64\(\-70\) 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\(16\)\) \* Int64\(\-8\) \+ \(\- nullif\(Int64\(\-58\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(\-96\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 16 * - 8 + - NULLIF ( - 58, - COUNT ( * ) ) * - 96 AS col2, NULLIF ( + 48, + COUNT ( * ) + - + 23 - - 18 - + - 53 * + 66 * - 65 ), - 70 AS col2 query I rowsort label-8209 @@ -43297,7 +43297,7 @@ SELECT - 26 + + - 87 # 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 "\(\- count\(\*\)\) AS col0" at position 1 have the 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 query I rowsort label-8291 @@ -43333,7 +43333,7 @@ SELECT COALESCE ( + 80, + + 27 - - 72, - CASE - 10 WHEN + 73 * + - 61 * - 1 / + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(63\) WHEN Int64\(10\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(\-27\) THEN \(\- CASE Int64\(\-52\) WHEN Int64\(7\) THEN Int64\(\-55\) ELSE NULL END\) \- \(\- count\(\*\)\) END \- Int64\(95\) \* \(\- count\(\*\)\) \* count\(Int64\(\-71\)\) AS col1" at position 0 and "Int64\(10\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(63\) WHEN Int64\(10\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-27\) THEN \(\- CASE Int64\(\-52\) WHEN Int64\(7\) THEN Int64\(\-55\) ELSE NULL END\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \- Int64\(95\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(\-71\)\) AS col1" at position 0 and "Int64\(10\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + + 63 WHEN 10 * - - COUNT ( * ) + - 27 THEN - + CASE - 52 WHEN + 7 THEN - 55 ELSE NULL END - - COUNT ( * ) END - 95 * - COUNT ( * ) * + COUNT ( + - 71 ) AS col1, 10 * 34 AS col1 query I rowsort @@ -44000,7 +44000,7 @@ SELECT - COUNT ( * ) * - 64 + - 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2905 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-95\) WHEN count\(\*\) \+ count\(\*\) THEN Int64\(85\) END\) AS col1" at position 0 and "Int64\(\-35\) \* 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 "\(\- CASE Int64\(\-95\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(85\) END\) AS col1" at position 0 and "Int64\(\-35\) \* Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE - 95 WHEN + COUNT ( * ) + + COUNT ( * ) THEN 85 END col1, - 35 * + 83 AS col1 query II rowsort label-8425 @@ -44369,7 +44369,7 @@ SELECT - + ( - 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -333396 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(42\) \* Int64\(\-81\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(42\) \* 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 DISTINCT 98 * + 42 * - 81 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -44980,7 +44980,7 @@ SELECT + - 34 * + CAST ( - 50 AS INTEGER ), 26 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\(\-29\) / CASE CAST\(Int64\(12\) AS Float64\) WHEN Int64\(86\) THEN Int64\(42\) \+ \(\- Int64\(23\)\) END \* coalesce\(count\(\*\), count\(\*\)\) \+ Int64\(78\) 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\(\-29\) / CASE CAST\(Int64\(12\) AS Float64\) WHEN Int64\(86\) THEN Int64\(42\) \+ \(\- Int64\(23\)\) END \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 29 / + CASE + + CAST ( + 12 AS FLOAT8 ) WHEN + 86 THEN + 42 + - + 23 END * COALESCE ( COUNT ( * ), COUNT ( * ) ) + + 78 AS col1, 17 AS col1 query II rowsort label-8612 @@ -46369,7 +46369,7 @@ SELECT ALL + + COUNT ( ALL - + 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 1855 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(33\) \+ Int64\(39\) AS col2" at position 0 and "Int64\(56\) \+ Int64\(\-14\) \+ Int64\(49\) \* Int64\(\-37\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(33\) \+ Int64\(39\) AS col2" at position 0 and "Int64\(56\) \+ Int64\(\-14\) \+ Int64\(49\) \* Int64\(\-37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 + + 33 + + 39 AS col2, + 56 + - 14 + 49 * - 37 * - COUNT ( * ) AS col2 query I rowsort label-8881 @@ -48820,7 +48820,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\(\*\) AS col0" at position 1 have the 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 @@ -48909,7 +48909,7 @@ SELECT DISTINCT - - ( - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 42 * - COUNT ( * ) AS col0 query I rowsort @@ -50049,7 +50049,7 @@ SELECT - + 58 - - + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 40325 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(19\) WHEN Int64\(78\) \* CAST\(NULL AS Float64\) THEN Int64\(\-6\) \+ Int64\(\-28\) END \+ Int64\(\-36\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(2\) \+ Int64\(3\) \+ Int64\(87\) \* CASE Int64\(92\) WHEN \(\- Int64\(\-18\)\) THEN Int64\(\-53\) \* count\(\*\) ELSE Int64\(33\) END \* Int64\(16\) \+ Int64\(\-72\) \* 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 "CASE Int64\(19\) WHEN Int64\(78\) \* CAST\(NULL AS Float64\) THEN Int64\(\-6\) \+ Int64\(\-28\) END \+ Int64\(\-36\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(2\) \+ Int64\(3\) \+ Int64\(87\) \* CASE Int64\(92\) WHEN \(\- Int64\(\-18\)\) THEN Int64\(\-53\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(33\) END \* Int64\(16\) \+ Int64\(\-72\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( CASE + 19 WHEN + 78 * + CAST ( NULL AS FLOAT8 ) THEN - 6 + ( - 28 ) END ) + - 36 + 90 AS col2, + ( + + 2 ) + + 3 + 87 * ( + CASE + 92 WHEN - ( + - 18 ) THEN ( - 53 ) * COUNT ( * ) ELSE + 33 END ) * 16 + - 72 * + 78 col2 query I rowsort @@ -50242,7 +50242,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\(\*\) AS col0" at position 1 have the 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 @@ -50275,7 +50275,7 @@ SELECT + 81 col2, + 19 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\(\*\)\) AS col2" at position 0 and "Int64\(\-71\) / 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\(\-71\) / Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) col2, - 71 / - 28 AS col2 query I rowsort @@ -51957,7 +51957,7 @@ SELECT DISTINCT 77 + - ( - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -1785 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(43\) AS col1" at position 0 and "Int64\(\-35\) \* 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\(\*\)\) \- Int64\(43\) AS col1" at position 0 and "Int64\(\-35\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - 43 AS col1, - 35 * 51 AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_26.slt b/data/sqlite/random/expr/slt_good_26.slt index 0b63e85..2cf0c69 100644 --- a/data/sqlite/random/expr/slt_good_26.slt +++ b/data/sqlite/random/expr/slt_good_26.slt @@ -803,7 +803,7 @@ SELECT - 67 AS col2, + 30 # 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\(\*\)\) 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 ( * ) col1, 78 AS col1 query I rowsort @@ -845,7 +845,7 @@ SELECT - 31 * - + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -27 -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\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) 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 80 AS col2, - COUNT ( * ) * + 27 AS col2 query I rowsort @@ -4863,7 +4863,7 @@ SELECT 19 / - 82 * - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 86 -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\(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\(98\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 AS col2, COUNT ( * ) * + 86 col2 query I rowsort label-927 @@ -5890,7 +5890,7 @@ SELECT + 72, 10 + - + 93 * - NULLIF ( + ( - 41 ), - 47 ) + + - 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -383 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int32\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int32\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int32\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int32\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(Int64\(1\)\) AS count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 63 * + 7 + 58 AS col0, CASE COALESCE ( AVG ( DISTINCT - - ( 88 ) ), + 69 ) WHEN - 58 THEN + + 60 END + + - 66 - - CAST ( NULL AS INTEGER ) + COALESCE ( + - 9, + CASE + COALESCE ( + 10, 21, COUNT ( * ) ) WHEN + COALESCE ( - 68, + 87 + 76 * CASE 6 / - 80 WHEN + 59 + - NULLIF ( 73 - 15 / 22, 78 + - SUM ( ALL + 74 + CAST ( NULL AS INTEGER ) ) ) * - 85 THEN 57 * + 93 + COALESCE ( ( - 38 ), 3 ) * - 43 WHEN + 78 + - ( 44 + + 49 * - COUNT ( * ) ) THEN NULL END, + 33 * - 56 + + COUNT ( * ) * 76, + ( - 93 ) * - 36 ) + - ( 87 + + 11 ) * 96 THEN - 37 ELSE COUNT ( * ) / 78 END * 57 ) AS col0 query I rowsort label-1121 @@ -7457,7 +7457,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\(\*\) 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 @@ -10604,7 +10604,7 @@ SELECT ALL 70 - 54 / + + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( + 21, 84 * 10 / + - MIN ( + - CAST ( 13 AS INTEGER ) ) ) AS col0, + COUNT ( * ) * - + COUNT ( * ) * 24 AS col0 query I rowsort label-2025 @@ -11236,7 +11236,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\(\*\) 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 @@ -13729,7 +13729,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\(\*\) 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 @@ -14148,7 +14148,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\(\*\) 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 @@ -14197,7 +14197,7 @@ SELECT ALL + 32 * + ( + ( - - 50 ) ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(\(\- min\(Int64\(\-54\)\)\), count\(\*\) \* \(\- Int64\(27\)\) \+ Int64\(\-13\)\)\)\) 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 "\(\- \(\- coalesce\(\(\- min\(Int64\(\-54\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(27\)\) \+ Int64\(\-13\)\)\)\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - ( - COALESCE ( + - MIN ( - 54 ), COUNT ( * ) * - + 27 + - 13 ) ) AS col0, 74 AS col0 query I rowsort @@ -16636,7 +16636,7 @@ SELECT ALL + + 85 + + 77 # 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\(\*\)\) AS col0" at position 0 and "Int64\(69\) \- 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\(69\) \- Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col0, 69 - 52 AS col0 query I rowsort label-3182 @@ -17272,7 +17272,7 @@ SELECT - COUNT ( * ), 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(\*\) \+ CAST\(Int64\(93\) AS Int32\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(93\) AS Int32\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 AS col1, COUNT ( * ) + + + CAST ( 93 AS INTEGER ) * + 7 - 7 col1 query I rowsort label-3301 @@ -18054,7 +18054,7 @@ SELECT DISTINCT COUNT ( - 90 ) * + 3 - - 60 + MIN ( DISTINCT - 3 ) / 92 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 col1" at position 0 and "nullif\(\(\- count\(\*\)\), Int64\(\-34\) \* Int64\(27\) \* \(\- Int64\(\-60\)\) \+ Int64\(\-84\) \+ sum\(Int64\(34\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-34\) \* Int64\(27\) \* \(\- Int64\(\-60\)\) \+ Int64\(\-84\) \+ sum\(Int64\(34\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 AS col1, + NULLIF ( - COUNT ( * ), - 34 * 27 * - - 60 + - 84 + SUM ( + 34 ) ) AS col1 query I rowsort @@ -18829,7 +18829,7 @@ SELECT + 11 - - 2 / + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-3600 @@ -20522,7 +20522,7 @@ SELECT ALL + MAX ( ALL + 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE WHEN Int64\(9\) IN \(\[\(\- Int64\(\-83\)\), Int64\(41\), \(\- Int64\(\-78\)\), avg\(Int64\(23\)\) \* Int64\(\-55\) / Int64\(79\), \(\- Int64\(33\)\) / \(\- Int64\(95\)\)\]\) THEN \(\- count\(\*\)\) END\) AS col0" at position 0 and "Int64\(\-46\) \+ \(\- nullif\(Int64\(\-61\), Int64\(16\) \* Int64\(3\) \* Int64\(74\) \- Int64\(\-30\) \- \(\- CAST\(NULL AS Float64\)\) \* coalesce\(\(\- Int64\(92\)\), Int64\(29\) \* avg\(Int64\(57\)\) \* Int64\(30\) \+ coalesce\(Int64\(80\), \(\- Int64\(76\)\) / \(\- count\(\*\)\) \+ Int64\(\-89\) \- \(\- count\(\*\)\) \* Int64\(\-11\) \* Int64\(\-1\)\) \- Int64\(\-51\) / \(\- Int64\(14\)\) \* Int64\(\-80\) \+ Int64\(\-87\) \* 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 "\(\- CASE WHEN Int64\(9\) IN \(\[\(\- Int64\(\-83\)\), Int64\(41\), \(\- Int64\(\-78\)\), avg\(Int64\(23\)\) \* Int64\(\-55\) / Int64\(79\), \(\- Int64\(33\)\) / \(\- Int64\(95\)\)\]\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) AS col0" at position 0 and "Int64\(\-46\) \+ \(\- nullif\(Int64\(\-61\), Int64\(16\) \* Int64\(3\) \* Int64\(74\) \- Int64\(\-30\) \- \(\- CAST\(NULL AS Float64\)\) \* coalesce\(\(\- Int64\(92\)\), Int64\(29\) \* avg\(Int64\(57\)\) \* Int64\(30\) \+ coalesce\(Int64\(80\), \(\- Int64\(76\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-89\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-11\) \* Int64\(\-1\)\) \- Int64\(\-51\) / \(\- Int64\(14\)\) \* Int64\(\-80\) \+ Int64\(\-87\) \* Int64\(27\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CASE WHEN 9 IN ( - - 83, 41, - - 78, + AVG ( + 23 ) * - 55 / 79, - ( + 33 ) / - + 95 ) THEN - + COUNT ( * ) END AS col0, - 46 + - NULLIF ( - 61, 16 * 3 * 74 - + - 30 - - CAST ( NULL AS FLOAT8 ) * + COALESCE ( - + 92, 29 * + + AVG ( ALL + 57 ) * + ( + 30 ) + COALESCE ( + 80, - + 76 / + - COUNT ( * ) + - 89 - - + COUNT ( * ) * - 11 * - 1 ) - - 51 / - + 14 * - 80 + - 87 * + ( + 27 ) ) ) AS col0 query I rowsort @@ -23261,7 +23261,7 @@ SELECT ALL ( 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(44\)\) \+ Int64\(83\) \+ Int64\(97\) / \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(\-67\) \+ \(\- count\(\*\)\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(44\)\) \+ Int64\(83\) \+ Int64\(97\) / \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(\-67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + SUM ( ALL + 44 ) + 83 + + 97 / - + 43 col1, 46 + + - 67 + - COUNT ( * ) * + 64 AS col1 query I rowsort @@ -23591,7 +23591,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81842 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- Int64\(\-6\)\) \+ Int64\(22\) \- count\(\*\) \+ Int64\(37\) \* Int64\(20\) \+ Int64\(75\) \- Int64\(56\) \* Int64\(\-24\) \* \(\- Int64\(\-60\)\) AS col1" at position 0 and "count\(\*\) / Int64\(\-72\) / Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- Int64\(\-6\)\) \+ Int64\(22\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(37\) \* Int64\(20\) \+ Int64\(75\) \- Int64\(56\) \* Int64\(\-24\) \* \(\- Int64\(\-60\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-72\) / Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 * - - 6 + 22 - + COUNT ( * ) + + 37 * 20 + 75 - + 56 * - 24 * - - 60 AS col1, COUNT ( * ) / + - 72 / + 28 AS col1 query I rowsort @@ -25416,7 +25416,7 @@ SELECT AVG ( DISTINCT - 77 ) * + CAST ( NULL AS INTEGER ) + 43 * + ( + NULLIF ( # 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\(\*\) 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 @@ -25748,7 +25748,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\(\*\) AS col2" at position 0 and "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 @@ -26846,7 +26846,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\(\*\) 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 @@ -27210,7 +27210,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\(\*\) AS col0" at position 1 have the 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 @@ -27494,7 +27494,7 @@ SELECT ALL 76 * - COUNT ( * ) * + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- \(\- count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) + - ( - - COUNT ( * ) ) * 74 AS col2, 23 + 67 + + - COUNT ( * ) * + 29 AS col2 query I rowsort label-5258 @@ -28172,7 +28172,7 @@ SELECT + - COUNT ( * ) + - 75 + 91 * 37 col2 # Datafusion - Expected - 35 # Datafusion - Expected - -1 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* \(\- count\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 35 * - COUNT ( * ) AS col1, - COUNT ( * ) AS col1, 21 AS col2 query I rowsort @@ -28371,7 +28371,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\(\*\) AS col0" at position 1 have the 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 @@ -28610,7 +28610,7 @@ SELECT ALL - + MIN ( 71 ) # 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\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( COUNT ( * ) ) AS col1, + 45 AS col1 query II rowsort label-5472 @@ -28952,7 +28952,7 @@ SELECT + + 56 + 59 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\(\*\)\) 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-5536 @@ -29131,7 +29131,7 @@ SELECT DISTINCT 19 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* \(\- 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\(39\) \* \(\- 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 39 * - COUNT ( * ) AS col0, 49 AS col0 query I rowsort label-5570 @@ -29439,7 +29439,7 @@ SELECT ALL 82 / - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-14\) WHEN Int64\(\-83\) / count\(Int64\(88\)\) \+ \(\- count\(\*\)\) THEN NULL WHEN \(\- Int64\(7\)\) / Int64\(17\) THEN NULL WHEN Int64\(\-25\) \* Int64\(\-76\) THEN NULL ELSE Int64\(79\) END AS col1" at position 0 and "Int64\(33\) \+ \(\- 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 "CASE Int64\(\-14\) WHEN Int64\(\-83\) / count\(Int64\(88\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- Int64\(7\)\) / Int64\(17\) THEN NULL WHEN Int64\(\-25\) \* Int64\(\-76\) THEN NULL ELSE Int64\(79\) END AS col1" at position 0 and "Int64\(33\) \+ \(\- Int64\(24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - 14 WHEN + ( - 83 ) / COUNT ( ALL 88 ) + - COUNT ( * ) THEN NULL WHEN - + 7 / + 17 THEN NULL WHEN - 25 * + - 76 THEN NULL ELSE + 79 END AS col1, + 33 + - + 24 AS col1 query II rowsort @@ -33534,7 +33534,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\(\*\) 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 @@ -33904,7 +33904,7 @@ SELECT ALL - 44 + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(64\) / Int64\(13\) \+ 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\(47\) AS col0" at position 0 and "Int64\(64\) / Int64\(13\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col0, 64 / 13 + COUNT ( * ) + - 22 AS col0 query I rowsort @@ -34512,7 +34512,7 @@ SELECT ALL - 85 * + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-51\) \- Int64\(32\) 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\(\*\) \* Int64\(\-51\) \- Int64\(32\) 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 ( * ) ) * + - 51 - 32 AS col0, ( - + 88 ) AS col0 query I rowsort label-6607 @@ -34628,7 +34628,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\(\*\) 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 @@ -35033,7 +35033,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\(\*\) AS col0" at position 1 have the 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 @@ -35737,7 +35737,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\(\*\) AS col0" at position 1 have the 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 @@ -36948,7 +36948,7 @@ SELECT DISTINCT 57 * + - SUM ( ALL 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - - ( CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( 33, - - 83 / ( - 38 ) + + COUNT ( * ) ) + + 80 AS col1, MAX ( ALL - 75 ) AS col1 # Datafusion - Types were automatically converted from: @@ -37213,7 +37213,7 @@ SELECT - 87 * COUNT ( * ) * 13 * - COUNT ( * ) + - 66 + - 23 + - + 59 / + + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "\(\- Int64\(96\)\) \* count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "\(\- Int64\(96\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 col0, ( - + 96 ) * + COUNT ( * ) + - 64 AS col0 query I rowsort @@ -37542,7 +37542,7 @@ SELECT DISTINCT MIN ( DISTINCT - - 45 ) * - - 86 * 65 + + 26 * + MAX ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* count\(\*\) \+ Int64\(69\) 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\(54\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(69\) 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 54 * COUNT ( * ) + 69 AS col2, + 90 AS col2 query I rowsort @@ -38648,7 +38648,7 @@ SELECT ALL + 51 * - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(94\)\)\) \+ \(\- nullif\(Int64\(60\), Int64\(\-11\) \* Int64\(28\) \- \(\- \(\- count\(\*\)\)\)\)\) AS col2" at position 0 and "Int64\(54\) \+ 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\(94\)\)\) \+ \(\- nullif\(Int64\(60\), Int64\(\-11\) \* Int64\(28\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col2" at position 0 and "Int64\(54\) \+ Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( + 94 ) + - NULLIF ( + 60, - 11 * 28 - - - COUNT ( * ) ) AS col2, 54 + - 80 AS col2 query I rowsort @@ -39100,14 +39100,14 @@ 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\(\*\) AS col2" at position 1 have the 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: # Datafusion - Expected - 11 # Datafusion - Expected - -97 # Datafusion - Expected - -25486 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 1 and "Int64\(77\) \+ count\(\*\) \+ Int64\(77\) \* Int64\(83\) \* Int64\(\-4\) 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\(\-97\) AS col1" at position 1 and "Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(77\) \* Int64\(83\) \* Int64\(\-4\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 11 AS col2, - 97 AS col1, + 77 + + COUNT ( * ) + + + 77 * + ( + + ( + 83 ) ) * + - 4 AS col1 query II rowsort @@ -39247,7 +39247,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\(\*\) AS col2" at position 0 and "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 @@ -40950,7 +40950,7 @@ SELECT ALL + ( + 77 ) + + CAST ( - 39 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 80 -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\(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\(\-87\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 87 AS col2, + COUNT ( * ) + + + 79 AS col2 query I rowsort @@ -41711,7 +41711,7 @@ SELECT ALL - - 55 / CASE - 88 WHEN + COUNT ( + ( 72 ) ) THEN NULL WHEN - COALESC # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) \* Int64\(3\) \+ Int64\(86\) AS col1" at position 0 and "Int64\(6\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(3\) \+ Int64\(86\) 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 - + 18 * + 3 + + + 86 AS col1, 6 * - COUNT ( * ) AS col1 query II rowsort label-7986 @@ -42075,7 +42075,7 @@ SELECT ALL 31 - - MAX ( DISTINCT + 55 ) - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(64\) AS col0" at position 0 and "CASE \(\- Int64\(20\)\) WHEN \(\- Int64\(18\)\) THEN Int64\(36\) \+ Int64\(95\) \* coalesce\(Int64\(76\), Int64\(66\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col0" at position 0 and "CASE \(\- Int64\(20\)\) WHEN \(\- Int64\(18\)\) THEN Int64\(36\) \+ Int64\(95\) \* coalesce\(Int64\(76\), Int64\(66\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 64 col0, CASE - + 20 WHEN - + ( 18 ) THEN + 36 + + 95 * COALESCE ( + ( 76 ), + 66 ) ELSE NULL END col0 query I rowsort @@ -43250,7 +43250,7 @@ SELECT ALL COALESCE ( - 63, + 83 ) * + + 36 + 44 + 11 * + 89 * + + 65 * - COALES # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / CASE Int64\(26\) WHEN Int64\(\-12\) \* Int64\(96\) THEN Int64\(\-18\) \* count\(\*\) \+ Int64\(15\) END AS col1" at position 0 and "Int64\(58\) \* 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\(1\) / CASE Int64\(26\) WHEN Int64\(\-12\) \* Int64\(96\) THEN Int64\(\-18\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) END AS col1" at position 0 and "Int64\(58\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 1 / CASE + + 26 WHEN - 12 * + 96 THEN + - 18 * + COUNT ( * ) + + 15 END AS col1, 58 * + 6 col1 query I rowsort @@ -43379,7 +43379,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\(\*\) AS col0" at position 1 have the 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 @@ -44168,7 +44168,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\(\*\) \* 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\(\*\)\)\)\) \+ count\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -44843,7 +44843,7 @@ NULL # Datafusion - Expected - 2 # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int32\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int32\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WHEN + 83 THEN NULL ELSE NULL END * 53 AS col2 query I rowsort label-8583 @@ -46858,7 +46858,7 @@ SELECT ALL 50 + - 90 + + 84 + - 65 + COUNT ( * ) * + + ( - 32 ) + + 64 * 43 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(19\)\), Int64\(\-53\)\)\) \+ Int64\(47\) \* \(\- count\(\*\)\) \+ Int64\(\-55\) AS col1" at position 0 and "Int64\(7\) \- Int64\(\-32\) \- sum\(Int64\(\-28\)\) \+ 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 "\(\- coalesce\(\(\- Int64\(19\)\), Int64\(\-53\)\)\) \+ Int64\(47\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-55\) AS col1" at position 0 and "Int64\(7\) \- Int64\(\-32\) \- sum\(Int64\(\-28\)\) \+ Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - + 19, - 53 ) + + 47 * - COUNT ( * ) + - 55 AS col1, 7 - + - 32 - SUM ( ALL - 28 ) + - 42 AS col1 query II rowsort label-8971 @@ -47884,7 +47884,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\(\*\) 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 @@ -48212,7 +48212,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\(\*\) AS col0" at position 1 have 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 @@ -48238,7 +48238,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\(\*\) 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 @@ -48353,7 +48353,7 @@ SELECT - NULLIF ( + + 84, + 63 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -486 # Datafusion - Expected - -164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(6\) AS col2" at position 0 and "Int64\(72\) / Int64\(\-55\) \- Int64\(91\) \* count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(6\) AS col2" at position 0 and "Int64\(72\) / Int64\(\-55\) \- Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 81 * 6 AS col2, 72 / - 55 - + 91 * + COUNT ( * ) + - 72 AS col2 query I rowsort label-9257 @@ -49688,7 +49688,7 @@ SELECT ALL - 90 + + ( + + 31 ) 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\(32\) \+ Int64\(54\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 DISTINCT + 32 + + + 54 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -49709,7 +49709,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\(\*\) 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 @@ -50221,7 +50221,7 @@ SELECT 0 * COUNT ( * ) * + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -915 # Datafusion - Expected - 7155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(15\) AS col0" at position 0 and "count\(\*\) \+ Int64\(73\) \* \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(15\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) \* \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 61 * + 15 AS col0, COUNT ( * ) + 73 * - - 98 AS col0 query I rowsort @@ -51459,7 +51459,7 @@ SELECT + 0 + - COALESCE ( - 33, 49, + - 88 ) # 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 "nullif\(\(\- count\(\*\)\), Int64\(\-18\) / Int64\(62\)\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-18\) / Int64\(62\)\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + - COUNT ( * ), - 18 / 62 ) AS col1, 20 AS col1 query I rowsort label-9852 diff --git a/data/sqlite/random/expr/slt_good_27.slt b/data/sqlite/random/expr/slt_good_27.slt index d01bacb..0f4c359 100644 --- a/data/sqlite/random/expr/slt_good_27.slt +++ b/data/sqlite/random/expr/slt_good_27.slt @@ -3056,7 +3056,7 @@ SELECT 16 + 27 - - + 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(58\) AS col1" at position 0 and "count\(\*\) \* \(\- \(\- \(\- coalesce\(Int64\(79\), \(\- \(\- nullif\(\(\- count\(\*\)\), Int64\(\-54\)\)\)\), Int64\(57\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- \(\- coalesce\(Int64\(79\), \(\- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-54\)\)\)\), Int64\(57\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 + + 58 AS col1, COUNT ( * ) * - ( - - COALESCE ( + 79, - - NULLIF ( - + COUNT ( * ), - 54 ), 57 ) ) col1 query I rowsort @@ -3975,7 +3975,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -426 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(57\)\) \+ \(\- count\(\*\)\) \+ Int64\(8\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(61\) \* Int64\(79\) \+ CASE Int64\(36\) WHEN Int64\(1\) THEN NULL WHEN Int64\(97\) THEN \(\- Int64\(\-26\)\) 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\(57\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(8\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(61\) \* Int64\(79\) \+ CASE Int64\(36\) WHEN Int64\(1\) THEN NULL WHEN Int64\(97\) THEN \(\- Int64\(\-26\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 57 + - COUNT ( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1 query I rowsort label-757 @@ -4163,7 +4163,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "sum\(CAST\(NULL AS Float64\)\) / Int64\(92\) \* count\(\*\) \* Int64\(54\) \+ avg\(Int64\(\-75\)\) \* 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\(49\) AS col0" at position 0 and "sum\(CAST\(NULL AS Float64\)\) / Int64\(92\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\) \+ avg\(Int64\(\-75\)\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 49 AS col0, SUM ( CAST ( NULL AS FLOAT8 ) ) / 92 * + + COUNT ( * ) * 54 + + AVG ( - 75 ) * - 51 AS col0 query I rowsort label-793 @@ -4184,7 +4184,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\(\*\)\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(13\) \+ \(\- 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\(\-42\) \* Int64\(13\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - 42 * + 13 + + - CAST ( NULL AS FLOAT8 ) AS col2 query I rowsort @@ -6627,7 +6627,7 @@ SELECT - 2 + + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "CASE Int64\(41\) WHEN Int64\(\-79\) \+ Int64\(36\) \* Int64\(27\) THEN Int64\(70\) \* Int64\(55\) WHEN Int64\(83\) THEN avg\(Int64\(\-62\)\) WHEN count\(\*\) THEN Int64\(57\) \* Int64\(46\) WHEN Int64\(53\) THEN NULL ELSE Int64\(10\) \* count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "CASE Int64\(41\) WHEN Int64\(\-79\) \+ Int64\(36\) \* Int64\(27\) THEN Int64\(70\) \* Int64\(55\) WHEN Int64\(83\) THEN avg\(Int64\(\-62\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(57\) \* Int64\(46\) WHEN Int64\(53\) THEN NULL ELSE Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 51 AS col1, CASE + 41 WHEN - 79 + + 36 * 27 THEN 70 * + 55 WHEN 83 THEN AVG ( - 62 ) WHEN COUNT ( * ) THEN + 57 * 46 WHEN 53 THEN NULL ELSE 10 * COUNT ( * ) END AS col1 query I rowsort @@ -6776,7 +6776,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\(\*\) AS col2" at position 0 and "\(\- 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 @@ -6867,7 +6867,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\(\*\) 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 @@ -7456,7 +7456,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\(\*\)\) 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 DISTINCT + ( - COUNT ( * ) ) AS col1, - 78 AS col1 query I rowsort label-1427 @@ -8187,7 +8187,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\(\*\) 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\(\-94\)\) WHEN Int64\(19\) THEN nullif\(Int64\(62\), \(\- count\(\*\)\)\) END\), Int64\(\-77\) \+ Int64\(\-71\) \* Int64\(51\)\)\) \* \(\- 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 @@ -8351,7 +8351,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\(\*\) 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\(\*\)\) 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 @@ -9396,7 +9396,7 @@ SELECT DISTINCT - 65 + 23 + - - 91 - - - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 133 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- \(\- Int64\(23\)\) \+ Int64\(18\) AS col0" at position 0 and "count\(\*\) \- Int64\(59\) / Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- \(\- Int64\(23\)\) \+ Int64\(18\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(59\) / Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 - - + 23 + + 18 AS col0, COUNT ( * ) - 59 / + + 64 col0 query I rowsort label-1799 @@ -9452,7 +9452,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\(\*\) AS col2" at position 0 and "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 @@ -11489,7 +11489,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\(\*\) AS col2" at position 1 have 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 @@ -12583,7 +12583,7 @@ SELECT CAST ( 89 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(43\) \+ Int64\(43\) AS col2" at position 0 and "Int64\(\-9\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\) \+ Int64\(43\) 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 ALL + - 58 + + 43 + + 43 AS col2, - 9 + - COUNT ( * ) AS col2 query I rowsort label-2413 @@ -12680,7 +12680,7 @@ SELECT COUNT ( * ) - - 65 AS col0 # Datafusion - Expected - 3 # Datafusion - Expected - 65 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-3\), \(\- max\(\(\- Int64\(\-72\)\)\)\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "\(\- Int64\(51\)\) 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\(\-3\), \(\- max\(\(\- Int64\(\-72\)\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- Int64\(51\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( + - 3, - MAX ( ALL - - 72 ) ) * + ( - COUNT ( * ) ) col2, 65, - + 51 col2 query I rowsort @@ -12956,7 +12956,7 @@ SELECT + 32 - - + 90 AS col2, 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -7819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(84\) \* Int64\(\-93\) \+ Int64\(\-6\) \+ count\(Int64\(\-92\)\) / Int64\(\-11\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\) \* Int64\(\-93\) \+ Int64\(\-6\) \+ count\(Int64\(\-92\)\) / Int64\(\-11\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + - COUNT ( * ) ) col1, 84 * - 93 + - 6 + COUNT ( - 92 ) / - 11 + + - COUNT ( * ) AS col1 query I rowsort label-2484 @@ -13840,7 +13840,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\(\*\) AS col2" at position 1 have the 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 @@ -13975,7 +13975,7 @@ SELECT 64 - - 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6521 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ \(\- count\(\*\)\) \* Int64\(88\) \* Int64\(74\) AS col1" at position 0 and "Int64\(\-59\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\*\)\) \* Int64\(88\) \* Int64\(74\) 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 - 9 + - + COUNT ( * ) * + 88 * + 74 AS col1, ( - 59 ) + - COUNT ( * ) AS col1 query I rowsort @@ -16499,7 +16499,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\(20\) / count\(\*\) AS col0" at position 1 have the 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: @@ -17255,7 +17255,7 @@ SELECT + 36 * - + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 224142 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- Int64\(\-50\)\) \* count\(\*\) \* \(\- Int64\(\-83\)\) \* Int64\(54\) 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\(42\) \+ \(\- Int64\(\-50\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-83\)\) \* Int64\(54\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 + - - 50 * + COUNT ( * ) * - - 83 * + 54 AS col0, 4 AS col0 query I rowsort @@ -19221,7 +19221,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 1344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(21\) \* count\(\*\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 AS col1, 21 * + + COUNT ( * ) * 64 col1 query I rowsort label-3689 @@ -19443,7 +19443,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\(\*\) AS col2" at position 1 have the 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 @@ -20762,7 +20762,7 @@ SELECT ( + ( 37 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147680 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(30\) \+ \(\- Int64\(\-79\)\) \* Int64\(\-21\) \* Int64\(89\) 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\(\*\) \- Int64\(30\) \+ \(\- Int64\(\-79\)\) \* Int64\(\-21\) \* Int64\(89\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - 30 + - - 79 * - 21 * + 89 AS col2, 86 col2 query I rowsort @@ -21838,7 +21838,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\(\*\) AS col2" at position 1 have the 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 @@ -25705,7 +25705,7 @@ SELECT 7 / - 17 * 42 # 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 "Int64\(1\) \+ \(\- 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\(1\) \+ \(\- 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 1 + - COUNT ( * ) AS col1, 72 AS col1 query I rowsort label-4933 @@ -26007,7 +26007,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\(\*\) 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 @@ -28039,7 +28039,7 @@ SELECT - + 99 - 0 + 15 * - - 75 * + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1051 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* Int64\(21\) \+ \(\- 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 "Int64\(\-50\) \* Int64\(21\) \+ \(\- 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 - 50 * + + 21 + - COUNT ( * ) AS col2, 5 col2 query I rowsort @@ -29469,7 +29469,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\(\*\) AS col2" at position 1 have the 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 @@ -29882,7 +29882,7 @@ SELECT DISTINCT + 78 + 52 + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71760 # Datafusion - Expected - 408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* \(\- Int64\(\-26\)\) \* Int64\(40\) AS col1" at position 0 and "count\(\*\) \* \(\- Int64\(72\)\) \+ Int64\(20\) \* 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\(69\) \* \(\- Int64\(\-26\)\) \* Int64\(40\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(72\)\) \+ Int64\(20\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 69 * - - 26 * + 40 AS col1, COUNT ( * ) * - + 72 + + 20 * + 24 AS col1 query I rowsort @@ -30351,7 +30351,7 @@ SELECT ALL + 83 - + 1 / + + 72 - - - 36 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8706 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / + 30 + + 48 + - - 30 + - + 90 * NULLIF ( + 86, 81 ) + + + 9 + + 27 * - NULLIF ( 39, + CAST ( + + 89 AS FLOAT8 ) ) AS col0, + CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -31252,7 +31252,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(79\) \+ coalesce\(Int64\(71\), \(\- count\(\*\)\) \- Int64\(\-46\)\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(79\) \+ coalesce\(Int64\(71\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-46\)\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 AS col2, 79 + + COALESCE ( + 71, + ( - + COUNT ( * ) ) - - 46 ) + 51 AS col2 query I rowsort @@ -32379,7 +32379,7 @@ NULL # 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 "CASE count\(\*\) WHEN Int64\(50\) THEN Int64\(\-32\) ELSE \(\- \(\- count\(\*\)\)\) END 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 "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(50\) THEN Int64\(\-32\) ELSE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END 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 CASE COUNT ( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT ( * ) END AS col2, + 25 col2 query I rowsort @@ -32466,7 +32466,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\(\*\) AS col2" at position 1 have the 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 @@ -32706,7 +32706,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\(\*\) AS col2" at position 1 have the 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 @@ -33638,7 +33638,7 @@ SELECT - 12 / 47 * + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -109620 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* \(\- Int64\(\-84\)\) \* Int64\(15\) AS col1" at position 0 and "Int64\(24\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-84\)\) \* Int64\(15\) 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 - 87 * - ( + - 84 ) * + + 15 AS col1, + 24 * - + COUNT ( * ) AS col1 query I rowsort label-6448 @@ -35276,7 +35276,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\(\*\) 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 @@ -36070,7 +36070,7 @@ SELECT - SUM ( DISTINCT + 54 ) col0, + 73 AS col1 # 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\(\*\)\) AS col2" at position 1 have the 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 I rowsort label-6916 @@ -37853,7 +37853,7 @@ SELECT ALL 79 * 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) query I rowsort @@ -37880,7 +37880,7 @@ SELECT + 39 + + + 21 + + 9 * - 90 - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int32\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 AS col2, + 46 / + CAST ( - ( + 43 ) AS INTEGER ) + - COUNT ( * ) AS col2 query I rowsort @@ -39067,7 +39067,7 @@ SELECT ALL 2 + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(\*\)\), count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-65\) \* 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 "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-65\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) AS col0, - 65 * + 52 col0 query II rowsort label-7492 @@ -39598,7 +39598,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\(\*\) AS col2" at position 1 have 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 @@ -39981,7 +39981,7 @@ SELECT - 31 * + + 59 * 40 + + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 267491 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-70\)\) \* max\(Int64\(\-86\)\) \* CASE Int64\(\-59\) WHEN count\(\*\) THEN NULL ELSE Int64\(42\) END \+ Int64\(49\) \* Int64\(\-13\) \* \(\- Int64\(23\)\) 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 "max\(Int64\(\-70\)\) \* max\(Int64\(\-86\)\) \* CASE Int64\(\-59\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(42\) END \+ Int64\(49\) \* Int64\(\-13\) \* \(\- Int64\(23\)\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - 70 ) * + MAX ( + - 86 ) * + CASE - 59 WHEN COUNT ( * ) THEN NULL ELSE + 42 END + + 49 * - 13 * - + 23 AS col1, + 96 AS col1 query I rowsort @@ -40710,7 +40710,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\(\*\) 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 @@ -44529,7 +44529,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\(\*\) AS col1" at position 0 and "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 @@ -44663,7 +44663,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\(\*\) \+ count\(\*\) AS col1" at position 0 and "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 @@ -45280,7 +45280,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\(\*\) 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 @@ -45432,7 +45432,7 @@ SELECT ALL - ( - + ( + - COUNT ( * ) ) ) AS col1, 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 85001374 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "max\(Int64\(\-41\)\) \+ count\(Int64\(17\)\) \+ \(\- Int64\(\-95\)\) \+ Int64\(\-27\) / Int64\(\-28\) \- Int64\(81\) \+ \(\- Int64\(28\)\) / \(\- Int64\(\-93\)\) \+ Int64\(\-53\) \* Int64\(36\) \* Int64\(\-25\) \* \(Int64\(22\) \* Int64\(82\) \+ Int64\(\-89\) / 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 "max\(Int64\(\-41\)\) \+ count\(Int64\(17\)\) \+ \(\- Int64\(\-95\)\) \+ Int64\(\-27\) / Int64\(\-28\) \- Int64\(81\) \+ \(\- Int64\(28\)\) / \(\- Int64\(\-93\)\) \+ Int64\(\-53\) \* Int64\(36\) \* Int64\(\-25\) \* \(Int64\(22\) \* Int64\(82\) \+ Int64\(\-89\) / Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, MAX ( - 41 ) + + COUNT ( ALL 17 ) + - - 95 + - 27 / - 28 - 81 + - + 28 / - ( - 93 ) + - 53 * 36 * - 25 * ( + 22 * + 82 + - 89 / + 4 ) AS col0 query I rowsort label-8711 @@ -45474,7 +45474,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "\(\- max\(DISTINCT coalesce\(Int64\(21\), \(\- Int64\(89\)\)\)\)\) \+ \(\- count\(\*\)\) \+ Int64\(72\) / CASE Int64\(61\) WHEN Int64\(9\) THEN Int64\(82\) ELSE NULL END / Int64\(7\) \+ Int64\(27\) \- Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "\(\- max\(DISTINCT coalesce\(Int64\(21\), \(\- Int64\(89\)\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(72\) / CASE Int64\(61\) WHEN Int64\(9\) THEN Int64\(82\) ELSE NULL END / Int64\(7\) \+ Int64\(27\) \- Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 16 AS col0, - MAX ( DISTINCT COALESCE ( 21, - + 89 ) ) + - COUNT ( * ) + 72 / + CASE 61 WHEN 9 THEN 82 ELSE NULL END / + + 7 + + 27 - + 86 AS col0 query II rowsort @@ -46028,7 +46028,7 @@ SELECT ALL + COUNT ( * ) - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 138 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) \- count\(\*\) \- Int64\(\-81\) 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\(\-58\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-81\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 58 - COUNT ( * ) - - 81 AS col1, 53 AS col1 query I rowsort label-8824 @@ -46321,7 +46321,7 @@ SELECT 70 * 46 # 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\(\*\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(28\) \+ 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(28\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col1, 28 + 21 AS col1 query I rowsort label-8880 @@ -48874,7 +48874,7 @@ SELECT + MIN ( - + 68 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ nullif\(\(\- CASE Int64\(\-45\) WHEN count\(\*\) / \(\- count\(\*\)\) THEN Int64\(\-31\) ELSE NULL END\), Int64\(86\) \* Int64\(32\)\) \* Int64\(\-7\) \* Int64\(\-13\) AS col1" at position 0 and "Int64\(71\) \+ CASE Int64\(48\) WHEN Int64\(79\) THEN coalesce\(Int64\(\-5\), \(\- count\(\*\)\) \+ Int64\(58\)\) / \(\- coalesce\(count\(\*\), Int64\(\-33\) \- \(\- Int64\(\-32\)\) \- count\(\*\) \- count\(\*\) \+ Int64\(\-88\)\)\) WHEN Int64\(48\) 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\(84\) \+ nullif\(\(\- CASE Int64\(\-45\) WHEN count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-31\) ELSE NULL END\), Int64\(86\) \* Int64\(32\)\) \* Int64\(\-7\) \* Int64\(\-13\) AS col1" at position 0 and "Int64\(71\) \+ CASE Int64\(48\) WHEN Int64\(79\) THEN coalesce\(Int64\(\-5\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(58\)\) / \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-33\) \- \(\- Int64\(\-32\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-88\)\)\) WHEN Int64\(48\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT ( * ) / - COUNT ( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT ( * ) + + 58 ) / - COALESCE ( COUNT ( * ), + ( + - 33 ) - - - 32 - + + COUNT ( * ) - + + COUNT ( * ) + - 88 ) WHEN + 48 THEN NULL END AS col1 query I rowsort @@ -49793,7 +49793,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\(\*\) 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 @@ -51295,7 +51295,7 @@ SELECT ( + 52 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-25\)\) AS col0" at position 0 and "\(\- CAST\(\(\- nullif\(Int64\(1\), count\(\*\)\)\) AS Float64\)\) \+ 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 "sum\(DISTINCT Int64\(\-25\)\) AS col0" at position 0 and "\(\- CAST\(\(\- nullif\(Int64\(1\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS Float64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( DISTINCT + - 25 ) AS col0, - CAST ( - NULLIF ( + 1, + COUNT ( * ) ) AS FLOAT8 ) + COUNT ( * ) * 23 AS col0 query I rowsort @@ -51871,7 +51871,7 @@ SELECT ALL + MIN ( DISTINCT ( 17 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(76\)\) / \(\- Int64\(45\)\) AS col1" at position 0 and "Int64\(43\) \+ \(\- \(\- Int64\(\-92\)\)\) \- count\(\*\) \- Int64\(\-12\) \* 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\(76\)\) / \(\- Int64\(45\)\) AS col1" at position 0 and "Int64\(43\) \+ \(\- \(\- Int64\(\-92\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-12\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 76 / - + 45 AS col1, + 43 + - - ( - 92 ) - + COUNT ( * ) - - 12 * 26 col1 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/expr/slt_good_28.slt b/data/sqlite/random/expr/slt_good_28.slt index 8c9e0d2..76223e9 100644 --- a/data/sqlite/random/expr/slt_good_28.slt +++ b/data/sqlite/random/expr/slt_good_28.slt @@ -1379,7 +1379,7 @@ SELECT DISTINCT ( + COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 702 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "coalesce\(Int64\(13\), count\(\*\) \* Int64\(\-8\) \* \(\- Int64\(\-22\)\) \+ Int64\(\-84\) \+ Int64\(30\) / Int64\(72\) \+ count\(\*\) \* Int64\(36\) \* Int64\(37\) \- Int64\(43\) \* Int64\(97\)\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "coalesce\(Int64\(13\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* \(\- Int64\(\-22\)\) \+ Int64\(\-84\) \+ Int64\(30\) / Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(36\) \* Int64\(37\) \- Int64\(43\) \* Int64\(97\)\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COALESCE ( ( 13 ), COUNT ( * ) * - 8 * - - 22 + - 84 + + 30 / 72 + COUNT ( * ) * + + 36 * 37 - 43 * 97 ) * 54 AS col1 query I rowsort label-257 @@ -2092,7 +2092,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\(\*\) AS col1" at position 1 have 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 @@ -2310,7 +2310,7 @@ SELECT 22 + + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 868 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(31\) \* Int64\(28\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(31\) \* Int64\(28\) \* \(\- \(\- 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, 31 * + 28 * + ( - ( - COUNT ( * ) ) ) AS col2 query I rowsort @@ -3968,7 +3968,7 @@ SELECT ALL - 39 * - 0 + - 14 * + + 1 * + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-35\) \+ \(\- \(\- Int64\(49\)\)\) \- \(\- CASE \(\- Int64\(64\)\) WHEN Int64\(\-75\) \+ Int64\(4\) \* \(\- coalesce\(Int64\(60\), Int64\(96\)\)\) THEN CAST\(CASE \(\- Int64\(32\)\) WHEN Int64\(55\) \* Int64\(2\) \* Int64\(40\) THEN Int64\(22\) ELSE NULL END AS Int32\) / \(\- count\(\*\)\) WHEN Int64\(44\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "\(\- count\(\*\)\) \* \(\- \(\- \(\- Int64\(\-7\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-35\) \+ \(\- \(\- Int64\(49\)\)\) \- \(\- CASE \(\- Int64\(64\)\) WHEN Int64\(\-75\) \+ Int64\(4\) \* \(\- coalesce\(Int64\(60\), Int64\(96\)\)\) THEN CAST\(CASE \(\- Int64\(32\)\) WHEN Int64\(55\) \* Int64\(2\) \* Int64\(40\) THEN Int64\(22\) ELSE NULL END AS Int32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(44\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- \(\- Int64\(\-7\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - 35 + - ( - + 49 ) - - CASE - + 64 WHEN - 75 + ( + 4 ) * - COALESCE ( + 60, + + 96 ) THEN CAST ( + CASE - + 32 WHEN 55 * + 2 * 40 THEN 22 ELSE NULL END AS INTEGER ) / + - COUNT ( * ) WHEN + 44 THEN NULL ELSE NULL END AS col0, - COUNT ( * ) * - - ( - - 7 ) AS col0 query I rowsort @@ -4040,7 +4040,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\(\*\) AS col1" at position 1 have the 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 @@ -4103,7 +4103,7 @@ SELECT ALL + 43 / - + 60, + 56 / + - ( + 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE sum\(Int64\(65\)\) WHEN Int64\(13\) \* Int64\(37\) \- Int64\(23\) \+ Int64\(51\) THEN NULL WHEN Int64\(71\) \+ Int64\(\-70\) THEN Int64\(53\) \* Int64\(\-42\) \+ \(\- count\(\*\)\) END AS col2" at position 0 and "\(\- min\(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 "CASE sum\(Int64\(65\)\) WHEN Int64\(13\) \* Int64\(37\) \- Int64\(23\) \+ Int64\(51\) THEN NULL WHEN Int64\(71\) \+ Int64\(\-70\) THEN Int64\(53\) \* Int64\(\-42\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col2" at position 0 and "\(\- min\(Int64\(13\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE SUM ( 65 ) WHEN 13 * + + 37 - 23 + + 51 THEN NULL WHEN 71 + - 70 THEN 53 * - 42 + + - COUNT ( * ) END AS col2, - MIN ( ALL 13 ) AS col2 query I rowsort @@ -4317,7 +4317,7 @@ SELECT - NULLIF ( + - 73, + COUNT ( * ) ) * SUM ( + - 85 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2457 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \- Int64\(36\) \* \(\- Int64\(69\)\) AS col2" at position 0 and "Int64\(88\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(36\) \* \(\- Int64\(69\)\) 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 DISTINCT - 27 - + 36 * - + 69 AS col2, + 88 + - COUNT ( * ) AS col2 query I rowsort @@ -5128,7 +5128,7 @@ SELECT ALL - 81 + + 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 2205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "coalesce\(Int64\(\-63\), Int64\(27\) \+ \(\- coalesce\(Int64\(\-65\), Int64\(61\) \+ Int64\(22\) \+ count\(Int64\(11\)\) / Int64\(76\)\)\), count\(\*\) \- Int64\(79\)\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "coalesce\(Int64\(\-63\), Int64\(27\) \+ \(\- coalesce\(Int64\(\-65\), Int64\(61\) \+ Int64\(22\) \+ count\(Int64\(11\)\) / Int64\(76\)\)\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(79\)\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 col1, COALESCE ( + - 63, + 27 + - COALESCE ( - 65, 61 + ( + 22 + COUNT ( 11 ) / + 76 ) ), + COUNT ( * ) - 79 ) * - 35 AS col1 query II rowsort @@ -5877,7 +5877,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\(\*\) 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 @@ -6048,7 +6048,7 @@ SELECT ALL - ( + 45 ) * - ( 8 ) AS col0 # 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 "Int64\(\-47\) \* \(\- 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 "Int64\(\-47\) \* \(\- 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 - 47 * - + COUNT ( * ) AS col1, + 6 AS col1 query II rowsort label-1151 @@ -6955,7 +6955,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 "Int64\(\-1\) AS col1" at position 0 and "nullif\(Int64\(24\), count\(\*\) \+ Int64\(35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "nullif\(Int64\(24\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 1 ) AS col1, NULLIF ( ( 24 ), COUNT ( * ) + + 35 ) AS col1 query I rowsort @@ -7154,7 +7154,7 @@ SELECT 62 / - + MIN ( ALL + 46 ) AS col0, NULLIF ( + 79, - 8 ) 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\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 query I rowsort label-1364 @@ -7589,7 +7589,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\(\*\) AS Int32\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 @@ -7920,7 +7920,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\(\*\) 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 @@ -8097,7 +8097,7 @@ SELECT 21 - + COUNT ( + + 55 ) col1, - 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "coalesce\(Int64\(\-83\), Int64\(\-42\), Int64\(\-39\)\) \* count\(\*\) / Int64\(\-75\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "coalesce\(Int64\(\-83\), Int64\(\-42\), Int64\(\-39\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-75\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 AS col1, + COALESCE ( - 83, - 42, - 39 ) * + COUNT ( * ) / - 75 + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1544 @@ -8395,7 +8395,7 @@ SELECT + 35 + + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 483 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \+ Int64\(76\) \+ Int64\(56\) \+ Int64\(\-26\) / Int64\(\-78\) \+ count\(\*\) \+ \(\- Int64\(51\)\) \* \(\- count\(\*\)\) \* Int64\(7\) \+ Int64\(76\) 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\(\-83\) \+ Int64\(76\) \+ Int64\(56\) \+ Int64\(\-26\) / Int64\(\-78\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(51\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(7\) \+ Int64\(76\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 83 + + 76 + + 56 + - 26 / - 78 + COUNT ( * ) + - + 51 * - + COUNT ( * ) * + 7 + 76 AS col1, + 59 AS col1 query I rowsort @@ -9140,7 +9140,7 @@ SELECT + COUNT ( 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) / CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) \+ \(\- Int64\(\-77\)\) \- \(\- Int64\(99\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) / CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-77\)\) \- \(\- Int64\(99\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 80 / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - - 77 - - + 99 AS col0, 95 AS col0 query I rowsort @@ -9726,7 +9726,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\(\*\) 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: @@ -10368,7 +10368,7 @@ SELECT - - 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -203 # Datafusion - Expected - 432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(7\) / Int64\(76\) \* Int64\(64\) \- \(\- coalesce\(Int64\(11\), \(\- Int64\(84\)\) \+ Int64\(\-34\)\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(3\) \+ Int64\(\-11\) \* Int64\(39\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(76\) \* Int64\(64\) \- \(\- coalesce\(Int64\(11\), \(\- Int64\(84\)\) \+ Int64\(\-34\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(3\) \+ Int64\(\-11\) \* Int64\(39\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 38 * 7 / ( + 76 ) * 64 - - + COALESCE ( 11, - ( 84 ) + - 34 ) * - COUNT ( * ) col2, 3 + - 11 * + 39 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -10611,7 +10611,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\(\*\) AS col0" at position 1 have the 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 @@ -13485,7 +13485,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -154 -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\(15\)\) \* Int64\(15\) \+ 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\(80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(15\)\) \* Int64\(15\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 80 AS col2, + COUNT ( * ) * - + 15 * + 15 + 71 AS col2 query I rowsort label-2575 @@ -14917,7 +14917,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\(\*\) 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 @@ -14939,7 +14939,7 @@ SELECT ALL + 11 + + 56 * + 80 * - + 23 AS col2 # Datafusion - Expected - 24 # Datafusion - Expected - 48 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(23\) AS col2" at position 0 and "\(\- Int64\(\-42\)\) 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\(23\) AS col2" at position 0 and "\(\- Int64\(\-42\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + + 23 AS col2, MIN ( 48 ) AS col0, - - 42 AS col2 query I rowsort label-2857 @@ -15617,7 +15617,7 @@ SELECT - ( + 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -1127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(73\) \+ \(\- count\(\*\)\) \* Int64\(\-20\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-20\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 AS col0, + 73 + - COUNT ( * ) * - 20 * + - 60 AS col0 query I rowsort label-2986 @@ -16165,7 +16165,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\(\*\) 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 @@ -16295,7 +16295,7 @@ SELECT + ( - ( - 26 ) ) AS col1, + ( SUM ( - 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4334 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(55\)\) \- Int64\(\-19\) \* Int64\(94\) \+ Int64\(\-8\) \+ Int64\(32\) \* count\(\*\) \* \(\- Int64\(81\)\) \+ \(\- \(\- CAST\(Int64\(55\) AS Int32\)\)\) AS col1" at position 0 and "CASE Int64\(\-76\) WHEN Int64\(\-19\) THEN Int64\(\-12\) WHEN sum\(Int64\(7\)\) THEN NULL END \* Int64\(28\) \- Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(55\)\) \- Int64\(\-19\) \* Int64\(94\) \+ Int64\(\-8\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(81\)\) \+ \(\- \(\- CAST\(Int64\(55\) AS Int32\)\)\) AS col1" at position 0 and "CASE Int64\(\-76\) WHEN Int64\(\-19\) THEN Int64\(\-12\) WHEN sum\(Int64\(7\)\) THEN NULL END \* Int64\(28\) \- Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 * - + 55 - - 19 * + + 94 + - 8 + 32 * COUNT ( * ) * - + 81 + - ( + - CAST ( + 55 AS INTEGER ) ) col1, CASE - 76 WHEN - 19 THEN - 12 WHEN + SUM ( + 7 ) THEN NULL END * 28 - - 5 AS col1 query I rowsort @@ -16576,7 +16576,7 @@ SELECT ALL - CAST ( NULLIF ( - COUNT ( * ), 73 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "\(\- coalesce\(count\(\*\), Int64\(66\) \+ Int64\(48\) \+ Int64\(16\) \+ Int64\(97\) \* Int64\(25\) \* \(\- Int64\(98\)\) \+ \(\- count\(\(\- Int64\(\-90\)\)\)\) \* Int64\(\-99\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(42\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(66\) \+ Int64\(48\) \+ Int64\(16\) \+ Int64\(97\) \* Int64\(25\) \* \(\- Int64\(98\)\) \+ \(\- count\(\(\- Int64\(\-90\)\)\)\) \* Int64\(\-99\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(42\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 18 AS col0, - COALESCE ( COUNT ( * ), 66 + + 48 + + 16 + 97 * 25 * - + 98 + - COUNT ( - - 90 ) * - 99 + - CAST ( NULL AS INTEGER ) * + + 42 ) col0 query I rowsort @@ -17278,7 +17278,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ \(\- count\(\*\)\) \+ Int64\(\-65\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-65\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 87 + - + ( COUNT ( * ) ) + - 65 AS col2, 45 AS col2 query I rowsort label-3306 @@ -18422,7 +18422,7 @@ SELECT + MAX ( ALL + COALESCE ( - ( - ( + 55 ) ), 37, + 67 + + 37 ) ) * 72 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) / Int64\(1\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) / Int64\(1\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 23 / 1 + - - COUNT ( * ) AS col1, 44 AS col1 query I rowsort @@ -18486,7 +18486,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\(\*\) 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 @@ -18599,7 +18599,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\(\*\) AS col1" at position 1 have the 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 @@ -18700,7 +18700,7 @@ SELECT DISTINCT - - COUNT ( * ) * + - MIN ( DISTINCT - - 35 ) * + - ( - 26 ) + C # Datafusion - Datafusion expected results: # Datafusion - Expected - 9205 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(7\) \- Int64\(95\) \* \(\- \(\- sum\(DISTINCT Int64\(\-91\)\)\)\) \+ \(\- count\(\*\)\) \+ Int64\(57\) 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\(72\) \* Int64\(7\) \- Int64\(95\) \* \(\- \(\- sum\(DISTINCT Int64\(\-91\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(57\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 72 * 7 - + + 95 * - - SUM ( DISTINCT - 91 ) + - COUNT ( * ) + 57 AS col0, 30 AS col0 query I rowsort label-3578 @@ -18787,7 +18787,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\(\*\) 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 @@ -19979,7 +19979,7 @@ SELECT DISTINCT + 36 * + 61 AS col1, 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-19\) 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\(\*\) / Int64\(\-19\) 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 ( * ) / - 19 AS col0, + 63 AS col0 query I rowsort @@ -20658,7 +20658,7 @@ SELECT ALL 67 AS col1, - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(56\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(56\) \* \(\- \(\- 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, 56 * - - COUNT ( * ) AS col0 query I rowsort label-3953 @@ -20914,7 +20914,7 @@ SELECT DISTINCT COUNT ( * ) * + 63 + + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 290 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* count\(\*\) \* Int64\(44\) \+ Int64\(\-63\) \+ \(\- \(\- count\(Int64\(7\)\)\)\) 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 "Int64\(8\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) \+ Int64\(\-63\) \+ \(\- \(\- count\(Int64\(7\)\)\)\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 * + COUNT ( * ) * 44 + - 63 + ( - - COUNT ( ALL + + 7 ) ) col2, 91 AS col2 query I rowsort label-4001 @@ -21415,7 +21415,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\(\*\) AS col2" at position 1 have the 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 @@ -22208,7 +22208,7 @@ SELECT + 14 * - - 91 + 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -1386 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(22\) \* \(\- nullif\(Int64\(63\), count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(22\) \* \(\- nullif\(Int64\(63\), 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, 22 * - NULLIF ( 63, COUNT ( * ) ) col0 query I rowsort @@ -22601,7 +22601,7 @@ SELECT ALL COALESCE ( 26, + 75 ) AS col2 # Datafusion - Expected - -86 # Datafusion - Expected - 16 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) / \(\- 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\(\-86\)\) / \(\- 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 - - 86 / + - COUNT ( * ) col2, 16 AS col2, + 53 + - 48 col2 query II rowsort label-4325 @@ -24017,7 +24017,7 @@ SELECT DISTINCT 90 - + - CAST ( + 7 AS INTEGER ) AS col1, 38 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-87\) \* \(\- 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\(\-87\) \* \(\- Int64\(50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - 87 * - ( 50 ) AS col2 query I rowsort label-4602 @@ -25906,7 +25906,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\(\*\) AS col1" at position 1 have the 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 @@ -25972,7 +25972,7 @@ SELECT - CAST ( - - ( - 14 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- count\(\*\)\) \+ Int64\(\-58\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-58\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 57 + - COUNT ( * ) + - 58 col2, 35 AS col2 query I rowsort label-4979 @@ -26844,7 +26844,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\(\*\) AS col2" at position 1 have 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 @@ -27247,7 +27247,7 @@ SELECT 79 * COUNT ( * ), 50 * + 89 * + ( + 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 "Int64\(86\) / Int64\(74\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 86 / + 74 col0, - ( + COUNT ( * ) ) AS col0 query I rowsort @@ -27848,7 +27848,7 @@ SELECT DISTINCT COUNT ( * ) * - - 68 * - - 89 * - 17 # Datafusion - Expected - 75 # Datafusion - Expected - 19 # 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\(\*\)\) 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\(75\) 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 75 AS col0, + 19 col2, + - COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -28043,7 +28043,7 @@ SELECT + ( 2 ) # 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\(\*\)\) AS col1" at position 0 and "Int64\(24\) \+ \(\- \(\- \(\- 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\(24\) \+ \(\- \(\- \(\- Int64\(\-16\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 24 + - - ( - - 16 ) col1 query I rowsort label-5369 @@ -28158,7 +28158,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-31\)\) \* Int64\(\-54\) \* \(\- coalesce\(count\(\*\), Int64\(53\) \- \(\- sum\(Int64\(13\)\)\)\)\) \* Int64\(64\) \+ CAST\(NULL AS Int32\) \+ Int64\(52\) \+ Int64\(45\) \+ Int64\(\-94\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-31\)\) \* Int64\(\-54\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(53\) \- \(\- sum\(Int64\(13\)\)\)\)\) \* Int64\(64\) \+ CAST\(NULL AS Int32\) \+ Int64\(52\) \+ Int64\(45\) \+ Int64\(\-94\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( + - 31 ) * - 54 * - COALESCE ( + + COUNT ( * ), + 53 - + - SUM ( 13 ) ) * + + 64 + CAST ( NULL AS INTEGER ) + + 52 + + + 45 + - 94 col0, 52 AS col0 query II rowsort @@ -29998,7 +29998,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\(\*\) 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 @@ -30402,7 +30402,7 @@ SELECT ALL 35 / 35 / - - MAX ( + + 78 ) AS col0, - 12 AS col0 # Datafusion - Expected - -432 # Datafusion - Expected - 178 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-48\) AS col0" at position 0 and "count\(\*\) \+ Int64\(94\) \+ 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\(9\) \* Int64\(\-48\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(94\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 9 * - 48 col0, + COUNT ( * ) + 94 + + 83 AS col0, 67 query I rowsort @@ -30612,7 +30612,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\(\*\) AS col2" at position 1 have the 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 @@ -30720,7 +30720,7 @@ SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1726 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* \(\- Int64\(\-97\)\) \+ \(\- Int64\(\-67\)\) \- Int64\(\-10\) AS col1" at position 0 and "CAST\(CAST\(coalesce\(Int64\(\-79\), Int64\(\-63\), Int64\(37\)\) AS Int32\) AS Int32\) \* \(\- CASE Int64\(68\) WHEN Int64\(48\) \+ Int64\(67\) THEN \(\- Int64\(\-92\)\) \+ Int64\(0\) END\) \+ Int64\(\-92\) \+ count\(\*\) \+ Int64\(73\) / Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* \(\- Int64\(\-97\)\) \+ \(\- Int64\(\-67\)\) \- Int64\(\-10\) AS col1" at position 0 and "CAST\(CAST\(coalesce\(Int64\(\-79\), Int64\(\-63\), Int64\(37\)\) AS Int32\) AS Int32\) \* \(\- CASE Int64\(68\) WHEN Int64\(48\) \+ Int64\(67\) THEN \(\- Int64\(\-92\)\) \+ Int64\(0\) END\) \+ Int64\(\-92\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) / Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 * - - 97 + - - 67 - - 10 AS col1, CAST ( CAST ( + COALESCE ( - 79, - 63, 37 ) AS INTEGER ) AS INTEGER ) * - CASE 68 WHEN + 48 + + 67 THEN - - 92 + + + 0 END + - 92 + COUNT ( * ) + 73 / 23 AS col1 query I rowsort @@ -30928,7 +30928,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\(\*\) 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 @@ -30949,7 +30949,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\(\*\) 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 @@ -31357,7 +31357,7 @@ SELECT - 78 / + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1447 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) \- nullif\(Int64\(98\), count\(\*\) \* Int64\(22\)\) \* coalesce\(Int64\(15\), Int64\(48\)\) AS col1" at position 0 and "Int64\(34\) \- Int64\(\-67\) \* max\(\(\- Int64\(\-15\)\)\) \* \(\- coalesce\(Int64\(\-56\), Int64\(\-49\)\)\) \* Int64\(88\) \* Int64\(\-11\) \- CASE Int64\(38\) WHEN Int64\(71\) \* Int64\(47\) THEN Int64\(13\) \- Int64\(\-25\) WHEN Int64\(76\) 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\(\-23\)\) \- nullif\(Int64\(98\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(22\)\) \* coalesce\(Int64\(15\), Int64\(48\)\) AS col1" at position 0 and "Int64\(34\) \- Int64\(\-67\) \* max\(\(\- Int64\(\-15\)\)\) \* \(\- coalesce\(Int64\(\-56\), Int64\(\-49\)\)\) \* Int64\(88\) \* Int64\(\-11\) \- CASE Int64\(38\) WHEN Int64\(71\) \* Int64\(47\) THEN Int64\(13\) \- Int64\(\-25\) WHEN Int64\(76\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 23 - + NULLIF ( 98, + COUNT ( * ) * 22 ) * + COALESCE ( + 15, 48 ) col1, 34 - - 67 * + + MAX ( - - 15 ) * - + COALESCE ( - 56, - 49 ) * + + 88 * - 11 - CASE + 38 WHEN + 71 * + 47 THEN + 13 - - 25 WHEN + ( + 76 ) THEN NULL END AS col1 query I rowsort @@ -31899,7 +31899,7 @@ SELECT ALL + 45 * 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1073 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "Int64\(29\) \* count\(\*\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "Int64\(29\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( ( + + 7 ) ) AS col1, + 29 * COUNT ( * ) * + 37 AS col1 query I rowsort label-6106 @@ -31925,7 +31925,7 @@ SELECT ALL - 10 * + 16 * + COUNT ( * ) # 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\(\*\)\) 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 DISTINCT + - COUNT ( * ) col1, - 85 AS col1 query I rowsort label-6111 @@ -33054,7 +33054,7 @@ SELECT DISTINCT MAX ( ALL - 98 ) * + 11, - MIN ( + ( 54 ) ) + 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 24920 -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\(\-20\) \* Int64\(89\) \* 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\(96\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-20\) \* Int64\(89\) \* Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 96 AS col2, ( + COUNT ( * ) ) * - 20 * + 89 * - 14 AS col2 query I rowsort @@ -33169,13 +33169,13 @@ 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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 # 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\(\*\)\)\) 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 col0 query I rowsort @@ -33415,7 +33415,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\(\*\) 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 @@ -34559,7 +34559,7 @@ SELECT DISTINCT + + COUNT ( * ) + + 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -3854 -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\(\-84\)\) \- \(\- CASE avg\(DISTINCT \(\- Int64\(\-69\)\)\) WHEN Int64\(68\) THEN NULL WHEN sum\(Int64\(\-22\)\) THEN NULL WHEN count\(nullif\(Int64\(25\), Int64\(\-54\)\)\) \* Int64\(50\) THEN NULL ELSE Int64\(\-94\) END\) \* \(\- min\(Int64\(\-41\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- Int64\(\-97\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-84\)\) \- \(\- CASE avg\(DISTINCT \(\- Int64\(\-69\)\)\) WHEN Int64\(68\) THEN NULL WHEN sum\(Int64\(\-22\)\) THEN NULL WHEN count\(nullif\(Int64\(25\), Int64\(\-54\)\)\) \* Int64\(50\) THEN NULL ELSE Int64\(\-94\) END\) \* \(\- min\(Int64\(\-41\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( - ( + - 97 ) ) AS col1, COUNT ( * ) / - - 84 - - CASE + AVG ( DISTINCT - - 69 ) WHEN 68 THEN NULL WHEN + SUM ( - 22 ) THEN NULL WHEN + COUNT ( NULLIF ( 25, - 54 ) ) * 50 THEN NULL ELSE - 94 END * - MIN ( - 41 ) AS col1 query I rowsort @@ -35891,7 +35891,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\(\*\) 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 @@ -36663,7 +36663,7 @@ SELECT DISTINCT - NULLIF ( 64, + 83 * + 43 + - COUNT ( * ) / + + COUNT ( * ) ) c # Datafusion - Datafusion expected results: # Datafusion - Expected - 1439 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(60\) \- \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "coalesce\(Int64\(\-29\), \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(60\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "coalesce\(Int64\(\-29\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 24 * ( 60 ) - - - COUNT ( * ) AS col1, + COALESCE ( ( - 29 ), + - COUNT ( * ) ) AS col1 query I rowsort @@ -37364,7 +37364,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\(\*\) 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 @@ -37607,7 +37607,7 @@ SELECT DISTINCT 96 / - + 14 + - 65 * 76 + + 72 + + - MIN ( - 43 ) * + 45 * + 24 # Datafusion - Expected - 6 # Datafusion - Expected - -3432 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(39\) AS col0" at position 1 and "\(\- CASE Int64\(77\) WHEN Int64\(61\) THEN NULL WHEN Int64\(35\) THEN CAST\(NULL AS Float64\) WHEN Int64\(2\) \* \(\- Int64\(\-33\)\) THEN Int64\(\-99\) END\) \+ Int64\(38\) \+ Int64\(29\) \+ count\(\*\) \* Int64\(76\) \* Int64\(96\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(39\) AS col0" at position 1 and "\(\- CASE Int64\(77\) WHEN Int64\(61\) THEN NULL WHEN Int64\(35\) THEN CAST\(NULL AS Float64\) WHEN Int64\(2\) \* \(\- Int64\(\-33\)\) THEN Int64\(\-99\) END\) \+ Int64\(38\) \+ Int64\(29\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\) \* Int64\(96\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col1, - 88 * 39 col0, - CASE 77 WHEN 61 THEN NULL WHEN 35 THEN CAST ( NULL AS FLOAT8 ) WHEN 2 * - - 33 THEN - 99 END + 38 + + 29 + COUNT ( * ) * + + 76 * 96 AS col0 query I rowsort label-7204 @@ -39751,7 +39751,7 @@ SELECT - + 10 + + - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col2, 51 + - CAST ( + 9 AS INTEGER ) AS col2 query I rowsort label-7615 @@ -40699,7 +40699,7 @@ SELECT - MIN ( DISTINCT + 84 ) + - - 76 # 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\(49\) \* Int64\(71\) \* \(\- CAST\(NULL AS Float64\)\) \- \(\- count\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(71\) \* \(\- CAST\(NULL AS Float64\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at 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 * 71 * - CAST ( NULL AS FLOAT8 ) - - COUNT ( * ) col2, - ( COUNT ( * ) ) AS col2 query I rowsort label-7798 @@ -41059,7 +41059,7 @@ SELECT 75 * - 46 + 44 / + - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- max\(Int64\(\-34\)\)\) 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\(\*\) \+ \(\- max\(Int64\(\-34\)\)\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + - MAX ( ALL - 34 ) AS col2, ( 52 ) AS col2 query I rowsort @@ -44326,7 +44326,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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 query I rowsort @@ -46546,7 +46546,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\(\*\) 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 @@ -47658,7 +47658,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\(\*\) AS col2" at position 1 have the 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 @@ -48018,7 +48018,7 @@ SELECT 14, 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- CASE Int64\(\-59\) WHEN CASE Int64\(32\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-68\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) THEN NULL ELSE Int64\(75\) END \+ \(\- \(\- avg\(Int64\(75\)\)\)\) \+ sum\(\(\- Int64\(51\)\)\) \* Int64\(43\) \+ Int64\(33\) / Int64\(\-87\) \- \(\- Int64\(\-34\)\) \+ Int64\(\-83\) THEN Int64\(45\) \+ \(\- count\(\*\)\) ELSE Int64\(0\) END AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- CASE Int64\(\-59\) WHEN CASE Int64\(32\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-68\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) THEN NULL ELSE Int64\(75\) END \+ \(\- \(\- avg\(Int64\(75\)\)\)\) \+ sum\(\(\- Int64\(51\)\)\) \* Int64\(43\) \+ Int64\(33\) / Int64\(\-87\) \- \(\- Int64\(\-34\)\) \+ Int64\(\-83\) THEN Int64\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(0\) END AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 22 - CASE + - 59 WHEN CASE 32 WHEN + ( + 55 ) THEN NULL WHEN - 68 * - CAST ( + + 84 AS INTEGER ) THEN NULL ELSE + 75 END + - + ( - + AVG ( + 75 ) ) + + + SUM ( - + 51 ) * + 43 + + + 33 / - 87 - - - 34 + - 83 THEN + + 45 + - + COUNT ( * ) ELSE 0 END AS col0, 59 AS col0 query I rowsort label-9199 @@ -48802,7 +48802,7 @@ SELECT ALL - 49 * - 8 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -87840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- CAST\(Int64\(53\) AS Int32\)\) AS col2" at position 0 and "Int64\(61\) \* \(\- \(\- sum\(Int64\(32\)\)\)\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(Int64\(53\) AS Int32\)\) AS col2" at position 0 and "Int64\(61\) \* \(\- \(\- sum\(Int64\(32\)\)\)\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - CAST ( 53 AS INTEGER ) AS col2, 61 * - - SUM ( ALL + 32 ) * - 45 col2 query I rowsort label-9350 @@ -48983,7 +48983,7 @@ SELECT - + COALESCE ( 76, - SUM ( - 7 ) * + + 19 * 41 + + + COUNT ( * ) + - 5 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -7403 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(5\) \+ \(\- count\(\*\)\) \* \(\- Int64\(93\)\) \* \(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(5\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(93\)\) \* \(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 26 * + 5 + - COUNT ( * ) * - + 93 * - ( 81 ) AS col0, 72 AS col0 query I rowsort label-9385 @@ -49526,7 +49526,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(26\) AS col0" at position 0 and "Int64\(62\) / 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\(\*\) \* Int64\(26\) AS col0" at position 0 and "Int64\(62\) / Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) * 26 AS col0, 62 / + + 22 AS col0 query I rowsort label-9489 @@ -50381,7 +50381,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\(\*\) AS col1" at position 1 have the 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 @@ -50853,7 +50853,7 @@ SELECT DISTINCT - + 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 14 -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\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 48 AS col2, + COUNT ( * ) * - - 14 AS col2 query I rowsort @@ -51817,7 +51817,7 @@ SELECT + 82 # 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 "count\(\*\) \+ Int64\(\-6\) 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\(\*\) \+ Int64\(\-6\) 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 ( * ) + - 6 AS col1, 22 AS col1 query I rowsort label-9935 diff --git a/data/sqlite/random/expr/slt_good_29.slt b/data/sqlite/random/expr/slt_good_29.slt index 016fb7b..a581466 100644 --- a/data/sqlite/random/expr/slt_good_29.slt +++ b/data/sqlite/random/expr/slt_good_29.slt @@ -1642,7 +1642,7 @@ SELECT + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(38\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 AS col0, 38 * - COUNT ( * ) AS col0 query I rowsort @@ -2026,7 +2026,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\(\*\) AS col2" at position 1 have the 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 @@ -2908,7 +2908,7 @@ SELECT ALL - 69 + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int32\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int32\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 - - COUNT ( * ) * CAST ( + MIN ( 13 ) AS INTEGER ) AS col1, 49 / 49 AS col1 query I rowsort @@ -5802,13 +5802,13 @@ 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\(\*\) 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: # Datafusion - Expected - -47 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(35\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(35\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 47 AS col1, 35 + - COUNT ( * ) AS col1 query I rowsort @@ -7533,7 +7533,7 @@ SELECT ALL - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(\-60\) / count\(\*\) \+ Int64\(38\) \+ \(\- nullif\(Int64\(\-28\), \(\- count\(DISTINCT Int64\(26\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(\-60\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(38\) \+ \(\- nullif\(Int64\(\-28\), \(\- count\(DISTINCT Int64\(26\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 15 col0, - 60 / + COUNT ( * ) + + 38 + - NULLIF ( - 28, - COUNT ( DISTINCT + 26 ) ) col0 query I rowsort @@ -7737,7 +7737,7 @@ SELECT ALL + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(61\), Int64\(88\) \* Int64\(\-75\)\) AS col1" at position 0 and "Int64\(57\) \* \(\- count\(\*\)\) AS col1" at position 1 have 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\(61\), Int64\(88\) \* Int64\(\-75\)\) AS col1" at position 0 and "Int64\(57\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + 61, + 88 * - 75 ) col1, 57 * - COUNT ( * ) col1 query I rowsort @@ -9089,7 +9089,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\(\*\) 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 @@ -10617,7 +10617,7 @@ SELECT + - 0 + - - MIN ( - 3 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(\-22\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 17 col0, - 22 + - COUNT ( * ) AS col0 query I rowsort @@ -11009,7 +11009,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -11285,7 +11285,7 @@ SELECT + - 19 * - COUNT ( * ) + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -299467 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) \* Int64\(\-20\) \* Int64\(32\) \* \(\- Int64\(\-36\)\) \+ nullif\(Int64\(\-7\), Int64\(47\)\) \+ Int64\(60\) 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 "\(\- Int64\(\-13\)\) \* Int64\(\-20\) \* Int64\(32\) \* \(\- Int64\(\-36\)\) \+ nullif\(Int64\(\-7\), Int64\(47\)\) \+ Int64\(60\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 13 * - 20 * + 32 * - - 36 + + NULLIF ( + - 7, + 47 ) + 60 col0, COUNT ( * ) * - 78 AS col0 query I rowsort @@ -12579,7 +12579,7 @@ SELECT ALL - 98 # 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\(72\)\) AS col1" at position 0 and "Int64\(47\) \+ \(\- Int64\(56\)\) \+ nullif\(\(\- \(\- nullif\(\(\- Int64\(20\)\), \(\- Int64\(55\)\) \+ \(\- Int64\(70\)\)\)\)\), \(\- \(\- 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 "count\(Int64\(72\)\) AS col1" at position 0 and "Int64\(47\) \+ \(\- Int64\(56\)\) \+ nullif\(\(\- \(\- nullif\(\(\- Int64\(20\)\), \(\- Int64\(55\)\) \+ \(\- Int64\(70\)\)\)\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( + 72 ) AS col1, 47 + - + 56 + + NULLIF ( - ( - NULLIF ( - + 20, - + 55 + - + 70 ) ), - - COUNT ( * ) + - 79 ) col1 query II rowsort label-2435 @@ -14739,7 +14739,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\(\*\) AS col2" at position 1 have the 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 @@ -16615,7 +16615,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\(\*\) 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 @@ -17207,7 +17207,7 @@ SELECT DISTINCT - + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7804 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-30\) \+ Int64\(\-13\) \+ Int64\(80\) \* Int64\(\-97\) 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\(\*\)\) \+ Int64\(\-30\) \+ Int64\(\-13\) \+ Int64\(80\) \* Int64\(\-97\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - 30 + - 13 + + 80 * + - 97 col2, 92 AS col2 query I rowsort @@ -20451,7 +20451,7 @@ SELECT ALL + 62 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int32\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 97 / + ( CAST ( - 14 AS INTEGER ) ) + - COUNT ( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0 query I rowsort @@ -22634,7 +22634,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\(\*\) AS col1" at position 1 have the 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 @@ -23802,7 +23802,7 @@ SELECT DISTINCT - 3 * + + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( + 46, - COUNT ( * ) ) - + ( - 37 ) + + - COUNT ( * ) + - + COALESCE ( 44, + 57 + + COUNT ( ALL + 81 ) + - - 27 + COALESCE ( 40, COUNT ( * ) * - 98 ) / + 99 ) - + 15 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 93 AS col2, 33 AS col2 query I rowsort @@ -24110,7 +24110,7 @@ SELECT 91 * 92 # 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\(\*\)\) AS col0" at position 1 have the 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 @@ -26320,7 +26320,7 @@ SELECT DISTINCT 49 / 56 + - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-81\) 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\(\*\)\) \* Int64\(\-81\) 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 ( * ) * - 81 AS col2, - 37 AS col2 query I rowsort @@ -26633,7 +26633,7 @@ SELECT - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "Int64\(35\) / Int64\(65\) / \(\- Int64\(12\)\) \* CASE \(\- Int64\(\-7\)\) WHEN Int64\(88\) \* count\(\*\) \+ Int64\(54\) THEN NULL WHEN Int64\(40\) \- Int64\(\-49\) THEN NULL ELSE Int64\(74\) END \- Int64\(0\) \* 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\(\-69\) AS col1" at position 0 and "Int64\(35\) / Int64\(65\) / \(\- Int64\(12\)\) \* CASE \(\- Int64\(\-7\)\) WHEN Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(54\) THEN NULL WHEN Int64\(40\) \- Int64\(\-49\) THEN NULL ELSE Int64\(74\) END \- Int64\(0\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 69 AS col1, 35 / 65 / - + 12 * CASE - - 7 WHEN 88 * COUNT ( * ) + 54 THEN NULL WHEN + 40 - - 49 THEN NULL ELSE 74 END - 0 * 27 col1 query II rowsort @@ -27074,7 +27074,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\(\*\) AS col0" at position 1 have the 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 @@ -27374,7 +27374,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\(\*\) 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: @@ -27422,7 +27422,7 @@ SELECT + - 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "coalesce\(Int64\(30\), 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\(\-51\) AS col1" at position 0 and "coalesce\(Int64\(30\), count\(Int64\(1\)\) AS count\(\*\), Int64\(79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 51 AS col1, COALESCE ( 30, + + COUNT ( * ), + 79 ) AS col1 query I rowsort @@ -27453,7 +27453,7 @@ SELECT ALL - ( + - 48 ) / + 67 AS col2 # 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\(\*\)\) 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 "\(\- 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 ALL - COUNT ( * ) AS col2, 97 AS col2 query II rowsort @@ -28670,7 +28670,7 @@ SELECT - 98 * + 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1933888 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* nullif\(Int64\(22\), Int64\(82\) / \(\- Int64\(\-22\)\) \+ Int64\(33\) \+ Int64\(\-34\) \* Int64\(\-38\) \- Int64\(\-47\)\) \* Int64\(67\) \* Int64\(4\) \* Int64\(\-82\) AS col0" at position 0 and "Int64\(46\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\) \* nullif\(Int64\(22\), Int64\(82\) / \(\- Int64\(\-22\)\) \+ Int64\(33\) \+ Int64\(\-34\) \* Int64\(\-38\) \- Int64\(\-47\)\) \* Int64\(67\) \* Int64\(4\) \* Int64\(\-82\) 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 + 4 * NULLIF ( + + 22, 82 / - - 22 + 33 + - 34 * + - 38 - + - 47 ) * + 67 * 4 * + - 82 AS col0, 46 / - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -33000,7 +33000,7 @@ SELECT - - ( - ( - 84 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(54\) 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\(\*\) / Int64\(54\) 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 ( * ) / 54 AS col1, - 9 AS col1 query I rowsort label-6387 @@ -33184,7 +33184,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\(\*\) 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 @@ -34287,7 +34287,7 @@ SELECT ALL - NULLIF ( - - COUNT ( - 68 ), + - 51 * - - CASE - 48 WHEN COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -667 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* count\(\*\) \* \(\- count\(\*\)\) \* Int64\(29\) 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\(23\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) 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 + + 23 * COUNT ( * ) * + - COUNT ( * ) * 29 AS col1, + 85 AS col1 query I rowsort @@ -34308,7 +34308,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\(30\), Int64\(92\) \* Int64\(7\) \- \(\- count\(\*\)\) \+ Int64\(3\), Int64\(70\)\)\)\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -37332,7 +37332,7 @@ SELECT ALL ( + 79 ) * 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(6\) 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\(\*\) \+ Int64\(6\) 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 ( * ) + + 6 AS col0, - ( + 89 ) AS col0 # Datafusion - Types were automatically converted from: @@ -37346,7 +37346,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(35\) 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\(\*\) \* Int64\(35\) 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 ( * ) * 35 AS col2, - 15 AS col2 query I rowsort @@ -37525,7 +37525,7 @@ SELECT 14 / + COUNT ( * ) + + 29 col1 # 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 col0" at position 0 and "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 "Int64\(38\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 AS col0, COUNT ( * ) * 3 AS col0 query I rowsort label-7267 @@ -41388,7 +41388,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -576 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(\*\)\) \- min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - 12 ) * + 48 AS col0, - COALESCE ( + 30, 74 ) * - COUNT ( * ) - 88 + + 79 / - COUNT ( * ) - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -42087,7 +42087,7 @@ SELECT - + 67, 26 * - + 71 * 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -77 -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\(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\(83\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 83 AS col2, - COUNT ( * ) - + + 76 AS col2 query I rowsort label-8150 @@ -42789,7 +42789,7 @@ SELECT - 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "\(\- coalesce\(\(\- Int64\(64\)\), Int64\(69\) \+ Int64\(\-46\), Int64\(37\) \- count\(\*\)\)\) AS col0" at position 1 have the 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 "\(\- coalesce\(\(\- Int64\(64\)\), Int64\(69\) \+ Int64\(\-46\), Int64\(37\) \- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 AS col0, - COALESCE ( + - ( + 64 ), 69 + - 46, 37 - COUNT ( * ) ) AS col0 query II rowsort label-8287 @@ -44718,7 +44718,7 @@ SELECT + 34 AS col2, - COALESCE ( + 54, + + 48 ) + - - ( 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 76 AS col1, + CASE - - 87 WHEN - 52 * - 1 + - - COUNT ( * ) + + - 35 THEN - COUNT ( DISTINCT - 96 ) END * CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -45012,7 +45012,7 @@ SELECT DISTINCT 97 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(31\)\), Int64\(7\) \* Int64\(\-42\) / \(\- Int64\(\-77\)\) \+ Int64\(\-83\) \* \(\- Int64\(83\)\) \+ Int64\(\-5\) \+ Int64\(14\) \* count\(\*\) / \(\- min\(Int64\(\-52\)\)\)\) 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 "nullif\(\(\- Int64\(31\)\), Int64\(7\) \* Int64\(\-42\) / \(\- Int64\(\-77\)\) \+ Int64\(\-83\) \* \(\- Int64\(83\)\) \+ Int64\(\-5\) \+ Int64\(14\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(Int64\(\-52\)\)\)\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - + 31, + 7 * - 42 / - - 77 + - 83 * + - ( 83 ) + - 5 + 14 * COUNT ( * ) / - MIN ( ALL - 52 ) ) AS col0, + 46 col0 query I rowsort @@ -46189,7 +46189,7 @@ SELECT - 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int32\) \* Int64\(6\) AS col1" at position 0 and "count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int32\) \* Int64\(6\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 36 * + CAST ( NULL AS INTEGER ) * + 6 col1, COUNT ( * ) + - - 72 + - 93 AS col1 query I rowsort label-8943 @@ -50712,7 +50712,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\(\*\) AS col2" at position 1 have the 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 29d0235..fbcaf0a 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\(\*\) 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 @@ -1105,7 +1105,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\(\*\) AS col1" at position 1 have the 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 @@ -2281,7 +2281,7 @@ SELECT + 49 * + - 31 + - - 88 AS col2, 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -275 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(\-5\) \* Int64\(72\) AS col1" at position 0 and "count\(\*\) \* \(\- count\(\(\- Int64\(90\)\)\)\) \* \(\- Int64\(14\)\) \+ Int64\(77\) \+ \(\- 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\(85\) \+ Int64\(\-5\) \* Int64\(72\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(\(\- Int64\(90\)\)\)\) \* \(\- Int64\(14\)\) \+ Int64\(77\) \+ \(\- Int64\(\-27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 + - 5 * 72 AS col1, COUNT ( * ) * - COUNT ( ALL - + ( 90 ) ) * - + 14 + + 77 + - - 27 AS col1 query I rowsort label-425 @@ -5059,7 +5059,7 @@ SELECT 41 - NULLIF ( + 15, - 24 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ \(\- Int64\(\-87\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-5\) \- 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\(44\) \+ \(\- Int64\(\-87\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-5\) \- Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 + - ( - 87 ) col2, + COUNT ( * ) * + - 5 - + + 68 AS col2 query I rowsort label-952 @@ -6266,7 +6266,7 @@ SELECT DISTINCT 56 * - - ( + - NULLIF ( 99, 10 ) ) + + 26 AS col0 # 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\(\*\)\) 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 query I rowsort label-1185 @@ -6292,7 +6292,7 @@ SELECT + 93 + - - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -265608 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(CASE \(\- count\(\*\)\) WHEN \(\- count\(\*\)\) \+ Int64\(57\) THEN NULL WHEN Int64\(80\) THEN NULL WHEN Int64\(81\) / Int64\(\-63\) THEN Int64\(51\) \* Int64\(56\) WHEN count\(\*\) THEN coalesce\(count\(\*\), Int64\(18\) \* \(\- Int64\(\-47\)\)\) END, \(\- Int64\(\-55\)\)\)\) \* Int64\(93\) AS col1" at position 0 and "Int64\(51\) \+ Int64\(\-98\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(57\) THEN NULL WHEN Int64\(80\) THEN NULL WHEN Int64\(81\) / Int64\(\-63\) THEN Int64\(51\) \* Int64\(56\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(18\) \* \(\- Int64\(\-47\)\)\) END, \(\- Int64\(\-55\)\)\)\) \* Int64\(93\) AS col1" at position 0 and "Int64\(51\) \+ Int64\(\-98\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( CASE - + COUNT ( * ) WHEN - + COUNT ( * ) + + 57 THEN NULL WHEN 80 THEN NULL WHEN 81 / - 63 THEN + + 51 * 56 WHEN + COUNT ( * ) THEN + ( COALESCE ( + COUNT ( * ), 18 * - - 47 ) ) END, - - 55 ) * 93 AS col1, + 51 + - 98 + + 39 AS col1 query I rowsort label-1190 @@ -6522,7 +6522,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\(64\)\) \+ 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 @@ -7163,7 +7163,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\(\*\) AS col1" at position 1 have the 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 @@ -8750,7 +8750,7 @@ SELECT 71 / 6 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 "Int64\(\-35\) / Int64\(53\) AS col2" at position 0 and "\(\- count\(\*\)\) / 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\(\-35\) / Int64\(53\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 35 / + + 53 AS col2, - COUNT ( * ) / + + 87 AS col2 query I rowsort @@ -8992,7 +8992,7 @@ SELECT DISTINCT - 5 + ( 27 ) AS col2 # 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\(\*\)\) AS col2" at position 1 have the 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 II rowsort label-1708 @@ -10348,7 +10348,7 @@ SELECT + - 20 + + 60 col1, + 84 * - - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- min\(Int64\(24\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(24\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - + MIN ( ALL 24 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -10644,7 +10644,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -11409,7 +11409,7 @@ SELECT COUNT ( * ) col2, + 69 + + - 0 * + 28 # 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\(\*\)\) AS col2" at position 0 and "count\(\*\) / Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) / 44 AS col2 query I rowsort @@ -11820,7 +11820,7 @@ SELECT + ( + 39 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-67\), count\(\*\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-67\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - 67, COUNT ( * ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2248 @@ -12656,7 +12656,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\(\*\) AS col1" at position 0 and "\(\- \(\- 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 @@ -12760,7 +12760,7 @@ SELECT DISTINCT 57 * + 74 - - ( + 5 ) AS col2 # Datafusion - Expected - -451439 # Datafusion - Expected - -9 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(66\) \* Int64\(\-72\) \- \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(79\) / \(\- 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\(95\) \* Int64\(66\) \* Int64\(\-72\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(79\) / \(\- Int64\(8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 * 66 * - 72 - - COUNT ( * ) AS col0, 79 / - + 8 AS col0, - - 1 + - 90 query I rowsort @@ -12947,7 +12947,7 @@ SELECT + 84 * + 69 + + COUNT ( * ) * - + 3 * + + 92 + 92 # Datafusion - Expected - -456 # Datafusion - Expected - -3355 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* Int64\(38\) AS col1" at position 0 and "count\(\*\) \* Int64\(61\) \* 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\(\-12\) \* Int64\(38\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) \* Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 * 38 AS col1, COUNT ( * ) * 61 * + - 55 col1, + 12 query I rowsort @@ -13172,7 +13172,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\(\*\) 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 @@ -14000,7 +14000,7 @@ SELECT ALL + ( - - 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2736 # Datafusion - Expected - 724 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT \(\- Int64\(\-36\)\)\)\) \* Int64\(\-76\) \+ Int64\(0\) AS col2" at position 0 and "Int64\(64\) \* count\(\*\) \+ Int64\(20\) \* 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 "\(\- max\(DISTINCT \(\- Int64\(\-36\)\)\)\) \* Int64\(\-76\) \+ Int64\(0\) AS col2" at position 0 and "Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MAX ( DISTINCT - - 36 ) * - 76 + + 0 AS col2, 64 * + COUNT ( * ) + + 20 * + ( 33 ) col2 query I rowsort @@ -15615,7 +15615,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\(\*\) AS col2" at position 1 have the 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 @@ -15707,7 +15707,7 @@ SELECT - NULLIF ( - 75, - 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 134 # Datafusion - Expected - 6398 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- \(\- Int64\(46\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(81\) \+ \(\- Int64\(\-78\)\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- \(\- Int64\(46\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(81\) \+ \(\- Int64\(\-78\)\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 88 - - + 46 col2, - COUNT ( * ) + + 81 + - - 78 * + 81 AS col2 query I rowsort @@ -15781,7 +15781,7 @@ SELECT ALL - COUNT ( * ) + + + 3 - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(15\) \* 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 "Int64\(15\) \* Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 15 * - 91 AS col1 query I rowsort @@ -17911,7 +17911,7 @@ SELECT ALL CAST ( + MAX ( ALL - + 15 ) AS INTEGER ) AS col0, - NULLIF ( - 73, - # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 54 -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\(\-54\) \* \(\- count\(\*\)\) AS col2" at position 1 have 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\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( ALL ( - + 87 ) ) AS col2, - 54 * - + COUNT ( * ) AS col2 query I rowsort label-3406 @@ -18225,7 +18225,7 @@ SELECT + + NULLIF ( 39, + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 1191 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(84\) \* count\(\*\) \+ Int64\(\-41\) \* \(\- nullif\(Int64\(27\), \(\- count\(\*\)\)\)\) AS col1" at position 1 have the 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 "Int64\(84\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-41\) \* \(\- nullif\(Int64\(27\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 AS col1, 84 * + COUNT ( * ) + - 41 * + - NULLIF ( + + 27, + - COUNT ( * ) ) AS col1 query I rowsort @@ -19455,7 +19455,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\(\*\)\) \* count\(\*\) \- \(\- CAST\(Int64\(\-96\) AS Int32\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -19502,7 +19502,7 @@ SELECT - 50 * - 34 + - 13 + 40 + 58 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), ( + COUNT ( * ) ) query I rowsort @@ -20057,7 +20057,7 @@ SELECT ALL - 36 - - 91 * - 99 + + + 6, 48 + - 13 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 50 -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\(\-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\(\-16\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 16 AS col1, ( - + COUNT ( * ) ) * + - 50 AS col1 query I rowsort label-3816 @@ -20104,7 +20104,7 @@ SELECT 80 / - 96 * ( - 50 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 70863 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \- \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(79\) \* sum\(Int64\(13\)\) \* 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\(99\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(79\) \* sum\(Int64\(13\)\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 - + - COUNT ( * ) col2, + 79 * SUM ( + + 13 ) * 69 AS col2 query I rowsort label-3825 @@ -21400,7 +21400,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\(\*\) 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 @@ -21446,7 +21446,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\(\*\) 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 @@ -21593,7 +21593,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -6892 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(61\) \* Int64\(\-3\) \* Int64\(38\) \+ Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(61\) \* Int64\(\-3\) \* Int64\(38\) \+ Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 23 * - COUNT ( * ) AS col2, + 61 * - 3 * 38 + 62 AS col2 query I rowsort @@ -22604,7 +22604,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\(\*\) AS col2" at position 1 have the 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 @@ -23355,7 +23355,7 @@ SELECT ALL - 1 / - 16 # Datafusion - Expected - -2655 # Datafusion - Expected - 62 # Datafusion - Expected - -262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(62\), Int64\(\-25\) \* Int64\(51\) / count\(\*\)\) AS col2" at position 1 and "Int64\(\-93\) \+ Int64\(\-3\) \* Int64\(55\) \+ Int64\(35\) \+ Int64\(\-39\) 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\(62\), Int64\(\-25\) \* Int64\(51\) / count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 and "Int64\(\-93\) \+ Int64\(\-3\) \* Int64\(55\) \+ Int64\(35\) \+ Int64\(\-39\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 32 * - + CAST ( 83 AS INTEGER ) - - COUNT ( * ), + NULLIF ( 62, - 25 * + 51 / COUNT ( * ) ) AS col2, - 93 + - 3 * + 55 + + ( + + 35 ) + - 39 AS col2 query I rowsort @@ -24022,7 +24022,7 @@ SELECT - 76 * + ( - - 63 ) * + 80 + - NULLIF ( + 14, + MIN ( + 21 ) ) * + 13 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 87 -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\(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\(\-10\) 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 + ( - 10 ) AS col1, COUNT ( * ) * 87 AS col1 query I rowsort @@ -25391,7 +25391,7 @@ SELECT + ( 20 ) * COALESCE ( - - COUNT ( * ), + ( 24 ) * - CASE NULLIF ( 93, + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(70\) 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\(70\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) * + 70 AS col1, 12 AS col1 query I rowsort label-4832 @@ -25702,7 +25702,7 @@ SELECT 78 * 92 * 31 + - - 11 * + 77 + - + 65 # Datafusion - Expected - 33 # Datafusion - Expected - 35 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ \(\- count\(\*\)\) / \(\- Int64\(15\)\) AS col1" at position 1 and "count\(DISTINCT Int64\(72\)\) \* Int64\(89\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(15\)\) AS col1" at position 1 and "count\(DISTINCT Int64\(72\)\) \* Int64\(89\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 33 AS col2, 35 + - COUNT ( * ) / - + 15 AS col1, + COUNT ( DISTINCT + 72 ) * 89 AS col1 query I rowsort label-4892 @@ -26014,7 +26014,7 @@ SELECT ( - + 45 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -8117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "CASE Int64\(2\) WHEN \(\- count\(\*\)\) THEN count\(\*\) ELSE Int64\(68\) \+ Int64\(55\) END \* Int64\(\-66\) \+ nullif\(count\(\*\), Int64\(86\) / 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\(38\) AS col1" at position 0 and "CASE Int64\(2\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(68\) \+ Int64\(55\) END \* Int64\(\-66\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(86\) / Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 38 AS col1, + CASE + 2 WHEN + - COUNT ( * ) THEN COUNT ( * ) ELSE 68 + + 55 END * - 66 + NULLIF ( COUNT ( * ), 86 / - 11 ) AS col1 query I rowsort label-4952 @@ -26938,7 +26938,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\(\*\) AS col1" at position 1 have the 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 @@ -27000,7 +27000,7 @@ SELECT ALL - 53 / - - 81 col1, - 71 * 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 864 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(96\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(96\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 9 * + 96 AS col2, COUNT ( * ) * - 84 AS col2 query I rowsort @@ -28195,7 +28195,7 @@ SELECT 62 + 10 col0 # Datafusion - Expected - 1 # Datafusion - Expected - 48 # Datafusion - Expected - -4014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 1 and "\(\- count\(\*\)\) \* Int64\(73\) \* Int64\(55\) \+ Int64\(22\) / 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\(48\) AS col1" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(73\) \* Int64\(55\) \+ Int64\(22\) / Int64\(12\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + 48 col1, - COUNT ( * ) * 73 * + + 55 + 22 / + 12 AS col1 query I rowsort @@ -28259,7 +28259,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\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(25\)\) \- \(\- count\(\*\)\) \+ Int64\(\-42\) \+ Int64\(38\) \- 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 @@ -29712,7 +29712,7 @@ SELECT ALL + - 46 + - 61 AS col0 # 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 "\(\- nullif\(\(\- count\(\*\)\), 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\(64\) AS col1" at position 0 and "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(14\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 AS col1, - NULLIF ( + - COUNT ( * ), + 14 ) AS col1 query I rowsort label-5660 @@ -30605,7 +30605,7 @@ SELECT DISTINCT + 48 * 2 * 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \+ \(\- CASE Int64\(31\) WHEN Int64\(39\) THEN Int64\(12\) \- Int64\(\-33\) \* \(\- Int64\(\-17\)\) ELSE Int64\(\-95\) END\) AS col0" at position 0 and "max\(DISTINCT Int64\(\-60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ \(\- CASE Int64\(31\) WHEN Int64\(39\) THEN Int64\(12\) \- Int64\(\-33\) \* \(\- Int64\(\-17\)\) ELSE Int64\(\-95\) END\) AS col0" at position 0 and "max\(DISTINCT Int64\(\-60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + - CASE + 31 WHEN + + 39 THEN + 12 - - 33 * - - 17 ELSE - 95 END AS col0, MAX ( DISTINCT ( - 60 ) ) AS col0 query II rowsort @@ -31585,7 +31585,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) / Int64\(50\) / \(\- min\(DISTINCT Int64\(82\)\)\) \* Int64\(67\) \* Int64\(58\) \- Int64\(21\) AS col0" at position 0 and "Int64\(\-3\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\) / \(\- min\(DISTINCT Int64\(82\)\)\) \* Int64\(67\) \* Int64\(58\) \- Int64\(21\) 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 - 15 / 50 / - + MIN ( DISTINCT 82 ) * 67 * 58 - + 21 AS col0, - 3 + - COUNT ( * ) AS col0 query I rowsort @@ -34313,7 +34313,7 @@ SELECT - 1 * - SUM ( + - 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(\-21\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) / - - 21 col0, - COUNT ( * ) col0 query I rowsort @@ -35836,7 +35836,7 @@ SELECT ALL + 11 - + - 62 + - - 46 * - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -77 -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\(\-78\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(\-78\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 33 AS col2, + COUNT ( * ) + - - ( - 78 ) AS col2 query I rowsort label-6831 @@ -35872,7 +35872,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\(\*\) 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 @@ -36179,7 +36179,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\(\*\) AS col1" at position 1 have the 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 @@ -37009,7 +37009,7 @@ SELECT ALL 77 * - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(92\)\)\) \+ \(\- coalesce\(count\(\*\), max\(Int64\(52\)\) / Int64\(6\) \+ Int64\(85\) \+ Int64\(26\)\)\) 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 "\(\- sum\(Int64\(92\)\)\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), max\(Int64\(52\)\) / Int64\(6\) \+ Int64\(85\) \+ Int64\(26\)\)\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( 92 ) + + + ( - COALESCE ( + + COUNT ( * ), MAX ( + 52 ) / 6 + + 85 + + + ( 26 ) ) ) AS col1, 56 col1 query I rowsort label-7055 @@ -37045,7 +37045,7 @@ SELECT + - MIN ( ALL COALESCE ( - + 39, - 6 * - + 34 ) ) + + + 21 + 81 + 7 + - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 186 # Datafusion - Expected - -202340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ Int64\(45\) \+ CASE Int64\(\-72\) WHEN Int64\(25\) THEN NULL WHEN Int64\(\-27\) \+ Int64\(55\) THEN Int64\(97\) ELSE Int64\(69\) \- Int64\(10\) END AS col2" at position 0 and "Int64\(37\) \* coalesce\(Int64\(\-68\), Int64\(56\), Int64\(50\) \* \(\- Int64\(62\)\) \+ Int64\(10\) \- Int64\(95\) / count\(\*\) \+ Int64\(\-68\) \- Int64\(6\) \* Int64\(23\) \* Int64\(60\), Int64\(18\)\) \* Int64\(81\) \+ Int64\(28\) \* Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ Int64\(45\) \+ CASE Int64\(\-72\) WHEN Int64\(25\) THEN NULL WHEN Int64\(\-27\) \+ Int64\(55\) THEN Int64\(97\) ELSE Int64\(69\) \- Int64\(10\) END AS col2" at position 0 and "Int64\(37\) \* coalesce\(Int64\(\-68\), Int64\(56\), Int64\(50\) \* \(\- Int64\(62\)\) \+ Int64\(10\) \- Int64\(95\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-68\) \- Int64\(6\) \* Int64\(23\) \* Int64\(60\), Int64\(18\)\) \* Int64\(81\) \+ Int64\(28\) \* Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 82 + 45 + + + CASE + - 72 WHEN + 25 THEN NULL WHEN ( - 27 ) + + 55 THEN + 97 ELSE + 69 - + 10 END col2, 37 * COALESCE ( - 68, + 56, + 50 * - + 62 + + + 10 - + 95 / + COUNT ( * ) + - 68 - + 6 * + 23 * 60, ( 18 ) ) * + 81 + 28 * 52 col2 query II rowsort label-7062 @@ -41601,7 +41601,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\(\*\) 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 @@ -43191,7 +43191,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\(\*\) / count\(\*\), Int64\(12\) \+ Int64\(50\)\) \* Int64\(\-77\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -45692,7 +45692,7 @@ SELECT + - COALESCE ( COUNT ( * ), - - 36, - 8, COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(65\) WHEN count\(\*\) THEN Int64\(\-99\) \+ Int64\(61\) END\)\) AS col2" at position 0 and "Int64\(65\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(65\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-99\) \+ Int64\(61\) END\)\) AS col2" at position 0 and "Int64\(65\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - CASE ( + 65 ) WHEN + + COUNT ( * ) THEN - 99 + 61 END AS col2, + 65 + - CAST ( NULL AS INTEGER ) col2 query I rowsort @@ -46036,7 +46036,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 288608 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(\-73\) \* Int64\(83\) \* \(\- Int64\(47\)\) \+ count\(\*\) \- count\(\*\) \- \(\- Int64\(65\)\) \* 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\(18\) AS col0" at position 0 and "Int64\(\-73\) \* Int64\(83\) \* \(\- Int64\(47\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(65\)\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 18 AS col0, - 73 * 83 * - + 47 + COUNT ( * ) - COUNT ( * ) - - + 65 * + + 59 AS col0 query II rowsort @@ -46390,7 +46390,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\(\*\) AS col2" at position 1 have the 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 @@ -47183,7 +47183,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\(\*\) AS col1" at position 1 have the 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 @@ -47289,7 +47289,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\(\*\) 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 @@ -48803,7 +48803,7 @@ SELECT - 90 / - 58 + - ( 48 ), 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1468 # Datafusion - Expected - -148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) / Int64\(\-28\) \+ Int64\(1\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(71\) \- Int64\(27\) \* Int64\(57\) AS col0" at position 0 and "Int64\(2\) \* CAST\(Int64\(\-74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) / Int64\(\-28\) \+ Int64\(1\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(71\) \- Int64\(27\) \* Int64\(57\) AS col0" at position 0 and "Int64\(2\) \* CAST\(Int64\(\-74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 30 / - 28 + + + 1 * - - COUNT ( * ) + 71 - + 27 * + 57 col0, 2 * + CAST ( + - 74 AS INTEGER ) AS col0 query II rowsort label-9306 @@ -48988,7 +48988,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\(\*\) 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 @@ -49048,7 +49048,7 @@ SELECT ALL - COUNT ( ALL - + 43 ) - + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 92 -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\(\-98\) / \(\- Int64\(13\)\) \+ Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-98\) / \(\- Int64\(13\)\) \+ Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 AS col1, - COUNT ( * ) + - 98 / - + 13 + + 86 col1 query I rowsort @@ -49996,7 +49996,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\(\*\) AS col2" at position 0 and "Int64\(\-99\) / \(\- CASE Int64\(29\) WHEN Int64\(78\) \+ Int64\(54\) \+ Int64\(45\) / Int64\(\-11\) \+ Int64\(44\) THEN 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 @@ -50195,7 +50195,7 @@ SELECT ALL COUNT ( * ) - COUNT ( * ) + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "Int64\(\-55\) \+ \(\- CASE count\(\*\) WHEN coalesce\(Int64\(98\), Int64\(64\) \- \(\- \(\- count\(\*\)\)\), Int64\(87\) \* Int64\(82\)\) THEN NULL WHEN Int64\(\-91\) \* Int64\(26\) THEN Int64\(69\) \+ Int64\(2\) \+ Int64\(\-92\) \* Int64\(\-71\) \* Int64\(2\) \* count\(\*\) \* Int64\(84\) END\) \* Int64\(34\) \* 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\(\-27\) AS col0" at position 0 and "Int64\(\-55\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(Int64\(98\), Int64\(64\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(87\) \* Int64\(82\)\) THEN NULL WHEN Int64\(\-91\) \* Int64\(26\) THEN Int64\(69\) \+ Int64\(2\) \+ Int64\(\-92\) \* Int64\(\-71\) \* Int64\(2\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(84\) END\) \* Int64\(34\) \* Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 27 AS col0, - 55 + - CASE COUNT ( * ) WHEN + COALESCE ( 98, 64 - - - COUNT ( * ), 87 * + + 82 ) THEN NULL WHEN - 91 * + 26 THEN + 69 + 2 + + - 92 * ( - 71 ) * + 2 * + ( COUNT ( * ) ) * + 84 END * + 34 * + 71 AS col0 query II rowsort @@ -51195,7 +51195,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\(\*\) 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 @@ -52092,7 +52092,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\(\*\) AS col1" at position 1 have the 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 @@ -52344,7 +52344,7 @@ SELECT + 66 AS col2, + ( - - COUNT ( * ) ) * - - 91 * - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "count\(\*\) / \(\- \(\- CAST\(Int64\(\-26\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(Int64\(\-26\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 2 col2, + COUNT ( * ) / - - CAST ( - 26 AS INTEGER ) AS col2 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_30.slt b/data/sqlite/random/expr/slt_good_30.slt index 3ab9ef9..ba1e0bf 100644 --- a/data/sqlite/random/expr/slt_good_30.slt +++ b/data/sqlite/random/expr/slt_good_30.slt @@ -585,7 +585,7 @@ SELECT ALL - 4 / - - 11 + + 84 * - + 3 + 20 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / \(\- Int64\(\-53\)\) \+ \(\- min\(Int64\(\-70\)\)\) \+ \(\- \(\- count\(\*\)\)\) / \(\- sum\(Int64\(44\)\)\) 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\(62\) / \(\- Int64\(\-53\)\) \+ \(\- min\(Int64\(\-70\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / \(\- sum\(Int64\(44\)\)\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 62 / - - 53 + - MIN ( + - 70 ) + - - COUNT ( * ) / - SUM ( 44 ) AS col2, + 33 AS col2 query I rowsort label-107 @@ -1506,7 +1506,7 @@ SELECT ALL 60 AS col2, 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(48\) AS col2" at position 0 and "CASE Int64\(24\) WHEN \(\- Int64\(\-45\)\) / \(\- \(\- coalesce\(\(\- max\(Int64\(\-58\)\)\), Int64\(84\)\)\)\) THEN Int64\(50\) ELSE Int64\(68\) \* Int64\(\-72\) \+ Int64\(\-37\) \+ Int64\(\-92\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(48\) AS col2" at position 0 and "CASE Int64\(24\) WHEN \(\- Int64\(\-45\)\) / \(\- \(\- coalesce\(\(\- max\(Int64\(\-58\)\)\), Int64\(84\)\)\)\) THEN Int64\(50\) ELSE Int64\(68\) \* Int64\(\-72\) \+ Int64\(\-37\) \+ Int64\(\-92\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX ( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2 query I rowsort @@ -1810,7 +1810,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\(\*\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-78\) \* \(\- Int64\(\-44\)\) \+ count\(\*\) \- CASE Int64\(\-46\) WHEN Int64\(\-50\) THEN NULL WHEN CAST\(Int64\(20\) AS Int32\) \* \(\- 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 @@ -2680,7 +2680,7 @@ SELECT ALL + - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 73 ) + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0, 18 AS col0 query I rowsort @@ -2887,7 +2887,7 @@ SELECT + - 89 AS col0, + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -3808 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(\-68\) \* \(\- nullif\(Int64\(\-56\), Int64\(30\) \+ Int64\(\-8\) \+ Int64\(\-10\) \+ Int64\(95\) \* \(\- nullif\(count\(\*\), Int64\(13\) \* Int64\(\-45\)\)\) / \(\- nullif\(Int64\(31\), Int64\(38\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(\-68\) \* \(\- nullif\(Int64\(\-56\), Int64\(30\) \+ Int64\(\-8\) \+ Int64\(\-10\) \+ Int64\(95\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(13\) \* Int64\(\-45\)\)\) / \(\- nullif\(Int64\(31\), Int64\(38\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT ( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2 # Datafusion - Datafusion expected results: @@ -2976,7 +2976,7 @@ SELECT 9 * 78, + 78 * - 37 - - + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1825 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* Int64\(\-25\) AS col2" at position 0 and "Int64\(42\) \* count\(\*\) \- 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\(\-73\) \* Int64\(\-25\) AS col2" at position 0 and "Int64\(42\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT ( * ) - + - 3 AS col2 query I rowsort label-566 @@ -4506,7 +4506,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\(\*\) 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 @@ -4996,7 +4996,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\(\*\) 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 @@ -7833,7 +7833,7 @@ SELECT ALL 30 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "\(\- CASE Int64\(45\) WHEN \(\- Int64\(\-27\)\) \* Int64\(\-25\) \* Int64\(\-91\) THEN coalesce\(Int64\(19\), Int64\(5\), Int64\(\-46\) \+ Int64\(\-63\)\) WHEN count\(DISTINCT Int64\(34\)\) \* avg\(Int64\(96\)\) THEN count\(\*\) WHEN Int64\(67\) / sum\(Int64\(\-65\)\) THEN Int64\(2\) \+ count\(\*\) \* Int64\(56\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "\(\- CASE Int64\(45\) WHEN \(\- Int64\(\-27\)\) \* Int64\(\-25\) \* Int64\(\-91\) THEN coalesce\(Int64\(19\), Int64\(5\), Int64\(\-46\) \+ Int64\(\-63\)\) WHEN count\(DISTINCT Int64\(34\)\) \* avg\(Int64\(96\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(67\) / sum\(Int64\(\-65\)\) THEN Int64\(2\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(56\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT ( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT ( * ) WHEN 67 / + SUM ( ALL - 65 ) THEN + 2 + COUNT ( * ) * 56 END AS col1 query I rowsort @@ -7969,7 +7969,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\(\*\) 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 @@ -8114,7 +8114,7 @@ SELECT ALL - 11 * - 78 AS col1 # 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\(\*\)\) \* \(\- sum\(Int64\(3\)\)\) 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\(\*\)\) \* \(\- sum\(Int64\(3\)\)\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2 query I rowsort @@ -9342,7 +9342,7 @@ SELECT ALL 23 * + - 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4346 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* \(\- Int64\(53\)\) AS col0" at position 0 and "Int64\(\-83\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(53\)\) 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 DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT ( * ) AS col0 query I rowsort @@ -10036,7 +10036,7 @@ SELECT ALL 67 AS col0 # 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 "Int64\(1\) AS col1" at position 0 and "count\(\*\) \* \(\- Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 AS col1, COUNT ( * ) * - - 77 AS col1 query I rowsort @@ -11098,7 +11098,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\(\*\) AS col2" at position 0 and "coalesce\(Int64\(\-90\), count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -11176,7 +11176,7 @@ SELECT - + 52 * - 91 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 "\(\- coalesce\(\(\- count\(\*\)\), Int64\(\-91\) \+ Int64\(\-17\), Int64\(57\)\)\) 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 "\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-91\) \+ Int64\(\-17\), Int64\(57\)\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - + COUNT ( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0 query I rowsort label-2144 @@ -12162,7 +12162,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\(\*\) 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 @@ -12250,7 +12250,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\(\*\) AS col1" at position 1 have the 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: @@ -12506,7 +12506,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1406 # Datafusion - Expected - -87472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 * 37 * - - CAST ( - COALESCE ( COUNT ( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS INTEGER ) AS col2, 88 * 14 * + - 71 AS col2 query I rowsort @@ -15240,7 +15240,7 @@ SELECT - 56 * + 2 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "nullif\(Int64\(\-82\), count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "nullif\(Int64\(\-82\), 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, + NULLIF ( + - 82, + COUNT ( * ) ) AS col0 query I rowsort @@ -15715,7 +15715,7 @@ SELECT ALL - - 75 + - COUNT ( * ) / + 97 * + - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(\-20\)\) WHEN Int64\(88\) THEN count\(\*\) ELSE NULL END\) \- max\(DISTINCT \(\- Int64\(67\)\)\) / Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(\-20\)\) WHEN Int64\(88\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) \- max\(DISTINCT \(\- Int64\(67\)\)\) / Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT ( * ) ELSE NULL END - + MAX ( DISTINCT - ( + 67 ) ) / - 60 AS col0 query II rowsort label-3012 @@ -16557,7 +16557,7 @@ SELECT - 10 * 0 # 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\(\*\)\) AS col2" at position 0 and "Int64\(17\) \+ count\(\*\) \+ 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\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + 17 + + + COUNT ( * ) + + 0 AS col2 query I rowsort @@ -17137,7 +17137,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\(\*\) 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 @@ -18507,7 +18507,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\(\*\) 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 @@ -19612,7 +19612,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\(\*\) 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 @@ -20304,7 +20304,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\(\*\)\) \* 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 @@ -20934,7 +20934,7 @@ SELECT DISTINCT 54 + - 72 # Datafusion - Expected - 0 # Datafusion - Expected - -90 # Datafusion - Expected - 5310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* count\(\*\) / Int64\(\-37\) \* Int64\(75\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-37\) \* Int64\(75\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 * + COUNT ( * ) / + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86 query I rowsort label-4017 @@ -21011,7 +21011,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\(\*\) AS col2" at position 1 have 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 @@ -22297,7 +22297,7 @@ SELECT 79 + - - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1022 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int32\)\)\)\), count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int32\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 73 * + - 14 col0, + COUNT ( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX ( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN ( - + CAST ( NULL AS INTEGER ) ) ), + + COUNT ( * ) ) ) AS col0 query I rowsort @@ -22371,7 +22371,7 @@ SELECT DISTINCT 14 + - 10 col2 # Datafusion - Expected - 31 # Datafusion - Expected - -88 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- count\(\*\)\) \+ Int64\(\-21\) AS col0" at position 1 and "count\(Int64\(\-51\)\) \* min\(Int64\(55\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-21\) AS col0" at position 1 and "count\(Int64\(\-51\)\) \* min\(Int64\(55\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 28 + + 3, + 67 * - COUNT ( * ) + - 21 AS col0, + COUNT ( - 51 ) * MIN ( 55 ) AS col0 query I rowsort @@ -22402,7 +22402,7 @@ SELECT ALL 13 + + 12 + - SUM ( ALL 20 ) * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(48\), 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 "coalesce\(Int64\(48\), 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 DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0 query I rowsort @@ -22621,7 +22621,7 @@ SELECT ALL - - 6 * + - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1054 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(47\) \- Int64\(\-62\) \+ Int64\(27\) \* \(\- min\(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\(47\) \- Int64\(\-62\) \+ Int64\(27\) \* \(\- min\(Int64\(\-35\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col2, 47 - - 62 + + 27 * + - MIN ( + - 35 ) AS col2 query I rowsort label-4340 @@ -24286,7 +24286,7 @@ SELECT ALL - SUM ( + 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 AS col0, 45 * + 67 * 67 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0 query I rowsort label-4660 @@ -25973,7 +25973,7 @@ SELECT - + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(91\) AS col0" at position 0 and "count\(\(\- Int64\(\-20\)\)\) \* 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\(\*\)\) \+ Int64\(91\) AS col0" at position 0 and "count\(\(\- Int64\(\-20\)\)\) \* Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + + 91 AS col0, COUNT ( - - 20 ) * + 91 col0 query I rowsort label-4987 @@ -27208,7 +27208,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\(\*\) 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 @@ -27395,7 +27395,7 @@ SELECT - 59 * - MAX ( - + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(98\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 "Int64\(98\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0 query I rowsort label-5264 @@ -27599,7 +27599,7 @@ SELECT DISTINCT - 82 + - 89 AS col0 # 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\(\*\)\) 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 col2 query I rowsort label-5304 @@ -29069,7 +29069,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\(\*\) / 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 @@ -29121,7 +29121,7 @@ SELECT ALL 52 + 84 + NULLIF ( + 68, 40 ) AS col0, 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- 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 "Int64\(59\) \+ \(\- 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 ( + + 59 ) + - COUNT ( * ) AS col2, 65 col2 query I rowsort @@ -29951,7 +29951,7 @@ SELECT ALL 90 * - - 95 # 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\(\-42\)\) AS col1" at position 0 and "Int64\(\-49\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same 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 col1" at position 0 and "Int64\(\-49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - 42 ) col1, - 49 * + - COUNT ( * ) AS col1 query I rowsort label-5759 @@ -30484,7 +30484,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int32\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(\*\) \* CAST\(NULL AS Int32\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int32\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 17 AS col1, - 31 + CASE COUNT ( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN ( + + 47 ) + + - CAST ( 3 AS INTEGER ) * - 36 THEN 81 * - 76 + 15 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) END AS col1 query I rowsort label-5860 @@ -31210,7 +31210,7 @@ SELECT DISTINCT - - ( - - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7015 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \- Int64\(\-92\) \* Int64\(77\) AS col0" at position 0 and "count\(\*\) \* 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\(\-69\) \- Int64\(\-92\) \* Int64\(77\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 69 - - 92 * 77 col0, COUNT ( * ) * 65 AS col0 query I rowsort @@ -31241,7 +31241,7 @@ SELECT ALL - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6203 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ \(\- Int64\(\-88\)\) \* Int64\(70\) AS col2" at position 0 and "count\(\*\) \* count\(Int64\(68\)\) \* CASE Int64\(\-46\) WHEN Int64\(44\) THEN count\(Int64\(\-37\)\) \+ Int64\(\-19\) ELSE \(\- count\(\*\)\) END \* 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\(43\) \+ \(\- Int64\(\-88\)\) \* Int64\(70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(68\)\) \* CASE Int64\(\-46\) WHEN Int64\(44\) THEN count\(Int64\(\-37\)\) \+ Int64\(\-19\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 + - ( - 88 ) * 70 AS col2, + COUNT ( * ) * COUNT ( ALL 68 ) * CASE - 46 WHEN + 44 THEN COUNT ( ALL - 37 ) + - 19 ELSE + - COUNT ( * ) END * + 68 AS col2 query I rowsort @@ -32928,7 +32928,7 @@ SELECT - ( 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 AS col1 query I rowsort label-6328 @@ -34069,7 +34069,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\(\*\)\)\) \* count\(\*\) AS col0" at position 0 and "Int64\(40\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -34696,7 +34696,7 @@ SELECT ALL 86 / - + ( - 94 ) + - 99 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) query II rowsort label-6669 @@ -34718,7 +34718,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 "\(\- CASE \(\- Int64\(11\)\) WHEN \(\- Int64\(71\)\) \+ CAST\(NULL AS Float64\) \+ \(\- count\(\*\)\) THEN Int64\(25\) ELSE count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(97\) \+ Int64\(35\) END\) \* Int64\(41\) \+ Int64\(6\) AS col2" at position 0 and "Int64\(97\) \- 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 "\(\- CASE \(\- Int64\(11\)\) WHEN \(\- Int64\(71\)\) \+ CAST\(NULL AS Float64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(25\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(97\) \+ Int64\(35\) END\) \* Int64\(41\) \+ Int64\(6\) AS col2" at position 0 and "Int64\(97\) \- Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CASE - + 11 WHEN - + 71 + ( CAST ( NULL AS FLOAT8 ) ) + - COUNT ( * ) THEN 25 ELSE COUNT ( * ) * - CAST ( NULL AS FLOAT8 ) + 97 + + 35 END * 41 + + 6 AS col2, + 97 - + + 69 col2 query II rowsort @@ -35149,7 +35149,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\(\*\) AS col2" at position 1 have the 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 @@ -35543,7 +35543,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-14\) AS col1" at position 0 and "Int64\(\-8\) \* CASE \(\- Int64\(\-54\)\) WHEN Int64\(83\) THEN CASE Int64\(69\) WHEN Int64\(97\) THEN Int64\(\-22\) \* sum\(Int64\(78\)\) \+ \(\- Int64\(\-47\)\) WHEN Int64\(\-11\) THEN NULL END \* \(\- count\(\*\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-14\) AS col1" at position 0 and "Int64\(\-8\) \* CASE \(\- Int64\(\-54\)\) WHEN Int64\(83\) THEN CASE Int64\(69\) WHEN Int64\(97\) THEN Int64\(\-22\) \* sum\(Int64\(78\)\) \+ \(\- Int64\(\-47\)\) WHEN Int64\(\-11\) THEN NULL END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 39 + - 14 AS col1, - 8 * + ( CASE - - 54 WHEN + 83 THEN CASE + 69 WHEN + 97 THEN + - 22 * + SUM ( + 78 ) + - - 47 WHEN - 11 THEN NULL END * - COUNT ( * ) ELSE NULL END ) AS col1 query I rowsort @@ -35985,7 +35985,7 @@ SELECT ALL - MAX ( - 38 ) * MAX ( ALL + 83 ) * 55 - 9 + + 66 + - - CAST ( 42 AS # Datafusion - Expected - 39 # Datafusion - Expected - -6 skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(CAST\(NULL AS Float64\), \(\- \(\- Int64\(87\)\)\) \+ Int64\(95\)\)\) \+ \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(85\)\) AS col1" at position 0 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 "\(\- nullif\(CAST\(NULL AS Float64\), \(\- \(\- Int64\(87\)\)\) \+ Int64\(95\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(85\)\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - NULLIF ( CAST ( NULL AS FLOAT8 ), - - ( + 87 ) + 95 ) + - - COUNT ( * ) * - + 85 AS col1, - CAST ( - SUM ( DISTINCT + 79 ) AS INTEGER ) + - + CASE - - 4 WHEN + - NULLIF ( + 75, 13 ) + - 98 + - + 96 * - 52 + 87 * + ( - 92 ) * + 34 * 5 * - ( 29 ) * + 92 * + - 81 / NULLIF ( - CASE + 4 WHEN + + 88 THEN + 87 ELSE + CAST ( + + 90 AS FLOAT8 ) + 54 END, + - 35 - - + 70 ) + + 89 * + 92 + + + AVG ( DISTINCT - 11 ) THEN NULL ELSE 40 END, - 6 AS col1 # Datafusion - Types were automatically converted from: @@ -37516,7 +37516,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\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) \* Int64\(13\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -37666,7 +37666,7 @@ SELECT DISTINCT + - COUNT ( * ) AS col1 # 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\(\*\)\) 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 AS col1 query I rowsort @@ -37805,7 +37805,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 + MAX ( - 92 ) + - - COUNT ( * ) * - 52 / - 33 AS col2, CAST ( - 3 AS INTEGER ) AS col2 query I rowsort @@ -37913,7 +37913,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\(85\) \* count\(\*\) AS col1" at position 1 have the same 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 @@ -38982,7 +38982,7 @@ SELECT ALL ( 62 ) AS col0, 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- Int64\(30\)\) 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\(\*\)\) \+ \(\- Int64\(30\)\) 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 ( * ) + - + 30 AS col0, + 91 AS col0 query I rowsort label-7493 @@ -39812,7 +39812,7 @@ SELECT DISTINCT - 45 + - 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -445 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-89\) \* \(\- 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\(86\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-89\) \* \(\- Int64\(\-5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 86 * + - COUNT ( * ) AS col1, - 89 * - - 5 AS col1 query I rowsort label-7653 @@ -40232,7 +40232,7 @@ SELECT 49, 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5807676 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(6\) \+ Int64\(98\) \* Int64\(\-17\) \* Int64\(83\) \* Int64\(42\) 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\(\*\)\) / Int64\(6\) \+ Int64\(98\) \* Int64\(\-17\) \* Int64\(83\) \* Int64\(42\) 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 ( * ) / + 6 + 98 * - 17 * + 83 * 42 AS col0, 60 AS col0 query I rowsort label-7731 @@ -40336,7 +40336,7 @@ SELECT ALL + ( - 8 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -967 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(86\) \+ count\(\*\) \- Int64\(30\) \- CASE \(\- \(\- count\(\*\)\)\) WHEN count\(\*\) THEN Int64\(64\) \* Int64\(16\) ELSE Int64\(55\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(86\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(30\) \- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(64\) \* Int64\(16\) ELSE Int64\(55\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 76 ) AS col1, + 86 + + + COUNT ( * ) - 30 - + CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN + 64 * + 16 ELSE + 55 END AS col1 query I rowsort @@ -42460,7 +42460,7 @@ SELECT + 39 * 97 / + 67 AS col2 # 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 "nullif\(\(\- coalesce\(count\(\*\), Int64\(\-29\) \+ Int64\(96\) \* Int64\(\-76\) \* Int64\(\-18\)\)\), Int64\(14\) \+ Int64\(23\)\) AS col0" at position 0 and "Int64\(\-97\) \- 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 "nullif\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-29\) \+ Int64\(96\) \* Int64\(\-76\) \* Int64\(\-18\)\)\), Int64\(14\) \+ Int64\(23\)\) AS col0" at position 0 and "Int64\(\-97\) \- Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - COALESCE ( + COUNT ( * ), - 29 + + 96 * - 76 * - 18 ), 14 + + 23 ) AS col0, - 97 - 51 AS col0 query II rowsort label-8160 @@ -42539,7 +42539,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(\-18\) / \(\- 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 "Int64\(32\) \+ Int64\(\-18\) / \(\- 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 + 32 + - 18 / - + COUNT ( * ) AS col0, - 76 AS col0 query I rowsort @@ -42845,7 +42845,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\(\*\) AS col0" at position 1 have the 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 @@ -43389,7 +43389,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\(\*\) 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 @@ -43574,7 +43574,7 @@ SELECT ALL - COUNT ( * ) + - - 99 + - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- CASE Int64\(71\) WHEN \(\- Int64\(68\)\) \* Int64\(72\) \+ Int64\(13\) \* coalesce\(count\(\*\), count\(\*\) \* Int64\(54\) \+ \(\- Int64\(95\)\), Int64\(\-61\)\) \* Int64\(36\) THEN sum\(DISTINCT \(\- Int64\(9\)\)\) \- min\(Int64\(9\)\) \+ Int64\(22\) / Int64\(35\) WHEN \(\- \(\- count\(\*\)\)\) THEN NULL END\) \* Int64\(\-6\) / \(\- Int64\(\-28\)\) \- 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\(76\) AS col2" at position 0 and "\(\- CASE Int64\(71\) WHEN \(\- Int64\(68\)\) \* Int64\(72\) \+ Int64\(13\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\) \+ \(\- Int64\(95\)\), Int64\(\-61\)\) \* Int64\(36\) THEN sum\(DISTINCT \(\- Int64\(9\)\)\) \- min\(Int64\(9\)\) \+ Int64\(22\) / Int64\(35\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END\) \* Int64\(\-6\) / \(\- Int64\(\-28\)\) \- Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 col2, - CASE 71 WHEN - + 68 * + 72 + 13 * COALESCE ( + COUNT ( * ), + COUNT ( * ) * 54 + - ( + 95 ), - 61 ) * + 36 THEN SUM ( DISTINCT - + 9 ) - MIN ( 9 ) + 22 / + 35 WHEN - - COUNT ( * ) THEN NULL END * + - 6 / - - 28 - - 57 AS col2 query I rowsort label-8372 @@ -44510,13 +44510,13 @@ SELECT ALL + ( 18 ) - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(58\) \+ \(\- Int64\(\-18\)\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) \* Int64\(94\) \- count\(\*\)\) \* count\(\*\) AS col1" at position 0 and "nullif\(CASE Int64\(\-21\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(67\) \* Int64\(\-18\) \+ \(\- 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: # Datafusion - Expected - 1967625 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int32\)\) / count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 15 * - + CASE + ( CAST ( NULL AS INTEGER ) ) WHEN + - 32 THEN + - 73 * - 84 WHEN 61 * + + 22 + - 21 * - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) THEN NULL ELSE + MIN ( DISTINCT + 40 ) * + - 71 + - COALESCE ( + 75, - 54 * + - COUNT ( * ) * + ( + - 30 ) ) END * 45 AS col2, - 95 AS col2 query I rowsort @@ -45427,7 +45427,7 @@ SELECT ALL 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-72\) \+ \(\- \(\- min\(Int64\(6\)\)\)\) \+ Int64\(9\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\) \+ \(\- \(\- min\(Int64\(6\)\)\)\) \+ Int64\(9\) \* \(\- 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, - 72 + - - MIN ( + 6 ) + + 9 * + - ( + COUNT ( * ) ) AS col1 query I rowsort @@ -46829,7 +46829,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\(\*\) 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 @@ -48369,7 +48369,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 756 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(42\) \* Int64\(18\) 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\(\*\) \* Int64\(42\) \* Int64\(18\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + 42 * + 18 AS col2, 0 AS col2 query II rowsort label-9299 @@ -48902,13 +48902,13 @@ 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\(\*\) 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: # Datafusion - Expected - -91 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) / Int64\(\-32\) \+ count\(\*\) \+ Int64\(\-93\) \+ Int64\(1\) AS col0" at position 0 and "Int64\(97\) \+ 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\(\-27\)\) / Int64\(\-32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-93\) \+ Int64\(1\) AS col0" at position 0 and "Int64\(97\) \+ Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - 27 ) / + - 32 + COUNT ( * ) + - 93 + + 1 AS col0, + 97 + - 90 AS col0 query I rowsort label-9401 @@ -49013,7 +49013,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\(\*\) 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 @@ -50711,7 +50711,7 @@ SELECT DISTINCT - 39 * - 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0 # Datafusion - Types were automatically converted from: @@ -51121,7 +51121,7 @@ SELECT + ( + ( 51 ) ) * - + 34 * 15 + + - 38 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(73\)\) \* \(\- Int64\(50\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(8\) \- Int64\(\-89\) \+ 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\(73\)\) \* \(\- Int64\(50\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(8\) \- Int64\(\-89\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( ALL 73 ) * - + 50 AS col0, COUNT ( * ) * + 8 - - 89 + 38 AS col0 query I rowsort label-9826 @@ -51257,7 +51257,7 @@ SELECT DISTINCT 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -665 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-1\)\) \+ nullif\(Int64\(32\), \(\- \(\- count\(\*\)\)\)\) \+ Int64\(\-12\) \+ \(\- Int64\(\-76\)\) \* Int64\(\-9\) \* Int64\(1\) 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 "min\(DISTINCT Int64\(\-1\)\) \+ nullif\(Int64\(32\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(\-12\) \+ \(\- Int64\(\-76\)\) \* Int64\(\-9\) \* Int64\(1\) 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 MIN ( DISTINCT - 1 ) + NULLIF ( 32, + - ( - COUNT ( * ) ) ) + - 12 + - - 76 * - 9 * 1 AS col2, - 68 AS col2 query I rowsort @@ -51450,7 +51450,7 @@ SELECT ALL - COUNT ( * ) * - + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(\*\)\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int32\) \+ \(\- count\(\*\)\) \* \(\- count\(\*\)\) \* \(\- coalesce\(\(\- count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 87 * - 69 * - + 74 / ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) col1, 91 * + CAST ( + 32 AS INTEGER ) + + - COUNT ( * ) * + - COUNT ( * ) * + - COALESCE ( - ( COUNT ( * ) ), 52 + + + 93, + 38 + NULLIF ( CAST ( NULL AS INTEGER ), - 49 ) ) - SUM ( ALL + ( 9 ) ) AS col1 query I rowsort label-9889 @@ -51461,7 +51461,7 @@ SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(\*\) \+ CAST\(NULL AS Int32\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 AS col1, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 55, + + 57 ) + + COUNT ( * ) + - + NULLIF ( 47, + - CAST ( - + 19 AS FLOAT8 ) ) * - 27 AS col1 query I rowsort @@ -51472,7 +51472,7 @@ SELECT - - 26 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -117 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-98\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(\-51\) / 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\(\*\) \* Int64\(\-98\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(\-51\) / Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) * - 98 + - 19 AS col0, - 51 / + 5 col0 query I rowsort label-9893 diff --git a/data/sqlite/random/expr/slt_good_31.slt b/data/sqlite/random/expr/slt_good_31.slt index 36da3b7..213c687 100644 --- a/data/sqlite/random/expr/slt_good_31.slt +++ b/data/sqlite/random/expr/slt_good_31.slt @@ -1095,7 +1095,7 @@ SELECT ALL + - 37 - 53 - + - ( 73 ) + + SUM ( 0 ) * 84 / 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "count\(\*\) / \(\- min\(Int64\(88\)\)\) \* Int64\(47\) \+ 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\(90\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(Int64\(88\)\)\) \* Int64\(47\) \+ Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 AS col0, COUNT ( * ) / - MIN ( ALL 88 ) * + + 47 + + 90 AS col0 query I rowsort @@ -1525,7 +1525,7 @@ SELECT ALL ( 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(32\) AS col2" at position 0 and "count\(\*\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 32 + 32 col2, + COUNT ( * ) * + 5 AS col2 query I rowsort @@ -2600,7 +2600,7 @@ SELECT - SUM ( DISTINCT - 57 ) 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 "\(\- \(\- count\(\*\)\)\) \+ Int64\(\-59\) AS col1" at position 0 and "coalesce\(\(\- count\(\*\)\), Int64\(82\), Int64\(\-77\) \* \(\- Int64\(\-88\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-59\) AS col1" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(82\), Int64\(\-77\) \* \(\- Int64\(\-88\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - - COUNT ( * ) ) + - 59 AS col1, COALESCE ( - COUNT ( * ), 82, - 77 * - - 88 ) AS col1 query II rowsort label-490 @@ -2667,7 +2667,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\(\*\) 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 @@ -4443,7 +4443,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\(\*\) 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 @@ -4830,7 +4830,7 @@ SELECT ALL ( + 85 ) + 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "CASE Int64\(33\) WHEN \(\- Int64\(16\)\) \* Int64\(88\) \+ Int64\(9\) \* Int64\(\-98\) THEN CASE Int64\(37\) WHEN Int64\(53\) / count\(\*\) THEN Int64\(75\) WHEN \(\- coalesce\(Int64\(30\), \(\- count\(\*\)\) \* Int64\(94\) \- Int64\(38\)\)\) THEN Int64\(40\) END WHEN Int64\(52\) THEN Int64\(\-46\) WHEN Int64\(\-56\) THEN NULL WHEN Int64\(50\) THEN NULL ELSE NULL END \+ 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\(\-65\) AS col1" at position 0 and "CASE Int64\(33\) WHEN \(\- Int64\(16\)\) \* Int64\(88\) \+ Int64\(9\) \* Int64\(\-98\) THEN CASE Int64\(37\) WHEN Int64\(53\) / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(75\) WHEN \(\- coalesce\(Int64\(30\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(94\) \- Int64\(38\)\)\) THEN Int64\(40\) END WHEN Int64\(52\) THEN Int64\(\-46\) WHEN Int64\(\-56\) THEN NULL WHEN Int64\(50\) THEN NULL ELSE NULL END \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 AS col1, CASE 33 WHEN - + 16 * + + 88 + + 9 * - 98 THEN CASE 37 WHEN 53 / COUNT ( * ) THEN 75 WHEN - ( COALESCE ( 30, - COUNT ( * ) * + 94 - 38 ) ) THEN + 40 END WHEN 52 THEN - 46 WHEN - 56 THEN NULL WHEN + 50 THEN NULL ELSE NULL END + 88 col1 query I rowsort @@ -4995,7 +4995,7 @@ SELECT ALL + 85 + - + 98 + + - 52 / 10 - + 25 * + 95 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 36 + COUNT ( * ) + - CAST ( 10 AS INTEGER ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0 query I rowsort @@ -5764,7 +5764,7 @@ SELECT ALL - 94 * - + 8 * - 85 + 8 * + 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 462 # Datafusion - Expected - -2293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(33\) AS col2" at position 0 and "Int64\(\-25\) \* count\(\*\) \* Int64\(94\) \+ 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\(14\) \* Int64\(33\) AS col2" at position 0 and "Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(94\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( + 14 ) * 33 AS col2, - 25 * + + COUNT ( * ) * + 94 + + 57 AS col2 query I rowsort label-1102 @@ -7318,7 +7318,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\(\*\) 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 @@ -7531,7 +7531,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -9368,7 +9368,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\(\*\) 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 @@ -10482,7 +10482,7 @@ SELECT ALL - 46 * - 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "\(\- CASE Int64\(18\) WHEN \(\- count\(\*\)\) \+ Int64\(15\) \* Int64\(27\) THEN NULL WHEN \(\- Int64\(11\)\) THEN \(\- \(\- Int64\(30\)\)\) END\) \* 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\(93\) AS col1" at position 0 and "\(\- CASE Int64\(18\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(15\) \* Int64\(27\) THEN NULL WHEN \(\- Int64\(11\)\) THEN \(\- \(\- Int64\(30\)\)\) END\) \* Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 93 AS col1, - CASE + + 18 WHEN + - COUNT ( * ) + 15 * + ( + 27 ) THEN NULL WHEN - + 11 THEN - - ( 30 ) END * 4 AS col1 query I rowsort label-2003 @@ -10920,7 +10920,7 @@ SELECT + 73 / + NULLIF ( + 74, - 69 ) * + 11 + + + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -300 # Datafusion - Expected - 1718 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(5\) \+ Int64\(41\) \+ nullif\(Int64\(35\), CASE count\(\*\) WHEN Int64\(97\) THEN Int64\(99\) \+ Int64\(87\) WHEN \(\- sum\(Int64\(14\)\)\) \* Int64\(86\) \- Int64\(65\) THEN NULL END \* \(\- Int64\(\-83\)\)\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(18\) / \(\- count\(\*\)\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(5\) \+ Int64\(41\) \+ nullif\(Int64\(35\), CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(97\) THEN Int64\(99\) \+ Int64\(87\) WHEN \(\- sum\(Int64\(14\)\)\) \* Int64\(86\) \- Int64\(65\) THEN NULL END \* \(\- Int64\(\-83\)\)\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(18\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 88 * 5 + + 41 + NULLIF ( 35, + + CASE + COUNT ( * ) WHEN 97 THEN 99 + 87 WHEN - SUM ( ALL + 14 ) * + 86 - + 65 THEN NULL END * - - 83 ) + + 64 AS col0, - 93 * + 18 / - COUNT ( * ) + + 44 AS col0 query II rowsort label-2088 @@ -10959,7 +10959,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\(\*\) 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 @@ -12530,7 +12530,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\(\*\) 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 @@ -12740,7 +12740,7 @@ SELECT DISTINCT COUNT ( * ) * - - 57 * + COUNT ( - 61 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 col2, ( + - 3 ) * + + COUNT ( * ) / + 34 + + - CAST ( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS INTEGER ) col2 # Datafusion - Datafusion expected results: @@ -12963,7 +12963,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\(\*\) AS col0" at position 1 have the 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 @@ -12984,7 +12984,7 @@ SELECT - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -2070 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(23\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(23\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 39 + - + COUNT ( * ) AS col2, 23 * - 90 AS col2 query I rowsort @@ -13331,7 +13331,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\(\*\) 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 @@ -14265,7 +14265,7 @@ SELECT 4 * - 78 / + ( - COUNT ( * ) ) + + 70 + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -2 -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\(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\(34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 AS col2, + COUNT ( * ) - 3 AS col2 query I rowsort label-2733 @@ -14276,7 +14276,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\(\*\) AS col1" at position 1 have the 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 @@ -15169,7 +15169,7 @@ SELECT ALL 94 + - CASE + 48 WHEN - 35 THEN + - 89 ELSE - 3 * - 27 + - 91 + NULLI # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -3100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "sum\(DISTINCT Int64\(65\)\) / Int64\(\-55\) \+ \(\- count\(\*\)\) \* Int64\(44\) \* Int64\(71\) \- \(\- 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\(34\) AS col2" at position 0 and "sum\(DISTINCT Int64\(65\)\) / Int64\(\-55\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(44\) \* Int64\(71\) \- \(\- min\(Int64\(25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 AS col2, SUM ( DISTINCT + 65 ) / + + ( + - 55 ) + + - COUNT ( * ) * 44 * + + 71 - - MIN ( ALL + 25 ) AS col2 query I rowsort label-2908 @@ -17394,7 +17394,7 @@ SELECT ALL NULLIF ( - 96, + 59 ) + - + 73 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 37 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(\-36\)\) AS col2" at position 1 and "Int64\(44\) \* Int64\(0\) \+ Int64\(\-74\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-36\)\) AS col2" at position 1 and "Int64\(44\) \* Int64\(0\) \+ Int64\(\-74\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + 53 * - CAST ( NULL AS INTEGER ) + - 65, + COUNT ( * ) + - ( - 36 ) AS col2, 44 * - 0 + - 74 AS col2 query I rowsort @@ -17660,7 +17660,7 @@ SELECT + - 45 + 31 - - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- count\(\*\)\)\)\) \- Int64\(\-44\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-44\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - - COUNT ( * ) ) - - 44 AS col2, 88 AS col2 query I rowsort @@ -17788,7 +17788,7 @@ SELECT ALL + 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -5290 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "count\(\*\) \- nullif\(Int64\(\-99\), Int64\(38\)\) \+ Int64\(77\) \* 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\(46\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- nullif\(Int64\(\-99\), Int64\(38\)\) \+ Int64\(77\) \* Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 46 AS col2, COUNT ( * ) - + NULLIF ( - 99, 38 ) + 77 * - 70 AS col2 query I rowsort @@ -17930,7 +17930,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\(\*\) AS col1" at position 1 have the 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 @@ -18147,7 +18147,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\(\*\) 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 @@ -19814,7 +19814,7 @@ SELECT - 19 * - - 80 + 33 * 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- Int64\(\-64\) / Int64\(13\) / Int64\(\-98\) \* Int64\(80\) AS col1" at position 0 and "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 "Int64\(83\) \- Int64\(\-64\) / Int64\(13\) / Int64\(\-98\) \* Int64\(80\) 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 + ( + 83 ) - - 64 / 13 / + + ( + - 98 ) * + 80 AS col1, + COUNT ( * ) - 66 AS col1 query I rowsort @@ -19941,7 +19941,7 @@ SELECT - + 86 + - - 59 * 42 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\(\*\)\) AS col0" at position 0 and "Int64\(\-11\) \+ Int64\(40\) \+ 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-11\) \+ Int64\(40\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, - 11 + + 40 + + 59 AS col0 query I rowsort @@ -20364,7 +20364,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\(\*\) 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 @@ -21132,7 +21132,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -237539 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / \(\- nullif\(count\(\*\), Int64\(\-95\)\)\) AS col1" at position 0 and "Int64\(29\) \* Int64\(89\) \- Int64\(92\) \* Int64\(\-58\) \* Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-95\)\)\) AS col1" at position 0 and "Int64\(29\) \* Int64\(89\) \- Int64\(92\) \* Int64\(\-58\) \* Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 34 / - NULLIF ( COUNT ( * ), - 95 ) AS col1, ( + 29 ) * + 89 - 92 * - 58 * - 45 AS col1 query I rowsort @@ -21376,7 +21376,7 @@ SELECT - 26 * - 95 AS col2, + 44 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - 0 AS INTEGER ) * + - CASE - + 28 WHEN 70 * - - ( - 47 ) THEN + 50 END - + 82 AS col0, COUNT ( * ) * + NULLIF ( 18, + + 38 * + 8 / + 76 ) * - + 80 + - 58 + + - NULLIF ( - NULLIF ( + 40, + 76 * 86 * + + 86 ), - - 72 * 9 + - + 64 ) - + CASE - 97 WHEN - + CAST ( NULL AS INTEGER ) THEN + 21 ELSE - 14 * + + COUNT ( * ) + - + 75 / - COUNT ( * ) END AS col0 query I rowsort @@ -24775,7 +24775,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\(\*\) 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 @@ -25585,7 +25585,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\(78\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -25596,7 +25596,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\(20\) \+ \(\- CAST\(count\(\*\) AS Int32\)\) THEN Int64\(31\) \* CAST\(Int64\(32\) AS Int32\) ELSE Int64\(\-42\) \+ CASE Int64\(41\) WHEN Int64\(32\) \+ count\(\*\) \* Int64\(\-96\) THEN NULL WHEN Int64\(88\) \+ \(\- \(\- 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 @@ -25666,7 +25666,7 @@ SELECT - 91 + - 26 AS col1 # Datafusion - Expected - 12 # Datafusion - Expected - 4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(79\) AS col0" at position 0 and "\(\- coalesce\(\(\- count\(\*\)\), Int64\(29\)\)\) / CASE \(\- count\(\*\)\) WHEN Int64\(\-57\) THEN Int64\(18\) / Int64\(\-27\) WHEN Int64\(\-97\) THEN Int64\(41\) \* Int64\(\-1\) ELSE \(\- CASE Int64\(93\) WHEN Int64\(\-32\) / Int64\(20\) THEN Int64\(\-84\) \* Int64\(11\) ELSE NULL END\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(79\) AS col0" at position 0 and "\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(29\)\)\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-57\) THEN Int64\(18\) / Int64\(\-27\) WHEN Int64\(\-97\) THEN Int64\(41\) \* Int64\(\-1\) ELSE \(\- CASE Int64\(93\) WHEN Int64\(\-32\) / Int64\(20\) THEN Int64\(\-84\) \* Int64\(11\) ELSE NULL END\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 67 + + 79 AS col0, + CASE - - 83 WHEN - COUNT ( * ) THEN NULL ELSE - ( - MIN ( ALL + ( 4 ) ) ) END, - COALESCE ( - ( COUNT ( * ) ), 29 ) / + CASE - COUNT ( * ) WHEN - 57 THEN + 18 / - 27 WHEN - 97 THEN 41 * - 1 ELSE - ( + CASE 93 WHEN - 32 / + 20 THEN - 84 * 11 ELSE NULL END ) END col0 query I rowsort @@ -25790,7 +25790,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\(\*\) 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 @@ -28972,7 +28972,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\(\*\) AS col1" at position 1 have the 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 @@ -29307,7 +29307,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\(\*\) AS col0" at position 1 have the 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 @@ -29380,7 +29380,7 @@ SELECT ALL + 35 + + 28 * - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \+ \(\- count\(\*\)\) \* Int64\(\-30\) 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 "Int64\(\-43\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 + - COUNT ( * ) * + - 30 AS col1, 70 AS col1 query I rowsort @@ -30684,7 +30684,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\(\*\) AS col1" at position 1 have the 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 @@ -31060,7 +31060,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-85\) \+ Int64\(\-3\) 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\(\*\) \* Int64\(\-85\) \+ Int64\(\-3\) 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 ( * ) * + - 85 + + - 3 AS col0, - 78 col0 query I rowsort label-5961 @@ -32941,7 +32941,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\(\*\) AS col2" at position 1 have 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 @@ -32988,7 +32988,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -33282,7 +33282,7 @@ SELECT 27 * - 73 # Datafusion - Expected - 26 # Datafusion - Expected - 3976 # Datafusion - Expected - -108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(42\) \+ nullif\(\(\- CASE Int64\(\-52\) WHEN Int64\(\-20\) \* Int64\(32\) \+ \(\- count\(\*\)\) THEN Int64\(27\) \* Int64\(36\) ELSE \(\- Int64\(\-53\)\) \+ Int64\(97\) END\), Int64\(\-5\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(42\) \+ nullif\(\(\- CASE Int64\(\-52\) WHEN Int64\(\-20\) \* Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(27\) \* Int64\(36\) ELSE \(\- Int64\(\-53\)\) \+ Int64\(97\) END\), Int64\(\-5\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 26 col2, + 56 * 71, 42 + NULLIF ( - CASE - 52 WHEN - 20 * + 32 + - COUNT ( * ) THEN + + 27 * + 36 ELSE - - 53 + + 97 END, - 5 ) col2 query I rowsort @@ -34932,7 +34932,7 @@ SELECT - + 73 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, 67 + - + COUNT ( * ) + + 74 * + 80 AS col1 query I rowsort @@ -35080,7 +35080,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\(\*\) \* count\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -35457,7 +35457,7 @@ SELECT 93 AS col0, SUM ( DISTINCT - 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 2361 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(18\) \- Int64\(75\) \- CASE Int64\(\-51\) WHEN Int64\(\-65\) \+ Int64\(\-1\) THEN NULL WHEN coalesce\(Int64\(\-69\), CASE Int64\(\-76\) WHEN Int64\(42\) THEN NULL WHEN Int64\(32\) THEN Int64\(64\) WHEN Int64\(14\) \+ Int64\(71\) \* Int64\(\-10\) THEN Int64\(42\) \* Int64\(27\) END, Int64\(46\)\) \+ Int64\(19\) THEN count\(\*\) ELSE Int64\(45\) \- Int64\(63\) END \+ Int64\(80\) \* 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\(\-34\) AS col0" at position 0 and "Int64\(18\) \- Int64\(75\) \- CASE Int64\(\-51\) WHEN Int64\(\-65\) \+ Int64\(\-1\) THEN NULL WHEN coalesce\(Int64\(\-69\), CASE Int64\(\-76\) WHEN Int64\(42\) THEN NULL WHEN Int64\(32\) THEN Int64\(64\) WHEN Int64\(14\) \+ Int64\(71\) \* Int64\(\-10\) THEN Int64\(42\) \* Int64\(27\) END, Int64\(46\)\) \+ Int64\(19\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(45\) \- Int64\(63\) END \+ Int64\(80\) \* Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 col0, + 18 - + 75 - + CASE - 51 WHEN - 65 + - 1 THEN NULL WHEN COALESCE ( - 69, + CASE - 76 WHEN + 42 THEN NULL WHEN 32 THEN ( + 64 ) WHEN 14 + 71 * - 10 THEN 42 * 27 END, 46 ) + 19 THEN + COUNT ( * ) ELSE 45 - + 63 END + 80 * + 30 AS col0 query I rowsort @@ -36765,7 +36765,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\(\*\) AS col2" at position 1 have the same 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 @@ -36902,7 +36902,7 @@ SELECT + - 74 * - 58 * - + 79 # 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\(\*\)\) 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 II rowsort @@ -37052,7 +37052,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -37521,7 +37521,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\(\*\) 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 @@ -38507,7 +38507,7 @@ SELECT DISTINCT - 63 AS col0, - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* coalesce\(count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 col0, + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), + + 32, 21 * ( - + ( + 82 ) ) - + + 55 - + 29 - + CAST ( 81 AS FLOAT8 ) ) AS col0 query II rowsort @@ -38983,7 +38983,7 @@ SELECT ALL - + 2 + + - ( - 80 ) + + 55 * + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int32\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int32\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 6 - + ( + 10 ) AS col1, ( + COUNT ( * ) ) * 11 - CAST ( 61 AS INTEGER ) + + - 37 * 70 AS col1 query I rowsort @@ -39093,7 +39093,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\(66\)\) \* Int64\(88\) \- 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 @@ -39203,7 +39203,7 @@ SELECT SUM ( 46 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 175 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(25\), \(\- Int64\(\-31\)\), Int64\(\-50\)\) \* Int64\(7\) AS col2" at position 0 and "min\(Int64\(66\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(25\), \(\- Int64\(\-31\)\), Int64\(\-50\)\) \* Int64\(7\) AS col2" at position 0 and "min\(Int64\(66\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + + 25, - - 31, - 50 ) * 7 AS col2, MIN ( ALL + 66 ) * - COUNT ( * ) AS col2 query I rowsort @@ -39399,7 +39399,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\(\*\) 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 @@ -40142,7 +40142,7 @@ SELECT ALL 10 - - 77 + 25 # 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\(\*\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + 10 AS col1 query I rowsort @@ -40345,7 +40345,7 @@ SELECT DISTINCT ( - ( - 16 ) ) # 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 "\(\- sum\(DISTINCT Int64\(\-23\)\)\) AS col0" at position 0 and "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 "\(\- sum\(DISTINCT Int64\(\-23\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( DISTINCT - 23 ) AS col0, COUNT ( * ) * - - 3 AS col0 query I rowsort label-7740 @@ -40484,7 +40484,7 @@ SELECT ( 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(\*\)\) AS Int32\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * NULLIF ( - 88, - 46 * 12 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 60 + 92 ) AS col2, - COALESCE ( + 19, + - 50 ) - + - 28 / + 83 AS col2 query I rowsort label-7767 @@ -40602,7 +40602,7 @@ SELECT ALL - + 98 + - - 58 * - 71 + + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(24\)\)\) \+ CASE count\(\*\) WHEN Int64\(\-25\) THEN Int64\(\-78\) \+ Int64\(55\) ELSE NULL END 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\(24\)\)\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-25\) THEN Int64\(\-78\) \+ Int64\(55\) ELSE NULL END 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 - - ( + 24 ) + CASE + COUNT ( * ) WHEN - 25 THEN - 78 + 55 ELSE NULL END AS col0, + 11 AS col0 query I rowsort label-7790 @@ -40803,7 +40803,7 @@ SELECT - - 27 # 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 col1" at position 1 have the 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\(\*\)\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 70 AS col1, - COUNT ( * ) * 1 AS col1 query I rowsort @@ -44363,7 +44363,7 @@ SELECT - SUM ( DISTINCT + - 22 ) * 10 AS col0 # 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\(90\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(52\) \- \(\- Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(52\) \- \(\- Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 90 ) + - COUNT ( * ) col2, + 52 - - - 55 AS col2 query I rowsort label-8516 @@ -44747,7 +44747,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + - MIN ( 44 ) ) / AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - 11 AS col2, + 0 * - COUNT ( * ) AS col2 query I rowsort @@ -45702,7 +45702,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3512 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(62\) \* Int64\(56\) \+ Int64\(40\) 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\(\*\) \* Int64\(62\) \* Int64\(56\) \+ Int64\(40\) 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 ( * ) * 62 * + 56 + + 40 AS col2, 96 col2 query I rowsort @@ -46965,7 +46965,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\(\*\) 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 @@ -48312,7 +48312,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\(\*\) 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 @@ -48498,7 +48498,7 @@ SELECT 21 + - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29988 # Datafusion - Expected - -111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* Int64\(68\) \* Int64\(\-21\) AS col0" at position 0 and "Int64\(\-97\) \+ Int64\(14\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(68\) \* Int64\(\-21\) AS col0" at position 0 and "Int64\(\-97\) \+ Int64\(14\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 21 * + 68 * - 21 AS col0, - 97 + + 14 * + - COUNT ( * ) AS col0 query I rowsort label-9302 @@ -49208,7 +49208,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(8\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(8\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( 8 ) AS col1, + COUNT ( * ) * - 8 AS col1 query I rowsort label-9438 @@ -49631,7 +49631,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -362 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col2" at position 0 and "Int64\(36\) \* nullif\(Int64\(\-8\), Int64\(22\) \+ count\(\*\) \+ Int64\(\-26\) / Int64\(66\) \- count\(\(\- Int64\(\-10\)\)\)\) \* \(\- \(\- count\(DISTINCT Int64\(83\)\)\)\) \+ 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\(\-64\)\) AS col2" at position 0 and "Int64\(36\) \* nullif\(Int64\(\-8\), Int64\(22\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-26\) / Int64\(66\) \- count\(\(\- Int64\(\-10\)\)\)\) \* \(\- \(\- count\(DISTINCT Int64\(83\)\)\)\) \+ Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 64 AS col2, + 36 * NULLIF ( - 8, + 22 + + COUNT ( * ) + - 26 / 66 - + COUNT ( - - 10 ) ) * - - COUNT ( DISTINCT + 83 ) + - 74 AS col2 query I rowsort label-9518 @@ -50078,7 +50078,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\(\*\) AS col1" at position 1 have the 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 @@ -50241,7 +50241,7 @@ SELECT + 24 col0 # Datafusion - Expected - -5440 # Datafusion - Expected - 48 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) \* Int64\(\-8\) \+ \(\- nullif\(Int64\(\-58\), \(\- count\(\*\)\)\)\) \* Int64\(\-96\) AS col2" at position 0 and "Int64\(\-70\) 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\(16\)\) \* Int64\(\-8\) \+ \(\- nullif\(Int64\(\-58\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(\-96\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 16 * - 8 + - NULLIF ( - 58, - COUNT ( * ) ) * - 96 AS col2, NULLIF ( + 48, + COUNT ( * ) + - + 23 - - 18 - + - 53 * + 66 * - 65 ), - 70 AS col2 query I rowsort label-9635 @@ -50676,7 +50676,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -51028,7 +51028,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\(\*\) \* count\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -51298,7 +51298,7 @@ SELECT ALL COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) 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\(\*\)\) 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 diff --git a/data/sqlite/random/expr/slt_good_32.slt b/data/sqlite/random/expr/slt_good_32.slt index 769253f..447fb38 100644 --- a/data/sqlite/random/expr/slt_good_32.slt +++ b/data/sqlite/random/expr/slt_good_32.slt @@ -2915,7 +2915,7 @@ SELECT ALL - + 98 * - COUNT ( * ) AS col2 # 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\(\*\)\) 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 ( * ) col1, 78 AS col1 query I rowsort @@ -5853,7 +5853,7 @@ SELECT - + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -7298,7 +7298,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\(\*\) AS col0" at position 1 have the 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 @@ -7403,7 +7403,7 @@ SELECT DISTINCT 19 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* \(\- 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\(39\) \* \(\- 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 39 * - COUNT ( * ) AS col0, 49 AS col0 query I rowsort @@ -10381,7 +10381,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\(\*\) 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 @@ -12774,7 +12774,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\(\*\) AS col2" at position 1 have 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 @@ -15983,7 +15983,7 @@ SELECT - - 34 / + - 98 * COUNT ( * ) AS col2 # 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 "CASE count\(\*\) WHEN Int64\(50\) THEN Int64\(\-32\) ELSE \(\- \(\- count\(\*\)\)\) END 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 "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(50\) THEN Int64\(\-32\) ELSE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END 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 CASE COUNT ( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT ( * ) END AS col2, + 25 col2 query I rowsort @@ -16530,7 +16530,7 @@ SELECT - SUM ( DISTINCT + 54 ) col0, + 73 AS col1 # 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\(\*\)\) AS col2" at position 1 have the 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 I rowsort @@ -20720,7 +20720,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\(\*\) AS col0" at position 1 have the 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 @@ -26465,7 +26465,7 @@ SELECT + 80 + - + COUNT ( ALL 22 ) # 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\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 query II rowsort @@ -26538,7 +26538,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\(\*\) AS Int32\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 @@ -27811,7 +27811,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\(\*\) 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 @@ -28178,7 +28178,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\(\*\) 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 @@ -29216,7 +29216,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\(\*\) AS col1" at position 1 have the 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 @@ -29445,7 +29445,7 @@ SELECT DISTINCT COUNT ( * ) + + SUM ( + 87 ) 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\(86\) / Int64\(74\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 86 / + 74 col0, - ( + COUNT ( * ) ) AS col0 query I rowsort @@ -29527,7 +29527,7 @@ NULL # Datafusion - Expected - 75 # Datafusion - Expected - 19 # 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\(\*\)\) 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\(75\) 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 75 AS col0, + 19 col2, + - COUNT ( * ) AS col0 query I rowsort label-5748 @@ -30006,7 +30006,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\(\*\) 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 @@ -30175,7 +30175,7 @@ SELECT + - ( + - 96 ) 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\(\*\)\) 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 DISTINCT + - COUNT ( * ) col1, - 85 AS col1 query I rowsort label-5874 @@ -31281,7 +31281,7 @@ SELECT ALL 94 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col2, 51 + - CAST ( + 9 AS INTEGER ) AS col2 query I rowsort label-6091 @@ -31950,7 +31950,7 @@ SELECT + CAST ( 90 AS INTEGER ) AS col2 # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 query I rowsort @@ -33988,7 +33988,7 @@ SELECT ALL - COUNT ( * ) AS col1, 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 151 -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\(61\) \+ 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\(12\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(61\) \+ Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 AS col0, COUNT ( * ) + 61 + + 89 AS col0 query I rowsort @@ -34144,7 +34144,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\(\*\) AS col1" at position 1 have the 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 @@ -36363,7 +36363,7 @@ SELECT ALL + + ( + - ( 29 ) ) AS col0 # 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\(\*\)\) 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 - COUNT ( * ) col0, 12 AS col0 query I rowsort label-7083 @@ -36444,7 +36444,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2366 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) \* Int64\(\-26\) \* \(\- min\(DISTINCT Int64\(91\)\)\) 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-26\) \* \(\- min\(DISTINCT Int64\(91\)\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - 26 * - MIN ( DISTINCT 91 ) AS col0, 3 AS col0 query I rowsort @@ -36526,7 +36526,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\(\*\) AS col2" at position 1 have the 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 @@ -37789,7 +37789,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) \- \(\- 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 "\(\- Int64\(44\)\) \- \(\- 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 - + 44 - - COUNT ( * ) col2, 18 col2 query I rowsort @@ -39119,7 +39119,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -39275,7 +39275,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\(\*\) 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 @@ -39792,7 +39792,7 @@ SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) - - ( CAST ( - 31 AS INTEGER ) ) # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 col1, - COUNT ( * ) AS col1 query I rowsort @@ -40017,7 +40017,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\(\*\) 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 @@ -43274,7 +43274,7 @@ SELECT DISTINCT 6 * + COUNT ( * ) # 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\(\*\)\) 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 ( * ) AS col2, 90 AS col2 query I rowsort label-8425 @@ -43412,7 +43412,7 @@ SELECT ALL COUNT ( * ) + - 71 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - MIN ( ALL - + 22 ) AS col0, - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-8451 @@ -43798,7 +43798,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\(\*\) 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 @@ -45296,7 +45296,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -46565,7 +46565,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -49925,7 +49925,7 @@ SELECT - 26 + + - 87 # 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 "\(\- count\(\*\)\) AS col0" at position 1 have the 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 query I rowsort label-9717 @@ -49961,7 +49961,7 @@ SELECT COALESCE ( + 80, + + 27 - - 72, - CASE - 10 WHEN + 73 * + - 61 * - 1 / + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(63\) WHEN Int64\(10\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(\-27\) THEN \(\- CASE Int64\(\-52\) WHEN Int64\(7\) THEN Int64\(\-55\) ELSE NULL END\) \- \(\- count\(\*\)\) END \- Int64\(95\) \* \(\- count\(\*\)\) \* count\(Int64\(\-71\)\) AS col1" at position 0 and "Int64\(10\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(63\) WHEN Int64\(10\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-27\) THEN \(\- CASE Int64\(\-52\) WHEN Int64\(7\) THEN Int64\(\-55\) ELSE NULL END\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \- Int64\(95\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(\-71\)\) AS col1" at position 0 and "Int64\(10\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + + 63 WHEN 10 * - - COUNT ( * ) + - 27 THEN - + CASE - 52 WHEN + 7 THEN - 55 ELSE NULL END - - COUNT ( * ) END - 95 * - COUNT ( * ) * + COUNT ( + - 71 ) AS col1, 10 * 34 AS col1 query I rowsort @@ -50628,7 +50628,7 @@ SELECT - COUNT ( * ) * - 64 + - 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2905 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-95\) WHEN count\(\*\) \+ count\(\*\) THEN Int64\(85\) END\) AS col1" at position 0 and "Int64\(\-35\) \* 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 "\(\- CASE Int64\(\-95\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(85\) END\) AS col1" at position 0 and "Int64\(\-35\) \* Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE - 95 WHEN + COUNT ( * ) + + COUNT ( * ) THEN 85 END col1, - 35 * + 83 AS col1 query I rowsort @@ -51007,7 +51007,7 @@ SELECT - + ( - 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -333396 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(42\) \* Int64\(\-81\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(42\) \* 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 DISTINCT 98 * + 42 * - 81 AS col2, - COUNT ( * ) AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_33.slt b/data/sqlite/random/expr/slt_good_33.slt index b7d0a9d..3278671 100644 --- a/data/sqlite/random/expr/slt_good_33.slt +++ b/data/sqlite/random/expr/slt_good_33.slt @@ -257,7 +257,7 @@ SELECT + - 34 * + CAST ( - 50 AS INTEGER ), 26 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\(\-29\) / CASE CAST\(Int64\(12\) AS Float64\) WHEN Int64\(86\) THEN Int64\(42\) \+ \(\- Int64\(23\)\) END \* coalesce\(count\(\*\), count\(\*\)\) \+ Int64\(78\) 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\(\-29\) / CASE CAST\(Int64\(12\) AS Float64\) WHEN Int64\(86\) THEN Int64\(42\) \+ \(\- Int64\(23\)\) END \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 29 / + CASE + + CAST ( + 12 AS FLOAT8 ) WHEN + 86 THEN + 42 + - + 23 END * COALESCE ( COUNT ( * ), COUNT ( * ) ) + + 78 AS col1, 17 AS col1 query II rowsort label-43 @@ -1651,7 +1651,7 @@ SELECT ALL + + COUNT ( ALL - + 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 1855 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(33\) \+ Int64\(39\) AS col2" at position 0 and "Int64\(56\) \+ Int64\(\-14\) \+ Int64\(49\) \* Int64\(\-37\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(33\) \+ Int64\(39\) AS col2" at position 0 and "Int64\(56\) \+ Int64\(\-14\) \+ Int64\(49\) \* Int64\(\-37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 + + 33 + + 39 AS col2, + 56 + - 14 + 49 * - 37 * - COUNT ( * ) AS col2 query I rowsort label-313 @@ -4136,7 +4136,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\(\*\) AS col0" at position 1 have the 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 @@ -4225,7 +4225,7 @@ SELECT DISTINCT - - ( - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 42 * - COUNT ( * ) AS col0 query I rowsort @@ -5389,7 +5389,7 @@ SELECT - + 58 - - + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 40325 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(19\) WHEN Int64\(78\) \* CAST\(NULL AS Float64\) THEN Int64\(\-6\) \+ Int64\(\-28\) END \+ Int64\(\-36\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(2\) \+ Int64\(3\) \+ Int64\(87\) \* CASE Int64\(92\) WHEN \(\- Int64\(\-18\)\) THEN Int64\(\-53\) \* count\(\*\) ELSE Int64\(33\) END \* Int64\(16\) \+ Int64\(\-72\) \* 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 "CASE Int64\(19\) WHEN Int64\(78\) \* CAST\(NULL AS Float64\) THEN Int64\(\-6\) \+ Int64\(\-28\) END \+ Int64\(\-36\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(2\) \+ Int64\(3\) \+ Int64\(87\) \* CASE Int64\(92\) WHEN \(\- Int64\(\-18\)\) THEN Int64\(\-53\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(33\) END \* Int64\(16\) \+ Int64\(\-72\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( CASE + 19 WHEN + 78 * + CAST ( NULL AS FLOAT8 ) THEN - 6 + ( - 28 ) END ) + - 36 + 90 AS col2, + ( + + 2 ) + + 3 + 87 * ( + CASE + 92 WHEN - ( + - 18 ) THEN ( - 53 ) * COUNT ( * ) ELSE + 33 END ) * 16 + - 72 * + 78 col2 query I rowsort @@ -5587,7 +5587,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\(\*\) AS col0" at position 1 have the 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 @@ -5620,7 +5620,7 @@ SELECT + 81 col2, + 19 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\(\*\)\) AS col2" at position 0 and "Int64\(\-71\) / 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\(\-71\) / Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) col2, - 71 / - 28 AS col2 query I rowsort @@ -7342,7 +7342,7 @@ SELECT DISTINCT 77 + - ( - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -1785 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(43\) AS col1" at position 0 and "Int64\(\-35\) \* 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\(\*\)\) \- Int64\(43\) AS col1" at position 0 and "Int64\(\-35\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - 43 AS col1, - 35 * 51 AS col1 query I rowsort @@ -8392,7 +8392,7 @@ SELECT - 67 AS col2, + 30 # 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\(\*\)\) 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 ( * ) col1, 78 AS col1 query I rowsort @@ -8439,7 +8439,7 @@ SELECT - 31 * - + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -27 -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\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) 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 80 AS col2, - COUNT ( * ) * + 27 AS col2 query I rowsort @@ -12533,7 +12533,7 @@ SELECT 19 / - 82 * - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 86 -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\(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\(98\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 AS col2, COUNT ( * ) * + 86 col2 query I rowsort label-2398 @@ -13586,7 +13586,7 @@ SELECT + 72, 10 + - + 93 * - NULLIF ( + ( - 41 ), - 47 ) + + - 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -383 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int32\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int32\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int32\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int32\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(Int64\(1\)\) AS count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 63 * + 7 + 58 AS col0, CASE COALESCE ( AVG ( DISTINCT - - ( 88 ) ), + 69 ) WHEN - 58 THEN + + 60 END + + - 66 - - CAST ( NULL AS INTEGER ) + COALESCE ( + - 9, + CASE + COALESCE ( + 10, 21, COUNT ( * ) ) WHEN + COALESCE ( - 68, + 87 + 76 * CASE 6 / - 80 WHEN + 59 + - NULLIF ( 73 - 15 / 22, 78 + - SUM ( ALL + 74 + CAST ( NULL AS INTEGER ) ) ) * - 85 THEN 57 * + 93 + COALESCE ( ( - 38 ), 3 ) * - 43 WHEN + 78 + - ( 44 + + 49 * - COUNT ( * ) ) THEN NULL END, + 33 * - 56 + + COUNT ( * ) * 76, + ( - 93 ) * - 36 ) + - ( 87 + + 11 ) * 96 THEN - 37 ELSE COUNT ( * ) / 78 END * 57 ) AS col0 query I rowsort label-2597 @@ -15188,7 +15188,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\(\*\) 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 @@ -18345,7 +18345,7 @@ SELECT ALL 70 - 54 / + + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( + 21, 84 * 10 / + - MIN ( + - CAST ( 13 AS INTEGER ) ) ) AS col0, + COUNT ( * ) * - + COUNT ( * ) * 24 AS col0 query I rowsort label-3510 @@ -18982,7 +18982,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\(\*\) 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 @@ -21516,7 +21516,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\(\*\) 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 @@ -21937,7 +21937,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\(\*\) 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 @@ -21991,7 +21991,7 @@ SELECT ALL + 32 * + ( + ( - - 50 ) ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(\(\- min\(Int64\(\-54\)\)\), count\(\*\) \* \(\- Int64\(27\)\) \+ Int64\(\-13\)\)\)\) 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 "\(\- \(\- coalesce\(\(\- min\(Int64\(\-54\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(27\)\) \+ Int64\(\-13\)\)\)\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - ( - COALESCE ( + - MIN ( - 54 ), COUNT ( * ) * - + 27 + - 13 ) ) AS col0, 74 AS col0 query I rowsort @@ -24450,7 +24450,7 @@ SELECT ALL + + 85 + + 77 # 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\(\*\)\) AS col0" at position 0 and "Int64\(69\) \- 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\(69\) \- Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col0, 69 - 52 AS col0 query I rowsort label-4682 @@ -25096,7 +25096,7 @@ SELECT - COUNT ( * ), 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(\*\) \+ CAST\(Int64\(93\) AS Int32\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(93\) AS Int32\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 AS col1, COUNT ( * ) + + + CAST ( 93 AS INTEGER ) * + 7 - 7 col1 query I rowsort label-4803 @@ -25896,7 +25896,7 @@ SELECT DISTINCT COUNT ( - 90 ) * + 3 - - 60 + MIN ( DISTINCT - 3 ) / 92 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 col1" at position 0 and "nullif\(\(\- count\(\*\)\), Int64\(\-34\) \* Int64\(27\) \* \(\- Int64\(\-60\)\) \+ Int64\(\-84\) \+ sum\(Int64\(34\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-34\) \* Int64\(27\) \* \(\- Int64\(\-60\)\) \+ Int64\(\-84\) \+ sum\(Int64\(34\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 AS col1, + NULLIF ( - COUNT ( * ), - 34 * 27 * - - 60 + - 84 + SUM ( + 34 ) ) AS col1 query I rowsort @@ -26676,7 +26676,7 @@ SELECT + 11 - - 2 / + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-5106 @@ -28400,7 +28400,7 @@ SELECT ALL + MAX ( ALL + 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE WHEN Int64\(9\) IN \(\[\(\- Int64\(\-83\)\), Int64\(41\), \(\- Int64\(\-78\)\), avg\(Int64\(23\)\) \* Int64\(\-55\) / Int64\(79\), \(\- Int64\(33\)\) / \(\- Int64\(95\)\)\]\) THEN \(\- count\(\*\)\) END\) AS col0" at position 0 and "Int64\(\-46\) \+ \(\- nullif\(Int64\(\-61\), Int64\(16\) \* Int64\(3\) \* Int64\(74\) \- Int64\(\-30\) \- \(\- CAST\(NULL AS Float64\)\) \* coalesce\(\(\- Int64\(92\)\), Int64\(29\) \* avg\(Int64\(57\)\) \* Int64\(30\) \+ coalesce\(Int64\(80\), \(\- Int64\(76\)\) / \(\- count\(\*\)\) \+ Int64\(\-89\) \- \(\- count\(\*\)\) \* Int64\(\-11\) \* Int64\(\-1\)\) \- Int64\(\-51\) / \(\- Int64\(14\)\) \* Int64\(\-80\) \+ Int64\(\-87\) \* 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 "\(\- CASE WHEN Int64\(9\) IN \(\[\(\- Int64\(\-83\)\), Int64\(41\), \(\- Int64\(\-78\)\), avg\(Int64\(23\)\) \* Int64\(\-55\) / Int64\(79\), \(\- Int64\(33\)\) / \(\- Int64\(95\)\)\]\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) AS col0" at position 0 and "Int64\(\-46\) \+ \(\- nullif\(Int64\(\-61\), Int64\(16\) \* Int64\(3\) \* Int64\(74\) \- Int64\(\-30\) \- \(\- CAST\(NULL AS Float64\)\) \* coalesce\(\(\- Int64\(92\)\), Int64\(29\) \* avg\(Int64\(57\)\) \* Int64\(30\) \+ coalesce\(Int64\(80\), \(\- Int64\(76\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-89\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-11\) \* Int64\(\-1\)\) \- Int64\(\-51\) / \(\- Int64\(14\)\) \* Int64\(\-80\) \+ Int64\(\-87\) \* Int64\(27\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CASE WHEN 9 IN ( - - 83, 41, - - 78, + AVG ( + 23 ) * - 55 / 79, - ( + 33 ) / - + 95 ) THEN - + COUNT ( * ) END AS col0, - 46 + - NULLIF ( - 61, 16 * 3 * 74 - + - 30 - - CAST ( NULL AS FLOAT8 ) * + COALESCE ( - + 92, 29 * + + AVG ( ALL + 57 ) * + ( + 30 ) + COALESCE ( + 80, - + 76 / + - COUNT ( * ) + - 89 - - + COUNT ( * ) * - 11 * - 1 ) - - 51 / - + 14 * - 80 + - 87 * + ( + 27 ) ) ) AS col0 query I rowsort @@ -31184,7 +31184,7 @@ SELECT ALL ( 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(44\)\) \+ Int64\(83\) \+ Int64\(97\) / \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(\-67\) \+ \(\- count\(\*\)\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(44\)\) \+ Int64\(83\) \+ Int64\(97\) / \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(\-67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + SUM ( ALL + 44 ) + 83 + + 97 / - + 43 col1, 46 + + - 67 + - COUNT ( * ) * + 64 AS col1 query I rowsort @@ -31508,7 +31508,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81842 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- Int64\(\-6\)\) \+ Int64\(22\) \- count\(\*\) \+ Int64\(37\) \* Int64\(20\) \+ Int64\(75\) \- Int64\(56\) \* Int64\(\-24\) \* \(\- Int64\(\-60\)\) AS col1" at position 0 and "count\(\*\) / Int64\(\-72\) / Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- Int64\(\-6\)\) \+ Int64\(22\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(37\) \* Int64\(20\) \+ Int64\(75\) \- Int64\(56\) \* Int64\(\-24\) \* \(\- Int64\(\-60\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-72\) / Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 * - - 6 + 22 - + COUNT ( * ) + + 37 * 20 + 75 - + 56 * - 24 * - - 60 AS col1, COUNT ( * ) / + - 72 / + 28 AS col1 query I rowsort @@ -33342,7 +33342,7 @@ SELECT AVG ( DISTINCT - 77 ) * + CAST ( NULL AS INTEGER ) + 43 * + ( + NULLIF ( # 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\(\*\) 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 @@ -33684,7 +33684,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\(\*\) AS col2" at position 0 and "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 @@ -34793,7 +34793,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\(\*\) 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 @@ -35162,7 +35162,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\(\*\) AS col0" at position 1 have the 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 @@ -35451,7 +35451,7 @@ SELECT ALL 76 * - COUNT ( * ) * + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- \(\- count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) + - ( - - COUNT ( * ) ) * 74 AS col2, 23 + 67 + + - COUNT ( * ) * + 29 AS col2 query I rowsort label-6787 @@ -36134,7 +36134,7 @@ SELECT + - COUNT ( * ) + - 75 + 91 * 37 col2 # Datafusion - Expected - 35 # Datafusion - Expected - -1 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* \(\- count\(\*\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 35 * - COUNT ( * ) AS col1, - COUNT ( * ) AS col1, 21 AS col2 query I rowsort @@ -36333,7 +36333,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\(\*\) AS col0" at position 1 have the 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 @@ -36577,7 +36577,7 @@ SELECT ALL - + MIN ( 71 ) # 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\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( COUNT ( * ) ) AS col1, + 45 AS col1 query II rowsort label-7003 @@ -36919,7 +36919,7 @@ SELECT + + 56 + 59 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\(\*\)\) 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-7067 @@ -37098,7 +37098,7 @@ SELECT DISTINCT 19 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* \(\- 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\(39\) \* \(\- 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 39 * - COUNT ( * ) AS col0, 49 AS col0 query I rowsort label-7101 @@ -37406,7 +37406,7 @@ SELECT ALL 82 / - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-14\) WHEN Int64\(\-83\) / count\(Int64\(88\)\) \+ \(\- count\(\*\)\) THEN NULL WHEN \(\- Int64\(7\)\) / Int64\(17\) THEN NULL WHEN Int64\(\-25\) \* Int64\(\-76\) THEN NULL ELSE Int64\(79\) END AS col1" at position 0 and "Int64\(33\) \+ \(\- 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 "CASE Int64\(\-14\) WHEN Int64\(\-83\) / count\(Int64\(88\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- Int64\(7\)\) / Int64\(17\) THEN NULL WHEN Int64\(\-25\) \* Int64\(\-76\) THEN NULL ELSE Int64\(79\) END AS col1" at position 0 and "Int64\(33\) \+ \(\- Int64\(24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - 14 WHEN + ( - 83 ) / COUNT ( ALL 88 ) + - COUNT ( * ) THEN NULL WHEN - + 7 / + 17 THEN NULL WHEN - 25 * + - 76 THEN NULL ELSE + 79 END AS col1, + 33 + - + 24 AS col1 query II rowsort @@ -41583,7 +41583,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\(\*\) 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 @@ -41948,7 +41948,7 @@ SELECT ALL - 44 + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(64\) / Int64\(13\) \+ 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\(47\) AS col0" at position 0 and "Int64\(64\) / Int64\(13\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col0, 64 / 13 + COUNT ( * ) + - 22 AS col0 query I rowsort @@ -42566,7 +42566,7 @@ SELECT ALL - 85 * + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-51\) \- Int64\(32\) 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\(\*\) \* Int64\(\-51\) \- Int64\(32\) 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 ( * ) ) * + - 51 - 32 AS col0, ( - + 88 ) AS col0 query I rowsort label-8155 @@ -42682,7 +42682,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\(\*\) 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 @@ -43087,7 +43087,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\(\*\) AS col0" at position 1 have the 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 @@ -43806,7 +43806,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\(\*\) AS col0" at position 1 have the 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 @@ -45042,7 +45042,7 @@ SELECT DISTINCT 57 * + - SUM ( ALL 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - - ( CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( 33, - - 83 / ( - 38 ) + + COUNT ( * ) ) + + 80 AS col1, MAX ( ALL - 75 ) AS col1 # Datafusion - Types were automatically converted from: @@ -45307,7 +45307,7 @@ SELECT - 87 * COUNT ( * ) * 13 * - COUNT ( * ) + - 66 + - 23 + - + 59 / + + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "\(\- Int64\(96\)\) \* count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "\(\- Int64\(96\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 col0, ( - + 96 ) * + COUNT ( * ) + - 64 AS col0 query I rowsort @@ -45636,7 +45636,7 @@ SELECT DISTINCT MIN ( DISTINCT - - 45 ) * - - 86 * 65 + + 26 * + MAX ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* count\(\*\) \+ Int64\(69\) 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\(54\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(69\) 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 54 * COUNT ( * ) + 69 AS col2, + 90 AS col2 query I rowsort @@ -46756,7 +46756,7 @@ SELECT ALL + 51 * - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(94\)\)\) \+ \(\- nullif\(Int64\(60\), Int64\(\-11\) \* Int64\(28\) \- \(\- \(\- count\(\*\)\)\)\)\) AS col2" at position 0 and "Int64\(54\) \+ 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\(94\)\)\) \+ \(\- nullif\(Int64\(60\), Int64\(\-11\) \* Int64\(28\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col2" at position 0 and "Int64\(54\) \+ Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( + 94 ) + - NULLIF ( + 60, - 11 * 28 - - - COUNT ( * ) ) AS col2, 54 + - 80 AS col2 query I rowsort @@ -47213,14 +47213,14 @@ 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\(\*\) AS col2" at position 1 have the 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: # Datafusion - Expected - 11 # Datafusion - Expected - -97 # Datafusion - Expected - -25486 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 1 and "Int64\(77\) \+ count\(\*\) \+ Int64\(77\) \* Int64\(83\) \* Int64\(\-4\) 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\(\-97\) AS col1" at position 1 and "Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(77\) \* Int64\(83\) \* Int64\(\-4\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 11 AS col2, - 97 AS col1, + 77 + + COUNT ( * ) + + + 77 * + ( + + ( + 83 ) ) * + - 4 AS col1 query II rowsort @@ -47365,7 +47365,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\(\*\) AS col2" at position 0 and "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 @@ -49079,7 +49079,7 @@ SELECT ALL + ( + 77 ) + + CAST ( - 39 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 80 -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\(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\(\-87\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 87 AS col2, + COUNT ( * ) + + + 79 AS col2 query I rowsort @@ -49849,7 +49849,7 @@ SELECT ALL - - 55 / CASE - 88 WHEN + COUNT ( + ( 72 ) ) THEN NULL WHEN - COALESC # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) \* Int64\(3\) \+ Int64\(86\) AS col1" at position 0 and "Int64\(6\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(3\) \+ Int64\(86\) 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 - + 18 * + 3 + + + 86 AS col1, 6 * - COUNT ( * ) AS col1 query II rowsort label-9551 @@ -50212,7 +50212,7 @@ SELECT ALL 31 - - MAX ( DISTINCT + 55 ) - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(64\) AS col0" at position 0 and "CASE \(\- Int64\(20\)\) WHEN \(\- Int64\(18\)\) THEN Int64\(36\) \+ Int64\(95\) \* coalesce\(Int64\(76\), Int64\(66\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col0" at position 0 and "CASE \(\- Int64\(20\)\) WHEN \(\- Int64\(18\)\) THEN Int64\(36\) \+ Int64\(95\) \* coalesce\(Int64\(76\), Int64\(66\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 64 col0, CASE - + 20 WHEN - + ( 18 ) THEN + 36 + + 95 * COALESCE ( + ( 76 ), + 66 ) ELSE NULL END col0 query I rowsort @@ -51749,7 +51749,7 @@ SELECT DISTINCT + SUM ( - 61 ) AS col2, 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1244 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* nullif\(Int64\(91\), \(\- Int64\(14\)\)\) \- Int64\(61\) AS col2" at position 0 and "CASE Int64\(70\) WHEN \(\- count\(\*\)\) / Int64\(50\) THEN Int64\(23\) \* Int64\(\-87\) \+ Int64\(45\) WHEN Int64\(3\) THEN Int64\(\-67\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* nullif\(Int64\(91\), \(\- Int64\(14\)\)\) \- Int64\(61\) AS col2" at position 0 and "CASE Int64\(70\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(50\) THEN Int64\(23\) \* Int64\(\-87\) \+ Int64\(45\) WHEN Int64\(3\) THEN Int64\(\-67\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 13 * NULLIF ( + + 91, - + 14 ) - + 61 col2, + CASE 70 WHEN - COUNT ( * ) / ( 50 ) THEN + 23 * - 87 + + 45 WHEN ( 3 ) THEN - 67 ELSE NULL END AS col2 query II rowsort label-9918 diff --git a/data/sqlite/random/expr/slt_good_34.slt b/data/sqlite/random/expr/slt_good_34.slt index 5f476dc..4bc49ff 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\(\*\) 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 @@ -1286,7 +1286,7 @@ NULL # Datafusion - Expected - 24 # Datafusion - Expected - 4284 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "coalesce\(Int64\(51\), CASE \(\- count\(\*\)\) WHEN Int64\(24\) THEN Int64\(11\) WHEN count\(\*\) THEN NULL END\) \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "coalesce\(Int64\(51\), CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(24\) THEN Int64\(11\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL END\) \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 24 col1, COALESCE ( + 51, CASE - + COUNT ( * ) WHEN + 24 THEN 11 WHEN + + COUNT ( * ) THEN NULL END ) * + 84 AS col1, + 43 query II rowsort @@ -1492,7 +1492,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(Int64\(35\), Int64\(41\) \+ Int64\(11\) \- Int64\(46\)\), Int64\(39\) \* max\(DISTINCT Int64\(39\)\) \* CAST\(Int64\(31\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \* count\(\*\) / Int64\(7\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(Int64\(35\), Int64\(41\) \+ Int64\(11\) \- Int64\(46\)\), Int64\(39\) \* max\(DISTINCT Int64\(39\)\) \* CAST\(Int64\(31\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(7\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( COALESCE ( 35, 41 + 11 - + 46 ), ( 39 ) * + + MAX ( DISTINCT 39 ) * + CAST ( + + 31 AS INTEGER ) ) AS col1, - ( COUNT ( * ) ) * + + COUNT ( * ) / + 7 * - 56 AS col1 query I rowsort @@ -1973,7 +1973,7 @@ SELECT ALL - NULLIF ( + - 53, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86130000 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(50\) \* Int64\(8\) \* Int64\(\-29\) \* Int64\(\-75\) AS col1" at position 0 and "Int64\(55\) / CASE Int64\(29\) WHEN Int64\(\-41\) THEN Int64\(70\) \+ count\(\*\) WHEN Int64\(48\) \+ Int64\(\-39\) 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\(99\) \* Int64\(50\) \* Int64\(8\) \* Int64\(\-29\) \* Int64\(\-75\) AS col1" at position 0 and "Int64\(55\) / CASE Int64\(29\) WHEN Int64\(\-41\) THEN Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(48\) \+ Int64\(\-39\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 * + 50 * 8 * + - 29 * - 75 AS col1, 55 / CASE + 29 WHEN - 41 THEN 70 + COUNT ( * ) WHEN 48 + - 39 THEN NULL END AS col1 query I rowsort label-365 @@ -2571,7 +2571,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(94\) \+ Int64\(88\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(94\) \+ Int64\(88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 36 AS col0, 94 + + 88 * - COUNT ( * ) AS col0 query I rowsort label-479 @@ -3380,7 +3380,7 @@ SELECT ALL 68 * + 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -558 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- \(\- Int64\(\-31\)\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- \(\- Int64\(\-31\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 18 * - - ( - 31 ) AS col2, COUNT ( * ) * 64 AS col2 # Datafusion - Types were automatically converted from: @@ -4113,7 +4113,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\(\*\) 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 @@ -4622,7 +4622,7 @@ SELECT + 41 + 68 - + - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ max\(Int64\(\-12\)\) / Int64\(\-89\) AS col0" at position 0 and "count\(\*\) \+ sum\(\(\- 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\(61\) \+ max\(Int64\(\-12\)\) / Int64\(\-89\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ sum\(\(\- Int64\(33\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 61 + + MAX ( - 12 ) / - 89 AS col0, + COUNT ( * ) + + SUM ( - + 33 ) AS col0 query I rowsort label-869 @@ -4737,7 +4737,7 @@ SELECT ALL - - ( - COUNT ( * ) ) # 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 "count\(\*\) \* Int64\(73\) \+ Int64\(62\) / Int64\(\-64\) 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\(\*\) \* Int64\(73\) \+ Int64\(62\) / Int64\(\-64\) AS col1" at position 0 and "Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 73 + 62 / + - 64 AS col1, - 9 AS col1 query I rowsort @@ -4800,7 +4800,7 @@ SELECT ALL 67 + - + 56 * - 42, - 73 * + - 38 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 151 -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\(61\) \+ 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\(12\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(61\) \+ Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 AS col0, COUNT ( * ) + 61 + + 89 AS col0 query I rowsort label-903 @@ -5939,7 +5939,7 @@ SELECT DISTINCT - 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1940 # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(\-97\) AS col2" at position 0 and "count\(\*\) \* Int64\(84\) \- \(\- 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\(20\) \* Int64\(\-97\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(84\) \- \(\- Int64\(71\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 20 * - 97 AS col2, COUNT ( * ) * + 84 - - + 71 AS col2 query I rowsort @@ -5955,7 +5955,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\(\*\) AS col1" at position 1 have the 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: @@ -6188,7 +6188,7 @@ SELECT ALL + 5 + + + 62 - + - 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(85\) \+ 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\(84\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(85\) \+ Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 84 + + - COUNT ( * ) AS col2, + ( 85 ) + - 33 AS col2 query I rowsort @@ -6877,7 +6877,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\(\*\) AS col2" at position 1 have the 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 @@ -7322,7 +7322,7 @@ SELECT NULLIF ( 75, + MAX ( ALL - 97 ) + 22 ) * + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-36\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-36\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 36 AS col0, - COUNT ( * ) + 34 AS col0 query I rowsort @@ -8838,7 +8838,7 @@ SELECT NULLIF ( + 14, - - 89 * + 75 / - 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -6326 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(3\)\) AS col1" at position 0 and "Int64\(\-74\) \* coalesce\(Int64\(86\), count\(\*\), Int64\(\-82\)\) \+ 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\(3\)\) AS col1" at position 0 and "Int64\(\-74\) \* coalesce\(Int64\(86\), count\(Int64\(1\)\) AS count\(\*\), Int64\(\-82\)\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 3 AS col1, - 74 * + COALESCE ( + + 86, COUNT ( * ), - 82 ) + 38 AS col1 query I rowsort label-1677 @@ -9095,7 +9095,7 @@ SELECT - COUNT ( * ) * + 44 + - - 52 * - + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* CAST\(NULL AS Int32\) \+ Int64\(\-9\) AS col1" at position 0 and "CASE WHEN NOT Int64\(18\) IS NOT NULL THEN NULL ELSE \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- \(\- count\(\*\)\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* CAST\(NULL AS Int32\) \+ Int64\(\-9\) AS col1" at position 0 and "CASE WHEN NOT Int64\(18\) IS NOT NULL THEN NULL ELSE \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 * + CAST ( NULL AS INTEGER ) + - 9 AS col1, + CASE WHEN NOT 18 IS NOT NULL THEN NULL ELSE - - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) END AS col1 query I rowsort label-1725 @@ -9929,7 +9929,7 @@ SELECT + 58 / + + 80 col1, 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- CASE Int64\(25\) WHEN Int64\(68\) THEN \(\- count\(\*\)\) ELSE NULL END\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- CASE Int64\(25\) WHEN Int64\(68\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 70 * - CASE + 25 WHEN 68 THEN - + COUNT ( * ) ELSE NULL END AS col2, + 48 AS col2 query I rowsort @@ -10283,7 +10283,7 @@ SELECT ALL + 78 + 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 225 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* \(\- count\(\*\)\) \* sum\(\(\- Int64\(45\)\)\) AS col1" at position 0 and "\(\- max\(Int64\(28\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(\(\- Int64\(45\)\)\) AS col1" at position 0 and "\(\- max\(Int64\(28\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 5 * - + COUNT ( * ) * + SUM ( - + 45 ) AS col1, - MAX ( ALL 28 ) AS col1 query I rowsort @@ -10797,7 +10797,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\(\*\) 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 @@ -10878,7 +10878,7 @@ SELECT 76 * + ( + + CASE + 18 WHEN - COUNT ( * ) THEN - + ( - 23 ) ELSE - 73 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* \(\- count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(\-41\), Int64\(19\) \+ \(\- Int64\(\-94\)\) \+ Int64\(89\) \+ Int64\(12\), \(\- Int64\(16\)\), Int64\(\-11\)\) \+ 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\(\-57\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(\-41\), Int64\(19\) \+ \(\- Int64\(\-94\)\) \+ Int64\(89\) \+ Int64\(12\), \(\- Int64\(16\)\), Int64\(\-11\)\) \+ Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 57 * - COUNT ( * ) AS col0, COALESCE ( - 41, 19 + - - 94 + 89 + + 12, - + 16, + - 11 ) + 19 AS col0 query I rowsort @@ -11231,7 +11231,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-46\) WHEN Int64\(21\) THEN NULL WHEN max\(Int64\(55\)\) THEN Int64\(85\) \+ Int64\(88\) WHEN Int64\(\-41\) \+ Int64\(49\) THEN NULL ELSE Int64\(\-45\) \- \(\- Int64\(17\)\) \- \(\- count\(\*\)\) END AS col1" at position 0 and "Int64\(\-30\) \+ 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 "CASE Int64\(\-46\) WHEN Int64\(21\) THEN NULL WHEN max\(Int64\(55\)\) THEN Int64\(85\) \+ Int64\(88\) WHEN Int64\(\-41\) \+ Int64\(49\) THEN NULL ELSE Int64\(\-45\) \- \(\- Int64\(17\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(\-30\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE - 46 WHEN + 21 THEN NULL WHEN + MAX ( + + ( + 55 ) ) THEN + 85 + 88 WHEN - 41 + 49 THEN NULL ELSE - 45 - - ( 17 ) - + - COUNT ( * ) END AS col1, - 30 + + + 54 AS col1 query II rowsort label-2129 @@ -11725,7 +11725,7 @@ SELECT 86 - 23 - - COUNT ( * ) * - 1 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7702050 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(91\) \* Int64\(48\) \* \(\- Int64\(\-18\)\) \+ Int64\(47\) \* Int64\(66\) AS col0" at position 0 and "Int64\(15\) \* \(\- count\(\*\)\) / Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(91\) \* Int64\(48\) \* \(\- Int64\(\-18\)\) \+ Int64\(47\) \* Int64\(66\) AS col0" at position 0 and "Int64\(15\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 98 ) * + + 91 * + 48 * - - 18 + 47 * 66 AS col0, 15 * - COUNT ( * ) / 24 AS col0 query I rowsort label-2222 @@ -13431,7 +13431,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\(\*\) AS col1" at position 1 have the 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 @@ -16423,7 +16423,7 @@ SELECT 42 + - - 50 - 75 + - 16 * + 40 * 47 * - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- CAST\(\(\- Int64\(\-13\)\) AS Float64\) \* CASE Int64\(72\) WHEN \(\- avg\(Int64\(\-88\)\)\) THEN Int64\(80\) ELSE NULL END AS col2" at position 0 and "CASE \(\- Int64\(82\)\) WHEN Int64\(55\) \* \(\- Int64\(23\)\) \+ count\(\*\) THEN \(\- count\(\*\)\) WHEN CASE count\(\*\) WHEN Int64\(9\) THEN count\(\*\) \+ CAST\(\(\- Int64\(\-66\)\) AS Int32\) END THEN Int64\(49\) \* Int64\(\-37\) \* coalesce\(Int64\(84\), Int64\(49\) \* max\(Int64\(\-61\)\), Int64\(\-48\)\) ELSE NULL END \* Int64\(8\) \* \(\- count\(\*\)\) \+ count\(\*\) \+ Int64\(\-81\) \+ Int64\(\-66\) \+ Int64\(\-4\) / Int64\(2\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- CAST\(\(\- Int64\(\-13\)\) AS Float64\) \* CASE Int64\(72\) WHEN \(\- avg\(Int64\(\-88\)\)\) THEN Int64\(80\) ELSE NULL END AS col2" at position 0 and "CASE \(\- Int64\(82\)\) WHEN Int64\(55\) \* \(\- Int64\(23\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(9\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(\-66\)\) AS Int32\) END THEN Int64\(49\) \* Int64\(\-37\) \* coalesce\(Int64\(84\), Int64\(49\) \* max\(Int64\(\-61\)\), Int64\(\-48\)\) ELSE NULL END \* Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-81\) \+ Int64\(\-66\) \+ Int64\(\-4\) / Int64\(2\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 - CAST ( - - 13 AS FLOAT8 ) * CASE + 72 WHEN - AVG ( + - 88 ) THEN 80 ELSE NULL END AS col2, CASE - ( 82 ) WHEN + 55 * - + 23 + + COUNT ( * ) THEN + - COUNT ( * ) WHEN CASE + COUNT ( * ) WHEN + + 9 THEN COUNT ( * ) + + CAST ( - - 66 AS INTEGER ) END THEN 49 * - 37 * COALESCE ( 84, + 49 * + MAX ( ALL + - 61 ), - 48 ) ELSE NULL END * + 8 * - COUNT ( * ) + + COUNT ( * ) + - 81 + - 66 + - 4 / + 2 * + 55 col2 query I rowsort label-3113 @@ -18177,7 +18177,7 @@ SELECT DISTINCT ( - + 81 ) * + 37 # 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 "Int64\(3\) \+ \(\- \(\- \(\- count\(\*\)\)\)\) / Int64\(52\) \* 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\(45\) AS col1" at position 0 and "Int64\(3\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(52\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 45 AS col1, 3 + - ( - ( - COUNT ( * ) ) ) / 52 * 71 AS col1 query I rowsort @@ -18976,7 +18976,7 @@ SELECT ( - 2 ) * 91 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-41\), \(\- count\(\*\)\)\)\) \+ count\(\*\) / Int64\(\-36\) \* Int64\(74\) \* Int64\(74\) 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 "\(\- coalesce\(Int64\(\-41\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-36\) \* Int64\(74\) \* Int64\(74\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - 41, - COUNT ( * ) ) + COUNT ( * ) / - 36 * 74 * + 74 AS col0, - 51 AS col0 query I rowsort @@ -19237,7 +19237,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\(\*\) 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 @@ -20247,7 +20247,7 @@ SELECT COUNT ( DISTINCT + 76 ) * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(7\) \+ count\(\*\) \* Int64\(\-67\) AS col1" at position 0 and "CAST\(\(\- Int64\(36\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-67\) AS col1" at position 0 and "CAST\(\(\- Int64\(36\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 69 + + 7 + + + COUNT ( * ) * - 67 col1, CAST ( - + 36 AS INTEGER ) AS col1 query I rowsort label-3845 @@ -21363,7 +21363,7 @@ SELECT ALL - ( + 71 ) + - 16 + 52 # 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\(\*\)\) 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 - COUNT ( * ) col0, 12 AS col0 query I rowsort @@ -21433,7 +21433,7 @@ SELECT DISTINCT + 25 AS col2, 97 * + COALESCE ( + - 44, + 66, COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "count\(\*\) \* \(\- sum\(Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 67 AS col1, COUNT ( * ) * - SUM ( 91 ) AS col1 query I rowsort label-4072 @@ -21734,7 +21734,7 @@ SELECT DISTINCT 83 - + - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 4716296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "coalesce\(Int64\(\-92\), \(\- Int64\(\-87\)\) \* Int64\(\-3\), \(\- coalesce\(Int64\(13\), Int64\(27\), coalesce\(Int64\(47\), Int64\(\-53\), \(\- Int64\(3\)\)\) \- Int64\(65\)\)\)\) \* \(\- \(\- Int64\(72\)\)\) \* \(\- Int64\(\-8\)\) \* Int64\(\-89\) \+ 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 "coalesce\(Int64\(\-92\), \(\- Int64\(\-87\)\) \* Int64\(\-3\), \(\- coalesce\(Int64\(13\), Int64\(27\), coalesce\(Int64\(47\), Int64\(\-53\), \(\- Int64\(3\)\)\) \- Int64\(65\)\)\)\) \* \(\- \(\- Int64\(72\)\)\) \* \(\- Int64\(\-8\)\) \* Int64\(\-89\) \+ Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, COALESCE ( + - 92, - - 87 * - 3, + + ( + - COALESCE ( + 13, + 27, + COALESCE ( 47, - 53, - + ( + 3 ) ) - 65 ) ) ) * - ( - + 72 ) * - - 8 * - 89 + 8 AS col2 query II rowsort @@ -22029,7 +22029,7 @@ SELECT - COALESCE ( - 54, - - 65 ) * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2366 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) \* Int64\(\-26\) \* \(\- min\(DISTINCT Int64\(91\)\)\) 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-26\) \* \(\- min\(DISTINCT Int64\(91\)\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - 26 * - MIN ( DISTINCT 91 ) AS col0, 3 AS col0 query I rowsort @@ -22040,7 +22040,7 @@ SELECT + + 16 - + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(33\), \(\- \(\- nullif\(Int64\(94\), count\(\*\) \* Int64\(36\) \+ nullif\(Int64\(61\), Int64\(65\)\) \* Int64\(\-55\)\)\)\) \* Int64\(\-23\)\)\) / Int64\(96\) \* Int64\(\-17\) \+ \(\- Int64\(\-92\)\) 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 "\(\- nullif\(Int64\(33\), \(\- \(\- nullif\(Int64\(94\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(36\) \+ nullif\(Int64\(61\), Int64\(65\)\) \* Int64\(\-55\)\)\)\) \* Int64\(\-23\)\)\) / Int64\(96\) \* Int64\(\-17\) \+ \(\- Int64\(\-92\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + NULLIF ( + 33, - - NULLIF ( 94, COUNT ( * ) * + 36 + + NULLIF ( + 61, 65 ) * - 55 ) * - 23 ) / + 96 * - 17 + - - 92 AS col1, ( + + 87 ) AS col1 query I rowsort label-4187 @@ -23280,7 +23280,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\(\*\) AS col2" at position 1 have the 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 @@ -23568,7 +23568,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\(\*\) AS col1" at position 1 have the 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 @@ -24848,7 +24848,7 @@ SELECT ALL COUNT ( * ) * + ( + + 63 ) AS col2 # Datafusion - Expected - -2320 # Datafusion - Expected - 8074081 # Datafusion - Expected - 7826 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(29\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-89\) \* Int64\(\-63\) \* Int64\(96\) \* 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\(\-80\) \* Int64\(29\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-89\) \* Int64\(\-63\) \* Int64\(96\) \* Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 * 29 col0, COUNT ( * ) + - 89 * - 63 * + 96 * + + 15 col0, - - 91 * 86 AS col2 query I rowsort label-4718 @@ -25639,7 +25639,7 @@ SELECT DISTINCT - 83 + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(27\)\), Int64\(\-39\) \* Int64\(67\) \+ Int64\(77\) \+ count\(\*\), Int64\(55\) \* Int64\(\-99\) \+ \(\- count\(\*\)\)\) \+ \(\- sum\(CAST\(Int64\(31\) AS Int32\)\)\) \+ Int64\(68\) \* count\(\*\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(31\) \* Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(27\)\), Int64\(\-39\) \* Int64\(67\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(55\) \* Int64\(\-99\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- sum\(CAST\(Int64\(31\) AS Int32\)\)\) \+ Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(31\) \* Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - + 27, + ( - 39 ) * + 67 + 77 + ( + COUNT ( * ) ), 55 * - 99 + - COUNT ( * ) ) + - SUM ( ALL + ( CAST ( + 31 AS INTEGER ) ) ) + + 68 * + COUNT ( * ) + + 53 AS col1, + 31 * ( 8 ) AS col1 query I rowsort @@ -25760,7 +25760,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\(\*\) AS col2" at position 1 have the same 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 @@ -25870,7 +25870,7 @@ SELECT ALL + CAST ( 29 AS INTEGER ) * + 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 248160 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(88\) \* Int64\(47\) AS col0" at position 0 and "count\(\*\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(88\) \* Int64\(47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 60 * 88 * 47 AS col0, COUNT ( * ) * + - 20 col0 query I rowsort @@ -28849,7 +28849,7 @@ SELECT ALL - 24 + - 13 + - - 19 + + + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 2843 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(\-74\) \- \(\- count\(\*\)\) \+ Int64\(81\) \* coalesce\(Int64\(36\), \(\- count\(DISTINCT 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\(27\) AS col0" at position 0 and "Int64\(\-74\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(81\) \* coalesce\(Int64\(36\), \(\- count\(DISTINCT Int64\(66\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 27 AS col0, - 74 - - COUNT ( * ) + 81 * COALESCE ( 36, - COUNT ( DISTINCT + + 66 ) ) AS col0 query I rowsort label-5487 @@ -29567,7 +29567,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\(\*\) AS col0" at position 1 have 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: @@ -29749,7 +29749,7 @@ SELECT CAST ( + 4 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- \(\- 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\(35\) \* \(\- \(\- 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 35 * - - COUNT ( * ) AS col2, - 8 AS col2 query II rowsort @@ -29960,7 +29960,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\(\*\) 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 @@ -30696,7 +30696,7 @@ SELECT COUNT ( * ), 74 * - 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -1647 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / Int64\(26\) \- Int64\(\-82\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-27\) \* 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\(29\) / Int64\(26\) \- Int64\(\-82\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-27\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 29 / + 26 - + ( + - 82 ) AS col2, COUNT ( * ) * - 27 * + 61 col2 query I rowsort @@ -32125,7 +32125,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(\*\)\), sum\(DISTINCT CASE WHEN NOT NULL IS NOT NULL THEN \(\- \(\- coalesce\(Int64\(\-84\), Int64\(83\), Int64\(64\)\)\)\) ELSE Int64\(17\) END\)\)\) AS col1" at position 0 and "\(\- CASE Int64\(1\) WHEN Int64\(\-79\) \+ count\(\*\) THEN Int64\(\-26\) \* Int64\(92\) WHEN Int64\(91\) THEN count\(\*\) \* \(\- sum\(Int64\(10\)\)\) WHEN CAST\(NULL AS Int32\) THEN NULL END\) \* CASE \(\- nullif\(Int64\(\-23\), Int64\(46\)\)\) WHEN Int64\(80\) THEN Int64\(\-24\) \* Int64\(25\) WHEN coalesce\(\(\- \(\- coalesce\(Int64\(48\), \(\- nullif\(Int64\(67\), \(\- count\(\(\- CAST\(Int64\(92\) AS Int32\)\)\)\) \+ count\(\*\) \* count\(\*\)\)\) \+ \(\- Int64\(13\)\)\)\)\), Int64\(48\), Int64\(62\) \* CASE WHEN NOT Int64\(97\) IS NULL THEN Int64\(\-67\) END\) THEN NULL ELSE Int64\(16\) \+ Int64\(98\) END \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), sum\(DISTINCT CASE WHEN NOT NULL IS NOT NULL THEN \(\- \(\- coalesce\(Int64\(\-84\), Int64\(83\), Int64\(64\)\)\)\) ELSE Int64\(17\) END\)\)\) AS col1" at position 0 and "\(\- CASE Int64\(1\) WHEN Int64\(\-79\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-26\) \* Int64\(92\) WHEN Int64\(91\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(10\)\)\) WHEN CAST\(NULL AS Int32\) THEN NULL END\) \* CASE \(\- nullif\(Int64\(\-23\), Int64\(46\)\)\) WHEN Int64\(80\) THEN Int64\(\-24\) \* Int64\(25\) WHEN coalesce\(\(\- \(\- coalesce\(Int64\(48\), \(\- nullif\(Int64\(67\), \(\- count\(\(\- CAST\(Int64\(92\) AS Int32\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(13\)\)\)\)\), Int64\(48\), Int64\(62\) \* CASE WHEN NOT Int64\(97\) IS NULL THEN Int64\(\-67\) END\) THEN NULL ELSE Int64\(16\) \+ Int64\(98\) END \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - NULLIF ( - COUNT ( * ), + SUM ( DISTINCT + CASE WHEN NOT ( NULL ) IS NOT NULL THEN - ( - + COALESCE ( - 84, 83, + 64 ) ) ELSE 17 END ) ) ) AS col1, - CASE + 1 WHEN - 79 + + COUNT ( * ) THEN + - 26 * 92 WHEN 91 THEN COUNT ( * ) * - SUM ( + 10 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END * CASE - NULLIF ( + - 23, 46 ) WHEN 80 THEN - 24 * 25 WHEN + COALESCE ( - - COALESCE ( 48, - NULLIF ( 67, - COUNT ( ALL - CAST ( 92 AS INTEGER ) ) + COUNT ( * ) * COUNT ( * ) ) + - ( 13 ) ), 48, 62 * CASE WHEN NOT 97 IS NULL THEN - 67 END ) THEN NULL ELSE 16 + 98 END + + 38 col1 query I rowsort @@ -32280,7 +32280,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) \- \(\- 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 "\(\- Int64\(44\)\) \- \(\- 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 - + 44 - - COUNT ( * ) col2, 18 col2 query I rowsort label-6138 @@ -33669,7 +33669,7 @@ SELECT DISTINCT + ( 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3905 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-52\) \* Int64\(76\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-52\) \* Int64\(76\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 52 * 76 + 47 AS col2, 4 AS col2 query I rowsort @@ -33800,7 +33800,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 @@ -34673,7 +34673,7 @@ SELECT COALESCE ( 96, - 96 + COUNT ( * ) * 0 ) - 74 + + - 51 AS col1, - 25 AS co # 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 "\(\- coalesce\(count\(\*\), Int64\(88\) \* Int64\(98\) \+ 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 "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(88\) \* Int64\(98\) \+ 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 - COALESCE ( + + COUNT ( * ), + 88 * + 98 + + COUNT ( * ) ) AS col1, + 26 col1 query I rowsort @@ -36221,7 +36221,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\(\*\) AS col0" at position 1 have the 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 @@ -36464,7 +36464,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\(\*\) 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 @@ -37153,7 +37153,7 @@ SELECT ALL - COUNT ( * ) - - - CAST ( + ( + + 95 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - 2356 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* Int64\(27\) \* Int64\(4\) AS col0" at position 0 and "Int64\(\-38\) \- count\(\*\) \* \(\- Int64\(\-42\)\) \* \(\- min\(DISTINCT 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\(1\) \* Int64\(27\) \* Int64\(4\) AS col0" at position 0 and "Int64\(\-38\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-42\)\) \* \(\- min\(DISTINCT Int64\(57\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 1 * + 27 * + 4 AS col0, - 38 - + COUNT ( * ) * ( - - 42 ) * - MIN ( DISTINCT + + 57 ) AS col0 query I rowsort label-7071 @@ -37390,7 +37390,7 @@ SELECT + 96 / - 94 * COUNT ( * ) + 7 * + + 83 + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(\(\- CAST\(NULL AS Int32\)\), count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(76\) \+ \(\- max\(Int64\(\-22\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(\(\- CAST\(NULL AS Int32\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(76\) \+ \(\- max\(Int64\(\-22\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS INTEGER ) col1, 76 + - MAX ( - 22 ) AS col1 query I rowsort label-7117 @@ -37478,7 +37478,7 @@ SELECT ALL - ( - 64 ) / - 53 AS 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ALL + 93 AS col1, - COUNT ( * ) AS col1 query I rowsort label-7134 @@ -38936,7 +38936,7 @@ SELECT - 75 + 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 1896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(49\), count\(\*\) / Int64\(40\)\)\) AS col0" at position 0 and "Int64\(24\) \* 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 "\(\- nullif\(Int64\(49\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(40\)\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( 49, + COUNT ( * ) / + 40 ) col0, + 24 * + 79 AS col0 query I rowsort label-7415 @@ -39341,7 +39341,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\(\*\) AS col1" at position 1 have the same 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 @@ -39704,7 +39704,7 @@ SELECT DISTINCT + COUNT ( * ) / 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 192 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(4\) AS col0" at position 0 and "Int64\(51\) / Int64\(30\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(4\) AS col0" at position 0 and "Int64\(51\) / Int64\(30\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 48 * + 4 col0, 51 / + 30 + - - COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -41039,7 +41039,7 @@ SELECT ALL + 96 * 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(13\) \* Int64\(71\) / CASE Int64\(\-62\) WHEN \(\- count\(\*\)\) THEN Int64\(\-14\) END \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(13\) \* Int64\(71\) / CASE Int64\(\-62\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-14\) END \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 70 AS col1, 13 * 71 / CASE - 62 WHEN - COUNT ( * ) THEN - 14 END * + - 34 AS col1 query I rowsort label-7816 @@ -41143,7 +41143,7 @@ SELECT ( + 1 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- \(\- \(\- Int64\(\-29\)\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ count\(\*\) \* \(\- Int64\(49\)\) \* Int64\(\-61\) AS col2" at position 0 and "\(\- Int64\(3\)\) / Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- \(\- \(\- Int64\(\-29\)\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(49\)\) \* Int64\(\-61\) AS col2" at position 0 and "\(\- Int64\(3\)\) / Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - - ( - - 29 ) ) + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - + 49 * - 61 AS col2, - ( + 3 ) / + ( 29 ) AS col2 query I rowsort label-7836 @@ -41402,7 +41402,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\(\*\) AS col1" at position 1 have the 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 @@ -41423,7 +41423,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\(\*\) 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 @@ -42029,7 +42029,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -43203,7 +43203,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\(\*\) 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 @@ -43705,7 +43705,7 @@ SELECT COUNT ( * ) - + 39 AS col0, 90 / 16 / - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "\(\- count\(\*\)\) / Int64\(49\) \- 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\(57\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(49\) \- Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 AS col1, - ( + COUNT ( * ) ) / + 49 - + 38 AS col1 # Datafusion - Datafusion expected results: @@ -43751,7 +43751,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\(\*\) 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 @@ -44273,7 +44273,7 @@ SELECT DISTINCT - 36 + - + 2 * + 65 col2 # 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\(15\) \+ \(\- count\(\*\)\) \+ \(\- count\(\*\)\) \* Int64\(84\) 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\(15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(84\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 15 + - COUNT ( * ) + - + COUNT ( * ) * + + 84 col0, + 9 AS col0 # Datafusion - Types were automatically converted from: @@ -46523,7 +46523,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\(\*\) AS col1" at position 1 have the 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 @@ -46691,7 +46691,7 @@ NULL # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 col1, - COUNT ( * ) AS col1 query II rowsort @@ -47290,7 +47290,7 @@ SELECT DISTINCT - 17 + 42 * + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 2860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(\-94\) \* CASE Int64\(7\) WHEN Int64\(97\) / \(\- coalesce\(Int64\(18\), Int64\(\-38\) \* Int64\(80\) \+ \(\- \(\- CASE Int64\(84\) WHEN avg\(Int64\(49\)\) THEN Int64\(39\) WHEN Int64\(54\) \* Int64\(\-93\) \- Int64\(9\) \* Int64\(24\) THEN coalesce\(Int64\(99\), Int64\(64\)\) / Int64\(53\) END\)\) \+ Int64\(62\) \* CASE Int64\(\-54\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN \(\- count\(\*\)\) THEN Int64\(\-18\) \+ Int64\(\-51\) WHEN count\(\*\) / Int64\(58\) THEN Int64\(5\) ELSE NULL END, Int64\(36\) / Int64\(\-19\)\)\) \- Int64\(18\) THEN count\(\*\) \+ Int64\(58\) \* Int64\(51\) ELSE Int64\(\-30\) END \+ Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(\-94\) \* CASE Int64\(7\) WHEN Int64\(97\) / \(\- coalesce\(Int64\(18\), Int64\(\-38\) \* Int64\(80\) \+ \(\- \(\- CASE Int64\(84\) WHEN avg\(Int64\(49\)\) THEN Int64\(39\) WHEN Int64\(54\) \* Int64\(\-93\) \- Int64\(9\) \* Int64\(24\) THEN coalesce\(Int64\(99\), Int64\(64\)\) / Int64\(53\) END\)\) \+ Int64\(62\) \* CASE Int64\(\-54\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-18\) \+ Int64\(\-51\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(58\) THEN Int64\(5\) ELSE NULL END, Int64\(36\) / Int64\(\-19\)\)\) \- Int64\(18\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) \* Int64\(51\) ELSE Int64\(\-30\) END \+ Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 0 + - 47 AS col1, - 94 * + + CASE 7 WHEN 97 / - COALESCE ( + 18, - 38 * 80 + - - CASE 84 WHEN AVG ( 49 ) THEN 39 WHEN 54 * - 93 - + 9 * + 24 THEN COALESCE ( 99, + 64 ) / + 53 END + 62 * + CASE - 54 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN - 18 + - 51 WHEN COUNT ( * ) / + 58 THEN 5 ELSE NULL END, + 36 / - 19 ) - 18 THEN COUNT ( * ) + 58 * 51 ELSE - 30 END + 40 col1 query I rowsort @@ -47582,7 +47582,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\(\*\) 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 @@ -47703,7 +47703,7 @@ SELECT DISTINCT ( 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* \(\- 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 "Int64\(3\) \* \(\- 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 ALL + 3 * - COUNT ( * ) AS col2, 13 AS col2 query I rowsort label-9094 @@ -48125,7 +48125,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\(\*\) AS col1" at position 1 have the 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 @@ -48541,7 +48541,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\(\*\) 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 @@ -49140,7 +49140,7 @@ SELECT - 63, ( ( 14 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -236 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(76\) \+ Int64\(21\) \- count\(\*\) / count\(Int64\(84\)\) \+ max\(DISTINCT Int64\(83\)\) \* 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\(64\) AS col1" at position 0 and "Int64\(76\) \+ Int64\(21\) \- count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(84\)\) \+ max\(DISTINCT Int64\(83\)\) \* Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 64 AS col1, 76 + + 21 - + COUNT ( * ) / + + COUNT ( + + 84 ) + MAX ( DISTINCT 83 ) * - 4 AS col1 query I rowsort label-9369 @@ -49165,7 +49165,7 @@ SELECT DISTINCT - CASE + 53 WHEN 13 THEN ( + 4 ) + - 78 ELSE - ( - CAST ( + 44 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -51 -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\(\-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\(73\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 73 AS col1, + COUNT ( * ) * + - 51 AS col1 # Datafusion - Datafusion expected results: @@ -49481,7 +49481,7 @@ SELECT + 40 - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "count\(DISTINCT CAST\(NULL AS Int32\)\) \* Int64\(28\) \+ count\(\*\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "count\(DISTINCT CAST\(NULL AS Int32\)\) \* Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 43 AS col1, COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 28 + + COUNT ( * ) + 43 AS col1 # Datafusion - Types were automatically converted from: @@ -49777,7 +49777,7 @@ SELECT ALL 72 + + 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "CASE Int64\(55\) WHEN Int64\(\-52\) / count\(\*\) \* Int64\(26\) THEN Int64\(32\) \- Int64\(38\) \+ Int64\(\-9\) \* Int64\(\-19\) \+ Int64\(98\) \+ nullif\(count\(\*\), Int64\(80\)\) \* Int64\(\-6\) \+ Int64\(22\) \* CAST\(Int64\(\-36\) AS Int32\) \* Int64\(\-37\) ELSE NULL END \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "CASE Int64\(55\) WHEN Int64\(\-52\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(26\) THEN Int64\(32\) \- Int64\(38\) \+ Int64\(\-9\) \* Int64\(\-19\) \+ Int64\(98\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(80\)\) \* Int64\(\-6\) \+ Int64\(22\) \* CAST\(Int64\(\-36\) AS Int32\) \* Int64\(\-37\) ELSE NULL END \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 AS col2, CASE + + 55 WHEN + - 52 / COUNT ( * ) * + + 26 THEN 32 - + 38 + - 9 * - 19 + + 98 + NULLIF ( COUNT ( * ), 80 ) * - 6 + 22 * + + CAST ( - 36 AS INTEGER ) * - 37 ELSE NULL END * - 76 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_35.slt b/data/sqlite/random/expr/slt_good_35.slt index 4294ffd..197b559 100644 --- a/data/sqlite/random/expr/slt_good_35.slt +++ b/data/sqlite/random/expr/slt_good_35.slt @@ -3031,7 +3031,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) + - 44 AS col2 query I rowsort label-581 @@ -3973,7 +3973,7 @@ SELECT ALL 1 / - SUM ( 90 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -271241481 # Datafusion - Expected - 2527 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- count\(\*\)\) \* Int64\(36\) \* Int64\(\-76\) \* Int64\(26\) \* Int64\(\-93\) \+ coalesce\(nullif\(Int64\(87\), Int64\(\-13\)\), Int64\(35\)\) AS col1" at position 0 and "Int64\(83\) \+ Int64\(52\) \* 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\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(36\) \* Int64\(\-76\) \* Int64\(26\) \* Int64\(\-93\) \+ coalesce\(nullif\(Int64\(87\), Int64\(\-13\)\), Int64\(35\)\) AS col1" at position 0 and "Int64\(83\) \+ Int64\(52\) \* Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 41 ) * - COUNT ( * ) * 36 * - 76 * + 26 * - 93 + ( + COALESCE ( + NULLIF ( + 87, - 13 ), + + 35 ) ) AS col1, 83 + + + 52 * 47 AS col1 query I rowsort label-761 @@ -4215,14 +4215,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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 1 and "CASE WHEN nullif\(Int64\(\-55\), Int64\(17\) \+ count\(Int64\(\-18\)\)\) IS NOT NULL THEN \(\- 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 @@ -6396,7 +6396,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(\-7\) / \(\- coalesce\(Int64\(\-87\), \(\- count\(\*\)\)\)\) \* coalesce\(Int64\(19\), Int64\(\-84\), Int64\(\-69\) \+ \(\- Int64\(52\)\)\) \+ \(\- count\(\*\)\) \+ Int64\(60\) \+ \(\- Int64\(94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(\-7\) / \(\- coalesce\(Int64\(\-87\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* coalesce\(Int64\(19\), Int64\(\-84\), Int64\(\-69\) \+ \(\- Int64\(52\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(60\) \+ \(\- Int64\(94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 AS col2, - 7 / - + COALESCE ( - 87, - COUNT ( * ) ) * COALESCE ( + + 19, + - 84, - 69 + - ( 52 ) ) + - COUNT ( * ) + + 60 + - + 94 AS col2 query II rowsort label-1224 @@ -8201,7 +8201,7 @@ SELECT ALL - ( - - 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(62\) \+ CASE \(\- max\(Int64\(0\)\)\) WHEN Int64\(34\) THEN \(\- Int64\(51\)\) \* count\(\*\) / Int64\(48\) END \* Int64\(61\) \+ Int64\(94\) \+ Int64\(71\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(62\) \+ CASE \(\- max\(Int64\(0\)\)\) WHEN Int64\(34\) THEN \(\- Int64\(51\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(48\) END \* Int64\(61\) \+ Int64\(94\) \+ Int64\(71\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 41 AS col1, + 62 + + CASE - + MAX ( ALL 0 ) WHEN + 34 THEN - + 51 * + COUNT ( * ) / 48 END * + 61 + 94 + 71 + 27 AS col1 query II rowsort label-1568 @@ -9059,7 +9059,7 @@ SELECT DISTINCT ( - 15 ) / + 14 + - 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -100 -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\(\-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\(49\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 49 AS col2, - COUNT ( * ) + + - 99 AS col2 query I rowsort label-1730 @@ -9117,7 +9117,7 @@ SELECT DISTINCT + + 19 + + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "CASE Int64\(35\) WHEN Int64\(\-9\) \+ Int64\(\-16\) / sum\(DISTINCT \(\- \(\- Int64\(87\)\)\)\) THEN NULL WHEN \(\- count\(\*\)\) THEN NULL ELSE Int64\(54\) 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\(89\) AS col0" at position 0 and "CASE Int64\(35\) WHEN Int64\(\-9\) \+ Int64\(\-16\) / sum\(DISTINCT \(\- \(\- Int64\(87\)\)\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(54\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 89 AS col0, CASE 35 WHEN - 9 + - 16 / + SUM ( DISTINCT - - ( + 87 ) ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + 54 END AS col0 query I rowsort @@ -10143,7 +10143,7 @@ SELECT ALL - 38 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(77\)\) AS col0" at position 0 and "coalesce\(count\(\*\), \(\- Int64\(\-35\)\) \+ Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(77\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(\-35\)\) \+ Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( + 77 ) col0, + COALESCE ( + COUNT ( * ), - - 35 + + 14 ) AS col0 query I rowsort label-1935 @@ -12239,7 +12239,7 @@ SELECT ALL 23 * 83 # 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\(\*\)\) AS col1" at position 1 have the 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 I rowsort label-2343 @@ -13775,7 +13775,7 @@ SELECT ALL + 33 + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(\-39\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-39\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 97 col0, - 39 * - COUNT ( * ) AS col0 query I rowsort @@ -14323,7 +14323,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\(\*\) AS col0" at position 0 and "Int64\(19\) \* Int64\(12\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -15381,7 +15381,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\(\*\) 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 @@ -16267,7 +16267,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\(\*\) 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 @@ -17708,7 +17708,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\(\*\) AS col1" at position 1 have the 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 @@ -17918,13 +17918,13 @@ 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\(\*\)\) 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 ( * ) AS col2, 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CASE \(\- count\(\*\)\) WHEN Int64\(\-62\) / Int64\(\-78\) / Int64\(29\) \* \(\- CAST\(NULL AS Int32\)\) THEN NULL WHEN Int64\(53\) THEN Int64\(22\) \+ Int64\(63\) \+ \(\- \(\- Int64\(82\)\)\) \* Int64\(22\) \+ Int64\(25\) \+ Int64\(11\) END / Int64\(24\) AS col2" at position 0 and "max\(Int64\(\-3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-62\) / Int64\(\-78\) / Int64\(29\) \* \(\- CAST\(NULL AS Int32\)\) THEN NULL WHEN Int64\(53\) THEN Int64\(22\) \+ Int64\(63\) \+ \(\- \(\- Int64\(82\)\)\) \* Int64\(22\) \+ Int64\(25\) \+ Int64\(11\) END / Int64\(24\) AS col2" at position 0 and "max\(Int64\(\-3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 + + CASE - COUNT ( * ) WHEN - 62 / - 78 / + 29 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 53 THEN + 22 + 63 + - - ( 82 ) * 22 + 25 + + 11 END / 24 AS col2, MAX ( ALL - 3 ) AS col2 query II rowsort @@ -18594,7 +18594,7 @@ SELECT DISTINCT + 26 * 56 * + CASE - 62 WHEN - 75 THEN - ( 93 ) + + ( - 38 ) ELS # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - MIN ( ALL - + 22 ) AS col0, - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-3554 @@ -18658,7 +18658,7 @@ SELECT ALL 78 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2753 # Datafusion - Expected - 1408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ \(\- Int64\(94\)\) \* Int64\(\-29\) AS col2" at position 0 and "Int64\(\-64\) \* \(\- coalesce\(\(\- max\(\(\- nullif\(Int64\(22\), Int64\(68\)\)\)\)\), count\(\*\) \* Int64\(\-2\), Int64\(40\) \+ 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\(27\) \+ \(\- Int64\(94\)\) \* Int64\(\-29\) AS col2" at position 0 and "Int64\(\-64\) \* \(\- coalesce\(\(\- max\(\(\- nullif\(Int64\(22\), Int64\(68\)\)\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-2\), Int64\(40\) \+ Int64\(6\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 + - + 94 * + - 29 AS col2, - 64 * - + COALESCE ( - + MAX ( ALL - NULLIF ( + ( 22 ), + 68 ) ), + COUNT ( * ) * ( - 2 ), 40 + 6 ) AS col2 query I rowsort label-3566 @@ -18743,7 +18743,7 @@ SELECT - 85 + + - 68 + + 95 / - - 54 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\(55\) WHEN Int64\(74\) \* Int64\(\-33\) THEN Int64\(22\) / Int64\(37\) END AS col2" at position 0 and "Int64\(88\) \+ Int64\(89\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(55\) WHEN Int64\(74\) \* Int64\(\-33\) THEN Int64\(22\) / Int64\(37\) END AS col2" at position 0 and "Int64\(88\) \+ Int64\(89\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + 55 WHEN + 74 * - 33 THEN + 22 / 37 END AS col2, 88 + + + 89 * - COUNT ( * ) col2 query I rowsort @@ -19492,13 +19492,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(57\), Int64\(81\), Int64\(30\) \* Int64\(\-4\) \* Int64\(21\) \+ Int64\(\-22\)\) AS col1" at position 0 and "Int64\(38\) \+ count\(\*\) \+ 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 "coalesce\(Int64\(57\), Int64\(81\), Int64\(30\) \* Int64\(\-4\) \* Int64\(21\) \+ Int64\(\-22\)\) AS col1" at position 0 and "Int64\(38\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + 57, 81, + 30 * + - 4 * + 21 + + - 22 ) col1, 38 + + COUNT ( * ) + 65 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* 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\(\*\) 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 @@ -21050,7 +21050,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\(\*\) 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 @@ -23509,7 +23509,7 @@ SELECT DISTINCT - 30 * - ( - SUM ( 44 ) ) + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "\(\- coalesce\(CASE Int64\(26\) WHEN Int64\(\-38\) THEN \(\- CAST\(Int64\(\-65\) AS Int32\)\) \* \(\- Int64\(\-52\)\) \+ \(\- Int64\(\-78\)\) WHEN Int64\(\-82\) \* Int64\(\-19\) THEN NULL WHEN \(\- \(\- count\(\*\)\)\) THEN Int64\(38\) END, Int64\(79\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "\(\- coalesce\(CASE Int64\(26\) WHEN Int64\(\-38\) THEN \(\- CAST\(Int64\(\-65\) AS Int32\)\) \* \(\- Int64\(\-52\)\) \+ \(\- Int64\(\-78\)\) WHEN Int64\(\-82\) \* Int64\(\-19\) THEN NULL WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(38\) END, Int64\(79\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 AS col0, - COALESCE ( CASE 26 WHEN - 38 THEN - + CAST ( + - 65 AS INTEGER ) * - - 52 + - - 78 WHEN - 82 * + - 19 THEN NULL WHEN - - COUNT ( * ) THEN 38 END, 79 ) AS col0 query I rowsort label-4502 @@ -25321,7 +25321,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\(\*\) AS col0" at position 1 have the 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 @@ -25478,7 +25478,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\(\*\)\) \+ count\(DISTINCT Int64\(\-62\)\) THEN NULL ELSE NULL END \* Int64\(\-62\) \+ count\(\*\) AS col2" at position 1 have 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 @@ -28046,7 +28046,7 @@ SELECT COUNT ( * ) * - + ( 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 38 -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\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 32 AS col2, COUNT ( * ) - - 37 AS col2 query I rowsort label-5373 @@ -29705,7 +29705,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\(53\) \* Int64\(99\)\)\) AS Int32\) \+ Int64\(22\)\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -30468,7 +30468,7 @@ SELECT + CAST ( COUNT ( * ) AS INTEGER ) / 8 * + 57 + - 8 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3040646 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* \(\- Int64\(\-19\)\) \* Int64\(\-98\) \* \(\- Int64\(23\)\) AS col0" at position 0 and "Int64\(31\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-19\)\) \* Int64\(\-98\) \* \(\- Int64\(23\)\) AS col0" at position 0 and "Int64\(31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 71 * - - 19 * - 98 * - + 23 AS col0, ( 31 ) * - COUNT ( * ) col0 query II rowsort label-5840 @@ -30978,7 +30978,7 @@ SELECT + - 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), CAST\(Int64\(81\) AS Int32\) \* \(\- count\(\*\)\) \* count\(\*\), Int64\(\-94\) \* \(\- Int64\(\-17\)\) \+ Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), CAST\(Int64\(81\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-94\) \* \(\- Int64\(\-17\)\) \+ Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 57 col0, COALESCE ( ( - 16 ), CAST ( 81 AS INTEGER ) * - + COUNT ( * ) * COUNT ( * ), + - 94 * - + ( - 17 ) + + 17 ) col0 query I rowsort label-5939 @@ -31364,7 +31364,7 @@ SELECT ALL 3 AS col0, + 73 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ALL - 99 AS col1, - COUNT ( * ) AS col1 query I rowsort label-6012 @@ -31396,7 +31396,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1334579 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* Int64\(87\) \* Int64\(\-59\) \* Int64\(4\) \- Int64\(0\) \* Int64\(81\) \* \(\- max\(Int64\(41\)\)\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(65\) \- 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\(\-65\) \* Int64\(87\) \* Int64\(\-59\) \* Int64\(4\) \- Int64\(0\) \* Int64\(81\) \* \(\- max\(Int64\(41\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(65\) \- Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 * 87 * + - 59 * 4 - + 0 * + 81 * - + MAX ( 41 ) + - COUNT ( * ) AS col2, 65 - - 74 AS col2 query I rowsort label-6018 @@ -31757,13 +31757,13 @@ SELECT + 36 + + 53 AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - -1509569 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(25\) \* \(\- min\(Int64\(1\)\)\) \* Int64\(48\) \* Int64\(37\) \* Int64\(34\) \+ CAST\(\(\- Int64\(\-31\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(25\) \* \(\- min\(Int64\(1\)\)\) \* Int64\(48\) \* Int64\(37\) \* Int64\(34\) \+ CAST\(\(\- Int64\(\-31\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + 25 * - MIN ( + 1 ) * + 48 * + 37 * + 34 + CAST ( - - 31 AS INTEGER ) AS col1, + + 31 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9408 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-98\) AS col0" at position 0 and "nullif\(Int64\(\-36\), Int64\(76\) / Int64\(\-14\) \* \(\- nullif\(Int64\(65\), Int64\(\-6\)\)\) \+ Int64\(90\) \+ Int64\(76\) \+ Int64\(\-35\) \+ Int64\(75\) \* \(\- coalesce\(\(\- Int64\(45\)\), \(\- Int64\(46\)\) \* Int64\(70\) \+ count\(\*\) \* Int64\(9\)\)\)\) \+ 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\(96\) \* Int64\(\-98\) AS col0" at position 0 and "nullif\(Int64\(\-36\), Int64\(76\) / Int64\(\-14\) \* \(\- nullif\(Int64\(65\), Int64\(\-6\)\)\) \+ Int64\(90\) \+ Int64\(76\) \+ Int64\(\-35\) \+ Int64\(75\) \* \(\- coalesce\(\(\- Int64\(45\)\), \(\- Int64\(46\)\) \* Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(9\)\)\)\) \+ Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 96 * - 98 AS col0, + NULLIF ( - 36, 76 / - 14 * - + NULLIF ( + 65, - 6 ) + + + 90 + 76 + - 35 + 75 * - COALESCE ( - + 45, - + 46 * + 70 + + COUNT ( * ) * 9 ) ) + ( 8 ) AS col0 query I rowsort label-6088 @@ -31835,7 +31835,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -32923,7 +32923,7 @@ SELECT DISTINCT - COALESCE ( + CAST ( + 21 AS INTEGER ), COUNT ( * ) * + 46 + + # 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\(\*\)\) \+ CASE Int64\(18\) WHEN Int64\(97\) THEN Int64\(\-16\) END AS col2" at position 0 and "Int64\(50\) / 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\(\*\)\) \+ CASE Int64\(18\) WHEN Int64\(97\) THEN Int64\(\-16\) END AS col2" at position 0 and "Int64\(50\) / Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + CASE 18 WHEN + 97 THEN - 16 END AS col2, 50 / 88 AS col2 query II rowsort @@ -33618,7 +33618,7 @@ SELECT DISTINCT 87 * - - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 1680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(72\), Int64\(59\) \* count\(\*\) \- Int64\(82\), CASE \(\- \(\- avg\(DISTINCT Int64\(\-18\)\)\)\) WHEN coalesce\(Int64\(56\), Int64\(9\), Int64\(\-39\) / \(\- Int64\(90\)\) \+ \(\- Int64\(\-8\)\)\) \* Int64\(72\) \* Int64\(\-19\) \- Int64\(12\) THEN Int64\(\-40\) END\)\) / Int64\(7\) \+ Int64\(50\) AS col2" at position 0 and "Int64\(30\) \* Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(72\), Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(82\), CASE \(\- \(\- avg\(DISTINCT Int64\(\-18\)\)\)\) WHEN coalesce\(Int64\(56\), Int64\(9\), Int64\(\-39\) / \(\- Int64\(90\)\) \+ \(\- Int64\(\-8\)\)\) \* Int64\(72\) \* Int64\(\-19\) \- Int64\(12\) THEN Int64\(\-40\) END\)\) / Int64\(7\) \+ Int64\(50\) AS col2" at position 0 and "Int64\(30\) \* Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( 72, + + 59 * + COUNT ( * ) - 82, CASE - - AVG ( DISTINCT - 18 ) WHEN COALESCE ( + 56, 9, - 39 / - ( 90 ) + - - 8 ) * + 72 * - 19 - 12 THEN - 40 END ) / 7 + + 50 AS col2, 30 * 56 AS col2 query I rowsort label-6441 @@ -34706,7 +34706,7 @@ SELECT DISTINCT - 8 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(11\)\), Int64\(90\)\)\) AS col2" at position 0 and "count\(\*\) \- \(\- 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 "\(\- coalesce\(\(\- Int64\(11\)\), Int64\(90\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - + 11, + 90 ) AS col2, COUNT ( * ) - - + 67 AS col2 query I rowsort label-6649 @@ -34878,7 +34878,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\(\*\) 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 @@ -37008,7 +37008,7 @@ SELECT ALL - NULLIF ( COUNT ( ALL + + 42 ), 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2357 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* \(\- count\(\*\)\) \- Int64\(51\) \* Int64\(46\) 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\(11\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(51\) \* Int64\(46\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 11 ) * - COUNT ( * ) - 51 * 46 AS col1, 60 AS col1 query I rowsort @@ -37236,7 +37236,7 @@ SELECT + 42 * + 18 + - 4 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\(\*\)\) 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 query I rowsort label-7135 @@ -38432,7 +38432,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\(\*\) AS col0" at position 1 have the 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 @@ -39444,7 +39444,7 @@ SELECT DISTINCT 39 * + CAST ( + ( + - AVG ( ( + + 49 ) ) ) AS INTEGER ) * + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 136 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- count\(\*\)\) \+ Int64\(73\) AS col2" at position 0 and "\(\- coalesce\(\(\- max\(DISTINCT \(\- CAST\(Int64\(72\) AS Int32\)\)\)\), sum\(Int64\(72\)\) \- Int64\(24\)\)\) \+ CASE Int64\(1\) WHEN Int64\(84\) THEN Int64\(21\) \+ count\(\*\) \* nullif\(Int64\(97\), Int64\(49\)\) END \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(73\) AS col2" at position 0 and "\(\- coalesce\(\(\- max\(DISTINCT \(\- CAST\(Int64\(72\) AS Int32\)\)\)\), sum\(Int64\(72\)\) \- Int64\(24\)\)\) \+ CASE Int64\(1\) WHEN Int64\(84\) THEN Int64\(21\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(97\), Int64\(49\)\) END \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 + + - COUNT ( * ) + 73 AS col2, - COALESCE ( - + MAX ( DISTINCT - CAST ( 72 AS INTEGER ) ), SUM ( 72 ) - + 24 ) + + CASE 1 WHEN ( + 84 ) THEN + 21 + COUNT ( * ) * NULLIF ( 97, 49 ) END * 86 AS col2 query I rowsort @@ -40549,7 +40549,7 @@ SELECT - ( - COUNT ( * ) ) + + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -376 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* \(\- Int64\(\-94\)\) AS col2" at position 0 and "\(\- nullif\(Int64\(9\), CAST\(NULL AS Float64\) \- \(\- CASE \(\- Int64\(\-43\)\) WHEN avg\(DISTINCT \(\- nullif\(Int64\(79\), Int64\(15\) \* Int64\(\-42\)\)\)\) THEN nullif\(Int64\(35\), Int64\(15\) \+ Int64\(94\) \* sum\(Int64\(78\) \* Int64\(55\) \+ Int64\(39\)\)\) \+ count\(\*\) WHEN Int64\(\-13\) \+ Int64\(\-99\) THEN count\(\*\) \* count\(\*\) \- Int64\(\-29\) ELSE NULL END\)\)\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* \(\- Int64\(\-94\)\) AS col2" at position 0 and "\(\- nullif\(Int64\(9\), CAST\(NULL AS Float64\) \- \(\- CASE \(\- Int64\(\-43\)\) WHEN avg\(DISTINCT \(\- nullif\(Int64\(79\), Int64\(15\) \* Int64\(\-42\)\)\)\) THEN nullif\(Int64\(35\), Int64\(15\) \+ Int64\(94\) \* sum\(Int64\(78\) \* Int64\(55\) \+ Int64\(39\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-13\) \+ Int64\(\-99\) THEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-29\) ELSE NULL END\)\)\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 4 * - - 94 AS col2, - NULLIF ( 9, CAST ( NULL AS FLOAT8 ) - - CASE - - 43 WHEN ( + AVG ( DISTINCT - NULLIF ( + 79, + 15 * + - 42 ) ) ) THEN + + NULLIF ( 35, 15 + 94 * + SUM ( 78 * 55 + + 39 ) ) + COUNT ( * ) WHEN - 13 + - 99 THEN COUNT ( * ) * COUNT ( * ) - + ( - 29 ) ELSE NULL END ) + 70 AS col2 query I rowsort @@ -41403,7 +41403,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -41946,7 +41946,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\(\*\) AS col2" at position 1 and "Int64\(\-46\) \- min\(nullif\(Int64\(54\), Int64\(56\) \+ Int64\(10\)\)\) \+ \(\- 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: @@ -43636,7 +43636,7 @@ SELECT DISTINCT - COALESCE ( ( + 99 ), - COUNT ( * ), 45 + - - 10 ) + - + 16 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ count\(\*\) \* \(\- Int64\(\-95\)\) 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\(0\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-95\)\) 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 - 0 + + + COUNT ( * ) * - - 95 AS col2, + 30 AS col2 query II rowsort label-8362 @@ -44222,7 +44222,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 62902 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(\-84\) \+ Int64\(69\) \* Int64\(16\) \* sum\(Int64\(57\)\) \+ Int64\(75\) \- count\(\*\) / \(\- CASE coalesce\(sum\(DISTINCT Int64\(42\)\), Int64\(9\), Int64\(90\)\) WHEN Int64\(\-15\) THEN NULL WHEN Int64\(28\) THEN NULL ELSE Int64\(91\) END\) \+ 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\(11\) AS col1" at position 0 and "Int64\(\-84\) \+ Int64\(69\) \* Int64\(16\) \* sum\(Int64\(57\)\) \+ Int64\(75\) \- count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE coalesce\(sum\(DISTINCT Int64\(42\)\), Int64\(9\), Int64\(90\)\) WHEN Int64\(\-15\) THEN NULL WHEN Int64\(28\) THEN NULL ELSE Int64\(91\) END\) \+ Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 AS col1, - 84 + 69 * + 16 * + + SUM ( + 57 ) + + + 75 - + COUNT ( * ) / - CASE COALESCE ( + SUM ( DISTINCT + + 42 ), 9, + 90 ) WHEN + - 15 THEN NULL WHEN 28 THEN NULL ELSE 91 END + - 17 AS col1 query I rowsort @@ -44500,7 +44500,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\(\*\) 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 @@ -46650,7 +46650,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\(\*\) 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 @@ -50073,7 +50073,7 @@ SELECT + + 6 / 5 + 23 + - + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 1700 -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\(25\) \* 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\(\-41\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\) \* Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 41 AS col0, COUNT ( * ) * + 25 * 68 AS col0 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_36.slt b/data/sqlite/random/expr/slt_good_36.slt index 46fbb15..88faf15 100644 --- a/data/sqlite/random/expr/slt_good_36.slt +++ b/data/sqlite/random/expr/slt_good_36.slt @@ -571,7 +571,7 @@ SELECT ALL + 57 * - 40 * 0 / + - 6 # 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\(\*\) \- \(\- \(\- CAST\(NULL AS Float64\)\)\) \* Int64\(87\) \+ Int64\(13\) AS col0" at position 0 and "Int64\(6\) / min\(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\(\*\) \- \(\- \(\- CAST\(NULL AS Float64\)\)\) \* Int64\(87\) \+ Int64\(13\) AS col0" at position 0 and "Int64\(6\) / min\(Int64\(\-56\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) - - - CAST ( NULL AS FLOAT8 ) * + 87 + + + 13 col0, 6 / MIN ( ALL - 56 ) AS col0 query I rowsort @@ -739,7 +739,7 @@ SELECT DISTINCT - COUNT ( * ) - - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-84\)\) AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-84\)\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - - 84 AS INTEGER ) AS col2, - COUNT ( * ) * + + 38 AS col2 query I rowsort @@ -1567,7 +1567,7 @@ SELECT - 20 * 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- Int64\(\-26\) AS col0" at position 0 and "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 "Int64\(82\) \- Int64\(\-26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 - - 26 col0, COUNT ( * ) * + 3 AS col0 query I rowsort @@ -2320,7 +2320,7 @@ SELECT - MAX ( DISTINCT 98 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -3118752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-39\) \* \(\- Int64\(17\)\) \* Int64\(14\) \* Int64\(84\) \* \(\- \(\- sum\(DISTINCT 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\(\-39\) \* \(\- Int64\(17\)\) \* Int64\(14\) \* Int64\(84\) \* \(\- \(\- sum\(DISTINCT Int64\(\-4\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, ( - 39 ) * - + 17 * 14 * + 84 * - - SUM ( DISTINCT + - 4 ) AS col0 query II rowsort @@ -4659,7 +4659,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\(\*\) AS col1" at position 1 have the 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 @@ -6481,7 +6481,7 @@ SELECT DISTINCT + ( 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1399 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) \+ Int64\(\-22\) \* Int64\(67\) AS col0" at position 0 and "count\(\*\) \+ 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\(\-75\)\) \+ Int64\(\-22\) \* Int64\(67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 75 ) + - 22 * + 67 AS col0, COUNT ( * ) + 40 AS col0 query I rowsort label-1236 @@ -8622,7 +8622,7 @@ SELECT + COUNT ( * ) + COUNT ( * ) * - 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(52\) \+ \(\- Int64\(14\)\) 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 "Int64\(87\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(52\) \+ \(\- Int64\(14\)\) AS col0" at position 0 and "Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 87 * - - COUNT ( * ) + + + 52 + - + 14 AS col0, - 2 AS col0 query II rowsort @@ -11299,7 +11299,7 @@ SELECT - COUNT ( * ) - 84 # 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\(\*\)\) AS col1" at position 1 have the 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 query I rowsort @@ -15066,7 +15066,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\(\*\) AS col0" at position 1 have the 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 @@ -17041,7 +17041,7 @@ SELECT DISTINCT - 39 + - 57 col2 # Datafusion - Expected - 7 # Datafusion - Expected - -1 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-7\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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\(\-7\)\)\) AS col0" at 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 ( DISTINCT - 7 ) AS col0, - COUNT ( * ) AS col0, + - 44 AS col2 query I rowsort @@ -19049,7 +19049,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\(\*\) AS col1" at position 1 have 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 @@ -19092,7 +19092,7 @@ SELECT DISTINCT - + COALESCE ( + COALESCE ( 40, COUNT ( 67 ) * + 58 ), - 25, 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 2432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* count\(\*\) \* Int64\(54\) AS col2" at position 0 and "Int64\(32\) \* 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\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\) AS col2" at position 0 and "Int64\(32\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 * COUNT ( * ) * 54 AS col2, + 32 * + + 76 AS col2 query II rowsort @@ -19645,7 +19645,7 @@ SELECT DISTINCT + ( - 18 ) # 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\(\*\)\) AS col2" at position 0 and "Int64\(23\) / 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\(23\) / Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 23 / 89 col2 query II rowsort label-3754 @@ -19801,7 +19801,7 @@ SELECT DISTINCT - COUNT ( * ) + - SUM ( - 69 ) * + COUNT ( * ) + - + 66 + - - CO # 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\(82\)\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 82 + + - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 query II rowsort @@ -20735,7 +20735,7 @@ SELECT DISTINCT 84 * - 53 * - 14 + - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -1914 -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\(22\) \* 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\(25\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(22\) \* Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 25 AS col1, + COUNT ( * ) * 22 * + - 87 AS col1 query I rowsort label-3962 @@ -21241,7 +21241,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\(\*\) 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 @@ -21344,7 +21344,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\(\*\) AS col1" at position 1 have the 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 @@ -24499,7 +24499,7 @@ SELECT DISTINCT - 10 + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(\*\) / Int64\(14\) \* Int64\(20\) \- \(\- CASE Int64\(\-7\) WHEN Int64\(34\) THEN Int64\(\-8\) END\) \+ Int64\(49\) \* CAST\(NULL AS Int32\) \* Int64\(57\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(14\) \* Int64\(20\) \- \(\- CASE Int64\(\-7\) WHEN Int64\(34\) THEN Int64\(\-8\) END\) \+ Int64\(49\) \* CAST\(NULL AS Int32\) \* Int64\(57\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 66 col1, + COUNT ( * ) / 14 * + 20 - - CASE - 7 WHEN 34 THEN - 8 END + + 49 * + CAST ( NULL AS INTEGER ) * + 57 + + 89 col1 query II rowsort label-4686 @@ -25424,7 +25424,7 @@ SELECT + 43 + + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1053 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(70\) \- Int64\(\-72\) \* Int64\(\-13\) \- Int64\(42\) \- \(\- 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\(29\) \* Int64\(70\) \- Int64\(\-72\) \* Int64\(\-13\) \- Int64\(42\) \- \(\- 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 + 29 * + 70 - + - 72 * - 13 - + + 42 - + - COUNT ( * ) AS col2, + 96 AS col2 query I rowsort label-4861 @@ -27266,7 +27266,7 @@ SELECT - + MIN ( 5 ) - + CAST ( 84 AS INTEGER ) * + 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(86\) AS col0" at position 0 and "Int64\(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\(\*\) \* Int64\(86\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * 86 AS col0, 97 AS col0 query I rowsort label-5215 @@ -28375,7 +28375,7 @@ SELECT - 62 * - 62 * - 52 # 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 "\(\- count\(\*\)\) \* count\(\(\- Int64\(24\)\)\) \+ Int64\(17\) 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\(\*\)\) \* count\(\(\- Int64\(24\)\)\) \+ Int64\(17\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * ( COUNT ( - + ( 24 ) ) ) + 17 AS col0, + 1 AS col0 query I rowsort label-5426 @@ -30386,7 +30386,7 @@ SELECT ALL - + ( + 54 ) AS col0, - 77 * + ( + 80 ) * 76 * 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(64\), Int64\(\-37\) \+ Int64\(66\)\)\) AS col0" at position 0 and "Int64\(30\) \- \(\- nullif\(\(\- count\(\*\)\), 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 "\(\- coalesce\(Int64\(64\), Int64\(\-37\) \+ Int64\(66\)\)\) AS col0" at position 0 and "Int64\(30\) \- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(56\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( + 64, - 37 + + 66 ) AS col0, 30 - - + NULLIF ( - + COUNT ( * ), + + 56 ) AS col0 query I rowsort @@ -30712,7 +30712,7 @@ SELECT ALL + CASE + - 50 WHEN 11 THEN NULL ELSE - - COUNT ( * ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1182 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \- CASE Int64\(\-67\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(73\) \+ Int64\(\-9\) \+ Int64\(83\) \+ Int64\(\-36\) THEN NULL WHEN \(\- count\(\*\)\) \* Int64\(88\) THEN NULL WHEN max\(Int64\(9\)\) THEN \(\- Int64\(\-40\)\) ELSE \(\- Int64\(\-62\)\) \* Int64\(\-19\) \- Int64\(23\) END AS col1" at position 0 and "Int64\(86\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \- CASE Int64\(\-67\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(73\) \+ Int64\(\-9\) \+ Int64\(83\) \+ Int64\(\-36\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) THEN NULL WHEN max\(Int64\(9\)\) THEN \(\- Int64\(\-40\)\) ELSE \(\- Int64\(\-62\)\) \* Int64\(\-19\) \- Int64\(23\) END AS col1" at position 0 and "Int64\(86\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 19 - + CASE - 67 WHEN - CAST ( NULL AS INTEGER ) + + 73 + - 9 + + 83 + - 36 THEN NULL WHEN - COUNT ( * ) * 88 THEN NULL WHEN + MAX ( 9 ) THEN - - 40 ELSE - - 62 * + - 19 - 23 END AS col1, 86 + - 43 AS col1 query II rowsort @@ -32453,7 +32453,7 @@ SELECT - - ( + CASE + ( - ( 42 ) ) WHEN 98 THEN NULL ELSE - + 84 END ) + - 24 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CASE \(\- avg\(\(\- Int64\(\-22\)\)\)\) WHEN Int64\(8\) \+ \(\- Int64\(13\)\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(\-42\) THEN Int64\(\-93\) \+ count\(\*\) \* Int64\(\-99\) WHEN Int64\(84\) / Int64\(50\) THEN NULL ELSE min\(Int64\(50\)\) \* count\(\*\) END / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CASE \(\- avg\(\(\- Int64\(\-22\)\)\)\) WHEN Int64\(8\) \+ \(\- Int64\(13\)\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(\-42\) THEN Int64\(\-93\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-99\) WHEN Int64\(84\) / Int64\(50\) THEN NULL ELSE min\(Int64\(50\)\) \* count\(Int64\(1\)\) AS count\(\*\) END / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col1, + CASE - AVG ( ALL - - 22 ) WHEN 8 + - + 13 + + ( - + CAST ( NULL AS INTEGER ) ) / - 42 THEN - 93 + COUNT ( * ) * - 99 WHEN 84 / 50 THEN NULL ELSE MIN ( + 50 ) * COUNT ( * ) END / 5 col1 query I rowsort label-6209 @@ -33022,7 +33022,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\(\*\) AS col2" at position 1 have the 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 @@ -33068,7 +33068,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -1344 -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\(28\) \* 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\(88\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(28\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 88 AS col0, - COUNT ( * ) * + 28 * 48 AS col0 query I rowsort @@ -34851,7 +34851,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\(\*\) 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 @@ -34908,7 +34908,7 @@ SELECT DISTINCT - CAST ( + 29 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(16\), Int64\(\-69\) \* Int64\(74\)\) AS col2" at position 0 and "Int64\(\-45\) \+ Int64\(\-60\) \* count\(\*\) \+ Int64\(\-70\) \* Int64\(\-27\) \+ Int64\(\-31\) \+ Int64\(\-77\) \* CASE Int64\(86\) WHEN \(\- nullif\(Int64\(57\), Int64\(\-38\)\)\) / Int64\(67\) THEN Int64\(72\) END / 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 "nullif\(Int64\(16\), Int64\(\-69\) \* Int64\(74\)\) AS col2" at position 0 and "Int64\(\-45\) \+ Int64\(\-60\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-70\) \* Int64\(\-27\) \+ Int64\(\-31\) \+ Int64\(\-77\) \* CASE Int64\(86\) WHEN \(\- nullif\(Int64\(57\), Int64\(\-38\)\)\) / Int64\(67\) THEN Int64\(72\) END / count\(Int64\(\-47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( + 16, - 69 * + 74 ) AS col2, - 45 + - 60 * + COUNT ( * ) + - 70 * - 27 + + - 31 + - 77 * + CASE + 86 WHEN - NULLIF ( 57, + - 38 ) / + 67 THEN + 72 END / COUNT ( ALL + - 47 ) col2 query II rowsort label-6676 @@ -35906,7 +35906,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\(\*\) AS col1" at position 1 have the same 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 @@ -36128,7 +36128,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ count\(Int64\(29\)\) 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\(\*\)\) \+ count\(Int64\(29\)\) 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 ( * ) + COUNT ( 29 ) AS col0, - 63 AS col0 query II rowsort @@ -36366,7 +36366,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\(\*\) AS col0" at position 1 have the 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 @@ -37244,7 +37244,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* count\(\*\) \* Int64\(61\) \* \(\- Int64\(3\)\) \* Int64\(76\) \* \(\- Int64\(\-31\)\) \+ count\(\*\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) \* \(\- Int64\(3\)\) \* Int64\(76\) \* \(\- Int64\(\-31\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 95 * COUNT ( * ) * + 61 * - + 3 * + 76 * - - 31 + + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col0, 91 AS col0 query I rowsort @@ -38271,7 +38271,7 @@ SELECT ALL - ( ( + + 55 ) ) # 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\(\*\)\) AS col0" at position 1 have the 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 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -39068,7 +39068,7 @@ SELECT + COALESCE ( + - 58, - 49 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( - - COUNT ( * ) AS INTEGER ) + + 90 col0, 96 AS col0 query I rowsort @@ -39706,7 +39706,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\(\*\)\) \- 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 @@ -40433,7 +40433,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -40909,7 +40909,7 @@ SELECT ALL - 59 col1, + 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1326 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "\(\- coalesce\(Int64\(78\), \(\- Int64\(50\)\) \* \(\- count\(\*\)\)\)\) \* \(Int64\(\-17\) \+ Int64\(\-22\) / CASE Int64\(27\) \+ nullif\(Int64\(20\) \+ Int64\(94\) \* \(\- count\(\*\)\), CAST\(Int64\(29\) AS Float64\)\) \* Int64\(\-99\) WHEN \(\- count\(\*\)\) THEN CASE Int64\(20\) WHEN Int64\(17\) \+ Int64\(\-43\) THEN Int64\(91\) WHEN Int64\(0\) \* Int64\(46\) \- Int64\(73\) THEN NULL END \- Int64\(\-11\) ELSE Int64\(55\) \- Int64\(18\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "\(\- coalesce\(Int64\(78\), \(\- Int64\(50\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* \(Int64\(\-17\) \+ Int64\(\-22\) / CASE Int64\(27\) \+ nullif\(Int64\(20\) \+ Int64\(94\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), CAST\(Int64\(29\) AS Float64\)\) \* Int64\(\-99\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN CASE Int64\(20\) WHEN Int64\(17\) \+ Int64\(\-43\) THEN Int64\(91\) WHEN Int64\(0\) \* Int64\(46\) \- Int64\(73\) THEN NULL END \- Int64\(\-11\) ELSE Int64\(55\) \- Int64\(18\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 AS col0, - COALESCE ( ( 78 ), - + 50 * - COUNT ( * ) ) * ( - 17 + - 22 / CASE 27 + + NULLIF ( + 20 + + 94 * - COUNT ( * ), + CAST ( + 29 AS FLOAT8 ) ) * - 99 WHEN - COUNT ( * ) THEN CASE + 20 WHEN 17 + - 43 THEN 91 WHEN + 0 * + 46 - 73 THEN NULL END - - 11 ELSE 55 - 18 END ) AS col0 query I rowsort @@ -41009,7 +41009,7 @@ SELECT 96 * - 76 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\(\*\)\) AS col0" at position 0 and "Int64\(62\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\) \* \(\- 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, 62 * - COUNT ( * ) AS col0 query I rowsort label-7840 @@ -41604,7 +41604,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- count\(\*\)\) \- Int64\(30\) 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 "Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(30\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 8 ) * - + COUNT ( * ) - + 30 AS col0, 99 AS col0 query I rowsort @@ -42821,7 +42821,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4560 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(76\) \* \(\- \(\- 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 "Int64\(60\) \* Int64\(76\) \* \(\- \(\- 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 60 * 76 * - - COUNT ( * ) AS col2, 18 AS col2 query I rowsort @@ -42915,7 +42915,7 @@ SELECT 52 + + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "count\(\*\) \+ 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\(\-91\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 91 AS col0, COUNT ( * ) + + COUNT ( + 22 ) AS col0 query I rowsort label-8201 @@ -44065,7 +44065,7 @@ SELECT ALL 63 / - + 1 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2119 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(65\)\) \+ Int64\(\-79\) \* nullif\(\(\- nullif\(Int64\(26\), Int64\(97\) / \(\- Int64\(\-19\)\) \+ count\(\*\) \+ \(\- count\(\*\)\) \* count\(\*\) \+ Int64\(96\)\)\), Int64\(20\)\) 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 "max\(Int64\(65\)\) \+ Int64\(\-79\) \* nullif\(\(\- nullif\(Int64\(26\), Int64\(97\) / \(\- Int64\(\-19\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\)\)\), Int64\(20\)\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( ALL + 65 ) + + - 79 * + NULLIF ( + - NULLIF ( + 26, 97 / - - 19 + + COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) + 96 ), 20 ) AS col1, 52 AS col1 query I rowsort label-8421 @@ -44387,7 +44387,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\(\*\) AS col1" at position 1 have the 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 @@ -44797,7 +44797,7 @@ SELECT DISTINCT - NULLIF ( + + ( + 82 ), + 38 ) + - + 12 * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- max\(Int64\(84\)\)\), Int64\(62\) \+ count\(\*\)\) / count\(\*\) \+ \(\- coalesce\(Int64\(\-61\), Int64\(7\) / Int64\(\-12\)\)\) AS col0" at position 0 and "Int64\(81\) \+ 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 "nullif\(\(\- max\(Int64\(84\)\)\), Int64\(62\) \+ count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(Int64\(\-61\), Int64\(7\) / Int64\(\-12\)\)\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( - + MAX ( 84 ), 62 + COUNT ( * ) ) / COUNT ( * ) + + - COALESCE ( - 61, 7 / - 12 ) AS col0, 81 + - 93 AS col0 query I rowsort @@ -44834,7 +44834,7 @@ SELECT 58 * - 15 + - 67 - + COUNT ( * ) / + - CAST ( - COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(93\), Int64\(40\) \+ \(\- sum\(DISTINCT Int64\(\-98\)\)\)\) \* count\(\*\) \+ Int64\(14\) 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 "coalesce\(Int64\(93\), Int64\(40\) \+ \(\- sum\(DISTINCT Int64\(\-98\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( 93, 40 + - SUM ( DISTINCT - 98 ) ) * + COUNT ( * ) + + 14 AS col0, 48 AS col0 query I rowsort label-8569 @@ -46424,7 +46424,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\(\*\) AS col0" at position 1 have the 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 @@ -47890,7 +47890,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 col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -49922,7 +49922,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\(\*\) 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 @@ -50978,7 +50978,7 @@ SELECT ALL + - 3 - 71 - - 11 * + - 23 / - COUNT ( * ) + - 5 + - - 95 / 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(13\)\) \- Int64\(34\) AS col2" at position 0 and "Int64\(25\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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\(34\) 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 ( - + 13 ) - + 34 AS col2, + 25 + - - COUNT ( * ) AS col2 query I rowsort label-9748 @@ -51810,7 +51810,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\(\*\) 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 24d09c7..1d9cd14 100644 --- a/data/sqlite/random/expr/slt_good_37.slt +++ b/data/sqlite/random/expr/slt_good_37.slt @@ -723,7 +723,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\(\*\) 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 @@ -2251,7 +2251,7 @@ SELECT 53 + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 6638 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \- Int64\(67\) \+ Int64\(65\) AS col1" at position 0 and "Int64\(\-30\) \+ Int64\(\-61\) \* \(\- count\(\*\)\) \+ \(\- count\(\*\)\) \+ Int64\(56\) \* Int64\(59\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \- Int64\(67\) \+ Int64\(65\) AS col1" at position 0 and "Int64\(\-30\) \+ Int64\(\-61\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(56\) \* Int64\(59\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 36 - 67 + 65 AS col1, - 30 + + ( - 61 ) * + - COUNT ( * ) + + - COUNT ( * ) + + + 56 * 59 * + 2 col1 query II rowsort label-423 @@ -2792,7 +2792,7 @@ SELECT ALL 61 * COUNT ( + - ( + 87 ) ) AS col2 # Datafusion - Expected - 12 # Datafusion - Expected - -43 # Datafusion - Expected - -86 -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\(\-87\) 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\(12\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-87\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 12 AS col1, ( + COALESCE ( - ( + 43 ), + COUNT ( * ) ) ), COUNT ( * ) + - 87 AS col1 query II rowsort @@ -3352,7 +3352,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 291194 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(81\) \* Int64\(63\) \+ Int64\(\-64\) \+ \(\- Int64\(79\)\) \- Int64\(80\) \+ Int64\(27\) \+ \(\- count\(\*\)\) \+ count\(DISTINCT Int64\(65\)\) \- Int64\(\-25\) \* \(\- Int64\(39\)\) \* Int64\(\-44\) / Int64\(4\) AS col2" at position 0 and "sum\(DISTINCT \(\- CAST\(\(\- nullif\(Int64\(4\), Int64\(\-78\)\)\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(81\) \* Int64\(63\) \+ Int64\(\-64\) \+ \(\- Int64\(79\)\) \- Int64\(80\) \+ Int64\(27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(65\)\) \- Int64\(\-25\) \* \(\- Int64\(39\)\) \* Int64\(\-44\) / Int64\(4\) AS col2" at position 0 and "sum\(DISTINCT \(\- CAST\(\(\- nullif\(Int64\(4\), Int64\(\-78\)\)\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 55 * 81 * 63 + ( - 64 ) + - + 79 - + 80 + + + 27 + - ( ( + COUNT ( * ) ) ) + + + COUNT ( DISTINCT 65 ) - - 25 * - + 39 * + - 44 / 4 AS col2, SUM ( DISTINCT - CAST ( - + NULLIF ( 4, - 78 ) AS INTEGER ) ) AS col2 query I rowsort label-634 @@ -4354,7 +4354,7 @@ SELECT DISTINCT - 76 * + 52 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\(\*\)\) 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 ALL - COUNT ( * ) AS col1, - 70 AS col1 query I rowsort label-823 @@ -4892,7 +4892,7 @@ SELECT COUNT ( * ) / - 24 * 14 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - MIN ( ALL - - NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) ) AS col1, 65 AS col1 query I rowsort @@ -7378,7 +7378,7 @@ SELECT ( + - 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * 46 AS col0 query I rowsort @@ -8539,7 +8539,7 @@ SELECT + 58 / COALESCE ( + 3, - COUNT ( * ) ) * 95 + + COUNT ( * ) - MAX ( DISTI # Datafusion - Datafusion expected results: # Datafusion - Expected - -4928 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(77\), \(\- max\(Int64\(52\)\)\) / Int64\(77\)\) \* \(\- coalesce\(Int64\(64\), Int64\(\-31\) \* \(\- CAST\(Int64\(\-28\) AS Int32\)\) \+ count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(77\), \(\- max\(Int64\(52\)\)\) / Int64\(77\)\) \* \(\- coalesce\(Int64\(64\), Int64\(\-31\) \* \(\- CAST\(Int64\(\-28\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( + + 77, - MAX ( 52 ) / + 77 ) * - COALESCE ( + 64, - 31 * - CAST ( + - 28 AS INTEGER ) + + ( + + COUNT ( * ) ) ) AS col1, - 20 AS col1 query I rowsort label-1633 @@ -10134,7 +10134,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\(\*\)\) AS col1" at position 0 and "Int64\(\-57\) \* Int64\(13\) \+ count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -10229,7 +10229,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\(\*\) AS col2" at position 1 have 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 @@ -10361,7 +10361,7 @@ SELECT DISTINCT - - 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31049 # Datafusion - Expected - -972 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(44\) \* Int64\(\-22\) \* Int64\(\-32\) AS col2" at position 0 and "nullif\(Int64\(87\), count\(\*\)\) \* \(\- Int64\(21\)\) \- \(\- Int64\(\-19\)\) \* \(\- sum\(DISTINCT 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\(73\) \+ Int64\(44\) \* Int64\(\-22\) \* Int64\(\-32\) AS col2" at position 0 and "nullif\(Int64\(87\), count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(21\)\) \- \(\- Int64\(\-19\)\) \* \(\- sum\(DISTINCT Int64\(45\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 73 + + 44 * - 22 * - 32 col2, + NULLIF ( + 87, + COUNT ( * ) ) * - ( 21 ) - - - 19 * - SUM ( DISTINCT + 45 ) AS col2 # Datafusion - Datafusion expected results: @@ -11087,7 +11087,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\(\*\) 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 @@ -11457,7 +11457,7 @@ SELECT ALL - 91 + 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(70\) WHEN \(\- CASE Int64\(39\) WHEN Int64\(75\) THEN NULL WHEN Int64\(\-92\) \+ Int64\(98\) \* \(\- Int64\(41\)\) THEN \(\- Int64\(\-28\)\) \- Int64\(17\) END\) \* \(\- \(\- count\(\*\)\)\) THEN Int64\(12\) \+ \(\- Int64\(53\)\) / Int64\(\-68\) END \* \(\- Int64\(\-97\)\) \* Int64\(32\) AS col2" at position 0 and "CAST\(Int64\(25\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(70\) WHEN \(\- CASE Int64\(39\) WHEN Int64\(75\) THEN NULL WHEN Int64\(\-92\) \+ Int64\(98\) \* \(\- Int64\(41\)\) THEN \(\- Int64\(\-28\)\) \- Int64\(17\) END\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(12\) \+ \(\- Int64\(53\)\) / Int64\(\-68\) END \* \(\- Int64\(\-97\)\) \* Int64\(32\) AS col2" at position 0 and "CAST\(Int64\(25\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE + 70 WHEN + - CASE + + 39 WHEN + 75 THEN NULL WHEN - 92 + + 98 * - + 41 THEN ( - ( - 28 ) ) - + + 17 END * - - COUNT ( * ) THEN 12 + - ( + 53 ) / - 68 END * - - 97 * + 32 AS col2, CAST ( 25 AS INTEGER ) AS col2 query I rowsort @@ -11814,7 +11814,7 @@ SELECT DISTINCT - 24 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\(\-10\) / Int64\(63\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 + ( + - 10 ) / 63 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -11846,7 +11846,7 @@ SELECT - 61 * - 86 + + 15 * - 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \+ Int64\(32\) AS col0" at position 0 and "count\(\*\) \+ Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \+ Int64\(32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 49 + + 32 AS col0, + COUNT ( * ) + + 6 AS col0 query I rowsort @@ -12675,7 +12675,7 @@ SELECT ALL 46 + - + 46 * MAX ( + 31 ) # 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\(\*\)\) 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 query II rowsort label-2421 @@ -14178,7 +14178,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\(\*\) AS col2" at position 1 have the 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 @@ -16855,7 +16855,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\(\*\) AS col1" at position 0 and "\(\- coalesce\(Int64\(83\), \(\- 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 @@ -17260,7 +17260,7 @@ SELECT 87, 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -153343 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(30\) \+ Int64\(\-88\) \* \(\- coalesce\(Int64\(83\), Int64\(87\) / \(\- count\(\*\)\) \- Int64\(7\), Int64\(\-40\)\)\) \* \(\- Int64\(21\)\) \+ Int64\(33\) / 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\(\-95\) AS col1" at position 0 and "Int64\(30\) \+ Int64\(\-88\) \* \(\- coalesce\(Int64\(83\), Int64\(87\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(7\), Int64\(\-40\)\)\) \* \(\- Int64\(21\)\) \+ Int64\(33\) / Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 AS col1, 30 + - 88 * - COALESCE ( + 83, + 87 / - + COUNT ( * ) - + + 7, - 40 ) * - + 21 + 33 / 3 col1 query I rowsort @@ -18316,7 +18316,7 @@ SELECT - 26 * + - 21 AS col2, 62 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(98\) \* \(\- Int64\(86\)\) AS col1" at position 0 and "max\(Int64\(2\)\) \* 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\(\*\) / Int64\(98\) \* \(\- Int64\(86\)\) AS col1" at position 0 and "max\(Int64\(2\)\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / + 98 * - + 86 AS col1, MAX ( ALL + + 2 ) * + 85 col1 query I rowsort label-3495 @@ -18679,7 +18679,7 @@ SELECT ALL MIN ( ALL + 78 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* \(\- 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 "Int64\(99\) \* \(\- 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 99 * - COUNT ( * ) AS col1, - 49 AS col1 query I rowsort @@ -18723,7 +18723,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\(\*\) AS col2" at position 0 and "nullif\(Int64\(46\), count\(\*\)\) AS col2" at position 1 have the 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 @@ -19562,7 +19562,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\(\*\) 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 @@ -19876,7 +19876,7 @@ SELECT 1 + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 193148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(8\) \+ \(\- count\(\*\)\) \* \(\- Int64\(\-87\)\) \* Int64\(37\) \* \(\- 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\(56\) AS col1" at position 0 and "Int64\(8\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-87\)\) \* Int64\(37\) \* \(\- Int64\(60\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 AS col1, 8 + - COUNT ( * ) * - - 87 * + + 37 * + - ( + 60 ) col1 query II rowsort @@ -20936,7 +20936,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\(\*\) 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 @@ -21141,7 +21141,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\(\*\) AS col2" at position 1 have the 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 @@ -22636,7 +22636,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\(\*\) AS col1" at position 1 have the 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 @@ -22913,7 +22913,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\(52\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -23684,7 +23684,7 @@ SELECT - + 99 * + 91 * - 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1181 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- Int64\(14\)\) \+ Int64\(26\) \* Int64\(46\) AS col2" at position 0 and "Int64\(15\) \+ 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\(\*\)\) \+ \(\- Int64\(14\)\) \+ Int64\(26\) \* Int64\(46\) AS col2" at position 0 and "Int64\(15\) \+ Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) + - + 14 + + 26 * + 46 AS col2, 15 + - 35 AS col2 query I rowsort label-4519 @@ -24037,7 +24037,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -26719,7 +26719,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\(14\) / \(\- Int64\(38\)\) \+ 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 @@ -28762,7 +28762,7 @@ SELECT 52 * + COUNT ( - 26 ) + + + 63 + + 93 + 81 / + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -152000 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- Int64\(40\)\) \* Int64\(50\) AS col0" at position 0 and "count\(\*\) \* Int64\(\-91\) \+ 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\(76\) \* \(\- Int64\(40\)\) \* Int64\(50\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 * - + 40 * ( + 50 ) AS col0, + COUNT ( * ) * - 91 + + 9 col0 query I rowsort label-5495 @@ -29900,7 +29900,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\(\*\) 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 @@ -30016,7 +30016,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\(\*\)\) WHEN \(\- CAST\(Int64\(\-44\) AS Int32\)\) \* CAST\(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 @@ -31762,7 +31762,7 @@ SELECT ALL 54 + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) AS col1" at position 0 and "Int64\(\-35\) / Int64\(86\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(\-35\) / Int64\(86\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 42 ) col1, - 35 / + 86 * - - COUNT ( * ) AS col1 query I rowsort label-6064 @@ -32576,7 +32576,7 @@ SELECT - - 94 - - - 76 * 69 # Datafusion - Expected - -7 # Datafusion - Expected - -1176 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-42\) AS col1" at position 1 and "\(\- count\(\*\)\) \+ Int64\(34\) 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\(\-42\) AS col1" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(34\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 7, 28 * - 42 AS col1, - COUNT ( * ) + + 34 AS col1 query I rowsort @@ -32876,7 +32876,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\(\*\) AS col1" at position 1 have the 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 @@ -33331,7 +33331,7 @@ SELECT ALL + 91 * - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2713 # Datafusion - Expected - 1656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(nullif\(Int64\(\-98\), Int64\(64\)\), \(\- count\(\*\)\)\) \+ \(\- Int64\(\-39\)\) \- \(\- Int64\(42\)\) \* Int64\(66\) AS col0" at position 0 and "Int64\(\-50\) \+ count\(\*\) \- Int64\(27\) \- Int64\(4\) \* \(\- Int64\(\-61\)\) \- Int64\(\-61\) \* Int64\(8\) \- \(\- Int64\(\-31\)\) \* sum\(Int64\(\-48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(nullif\(Int64\(\-98\), Int64\(64\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-39\)\) \- \(\- Int64\(42\)\) \* Int64\(66\) AS col0" at position 0 and "Int64\(\-50\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(27\) \- Int64\(4\) \* \(\- Int64\(\-61\)\) \- Int64\(\-61\) \* Int64\(8\) \- \(\- Int64\(\-31\)\) \* sum\(Int64\(\-48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + NULLIF ( - 98, + 64 ), - COUNT ( * ) ) + - - 39 - - ( + 42 ) * + 66 AS col0, - 50 + + COUNT ( * ) - ( 27 ) - 4 * - - 61 - - 61 * 8 - - - 31 * + SUM ( - 48 ) AS col0 query I rowsort label-6361 @@ -34496,7 +34496,7 @@ SELECT 17 * - + 75 + 85 / - COALESCE ( - - 98, + COALESCE ( 87, - 63 + + AVG ( 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -12 -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\(\-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\(22\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 22 AS col1, - COUNT ( * ) + - 11 AS col1 query I rowsort label-6587 @@ -35993,7 +35993,7 @@ SELECT DISTINCT 10 * - COUNT ( - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(96\)\) AS col2" at position 0 and "nullif\(CASE nullif\(Int64\(\-83\), Int64\(\-50\) \* Int64\(50\) / Int64\(15\) \* \(\- Int64\(47\)\) \- Int64\(44\)\) WHEN Int64\(\-81\) \+ count\(\*\) \+ sum\(Int64\(\-71\)\) THEN Int64\(17\) WHEN Int64\(40\) \* Int64\(3\) THEN NULL END, Int64\(38\) \* Int64\(53\) \+ \(\- CAST\(Int64\(42\) \+ Int64\(\-33\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(96\)\) AS col2" at position 0 and "nullif\(CASE nullif\(Int64\(\-83\), Int64\(\-50\) \* Int64\(50\) / Int64\(15\) \* \(\- Int64\(47\)\) \- Int64\(44\)\) WHEN Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(Int64\(\-71\)\) THEN Int64\(17\) WHEN Int64\(40\) \* Int64\(3\) THEN NULL END, Int64\(38\) \* Int64\(53\) \+ \(\- CAST\(Int64\(42\) \+ Int64\(\-33\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 96 ) AS col2, NULLIF ( CASE + NULLIF ( - 83, - 50 * 50 / + 15 * - + 47 - 44 ) WHEN - 81 + + + COUNT ( * ) + SUM ( ALL - 71 ) THEN + 17 WHEN + 40 * + 3 THEN NULL END, 38 * 53 + - CAST ( 42 + - 33 AS INTEGER ) ) col2 query I rowsort @@ -36114,7 +36114,7 @@ SELECT + MAX ( ALL + 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-4\) \+ Int64\(13\) \+ Int64\(\-57\) 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\(\*\) \* Int64\(\-4\) \+ Int64\(13\) \+ Int64\(\-57\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 4 + 13 + - 57 AS col0, ( + 32 ) AS col0 query I rowsort @@ -39466,7 +39466,7 @@ SELECT 23 - + + COUNT ( * ) # 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\(\*\)\) 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 ALL - COUNT ( * ) col1, 24 AS col1 query II rowsort @@ -40670,7 +40670,7 @@ SELECT - + 21, 61 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) query I rowsort label-7764 @@ -40796,7 +40796,7 @@ SELECT ALL - 56, COUNT ( * ) + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(16\) 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\(\*\) \+ Int64\(16\) 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 + COUNT ( * ) + 16 AS col2, + 25 AS col2 query II rowsort label-7787 @@ -41752,7 +41752,7 @@ SELECT ALL SUM ( ALL 30 ) AS col2, + ( + COUNT ( * ) ) * + + MAX ( DISTINCT 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 45817 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "count\(\*\) \+ Int64\(83\) \* Int64\(23\) \* \(\- 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\(4\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(83\) \* Int64\(23\) \* \(\- Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 AS col1, + COUNT ( * ) + 83 * 23 * - - 24 AS col1 query I rowsort label-7970 @@ -45303,7 +45303,7 @@ SELECT + 21 * 74 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) \+ count\(\*\) \+ Int64\(71\) 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 "\(\- Int64\(45\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(71\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 45 + + COUNT ( * ) + + 71 AS col1, ( 52 ) AS col1 query I rowsort @@ -45731,7 +45731,7 @@ SELECT ALL 33 AS col0, 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "coalesce\(Int64\(37\), Int64\(76\), \(\- count\(\*\)\) \* Int64\(\-78\) \+ Int64\(\-66\) \+ 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\(85\) AS col2" at position 0 and "coalesce\(Int64\(37\), Int64\(76\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-78\) \+ Int64\(\-66\) \+ Int64\(76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 85 AS col2, + COALESCE ( 37, + 76, + - COUNT ( * ) * + - 78 + + - 66 + 76 ) AS col2 query I rowsort @@ -45915,7 +45915,7 @@ SELECT + ( - - 44 ) # 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 "\(\- nullif\(count\(\*\), \(\- Int64\(\-90\)\)\)\) \* Int64\(39\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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\(\-90\)\)\)\) \* 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 - NULLIF ( COUNT ( * ), - - 90 ) * + + 39 AS col0, - COUNT ( * ) AS col0 query I rowsort label-8765 @@ -46131,7 +46131,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 col2" at position 0 and "coalesce\(\(\- count\(\*\)\), Int64\(\-16\) \* 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\(0\) AS col2" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-16\) \* Int64\(92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 0 AS col2, COALESCE ( - COUNT ( * ), - 16 * 92 ) AS col2 query I rowsort label-8806 @@ -47059,7 +47059,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\(20\) \* Int64\(64\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -47521,7 +47521,7 @@ SELECT ALL - 24 + - ( + 2 ) - - 70 + + - 59 / MAX ( ALL - ( 39 ) ) AS col0, MAX # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) \* Int64\(\-15\) \+ Int64\(\-82\) AS col1" at position 0 and "Int64\(\-38\) \* Int64\(5\) \+ 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-15\) \+ Int64\(\-82\) AS col1" at position 0 and "Int64\(\-38\) \* Int64\(5\) \+ Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - + COUNT ( * ) * + - 15 + - 82 AS col1, - 38 * 5 + + ( - 45 ) col1 query I rowsort @@ -47623,7 +47623,7 @@ SELECT - 37 - - + 59, 48 * 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - -1755 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ Int64\(\-6\) \- Int64\(83\) / \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-44\) \+ Int64\(59\) \* \(\- 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\(64\) \+ Int64\(\-6\) \- Int64\(83\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-44\) \+ Int64\(59\) \* \(\- Int64\(29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 64 + + - 6 - + 83 / - COUNT ( * ) AS col0, - 44 + 59 * - + 29 AS col0 query I rowsort label-9087 @@ -48959,7 +48959,7 @@ SELECT - SUM ( - 63 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 165 # Datafusion - Expected - -238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- count\(\*\) \+ Int64\(16\) \+ Int64\(87\) AS col0" at position 0 and "nullif\(Int64\(\-82\), Int64\(48\) / Int64\(81\) \* Int64\(\-15\)\) \+ Int64\(\-13\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(16\) \+ Int64\(87\) AS col0" at position 0 and "nullif\(Int64\(\-82\), Int64\(48\) / Int64\(81\) \* Int64\(\-15\)\) \+ Int64\(\-13\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 - + COUNT ( * ) + + + 16 + 87 AS col0, NULLIF ( - 82, + + 48 / 81 * - 15 ) + - 13 * + + 12 AS col0 query I rowsort label-9342 @@ -49160,7 +49160,7 @@ SELECT DISTINCT + 15 * CAST ( + - 67 AS INTEGER ) - + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- count\(\*\)\) \* count\(\*\) \+ Int64\(\-30\) AS col2" at position 0 and "Int64\(98\) \+ CAST\(NULL AS Int32\) \* CASE Int64\(15\) WHEN Int64\(\-84\) THEN NULL WHEN Int64\(11\) \- Int64\(36\) THEN \(\- Int64\(\-49\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) AS col2" at position 0 and "Int64\(98\) \+ CAST\(NULL AS Int32\) \* CASE Int64\(15\) WHEN Int64\(\-84\) THEN NULL WHEN Int64\(11\) \- Int64\(36\) THEN \(\- Int64\(\-49\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 31 * - COUNT ( * ) * COUNT ( * ) + - 30 AS col2, + 98 + + CAST ( NULL AS INTEGER ) * + CASE + 15 WHEN + - 84 THEN NULL WHEN + 11 - 36 THEN - - 49 END AS col2 query I rowsort label-9380 @@ -50780,7 +50780,7 @@ SELECT 9 - - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0, 80 AS col0 query I rowsort label-9689 diff --git a/data/sqlite/random/expr/slt_good_38.slt b/data/sqlite/random/expr/slt_good_38.slt index 125a612..c008dd7 100644 --- a/data/sqlite/random/expr/slt_good_38.slt +++ b/data/sqlite/random/expr/slt_good_38.slt @@ -164,7 +164,7 @@ SELECT DISTINCT 29 * + + 89 * + 51 * + + COALESCE ( - ( - + 85 ), 13 / 87 ) / + # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(97\) \* max\(Int64\(34\)\) \* CASE CASE Int64\(\-80\) WHEN Int64\(32\) \+ count\(\*\) THEN Int64\(\-32\) / Int64\(47\) END WHEN Int64\(28\) THEN NULL ELSE Int64\(17\) END \+ CAST\(NULL AS Int32\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(97\) \* max\(Int64\(34\)\) \* CASE CASE Int64\(\-80\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-32\) / Int64\(47\) END WHEN Int64\(28\) THEN NULL ELSE Int64\(17\) END \+ CAST\(NULL AS Int32\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 7 AS col0, + 97 * MAX ( + 34 ) * + CASE + + CASE - 80 WHEN 32 + + COUNT ( * ) THEN + ( - 32 ) / + 47 END WHEN 28 THEN NULL ELSE + ( + 17 ) END + + CAST ( NULL AS INTEGER ) * + 99 AS col0 query I rowsort label-24 @@ -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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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 @@ -1830,7 +1830,7 @@ SELECT ALL - ( + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2907 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(57\), \(\- count\(\*\)\), Int64\(98\) \* Int64\(\-5\) \+ Int64\(8\) \+ Int64\(17\)\) \* \(\- nullif\(Int64\(\-51\), \(\- count\(\*\)\) \+ \(\- Int64\(\-34\)\)\)\) 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 "coalesce\(Int64\(57\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(98\) \* Int64\(\-5\) \+ Int64\(8\) \+ Int64\(17\)\) \* \(\- nullif\(Int64\(\-51\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-34\)\)\)\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( 57, - COUNT ( * ), 98 * + - 5 + + + 8 + 17 ) * - + NULLIF ( - 51, - COUNT ( * ) + - - 34 ) col1, 17 AS col1 query I rowsort label-342 @@ -2989,7 +2989,7 @@ SELECT DISTINCT - 49 * 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-37\) \+ Int64\(\-42\) AS col0" at position 0 and "Int64\(\-10\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-37\) \+ Int64\(\-42\) AS col0" at position 0 and "Int64\(\-10\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 37 + - 42 AS col0, - 10 / + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-563 @@ -3353,7 +3353,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\(\*\) 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 @@ -3681,7 +3681,7 @@ SELECT + 47 + - + COUNT ( * ) / - 11 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(40\) \* Int64\(29\) \* CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(40\) \* Int64\(29\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 84 ) * + + 40 * + 29 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2, + 94 AS col2 query I rowsort @@ -4210,7 +4210,7 @@ SELECT 19 + + 76 # 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\(\*\)\) AS col0" at position 1 have the 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 + ( 2 ) col0, - COUNT ( * ) AS col0 query II rowsort label-794 @@ -4268,7 +4268,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(98\) AS col0" at position 0 and "Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(98\) AS col0" at position 0 and "Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / + 98 AS col0, - 70 AS col0 query I rowsort label-805 @@ -4853,7 +4853,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\(\-27\) / count\(\*\) AS col0" at position 0 and "count\(\*\) \* coalesce\(\(\- \(\- 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 @@ -5142,7 +5142,7 @@ SELECT ALL 50 + + - 54 AS col0, 36 AS col0 # 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\(\-89\) 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\(\*\) / Int64\(\-89\) 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 ( * ) / + - 89 AS col2, 72 AS col2 query II rowsort @@ -5892,7 +5892,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\(\*\) AS col0" at position 1 have the 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 @@ -6476,7 +6476,7 @@ SELECT + ( + 19 ) / 21 * - + 32 + + 55 # 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\(\*\)\) 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 ( * ) col2, - 95 AS col2 query I rowsort label-1231 @@ -6570,7 +6570,7 @@ SELECT DISTINCT - 99 + - 97 # 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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) col2, COUNT ( * ) * 8 col2 query I rowsort label-1249 @@ -7133,7 +7133,7 @@ SELECT DISTINCT - 99 + + 68 - 8 + + 86 # Datafusion - Expected - 11 # Datafusion - Expected - -59 # Datafusion - Expected - -1264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-59\), Int64\(5\) \* Int64\(9\) \+ Int64\(24\) \+ \(\- CASE Int64\(4\) WHEN Int64\(36\) \* count\(\*\) THEN NULL WHEN Int64\(43\) THEN min\(Int64\(85\)\) \+ Int64\(35\) WHEN \(\- Int64\(9\)\) \* nullif\(Int64\(39\), CAST\(NULL AS Float64\) \- Int64\(32\)\) \+ Int64\(71\) THEN NULL ELSE NULL END\) / Int64\(46\)\) AS col0" at position 1 and "nullif\(\(\- count\(Int64\(\-43\)\)\), Int64\(\-94\) \+ Int64\(\-67\)\) \* \(\- CAST\(Int64\(54\) AS Int32\)\) \* Int64\(\-22\) / count\(\*\) \+ \(\- max\(DISTINCT Int64\(76\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-59\), Int64\(5\) \* Int64\(9\) \+ Int64\(24\) \+ \(\- CASE Int64\(4\) WHEN Int64\(36\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(43\) THEN min\(Int64\(85\)\) \+ Int64\(35\) WHEN \(\- Int64\(9\)\) \* nullif\(Int64\(39\), CAST\(NULL AS Float64\) \- Int64\(32\)\) \+ Int64\(71\) THEN NULL ELSE NULL END\) / Int64\(46\)\) AS col0" at position 1 and "nullif\(\(\- count\(Int64\(\-43\)\)\), Int64\(\-94\) \+ Int64\(\-67\)\) \* \(\- CAST\(Int64\(54\) AS Int32\)\) \* Int64\(\-22\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(DISTINCT Int64\(76\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 11 col1, NULLIF ( + - 59, 5 * 9 + 24 + - CASE 4 WHEN 36 * + COUNT ( * ) THEN NULL WHEN + 43 THEN + + MIN ( 85 ) + 35 WHEN - + 9 * NULLIF ( 39, + + CAST ( NULL AS FLOAT8 ) - + 32 ) + + 71 THEN NULL ELSE NULL END / + 46 ) AS col0, + NULLIF ( + - COUNT ( ALL - 43 ), - 94 + - 67 ) * - CAST ( + ( 54 ) AS INTEGER ) * - 22 / + + COUNT ( * ) + - MAX ( DISTINCT 76 ) AS col0 query I rowsort label-1358 @@ -7267,7 +7267,7 @@ SELECT COALESCE ( - 26, - + 13 / - 82 * - ( + + COUNT ( * ) ) + + COUNT ( * ) - # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 8265 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(\-22\) AS col1" at position 0 and "Int64\(95\) \* sum\(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\(\*\)\) / Int64\(\-22\) AS col1" at position 0 and "Int64\(95\) \* sum\(DISTINCT Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) / - 22 AS col1, 95 * SUM ( DISTINCT + 87 ) AS col1 query II rowsort @@ -7817,7 +7817,7 @@ SELECT COUNT ( * ) * COUNT ( * ) * + ( + + 41 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2981 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ Int64\(55\) \* \(\- Int64\(55\)\) \* \(\- 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 "Int64\(\-44\) \+ Int64\(55\) \* \(\- Int64\(55\)\) \* \(\- 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 DISTINCT - 44 + + 55 * - + 55 * - COUNT ( * ) AS col2, 66 col2 query II rowsort label-1488 @@ -11131,7 +11131,7 @@ SELECT ( + - 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ \(\- CAST\(\(\- Int64\(63\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(\(\- Int64\(63\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 34 AS col0, - COUNT ( * ) + - CAST ( + - ( + 63 ) AS INTEGER ) col0 query I rowsort label-2127 @@ -12481,7 +12481,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CASE Int64\(29\) WHEN \(\- Int64\(96\)\) \- Int64\(69\) THEN Int64\(78\) ELSE NULL END\) / Int64\(\-27\) AS col0" at position 0 and "count\(\*\) \+ \(\- 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 "sum\(CASE Int64\(29\) WHEN \(\- Int64\(96\)\) \- Int64\(69\) THEN Int64\(78\) ELSE NULL END\) / Int64\(\-27\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(59\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( CASE 29 WHEN - + 96 - 69 THEN + 78 ELSE NULL END ) / - 27 AS col0, COUNT ( * ) + + ( - + 59 ) AS col0 query II rowsort label-2383 @@ -12651,7 +12651,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\(\*\) 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 @@ -13050,7 +13050,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\(\*\) AS col0" at position 1 have the 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 @@ -13535,7 +13535,7 @@ SELECT + COUNT ( * ) + + 97 / - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -118 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \- \(\- coalesce\(\(\- Int64\(97\)\), \(\- Int64\(\-11\)\) \+ Int64\(6\), \(\- Int64\(\-1\)\), Int64\(61\)\)\) AS col2" at position 0 and "coalesce\(count\(\*\), Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \- \(\- coalesce\(\(\- Int64\(97\)\), \(\- Int64\(\-11\)\) \+ Int64\(6\), \(\- Int64\(\-1\)\), Int64\(61\)\)\) AS col2" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 21 - - + COALESCE ( - + 97, - - 11 + + 6, - - 1, 61 ) AS col2, + COALESCE ( + COUNT ( * ), - 77 ) AS col2 query I rowsort label-2582 @@ -13922,7 +13922,7 @@ SELECT DISTINCT + 35 + + 7 + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col0" at position 0 and "Int64\(67\) \+ \(\- count\(\*\)\) \* Int64\(\-35\) \+ Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col0" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-35\) \+ Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 27 AS col0, + 67 + - COUNT ( * ) * - 35 + - 94 AS col0 query I rowsort label-2656 @@ -14237,7 +14237,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\(\*\) \+ 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\(\*\)\)\) THEN \(\- Int64\(85\)\) END\) \* Int64\(\-19\) \* Int64\(53\) THEN NULL WHEN Int64\(0\) \* count\(\*\) THEN Int64\(31\) END \* count\(\*\) AS col2" at position 1 have the 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 @@ -15424,7 +15424,7 @@ SELECT 53 / - 27 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(20\) 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\(\*\) \* Int64\(20\) 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 ( * ) * 20 AS col2, 18 AS col2 query I rowsort @@ -15847,7 +15847,7 @@ SELECT - CAST ( - NULLIF ( + - 18, + 69 * 25 + + MIN ( DISTINCT 95 ) + + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -434 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \+ Int64\(19\) \* Int64\(\-12\) \+ Int64\(\-25\) \- \(\- Int64\(\-95\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(19\) \* Int64\(\-12\) \+ Int64\(\-25\) \- \(\- 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 - 86 + + 19 * - 12 + + - 25 - - - 95 AS col0, - COUNT ( * ) col0 query I rowsort label-3018 @@ -17130,7 +17130,7 @@ SELECT ALL 80 * 42, 7 * - - 91 + + 20 / 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\*\), Int64\(33\) \* count\(\*\) \* Int64\(\-6\) \* Int64\(26\), \(\- nullif\(Int64\(83\), Int64\(66\)\)\) \+ Int64\(\-73\)\) \- Int64\(\-99\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-6\) \* Int64\(26\), \(\- nullif\(Int64\(83\), Int64\(66\)\)\) \+ Int64\(\-73\)\) \- Int64\(\-99\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + COUNT ( * ), 33 * ( + COUNT ( * ) ) * - 6 * + 26, - NULLIF ( + + 83, + 66 ) + - 73 ) - - 99 AS col1, + CAST ( NULL AS INTEGER ) + - 85 col1 query I rowsort label-3258 @@ -17904,7 +17904,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\(\*\) 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 @@ -18519,7 +18519,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\(\*\) 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 @@ -19516,7 +19516,7 @@ SELECT ALL 19 * 45 * + COUNT ( * ) * 6 AS col1, + 62 + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(\-29\) \+ \(\- count\(\*\)\) \- Int64\(70\) \* CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-34\) \- Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(\-29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(70\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-34\) \- Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 + - 29 + + - COUNT ( * ) - + 70 * + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1, - 34 - + + 83 AS col1 query II rowsort @@ -20833,7 +20833,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\(\*\) AS col2" at position 1 have 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 @@ -21211,7 +21211,7 @@ SELECT DISTINCT + 91 AS col1, 46 / 70 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \+ Int64\(\-30\) \+ Int64\(\-44\) \- Int64\(39\) \- Int64\(16\) / CAST\(Int64\(\-51\) AS Int32\) \* Int64\(51\) \* Int64\(\-92\) / Int64\(79\) AS col1" at position 0 and "Int64\(89\) \* coalesce\(\(\- \(\- count\(\*\)\)\), count\(\*\) \+ Int64\(\-75\) \+ Int64\(55\), Int64\(\-63\) / Int64\(\-94\) \+ count\(\*\) \* Int64\(\-38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \+ Int64\(\-30\) \+ Int64\(\-44\) \- Int64\(39\) \- Int64\(16\) / CAST\(Int64\(\-51\) AS Int32\) \* Int64\(51\) \* Int64\(\-92\) / Int64\(79\) AS col1" at position 0 and "Int64\(89\) \* coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-75\) \+ Int64\(55\), Int64\(\-63\) / Int64\(\-94\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 41 + - 30 + - 44 - 39 - 16 / CAST ( - 51 AS INTEGER ) * + ( + + 51 ) * - 92 / + 79 AS col1, + 89 * + COALESCE ( - ( - + COUNT ( * ) ), + COUNT ( * ) + - 75 + + 55, - 63 / ( - 94 ) + COUNT ( * ) * - 38 ) AS col1 query II rowsort @@ -22106,7 +22106,7 @@ SELECT DISTINCT + - 75 * + COUNT ( * ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6373 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* \(\- Int64\(68\)\) \* count\(\*\) \- \(\- Int64\(19\)\) AS col0" at position 0 and "Int64\(\-12\) \- 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\(94\) \* \(\- Int64\(68\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(19\)\) AS col0" at position 0 and "Int64\(\-12\) \- Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 94 * - + 68 * + + COUNT ( * ) - - + 19 AS col0, - 12 - + + 31 AS col0 query II rowsort @@ -22639,7 +22639,7 @@ SELECT - COUNT ( + 88 ) + + 50 / + 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / coalesce\(\(\- coalesce\(Int64\(53\), Int64\(83\) \+ Int64\(\-1\)\)\), Int64\(32\)\) \* Int64\(\-50\) 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\(\*\) / coalesce\(\(\- coalesce\(Int64\(53\), Int64\(83\) \+ Int64\(\-1\)\)\), Int64\(32\)\) \* Int64\(\-50\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / + COALESCE ( ( + - COALESCE ( + + 53, + 83 + - 1 ) ), 32 ) * - 50 AS col0, 85 AS col0 query I rowsort @@ -22963,7 +22963,7 @@ SELECT + 71 * - COUNT ( ALL - 59 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -33582 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(30\) / count\(\*\) \+ Int64\(14\) \+ CAST\(Int64\(\-9\) AS Int32\) \* Int64\(\-84\) \* \(\- Int64\(55\)\) \+ \(\- \(\- \(\- Int64\(\-97\)\)\)\) \* \(\- \(\- Int64\(82\)\)\) \- \(\- sum\(DISTINCT Int64\(7\)\)\) / Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(30\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) \+ CAST\(Int64\(\-9\) AS Int32\) \* Int64\(\-84\) \* \(\- Int64\(55\)\) \+ \(\- \(\- \(\- Int64\(\-97\)\)\)\) \* \(\- \(\- Int64\(82\)\)\) \- \(\- sum\(DISTINCT Int64\(7\)\)\) / Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 43 AS col1, 30 / COUNT ( * ) + + 14 + CAST ( - 9 AS INTEGER ) * - 84 * + ( - + 55 ) + - - ( - - 97 ) * + - ( - + 82 ) - - + SUM ( DISTINCT 7 ) / 87 AS col1 query I rowsort label-4375 @@ -24351,7 +24351,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\(\*\) AS Int32\)\) \+ Int64\(46\) THEN Int64\(\-49\) ELSE NULL END \* Int64\(\-20\) \+ Int64\(77\) \+ count\(\*\) AS col1" at position 1 have 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 @@ -24689,7 +24689,7 @@ SELECT 40 col1, + 32 + + ( 29 ) + + - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - ( - CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * ) AS col2, - 22 AS col2 query II rowsort @@ -25105,7 +25105,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\(\*\) 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 @@ -25162,7 +25162,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\(\*\) AS col1" at position 1 have the 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 @@ -25387,7 +25387,7 @@ SELECT ALL 24 col0, + CAST ( NULL AS INTEGER ) AS col0 # Datafusion - Expected - 76 # Datafusion - Expected - 92 # Datafusion - Expected - 33 -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\(43\) \+ Int64\(76\) 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\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \+ Int64\(76\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 76 AS col2, + 91 - - COUNT ( * ), - COUNT ( * ) * + 43 + + 76 AS col2 query I rowsort @@ -25853,7 +25853,7 @@ SELECT DISTINCT - 69 * + 94 * + 34 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1050 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(75\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-12\), Int64\(89\) \* Int64\(\-61\) \* Int64\(69\) \- Int64\(70\) \+ Int64\(\-69\) \+ count\(\*\), \(\- \(\- Int64\(46\)\)\) \* \(\- Int64\(16\)\) \* Int64\(\-31\) \* max\(Int64\(\-70\)\) \+ Int64\(37\) \- 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\(14\) \* Int64\(75\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-12\), Int64\(89\) \* Int64\(\-61\) \* Int64\(69\) \- Int64\(70\) \+ Int64\(\-69\) \+ count\(Int64\(1\)\) AS count\(\*\), \(\- \(\- Int64\(46\)\)\) \* \(\- Int64\(16\)\) \* Int64\(\-31\) \* max\(Int64\(\-70\)\) \+ Int64\(37\) \- Int64\(33\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 14 * 75 col2, - COALESCE ( - 12, + + 89 * - 61 * + 69 - + + 70 + - 69 + + COUNT ( * ), - ( - + 46 ) * + - ( + 16 ) * + - 31 * + MAX ( + ( - 70 ) ) + 37 - + 33 ) col2 query I rowsort label-4923 @@ -26085,7 +26085,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\(\*\) \+ coalesce\(\(\- Int64\(\-37\)\), Int64\(43\)\) \+ nullif\(\(\- Int64\(19\)\), max\(DISTINCT Int64\(66\)\) \+ Int64\(25\)\) \* \(\- Int64\(15\)\) \+ count\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -27034,7 +27034,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\(\*\) 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 @@ -27416,7 +27416,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\(\*\) 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 @@ -27590,7 +27590,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\(\*\) AS col0" at position 1 have the 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 @@ -27943,7 +27943,7 @@ SELECT ALL + - 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -127 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* count\(\*\) \- \(\- Int64\(\-93\)\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-93\)\) 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 - 34 * COUNT ( * ) - - - 93 AS col0, + 83 AS col0 query I rowsort @@ -28480,7 +28480,7 @@ SELECT ALL - 44 - - + 90 + + 38 / 66 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8102 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(82\)\)\) \* Int64\(\-95\) \+ Int64\(39\) \* \(\- \(\- nullif\(Int64\(8\), \(\- count\(\*\)\)\)\)\) AS col2" at position 0 and "count\(\*\) \- Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(82\)\)\) \* Int64\(\-95\) \+ Int64\(39\) \* \(\- \(\- nullif\(Int64\(8\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( ALL + 82 ) * - 95 + + 39 * - - NULLIF ( 8, + - COUNT ( * ) ) col2, + COUNT ( * ) - + 83 AS col2 query I rowsort label-5427 @@ -28491,7 +28491,7 @@ SELECT ALL 76 * + MIN ( + 45 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE count\(\*\) WHEN Int64\(\-17\) THEN Int64\(73\) ELSE sum\(Int64\(\-8\)\) \* \(\- \(\- count\(\*\)\)\) END\) \- Int64\(24\) \- \(\- Int64\(\-11\)\) 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 "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-17\) THEN Int64\(73\) ELSE sum\(Int64\(\-8\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END\) \- Int64\(24\) \- \(\- Int64\(\-11\)\) AS col0" at position 0 and "\(\- \(\- Int64\(69\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE COUNT ( * ) WHEN - 17 THEN 73 ELSE SUM ( - 8 ) * - - COUNT ( * ) END - + 24 - - - 11 AS col0, - ( - + 69 ) AS col0 query II rowsort @@ -28986,7 +28986,7 @@ SELECT DISTINCT MIN ( ALL + 80 ) AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - -94 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(4\) \* CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\) AS col2" at position 1 and "Int64\(\-30\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(4\) \* CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 and "Int64\(\-30\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), ( + - 98 ) + + 4 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2, - 30 AS col2 query I rowsort label-5521 @@ -29314,7 +29314,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85560 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(\-15\) \* Int64\(62\) AS col1" at position 0 and "count\(\*\) \+ \(\- coalesce\(Int64\(\-25\), \(\- count\(\*\)\) \* Int64\(43\) \* Int64\(71\) \+ Int64\(\-99\) \+ \(\- coalesce\(Int64\(71\), Int64\(73\)\)\) \* Int64\(\-19\) \* Int64\(39\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(\-15\) \* Int64\(62\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(Int64\(\-25\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \* Int64\(71\) \+ Int64\(\-99\) \+ \(\- coalesce\(Int64\(71\), Int64\(73\)\)\) \* Int64\(\-19\) \* Int64\(39\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 92 * - 15 * + 62 AS col1, + COUNT ( * ) + - + COALESCE ( - 25, - + COUNT ( * ) * + 43 * 71 + - 99 + - + COALESCE ( + 71, + 73 ) * + ( - 19 ) * 39 ) AS col1 query II rowsort label-5585 @@ -31956,7 +31956,7 @@ SELECT DISTINCT NULLIF ( - 99, 68 + 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -121581 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-19\) \* Int64\(\-79\) \* \(\- 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\(\-19\) \* Int64\(\-79\) \* \(\- Int64\(81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, - 19 * - 79 * - + 81 AS col1 query I rowsort @@ -32485,7 +32485,7 @@ SELECT + + COUNT ( DISTINCT + 65 ) * + 80 * 1 + - 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) / Int64\(\-49\) \- Int64\(65\) AS col2" at position 0 and "count\(\*\) \+ \(\- min\(DISTINCT 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\(11\) / Int64\(\-49\) \- Int64\(65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(DISTINCT Int64\(11\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 / - 49 - + 65 AS col2, COUNT ( * ) + - MIN ( DISTINCT + + 11 ) AS col2 query I rowsort @@ -32779,7 +32779,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\(\*\) AS col0" at position 1 have the 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 @@ -33865,7 +33865,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\(\*\) AS col1" at position 0 and "Int64\(35\) \* \(\- CASE Int64\(93\) WHEN \(\- Int64\(26\)\) THEN \(\- 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: @@ -34044,7 +34044,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\(\*\) AS col1" at position 1 have 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 @@ -34848,7 +34848,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\(\*\) 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 @@ -34884,7 +34884,7 @@ SELECT ALL 83 * - 93 + + + COALESCE ( - - 49, 13 * - 47 ) * + 97 # 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\(8\) \* Int64\(75\) / Int64\(15\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(75\) / 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 8 * + 75 / + 15 AS col2, - COUNT ( * ) AS col2 query I rowsort label-6645 @@ -36641,7 +36641,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -3588 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \+ Int64\(\-98\) AS col1" at position 0 and "Int64\(63\) \+ Int64\(59\) \+ Int64\(50\) \- Int64\(\-80\) \* count\(\*\) \* \(\- coalesce\(Int64\(49\) \+ Int64\(\-2\), 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\(36\) \+ Int64\(\-98\) AS col1" at position 0 and "Int64\(63\) \+ Int64\(59\) \+ Int64\(50\) \- Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(Int64\(49\) \+ Int64\(\-2\), Int64\(3\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 36 + - 98 AS col1, 63 + 59 + 50 - - 80 * + COUNT ( * ) * - COALESCE ( + 49 + - 2, 3 ) AS col1 query I rowsort label-6987 @@ -38444,7 +38444,7 @@ SELECT + + NULLIF ( 50, - AVG ( + 3 ) ) + + 89 + - - 77 * - + COUNT ( + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "count\(\*\) \+ 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\(20\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 20 AS col2, COUNT ( * ) + - 70 AS col2 query I rowsort label-7331 @@ -38546,7 +38546,7 @@ SELECT MAX ( DISTINCT - 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -4116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(45\) \+ count\(\*\) \+ Int64\(45\) \* Int64\(\-98\) \- Int64\(\-88\) \+ Int64\(80\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(45\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) \* Int64\(\-98\) \- Int64\(\-88\) \+ Int64\(80\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 42 AS col1, + 45 + COUNT ( * ) + + 45 * - 98 - - 88 + 80 * 2 AS col1 query I rowsort @@ -38674,7 +38674,7 @@ SELECT ALL 85 + - + 25 + - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3017 # Datafusion - Expected - 1145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* count\(\*\) \+ Int64\(\-46\) \+ Int64\(6\) \+ CAST\(\(\- \(\- Int64\(44\)\)\) AS Int32\) \+ Int64\(15\) \+ Int64\(33\) \* \(\- count\(Int64\(56\)\)\) \* Int64\(91\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(75\) \* Int64\(15\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-46\) \+ Int64\(6\) \+ CAST\(\(\- \(\- Int64\(44\)\)\) AS Int32\) \+ Int64\(15\) \+ Int64\(33\) \* \(\- count\(Int64\(56\)\)\) \* Int64\(91\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(75\) \* Int64\(15\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 26 ) * COUNT ( * ) + - 46 + 6 + + CAST ( - ( - + 44 ) AS INTEGER ) + 15 + + 33 * + - COUNT ( + ( + 56 ) ) * + 91 + - 7 AS col2, 75 * + 15 + + 20 AS col2 query I rowsort label-7375 @@ -38894,7 +38894,7 @@ SELECT + + 72 - 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1954 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* max\(DISTINCT \(\- Int64\(\-90\)\)\) \+ Int64\(\-73\) \* Int64\(28\) 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\(\*\) \* max\(DISTINCT \(\- Int64\(\-90\)\)\) \+ Int64\(\-73\) \* Int64\(28\) 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 ( * ) * MAX ( DISTINCT - - 90 ) + - 73 * + 28 col0, - 48 AS col0 query I rowsort @@ -39055,7 +39055,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\(\*\) AS col1" at position 0 and "Int64\(79\) \+ Int64\(12\) \* coalesce\(Int64\(59\), Int64\(94\) \* \(\- \(\- Int64\(\-10\)\)\) \* count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -39097,7 +39097,7 @@ SELECT + CAST ( - 57 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(66\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(66\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 91 AS col0, 66 * - - COUNT ( * ) AS col0 query I rowsort @@ -39335,7 +39335,7 @@ SELECT DISTINCT - - 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \- \(\- Int64\(11\)\) \+ Int64\(94\) AS col0" at position 0 and "Int64\(38\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(11\)\) \+ Int64\(94\) 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 ALL - 99 - - + 11 + 94 AS col0, + 38 * - - COUNT ( * ) AS col0 query I rowsort label-7502 @@ -39948,7 +39948,7 @@ SELECT DISTINCT + - 4 * - COUNT ( * ) / 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -522 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) / Int64\(\-75\) \+ Int64\(6\) \* count\(\*\) \* min\(DISTINCT \(\- Int64\(87\)\)\) AS col2" at position 0 and "Int64\(37\) \+ 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\(59\) / Int64\(\-75\) \+ Int64\(6\) \* count\(Int64\(1\)\) AS count\(\*\) \* min\(DISTINCT \(\- Int64\(87\)\)\) AS col2" at position 0 and "Int64\(37\) \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 / - 75 + 6 * COUNT ( * ) * MIN ( DISTINCT - + 87 ) AS col2, + 37 + + + 75 AS col2 query I rowsort @@ -40465,7 +40465,7 @@ SELECT ALL + - NULLIF ( COUNT ( * ), + 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* count\(\*\) \+ Int64\(58\) 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 "Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 10 * COUNT ( * ) + + 58 AS col0, 86 AS col0 query I rowsort @@ -40601,7 +40601,7 @@ SELECT ALL COUNT ( * ) * + 70 AS col1 # Datafusion - Expected - -2 # Datafusion - Expected - 37 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) / CASE Int64\(33\) WHEN Int64\(44\) THEN \(\- Int64\(71\)\) ELSE Int64\(\-22\) \* \(\- \(\- CASE \(\- \(\- \(\- \(\- count\(\*\)\)\)\)\) WHEN Int64\(6\) / Int64\(\-70\) THEN \(\- Int64\(\-77\)\) ELSE \(\- count\(\*\)\) END\)\) END 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\(\-49\) / CASE Int64\(33\) WHEN Int64\(44\) THEN \(\- Int64\(71\)\) ELSE Int64\(\-22\) \* \(\- \(\- CASE \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) WHEN Int64\(6\) / Int64\(\-70\) THEN \(\- Int64\(\-77\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\)\) END AS col0" at position 0 and "Int64\(18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 49 / CASE + 33 WHEN + 44 THEN - + 71 ELSE - 22 * - ( - CASE - - ( - - COUNT ( * ) ) WHEN 6 / - 70 THEN - - 77 ELSE - COUNT ( * ) END ) END AS col0, 37 col2, 18 AS col0 query I rowsort label-7744 @@ -40711,7 +40711,7 @@ SELECT DISTINCT CASE - 20 WHEN + - 39 * + 8 THEN - 28 ELSE COUNT ( * ) END * + + # Datafusion - Expected - 16 # Datafusion - Expected - -16 # Datafusion - Expected - 4 -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\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) 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 ALL 16 AS col0, - COUNT ( * ) * + 16 AS col0, 4 query I rowsort @@ -40885,7 +40885,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\(\*\) 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 @@ -41774,7 +41774,7 @@ SELECT NULLIF ( - 23, COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2791 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* \(\- Int64\(\-30\)\) \+ coalesce\(Int64\(\-29\), \(\- count\(\*\)\) \* Int64\(0\)\) 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\(94\) \* \(\- Int64\(\-30\)\) \+ coalesce\(Int64\(\-29\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(0\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 * - - 30 + + + COALESCE ( - 29, - COUNT ( * ) * - 0 ) AS col0, + 66 col0 query I rowsort label-7967 @@ -42070,7 +42070,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\(\*\) AS col1" at position 1 have the 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 @@ -43888,7 +43888,7 @@ SELECT DISTINCT - ( - - 59 ) * + 19 * + - 20 * - + NULLIF ( - 63, + + 90 ), - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6678 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(48\) WHEN \(\- Int64\(40\)\) \+ \(\- Int64\(\-5\)\) THEN Int64\(68\) WHEN CASE Int64\(96\) WHEN \(\- count\(\*\)\) \+ Int64\(38\) THEN Int64\(6\) \* Int64\(91\) ELSE NULL END THEN Int64\(98\) END AS Int32\) \+ Int64\(94\) AS col0" at position 0 and "\(\- Int64\(\-35\)\) \+ min\(Int64\(\-73\)\) \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(48\) WHEN \(\- Int64\(40\)\) \+ \(\- Int64\(\-5\)\) THEN Int64\(68\) WHEN CASE Int64\(96\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(38\) THEN Int64\(6\) \* Int64\(91\) ELSE NULL END THEN Int64\(98\) END AS Int32\) \+ Int64\(94\) AS col0" at position 0 and "\(\- Int64\(\-35\)\) \+ min\(Int64\(\-73\)\) \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + + CASE 48 WHEN - ( + 40 ) + - - 5 THEN + + 68 WHEN + CASE + 96 WHEN - COUNT ( * ) + 38 THEN 6 * 91 ELSE NULL END THEN + 98 END AS INTEGER ) + 94 AS col0, - ( - 35 ) + + MIN ( - 73 ) * - 91 col0 query I rowsort label-8368 @@ -46156,7 +46156,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\(\*\) AS col0" at position 1 have the 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 @@ -46298,7 +46298,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-96\) \* Int64\(58\) \+ Int64\(46\) \+ Int64\(\-40\) THEN NULL WHEN Int64\(12\) THEN Int64\(82\) \* Int64\(\-88\) WHEN Int64\(\-62\) \* Int64\(73\) THEN Int64\(49\) ELSE \(\- \(\- max\(Int64\(\-55\)\)\)\) / count\(\*\) \+ Int64\(\-19\) END / Int64\(62\) \- 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\(27\) AS col2" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-96\) \* Int64\(58\) \+ Int64\(46\) \+ Int64\(\-40\) THEN NULL WHEN Int64\(12\) THEN Int64\(82\) \* Int64\(\-88\) WHEN Int64\(\-62\) \* Int64\(73\) THEN Int64\(49\) ELSE \(\- \(\- max\(Int64\(\-55\)\)\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\) END / Int64\(62\) \- Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 col2, CASE + ( 58 ) WHEN + - 96 * + 58 + 46 + - 40 THEN NULL WHEN 12 THEN + 82 * - 88 WHEN - 62 * 73 THEN 49 ELSE - ( - MAX ( ALL - 55 ) ) / + ( + COUNT ( * ) ) + - 19 END / 62 - + 92 AS col2 query I rowsort @@ -47259,7 +47259,7 @@ SELECT DISTINCT + 41 + + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(24\) \+ CAST\(NULL AS Int32\) / \(\- Int64\(\-46\)\) \* Int64\(\-38\) \+ CASE count\(\*\) WHEN \(\- nullif\(Int64\(0\), count\(\*\) \+ Int64\(\-41\)\)\) \+ Int64\(\-26\) \+ CASE \(\- count\(\*\)\) WHEN Int64\(\-48\) THEN \(\- \(\- count\(\*\)\)\) \* nullif\(Int64\(\-40\) \* Int64\(\-37\) \- Int64\(\-26\), Int64\(\-64\) \+ sum\(Int64\(89\)\) \* sum\(DISTINCT Int64\(26\)\)\) ELSE Int64\(9\) \* Int64\(\-2\) END THEN Int64\(28\) WHEN Int64\(\-14\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(24\) \+ CAST\(NULL AS Int32\) / \(\- Int64\(\-46\)\) \* Int64\(\-38\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- nullif\(Int64\(0\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-41\)\)\) \+ Int64\(\-26\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-48\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* nullif\(Int64\(\-40\) \* Int64\(\-37\) \- Int64\(\-26\), Int64\(\-64\) \+ sum\(Int64\(89\)\) \* sum\(DISTINCT Int64\(26\)\)\) ELSE Int64\(9\) \* Int64\(\-2\) END THEN Int64\(28\) WHEN Int64\(\-14\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 50 AS col0, 24 + + CAST ( NULL AS INTEGER ) / - - 46 * + - 38 + + CASE COUNT ( * ) WHEN - NULLIF ( - 0, COUNT ( * ) + - 41 ) + - 26 + + CASE - COUNT ( * ) WHEN - 48 THEN - - COUNT ( * ) * NULLIF ( - 40 * - 37 - - 26, - 64 + SUM ( 89 ) * SUM ( DISTINCT 26 ) ) ELSE 9 * - 2 END THEN 28 WHEN - 14 THEN NULL END AS col0 query I rowsort label-9019 @@ -48380,7 +48380,7 @@ SELECT DISTINCT - 90 / + - 84 AS col1, + NULLIF ( 69, - 25 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(11\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(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 ALL 37 + + 11 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -48764,7 +48764,7 @@ SELECT 86 * 28 * - 8, COALESCE ( - + 77, + COUNT ( * ) ) * - - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "Int64\(15\) \+ count\(coalesce\(Int64\(20\), Int64\(31\) \* Int64\(\-24\), Int64\(39\)\)\) \+ Int64\(67\) \- \(\- coalesce\(Int64\(\-77\), Int64\(8\) \* Int64\(3\), Int64\(23\)\)\) \* coalesce\(count\(\*\), \(\- sum\(DISTINCT 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\(\-13\) AS col1" at position 0 and "Int64\(15\) \+ count\(coalesce\(Int64\(20\), Int64\(31\) \* Int64\(\-24\), Int64\(39\)\)\) \+ Int64\(67\) \- \(\- coalesce\(Int64\(\-77\), Int64\(8\) \* Int64\(3\), Int64\(23\)\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- sum\(DISTINCT Int64\(9\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 13 AS col1, 15 + + COUNT ( + COALESCE ( + ( 20 ), + + 31 * - 24, 39 ) ) + + 67 - - COALESCE ( - 77, 8 * 3, + 23 ) * COALESCE ( + COUNT ( * ), + - SUM ( DISTINCT + 9 ) ) AS col1 query I rowsort label-9304 @@ -49098,7 +49098,7 @@ SELECT ALL - 48 * - ( COUNT ( * ) ) + + COALESCE ( 11, + - 86 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / Int64\(75\) AS col1" at position 0 and "Int64\(77\) \* Int64\(\-1\) \+ Int64\(77\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(75\) AS col1" at position 0 and "Int64\(77\) \* Int64\(\-1\) \+ Int64\(77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 48 / 75 AS col1, + 77 * - 1 + 77 * - COUNT ( * ) AS col1 query II rowsort label-9368 @@ -49783,7 +49783,7 @@ SELECT + 88 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5186 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- Int64\(87\)\) \* Int64\(59\) / count\(\*\) \+ Int64\(\-83\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(5\) \- 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\(\*\)\) \+ \(\- Int64\(87\)\) \* Int64\(59\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-83\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(5\) \- Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) + - + 87 * + 59 / + COUNT ( * ) + - 83 + + 31 col1, + 5 - 29 AS col1 query I rowsort label-9500 @@ -50016,7 +50016,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 232 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(4\) \+ Int64\(0\) \+ Int64\(86\) \- Int64\(76\) \* \(\- 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 "Int64\(66\) \+ Int64\(4\) \+ Int64\(0\) \+ Int64\(86\) \- Int64\(76\) \* \(\- 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 + 66 + 4 + - 0 + + + 86 - + 76 * - COUNT ( * ) AS col1, + 80 AS col1 query II rowsort @@ -50521,7 +50521,7 @@ SELECT COUNT ( * ) * - 1 / + COUNT ( * ) # 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\(\*\)\) 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 query I rowsort label-9638 @@ -50863,7 +50863,7 @@ SELECT - 4 AS col2, + 82 * + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5422 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \- \(\- count\(\*\)\) \+ Int64\(\-16\) \+ Int64\(76\) \* Int64\(72\) \* \(\- 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\(65\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-16\) \+ Int64\(76\) \* Int64\(72\) \* \(\- 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 + 65 - + - COUNT ( * ) + - 16 + + 76 * 72 * - COUNT ( * ) col0, - 30 AS col0 query I rowsort label-9703 @@ -51241,7 +51241,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\(\*\) 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 fb2ff7b..97c03bf 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\(3\) THEN Int64\(\-47\) \* Int64\(36\) \* Int64\(\-70\) \* avg\(Int64\(\-61\)\) \* Int64\(77\) WHEN Int64\(33\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-87\) \+ \(\- count\(\*\)\) \* \(\- Int64\(\-86\)\) THEN NULL END\) \+ Int64\(78\) \* CASE Int64\(2\) WHEN Int64\(84\) THEN \(\- CAST\(Int64\(34\) AS Int32\)\) \* Int64\(81\) END \* count\(\*\) AS col2" at position 1 have the 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 @@ -2890,7 +2890,7 @@ SELECT DISTINCT + 11 * - - ( 77 ) + + 61 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(16\) 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\(\*\) \+ Int64\(16\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + 16 col0, 77 col0 query I rowsort @@ -3805,7 +3805,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\(\*\) 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 @@ -3896,13 +3896,13 @@ 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\(\*\) AS col0" at position 1 have the 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: # Datafusion - Expected - -10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ Int64\(50\) \- Int64\(0\) AS col1" at position 0 and "Int64\(77\) \* Int64\(\-80\) \+ Int64\(61\) \+ CASE \(\- \(\- CASE Int64\(\-63\) WHEN \(\- Int64\(8\)\) \* Int64\(30\) \+ Int64\(\-16\) \* Int64\(50\) \+ Int64\(44\) THEN NULL WHEN Int64\(51\) \* \(\- sum\(Int64\(56\)\)\) THEN Int64\(8\) \* Int64\(99\) ELSE Int64\(53\) \+ Int64\(3\) END\)\) WHEN Int64\(93\) THEN avg\(DISTINCT \(\- Int64\(88\)\)\) \* Int64\(\-79\) \+ Int64\(\-27\) \* Int64\(72\) WHEN Int64\(4\) THEN NULL END \- count\(\*\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ Int64\(50\) \- Int64\(0\) AS col1" at position 0 and "Int64\(77\) \* Int64\(\-80\) \+ Int64\(61\) \+ CASE \(\- \(\- CASE Int64\(\-63\) WHEN \(\- Int64\(8\)\) \* Int64\(30\) \+ Int64\(\-16\) \* Int64\(50\) \+ Int64\(44\) THEN NULL WHEN Int64\(51\) \* \(\- sum\(Int64\(56\)\)\) THEN Int64\(8\) \* Int64\(99\) ELSE Int64\(53\) \+ Int64\(3\) END\)\) WHEN Int64\(93\) THEN avg\(DISTINCT \(\- Int64\(88\)\)\) \* Int64\(\-79\) \+ Int64\(\-27\) \* Int64\(72\) WHEN Int64\(4\) THEN NULL END \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 60 + 50 - 0 AS col1, 77 * - 80 + 61 + CASE - - ( CASE - 63 WHEN - ( 8 ) * 30 + - 16 * + + 50 + 44 THEN NULL WHEN + 51 * - SUM ( + 56 ) THEN + 8 * + 99 ELSE 53 + 3 END ) WHEN ( 93 ) THEN AVG ( DISTINCT - ( ( 88 ) ) ) * - 79 + - 27 * 72 WHEN 4 THEN NULL END - COUNT ( * ) * - 47 AS col1 query I rowsort label-745 @@ -4144,7 +4144,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\(\*\) 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 @@ -5683,7 +5683,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\(\*\) AS col1" at position 0 and "Int64\(57\) \* \(\- 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 @@ -6095,7 +6095,7 @@ SELECT ALL + 2 * - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(20\) \+ count\(\*\) \+ count\(\*\) \+ Int64\(85\) \+ count\(Int64\(\-83\)\) \* 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\) AS col0" at position 0 and "Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(85\) \+ count\(Int64\(\-83\)\) \* Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 29 AS col0, 20 + COUNT ( * ) + + COUNT ( * ) + + 85 + COUNT ( - 83 ) * - 78 AS col0 query II rowsort @@ -6288,7 +6288,7 @@ SELECT - 81 * ( - 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1579 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* Int64\(29\) \+ Int64\(\-71\) AS col1" at position 0 and "Int64\(92\) / \(\- Int64\(\-9\)\) \+ Int64\(\-49\) \* count\(\*\) \+ \(\- nullif\(count\(Int64\(\-29\)\), \(\- \(\- CASE Int64\(52\) WHEN count\(\*\) \* Int64\(\-84\) THEN \(\- Int64\(\-81\)\) WHEN \(\- count\(\*\)\) THEN \(\- coalesce\(count\(\*\), Int64\(\-66\) \+ Int64\(19\) \+ Int64\(48\), min\(Int64\(\-8\)\) \+ Int64\(56\) \* sum\(DISTINCT Int64\(\-94\)\) \* Int64\(80\)\)\) \+ Int64\(92\) WHEN Int64\(\-51\) THEN NULL ELSE NULL END\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* Int64\(29\) \+ Int64\(\-71\) AS col1" at position 0 and "Int64\(92\) / \(\- Int64\(\-9\)\) \+ Int64\(\-49\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(count\(Int64\(\-29\)\), \(\- \(\- CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-84\) THEN \(\- Int64\(\-81\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-66\) \+ Int64\(19\) \+ Int64\(48\), min\(Int64\(\-8\)\) \+ Int64\(56\) \* sum\(DISTINCT Int64\(\-94\)\) \* Int64\(80\)\)\) \+ Int64\(92\) WHEN Int64\(\-51\) THEN NULL ELSE NULL END\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 52 * 29 + - 71 AS col1, 92 / - - 9 + + - 49 * + + COUNT ( * ) + - NULLIF ( + COUNT ( - 29 ), - - CASE + 52 WHEN + COUNT ( * ) * - 84 THEN - - 81 WHEN - COUNT ( * ) THEN - + COALESCE ( COUNT ( * ), - 66 + 19 + + 48, + MIN ( + - 8 ) + 56 * SUM ( DISTINCT - 94 ) * + 80 ) + + + 92 WHEN - 51 THEN NULL ELSE NULL END ) AS col1 query I rowsort @@ -6798,7 +6798,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\(\*\) 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 @@ -7605,7 +7605,7 @@ SELECT DISTINCT ( + 68 ) AS col1 # Datafusion - Expected - 104 # Datafusion - Expected - 5296 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* count\(\*\) / \(\- count\(\*\)\) \* \(\- coalesce\(count\(Int64\(28\)\), \(\- Int64\(12\)\) \* Int64\(\-19\) / Int64\(96\), Int64\(64\) / Int64\(80\) \+ Int64\(50\) \+ Int64\(\-36\) \+ Int64\(98\)\)\) \+ \(\- \(\- Int64\(47\)\)\) AS col1" at position 0 and "Int64\(32\) \* max\(Int64\(23\)\) \+ Int64\(65\) \* Int64\(70\) \- Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(count\(Int64\(28\)\), \(\- Int64\(12\)\) \* Int64\(\-19\) / Int64\(96\), Int64\(64\) / Int64\(80\) \+ Int64\(50\) \+ Int64\(\-36\) \+ Int64\(98\)\)\) \+ \(\- \(\- Int64\(47\)\)\) AS col1" at position 0 and "Int64\(32\) \* max\(Int64\(23\)\) \+ Int64\(65\) \* Int64\(70\) \- Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 57 * COUNT ( * ) / - ( + COUNT ( * ) ) * - + COALESCE ( COUNT ( 28 ), - + 12 * - 19 / + 96, + ( + 64 ) / + + 80 + + 50 + - 36 + ( + + 98 ) ) + - ( - + 47 ) AS col1, 32 * MAX ( 23 ) + + 65 * + 70 - - 10 AS col1, - - 78 query I rowsort label-1450 @@ -8038,7 +8038,7 @@ NULL # 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\(\*\)\)\) 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 @@ -8383,7 +8383,7 @@ SELECT - + COUNT ( * ) - - 83 * - 85 + - 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\(19\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "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 "Int64\(19\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 19 + - ( + COUNT ( * ) ) AS col2, COUNT ( ALL 47 ) AS col2 query II rowsort label-1599 @@ -8982,7 +8982,7 @@ SELECT ALL + COUNT ( * ) + + 5 - + 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -111 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \+ Int64\(\-48\) \* \(\- \(\- 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\(\-63\) \+ Int64\(\-48\) \* \(\- \(\- 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 - 63 + - 48 * - - COUNT ( * ) AS col0, 67 AS col0 query I rowsort label-1714 @@ -9261,7 +9261,7 @@ SELECT 75 * + - 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4760 # Datafusion - Expected - 265835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(\-56\) AS col1" at position 0 and "\(\- min\(Int64\(27\)\)\) \+ Int64\(52\) \* coalesce\(nullif\(\(\- sum\(DISTINCT Int64\(71\)\)\), Int64\(83\)\), count\(\*\)\) \* Int64\(\-72\) \+ 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\(85\) \* Int64\(\-56\) AS col1" at position 0 and "\(\- min\(Int64\(27\)\)\) \+ Int64\(52\) \* coalesce\(nullif\(\(\- sum\(DISTINCT Int64\(71\)\)\), Int64\(83\)\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-72\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 * - 56 AS col1, - MIN ( ALL + + 27 ) + + 52 * + COALESCE ( + + NULLIF ( - SUM ( DISTINCT 71 ), + 83 ), + + COUNT ( * ) ) * - 72 + + 38 AS col1 query I rowsort @@ -10566,7 +10566,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 col1" at position 0 and "\(\- CASE nullif\(\(\- Int64\(61\)\), \(\- \(\- nullif\(Int64\(89\), \(\- nullif\(Int64\(18\), Int64\(85\) / Int64\(\-88\)\)\) \* min\(Int64\(1\) \* Int64\(85\)\)\)\)\)\) WHEN \(\- count\(\*\)\) THEN Int64\(55\) \* Int64\(49\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "\(\- CASE nullif\(\(\- Int64\(61\)\), \(\- \(\- nullif\(Int64\(89\), \(\- nullif\(Int64\(18\), Int64\(85\) / Int64\(\-88\)\)\) \* min\(Int64\(1\) \* Int64\(85\)\)\)\)\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(55\) \* Int64\(49\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 84 AS col1, - CASE + + NULLIF ( - + 61, - - NULLIF ( 89, - NULLIF ( 18, + 85 / - 88 ) * MIN ( ALL + 1 * 85 ) ) ) WHEN - COUNT ( * ) THEN 55 * 49 ELSE NULL END AS col1 query I rowsort label-2020 @@ -10775,7 +10775,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\(\*\) AS col0" at position 1 have the 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 @@ -14055,7 +14055,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -193682 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- coalesce\(Int64\(\-51\), Int64\(\-95\) \* Int64\(\-43\), Int64\(\-27\) \+ Int64\(58\) \+ \(\- Int64\(9\)\)\)\) \+ \(\- sum\(Int64\(68\)\)\) \* Int64\(38\) \* Int64\(\-75\) / \(\- count\(\*\)\) AS col0" at position 1 and "Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- coalesce\(Int64\(\-51\), Int64\(\-95\) \* Int64\(\-43\), Int64\(\-27\) \+ Int64\(58\) \+ \(\- Int64\(9\)\)\)\) \+ \(\- sum\(Int64\(68\)\)\) \* Int64\(38\) \* Int64\(\-75\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 and "Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 36 + - 25 * - ( + - 52 ) + - CAST ( NULL AS INTEGER ) + + 45 / - + 10, 67 + - COALESCE ( - 51, - 95 * + - 43, ( + - 27 ) + 58 + - + 9 ) + + ( - SUM ( + + 68 ) ) * + 38 * - 75 / - COUNT ( * ) AS col0, + 94 AS col0 query I rowsort @@ -14194,7 +14194,7 @@ SELECT ALL 14 + - 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- count\(\*\) \+ Int64\(\-96\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-96\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 - COUNT ( * ) + - 96 AS col2, 99 AS col2 query I rowsort @@ -14440,7 +14440,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\(\*\) 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 @@ -16439,7 +16439,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7565 # Datafusion - Expected - -4756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(89\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(58\) \* 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\(85\) \* Int64\(89\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(58\) \* Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 85 * 89 * - COUNT ( * ) AS col1, 58 * + - 82 AS col1 query I rowsort @@ -18418,7 +18418,7 @@ SELECT DISTINCT 68 + - NULLIF ( - 15, - - 73 ) - - COUNT ( + 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ count\(\*\) \+ Int64\(\-39\) 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\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-39\) 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 32 + COUNT ( * ) + + - 39 AS col2, - 26 col2 query I rowsort label-3511 @@ -20660,7 +20660,7 @@ SELECT + 23 / 8 + 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 193 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "CASE Int64\(82\) WHEN Int64\(\-84\) THEN NULL WHEN count\(\*\) THEN NULL WHEN Int64\(42\) THEN NULL ELSE Int64\(53\) \+ Int64\(96\) \+ Int64\(\-2\) \* Int64\(\-68\) END \- 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 "Int64\(35\) AS col1" at position 0 and "CASE Int64\(82\) WHEN Int64\(\-84\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(42\) THEN NULL ELSE Int64\(53\) \+ Int64\(96\) \+ Int64\(\-2\) \* Int64\(\-68\) END \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 35 AS col1, + CASE + 82 WHEN - 84 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN 42 THEN NULL ELSE 53 + + 96 + - 2 * - 68 END - + COUNT ( * ) * 92 AS col1 query I rowsort label-3944 @@ -21273,7 +21273,7 @@ SELECT ALL - 86 - + + ( ( 85 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4315 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ sum\(Int64\(79\)\) \* count\(\*\) \+ Int64\(81\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(49\) \+ coalesce\(\(\- count\(\*\)\), Int64\(64\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(\-48\)\), Int64\(93\) \+ Int64\(5\)\) \* \(\- 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\(61\) \+ sum\(Int64\(79\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(49\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-48\)\), Int64\(93\) \+ Int64\(5\)\) \* \(\- Int64\(\-9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 + SUM ( + 79 ) * COUNT ( * ) + + 81 * - 55 AS col0, + 49 + COALESCE ( - COUNT ( * ), 64 + - COUNT ( * ) + - - 48, + 93 + + 5 ) * - - 9 AS col0 query I rowsort label-4062 @@ -22729,7 +22729,7 @@ SELECT - 24 * + + 54 * + 45 * 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 148504 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(19\), Int64\(79\)\) \+ Int64\(18\) \* Int64\(19\) \* Int64\(14\) \* Int64\(31\) \+ Int64\(57\) AS col2" at position 0 and "count\(Int64\(96\)\) / coalesce\(Int64\(93\), Int64\(11\) \+ Int64\(90\) \* \(\- count\(\*\)\), Int64\(79\)\) \+ \(\- Int64\(\-41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(19\), Int64\(79\)\) \+ Int64\(18\) \* Int64\(19\) \* Int64\(14\) \* Int64\(31\) \+ Int64\(57\) AS col2" at position 0 and "count\(Int64\(96\)\) / coalesce\(Int64\(93\), Int64\(11\) \+ Int64\(90\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(79\)\) \+ \(\- Int64\(\-41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( 19, + 79 ) + ( + 18 ) * 19 * + 14 * + 31 + 57 AS col2, COUNT ( + 96 ) / COALESCE ( + 93, + 11 + + + 90 * - COUNT ( * ), + 79 ) + - - 41 AS col2 query I rowsort label-4338 @@ -23703,7 +23703,7 @@ SELECT ( + + 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 17521812 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(67\) / \(\- Int64\(\-76\)\) \- Int64\(42\) \* \(\- Int64\(\-98\)\) \* min\(Int64\(\-43\)\) \* Int64\(99\) \* nullif\(count\(\*\), Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(67\) / \(\- Int64\(\-76\)\) \- Int64\(42\) \* \(\- Int64\(\-98\)\) \* min\(Int64\(\-43\)\) \* Int64\(99\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 15 ) AS col1, 67 / + - ( - 76 ) - + 42 * ( - - 98 ) * + MIN ( + - 43 ) * 99 * NULLIF ( COUNT ( * ), - 25 ) AS col1 query I rowsort @@ -24150,7 +24150,7 @@ SELECT ALL NULLIF ( - 51, 28 - ( - 48 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -5198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) AS col2" at position 0 and "Int64\(\-81\) \* Int64\(64\) \+ Int64\(\-37\) \+ \(\- \(\- count\(\*\)\)\) \+ \(\- Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) AS col2" at position 0 and "Int64\(\-81\) \* Int64\(64\) \+ Int64\(\-37\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 24 ) AS col2, - 81 * + 64 + - 37 + - - COUNT ( * ) + - - 22 AS col2 query I rowsort @@ -24263,7 +24263,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\(\*\)\)\) \+ \(\- \(\- count\(\*\)\)\) THEN \(\- count\(\*\)\) / Int64\(55\) \* \(\- avg\(DISTINCT \(\- \(\- nullif\(\(\- Int64\(\-39\)\), Int64\(96\)\)\)\)\)\) \- Int64\(61\) WHEN count\(\*\) THEN Int64\(41\) END \+ Int64\(37\) \+ count\(\*\) AS col2" at position 1 have the same 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 @@ -25723,7 +25723,7 @@ SELECT ALL - 66 + + SUM ( DISTINCT - 78 ) # 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\(\*\)\) 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 query II rowsort label-4910 @@ -26331,7 +26331,7 @@ SELECT ALL 60 + - 15 - - - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3035 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) \* Int64\(77\) \+ nullif\(Int64\(\-45\), count\(\*\) \* CASE \(\- count\(\*\)\) WHEN Int64\(8\) THEN \(\- Int64\(\-65\)\) END\) AS col0" at position 0 and "Int64\(11\) \+ sum\(Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) \* Int64\(77\) \+ nullif\(Int64\(\-45\), count\(Int64\(1\)\) AS count\(\*\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(8\) THEN \(\- Int64\(\-65\)\) END\) AS col0" at position 0 and "Int64\(11\) \+ sum\(Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 40 * + 77 + NULLIF ( - 45, + COUNT ( * ) * + CASE - + COUNT ( * ) WHEN + 8 THEN - - 65 END ) AS col0, + 11 + + SUM ( + ( + 96 ) ) AS col0 query I rowsort label-5025 @@ -26509,7 +26509,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 4704 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \- Int64\(48\) AS col0" at position 0 and "Int64\(\-49\) \* 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\(\*\)\)\) \- Int64\(48\) AS col0" at position 0 and "Int64\(\-49\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - + COUNT ( * ) ) - + ( + 48 ) col0, - 49 * - 96 AS col0 query I rowsort @@ -30923,7 +30923,7 @@ SELECT COUNT ( - 36 ) + - + NULLIF ( - 39, - 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 "\(\- \(\- coalesce\(\(\- count\(\*\)\), Int64\(38\)\)\)\) 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\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(38\)\)\)\) 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 ( - COUNT ( * ), + 38 ) AS col0, 15 AS col0 query I rowsort label-5908 @@ -31486,7 +31486,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\(\*\) AS col2" at position 1 have the 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 @@ -31870,7 +31870,7 @@ SELECT ALL COALESCE ( 43, + + 29 ) 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ), COUNT ( * ) query II rowsort @@ -32390,7 +32390,7 @@ SELECT ALL + + 47 - 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1360 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* max\(Int64\(16\)\) AS col2" at position 0 and "nullif\(\(\- CAST\(NULL AS Float64\)\), \(\- CASE Int64\(\-43\) WHEN Int64\(12\) THEN Int64\(38\) \+ \(\- count\(\*\)\) \+ Int64\(\-96\) / Int64\(64\) ELSE NULL END\) / Int64\(32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* max\(Int64\(16\)\) AS col2" at position 0 and "nullif\(\(\- CAST\(NULL AS Float64\)\), \(\- CASE Int64\(\-43\) WHEN Int64\(12\) THEN Int64\(38\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-96\) / Int64\(64\) ELSE NULL END\) / Int64\(32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 * MAX ( ALL + 16 ) AS col2, NULLIF ( - CAST ( NULL AS FLOAT8 ), - CASE + - 43 WHEN + 12 THEN + 38 + - COUNT ( * ) + + - 96 / + + 64 ELSE NULL END / 32 ) AS col2 query I rowsort label-6185 @@ -32667,7 +32667,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\(\*\) 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 @@ -32753,7 +32753,7 @@ SELECT MIN ( - + 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\(\*\)\)\) AS col1" at position 0 and "Int64\(62\) \+ 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\(62\) \+ Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col1, + 62 + - 65 AS col1 query I rowsort @@ -33848,7 +33848,7 @@ SELECT + SUM ( - 14 ), + 18 - - 82 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 460 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(46\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(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 DISTINCT 10 * + 46 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -33870,7 +33870,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -34477,7 +34477,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\(\*\) 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 @@ -35877,7 +35877,7 @@ SELECT DISTINCT + + 15 * COUNT ( * ) + + COUNT ( * ), + 89 * - 65 * 10 + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(22\) \* count\(\*\) \+ Int64\(2\) \- Int64\(78\) \- Int64\(14\) \* Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(22\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(2\) \- Int64\(78\) \- Int64\(14\) \* Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 84 AS col0, 22 * + + COUNT ( * ) + + 2 - + 78 - + 14 * - 97 AS col0 query I rowsort label-6849 @@ -38901,7 +38901,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\(\*\) 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 @@ -39288,7 +39288,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\(\*\) 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 @@ -39347,7 +39347,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\(\*\)\)\)\) \+ count\(\*\) AS col0" at position 1 have the same name\. 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: @@ -39679,7 +39679,7 @@ SELECT ALL - 26 * - - 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- CAST\(Int64\(21\) AS Int32\)\)\) WHEN Int64\(62\) THEN Int64\(43\) / count\(\*\) ELSE NULL END AS col2" at position 0 and "nullif\(\(\- Int64\(\-82\)\), Int64\(90\) \+ Int64\(\-54\) \* \(\- nullif\(sum\(Int64\(10\)\), Int64\(88\)\)\)\) \* Int64\(47\) \+ Int64\(24\) \+ count\(\*\) \* Int64\(72\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- CAST\(Int64\(21\) AS Int32\)\)\) WHEN Int64\(62\) THEN Int64\(43\) / count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END AS col2" at position 0 and "nullif\(\(\- Int64\(\-82\)\), Int64\(90\) \+ Int64\(\-54\) \* \(\- nullif\(sum\(Int64\(10\)\), Int64\(88\)\)\)\) \* Int64\(47\) \+ Int64\(24\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE - - CAST ( 21 AS INTEGER ) WHEN 62 THEN + 43 / + + COUNT ( * ) ELSE NULL END AS col2, NULLIF ( - - 82, + + 90 + - 54 * - NULLIF ( + SUM ( ALL + 10 ), ( + 88 ) ) ) * + + 47 + + 24 + COUNT ( * ) * + 72 * - 12 AS col2 # Datafusion - Datafusion expected results: @@ -39980,7 +39980,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\(\*\) AS col2" at position 0 and "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 @@ -40637,7 +40637,7 @@ SELECT + MIN ( ALL + + 5 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -642 # Datafusion - Expected - 1253 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(\-15\) \- Int64\(\-18\) AS col2" at position 0 and "count\(\*\) \+ max\(Int64\(\-25\)\) \+ Int64\(62\) \+ Int64\(\-81\) \* Int64\(15\) \* 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 "Int64\(44\) \* Int64\(\-15\) \- Int64\(\-18\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(\-25\)\) \+ Int64\(62\) \+ Int64\(\-81\) \* Int64\(15\) \* Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 44 * - 15 - - 18 AS col2, COUNT ( * ) + + MAX ( - 25 ) + + + 62 + - 81 * + 15 * - 1 AS col2 query I rowsort label-7761 @@ -40938,7 +40938,7 @@ SELECT 40 - + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -49 -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\(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\(76\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 AS col2, COUNT ( * ) - 50 AS col2 query I rowsort @@ -41472,7 +41472,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -2968 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-2\) AS col1" at position 0 and "count\(\*\) \+ Int64\(35\) \* Int64\(\-86\) \+ 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\(46\) \+ Int64\(\-2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\) \* Int64\(\-86\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 46 + + - 2 AS col1, + ( + + COUNT ( * ) ) + 35 * - 86 + 41 AS col1 query I rowsort label-7918 @@ -41665,7 +41665,7 @@ SELECT + 66 * 2 * COUNT ( * ) * - - 64 + - - 82 + + 64 AS col0 # Datafusion - Expected - -58 # Datafusion - Expected - 90 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(sum\(Int64\(58\)\), CASE Int64\(\-73\) WHEN Int64\(\-34\) THEN NULL WHEN count\(\*\) THEN NULL WHEN \(\- Int64\(17\)\) THEN Int64\(\-90\) \+ \(\- Int64\(29\)\) END\)\) AS col0" at position 0 and "Int64\(82\) 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\(sum\(Int64\(58\)\), CASE Int64\(\-73\) WHEN Int64\(\-34\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN \(\- Int64\(17\)\) THEN Int64\(\-90\) \+ \(\- Int64\(29\)\) END\)\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( + SUM ( 58 ), + CASE - 73 WHEN - 34 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - + 17 THEN - 90 + - + 29 END ) AS col0, 90, + 82 AS col0 query I rowsort label-7954 @@ -42412,7 +42412,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \- Int64\(\-91\) AS col0" at position 0 and "nullif\(Int64\(7\), count\(\*\)\) AS col0" at position 1 have the 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\(\-91\) AS col0" at position 0 and "nullif\(Int64\(7\), count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 66 - + ( - 91 ) AS col0, NULLIF ( 7, + COUNT ( * ) ) AS col0 query I rowsort label-8095 @@ -42621,7 +42621,7 @@ SELECT NULLIF ( + 28, CASE + 16 WHEN 38 + COALESCE ( 59, - ( + 49 ) ) THEN + AVG # Datafusion - Datafusion expected results: # Datafusion - Expected - -672 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(7\) \* Int64\(96\) AS col2" at position 0 and "Int64\(\-71\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(7\) \* Int64\(96\) AS col2" at position 0 and "Int64\(\-71\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + + ( + 7 ) * + + ( ( 96 ) ) AS col2, - 71 + 4 AS col2 query I rowsort label-8135 @@ -42925,7 +42925,7 @@ SELECT COUNT ( * ) * + + 5 AS col2 # Datafusion - Expected - 5658 # Datafusion - Expected - -325 # Datafusion - Expected - 4674 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- Int64\(\-41\)\) \* Int64\(69\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-65\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- Int64\(\-41\)\) \* Int64\(69\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-65\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 2 * - - 41 * + 69 AS col2, + COUNT ( * ) * - 65 * 5 col2, - - COUNT ( * ) * 77 * + CAST ( + 60 AS INTEGER ) + + + 54 query I rowsort @@ -44299,7 +44299,7 @@ SELECT DISTINCT - NULLIF ( + 8, - - 99 - + CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -3003 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(16\) AS col0" at position 0 and "Int64\(91\) \* \(\- Int64\(33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(16\) AS col0" at position 0 and "Int64\(91\) \* \(\- Int64\(33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - COUNT ( * ) ) + 16 AS col0, 91 * - ( + 33 ) AS col0 query I rowsort label-8456 @@ -44423,7 +44423,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1380 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* CAST\(\(\- count\(\*\)\) AS Int32\) \+ Int64\(\-18\) \* Int64\(\-82\) \+ \(\- Int64\(65\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(\-18\) \* Int64\(\-82\) \+ \(\- Int64\(65\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 31 * CAST ( + - COUNT ( * ) AS INTEGER ) + - 18 * + ( - 82 ) + - + 65 AS col1, 84 AS col1 query II rowsort label-8480 @@ -47396,7 +47396,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\(\*\) AS Int32\)\)\) \* \(\- 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 @@ -47697,7 +47697,7 @@ SELECT ALL COUNT ( * ) + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1327 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(76\) \+ Int64\(91\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(76\) \* Int64\(15\) \* CAST\(\(\- CAST\(CASE Int64\(\-23\) WHEN Int64\(71\) THEN Int64\(0\) / max\(Int64\(2\)\) END AS Int32\)\) AS Int32\) / nullif\(Int64\(13\) \+ \(\- Int64\(63\) \+ Int64\(13\)\), \(\- Int64\(55\)\) \+ Int64\(97\) \* Int64\(90\)\) \+ nullif\(Int64\(2\), Int64\(1\) \* Int64\(\-71\) \- count\(\*\) \* Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(76\) \+ Int64\(91\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(76\) \* Int64\(15\) \* CAST\(\(\- CAST\(CASE Int64\(\-23\) WHEN Int64\(71\) THEN Int64\(0\) / max\(Int64\(2\)\) END AS Int32\)\) AS Int32\) / nullif\(Int64\(13\) \+ \(\- Int64\(63\) \+ Int64\(13\)\), \(\- Int64\(55\)\) \+ Int64\(97\) \* Int64\(90\)\) \+ nullif\(Int64\(2\), Int64\(1\) \* Int64\(\-71\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 * + 76 + + 91 + + 20 col1, 76 * 15 * + CAST ( - CAST ( + CASE + - 23 WHEN 71 THEN + 0 / MAX ( + + 2 ) END AS INTEGER ) AS INTEGER ) / NULLIF ( 13 + - ( 63 + 13 ), - ( 55 ) + 97 * 90 ) + NULLIF ( 2, 1 * - 71 - + COUNT ( * ) * 25 ) col1 query I rowsort @@ -50372,7 +50372,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\(\*\) 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 @@ -50629,7 +50629,7 @@ SELECT MIN ( 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(12\)\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(12\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( + 12 ) col2, COUNT ( * ) * - - 58 col2 query I rowsort label-9670 @@ -50781,7 +50781,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\(\*\) 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 @@ -51781,7 +51781,7 @@ SELECT 83 col2, 21 * 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- count\(\*\)\) AS col2" at position 0 and "CASE Int64\(51\) WHEN \(\- nullif\(\(\- count\(\*\)\), Int64\(72\)\)\) THEN Int64\(8\) \+ \(\- CAST\(Int64\(82\) AS Int32\)\) / \(\- Int64\(4\)\) \* Int64\(89\) / Int64\(\-66\) \- Int64\(45\) WHEN \(\- sum\(DISTINCT Int64\(\-34\)\)\) THEN \(\- Int64\(\-32\)\) WHEN \(\- Int64\(\-16\)\) \* Int64\(61\) \+ Int64\(\-88\) THEN NULL ELSE NULL END \+ sum\(Int64\(1\)\) / Int64\(\-75\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(51\) WHEN \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(72\)\)\) THEN Int64\(8\) \+ \(\- CAST\(Int64\(82\) AS Int32\)\) / \(\- Int64\(4\)\) \* Int64\(89\) / Int64\(\-66\) \- Int64\(45\) WHEN \(\- sum\(DISTINCT Int64\(\-34\)\)\) THEN \(\- Int64\(\-32\)\) WHEN \(\- Int64\(\-16\)\) \* Int64\(61\) \+ Int64\(\-88\) THEN NULL ELSE NULL END \+ sum\(Int64\(1\)\) / Int64\(\-75\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 - - COUNT ( * ) col2, CASE 51 WHEN - + NULLIF ( - + COUNT ( * ), + 72 ) THEN + 8 + - + CAST ( + + 82 AS INTEGER ) / - + 4 * + + 89 / + - 66 - 45 WHEN - SUM ( DISTINCT - 34 ) THEN - - 32 WHEN - - 16 * + 61 + + - 88 THEN NULL ELSE NULL END + SUM ( ALL ( 1 ) ) / - 75 + - 72 AS col2 query I rowsort label-9891 @@ -52147,7 +52147,7 @@ SELECT ALL + - 41 + + + COALESCE ( - 93, - 12 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -2326 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(4\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-82\), Int64\(\-23\)\)\) \* \(\- count\(\*\)\) \+ \(\- Int64\(27\)\) / Int64\(\-71\) \+ Int64\(66\) \* \(\- 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\(\-2\) \* Int64\(4\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-82\), Int64\(\-23\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(27\)\) / Int64\(\-71\) \+ Int64\(66\) \* \(\- Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 2 * + 4 AS col2, - NULLIF ( + - 82, - 23 ) * - COUNT ( * ) + - + 27 / + + ( - 71 ) + + 66 * - + 34 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_4.slt b/data/sqlite/random/expr/slt_good_4.slt index 8f86c85..2a6059c 100644 --- a/data/sqlite/random/expr/slt_good_4.slt +++ b/data/sqlite/random/expr/slt_good_4.slt @@ -584,7 +584,7 @@ SELECT + 47 + - SUM ( + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 9306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* count\(\*\) \+ Int64\(58\) AS col1" at position 0 and "Int64\(94\) \* 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 "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) AS col1" at position 0 and "Int64\(94\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) + + 58 col1, + ( 94 ) * + COUNT ( * ) * 99 AS col1 query I rowsort @@ -764,7 +764,7 @@ SELECT ALL 31 AS col0, + 48 # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 AS col2, - COUNT ( * ) AS col2 query II rowsort @@ -894,7 +894,7 @@ SELECT - + ( + 4 ) + - MAX ( DISTINCT + + 67 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ \(\- \(\- coalesce\(Int64\(\-70\), Int64\(47\), count\(\*\) \+ sum\(DISTINCT \(\- Int64\(\-2\)\)\)\)\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ \(\- \(\- coalesce\(Int64\(\-70\), Int64\(47\), count\(Int64\(1\)\) AS count\(\*\) \+ sum\(DISTINCT \(\- Int64\(\-2\)\)\)\)\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 73 + - - COALESCE ( - 70, 47, COUNT ( * ) + + SUM ( DISTINCT - - 2 ) ) col2, 93 AS col2 query II rowsort label-165 @@ -997,7 +997,7 @@ SELECT DISTINCT - COUNT ( - 39 ) - - COUNT ( * ) AS col0, ( - - SUM ( + 90 ) ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 18 -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\(\-13\) \+ 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\(65\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-13\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 AS col0, COUNT ( * ) * - 13 + + 31 AS col0 query II rowsort label-184 @@ -1106,7 +1106,7 @@ SELECT ALL 51 * - 77 + + 13 * - 17 * 77 + - + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 227699 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \* \(\- Int64\(\-69\)\) \* \(\- Int64\(75\)\) \+ \(\- 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 "Int64\(\-44\) \* \(\- Int64\(\-69\)\) \* \(\- Int64\(75\)\) \+ \(\- 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 - 44 * - - 69 * - + 75 + - COUNT ( * ) AS col2, + 13 AS col2 query I rowsort @@ -1414,7 +1414,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- Int64\(\-59\)\) / count\(\*\) \+ Int64\(53\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-59\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) - - - 59 / + COUNT ( * ) + + 53 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-262 @@ -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\(\*\) 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 @@ -2601,7 +2601,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -3663,7 +3663,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\(\*\) AS col0" at position 1 have the 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 @@ -3792,7 +3792,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\(\*\) 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 @@ -7340,7 +7340,7 @@ SELECT 64 * - NULLIF ( 47, 34 - CAST ( - 50 AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 3321 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-89\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-41\) \* \(\- 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\(\*\) \* Int64\(\-89\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-41\) \* \(\- Int64\(81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 89 + - + COUNT ( * ) AS col1, - 41 * - + ( 81 ) AS col1 query I rowsort label-1389 @@ -7372,7 +7372,7 @@ SELECT COUNT ( * ) * + 15 * - 35 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- count\(\*\)\) \+ Int64\(71\) 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\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(71\) 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 20 + - COUNT ( * ) + + 71 AS col1, 41 AS col1 query II rowsort @@ -8062,7 +8062,7 @@ SELECT - COUNT ( * ) * - 33 * + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 662 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(62\), Int64\(\-52\)\) \+ Int64\(60\) \* Int64\(10\) AS col0" at position 0 and "count\(\*\) \* count\(\*\) \- Int64\(20\) \+ nullif\(Int64\(\-61\), nullif\(Int64\(89\), Int64\(55\) \+ 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 "coalesce\(Int64\(62\), Int64\(\-52\)\) \+ Int64\(60\) \* Int64\(10\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(20\) \+ nullif\(Int64\(\-61\), nullif\(Int64\(89\), Int64\(55\) \+ Int64\(58\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + 62, + - 52 ) + + 60 * + + 10 AS col0, + COUNT ( * ) * + COUNT ( * ) - 20 + NULLIF ( - 61, NULLIF ( ( 89 ), 55 + 58 ) ) AS col0 query I rowsort label-1526 @@ -8244,7 +8244,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\(\*\) AS col0" at position 0 and "Int64\(92\) \* CASE Int64\(26\) WHEN \(\- Int64\(\-93\)\) THEN \(\- \(\- 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 @@ -8409,7 +8409,7 @@ SELECT DISTINCT + + 92 * - 91 * - 97 * + + 97 + - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 61 -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\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) 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 ALL + 25 AS col0, COUNT ( * ) * + 61 AS col0 query II rowsort @@ -9469,7 +9469,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\(\*\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-56\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -9927,7 +9927,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\(\*\) AS col0" at position 1 have the 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 @@ -9938,7 +9938,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\(\*\) AS col1" at position 1 have the 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 @@ -10603,7 +10603,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\(\*\)\) AS col1" at position 0 and "\(\- max\(DISTINCT coalesce\(\(\- Int64\(\-57\)\), \(\- Int64\(\-33\)\), Int64\(38\)\)\)\) \+ count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -11238,7 +11238,7 @@ SELECT 8 / ( - 60 ) + - 62, 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-14\) \+ Int64\(30\) \+ Int64\(38\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-46\) \* \(\- Int64\(95\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-14\) \+ Int64\(30\) \+ Int64\(38\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-46\) \* \(\- Int64\(95\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 11 * - 14 + + 30 + 38 * - ( - + COUNT ( * ) ) * - 46 * - + 95 + - CAST ( NULL AS INTEGER ) AS col2, ( - 5 ) AS col2 # Datafusion - Types were automatically converted from: @@ -11753,7 +11753,7 @@ SELECT 35 - + + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \- Int64\(5\) AS col1" at position 0 and "max\(Int64\(2\)\) / coalesce\(min\(Int64\(57\)\), Int64\(5\) / Int64\(59\) \- \(\- sum\(Int64\(1\)\)\) \+ Int64\(\-25\) \- \(\- count\(\*\)\) \- Int64\(17\) \+ Int64\(72\) \* \(\- Int64\(\-10\)\) \* Int64\(32\) \* Int64\(\-99\) / \(\- \(\- Int64\(\-13\)\)\), Int64\(\-76\), Int64\(74\)\) \* Int64\(\-86\) \+ Int64\(55\) \+ 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\(\-49\) \- Int64\(5\) AS col1" at position 0 and "max\(Int64\(2\)\) / coalesce\(min\(Int64\(57\)\), Int64\(5\) / Int64\(59\) \- \(\- sum\(Int64\(1\)\)\) \+ Int64\(\-25\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(17\) \+ Int64\(72\) \* \(\- Int64\(\-10\)\) \* Int64\(32\) \* Int64\(\-99\) / \(\- \(\- Int64\(\-13\)\)\), Int64\(\-76\), Int64\(74\)\) \* Int64\(\-86\) \+ Int64\(55\) \+ Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 49 - + + 5 col1, MAX ( + + 2 ) / ( + COALESCE ( MIN ( ALL + 57 ), 5 / + + 59 - - SUM ( ALL + 1 ) + - 25 - - COUNT ( * ) - + 17 + + 72 * - ( - 10 ) * + 32 * - 99 / - - ( - 13 ), - 76, + 74 ) ) * - 86 + + 55 + + ( + - 17 ) AS col1 query I rowsort label-2227 @@ -11866,7 +11866,7 @@ SELECT NULLIF ( 51, + - COUNT ( + 18 ) + - 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -5796 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(63\) \* \(\- \(\- 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\(\*\)\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(63\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + + 85 AS col1, 63 * - - COUNT ( * ) * - + 92 AS col1 query I rowsort label-2249 @@ -11909,7 +11909,7 @@ SELECT DISTINCT NULLIF ( + 95, + 85 * - + 67 / 77 + - 99 * COALESCE ( - ( + - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) \+ 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\(\-65\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 AS col0, COUNT ( * ) * - + COUNT ( * ) + 58 AS col0 query I rowsort @@ -12796,7 +12796,7 @@ SELECT 51 + - 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 2674 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(16\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(68\) / Int64\(99\) \+ Int64\(46\) \+ Int64\(\-4\) \- Int64\(\-94\) \* \(\- 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\(\*\)\) \* Int64\(16\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(68\) / Int64\(99\) \+ Int64\(46\) \+ Int64\(\-4\) \- Int64\(\-94\) \* \(\- Int64\(\-28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + + 16 + - COUNT ( * ) AS col0, 68 / 99 + + 46 + - 4 - - 94 * - - 28 AS col0 query I rowsort label-2427 @@ -13719,7 +13719,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\(\*\) 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 @@ -14011,7 +14011,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\(\*\) AS col2" at position 1 have the 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 @@ -15418,7 +15418,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\(\*\) 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 @@ -16849,7 +16849,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\(\*\) AS col2" at position 1 have the 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 @@ -17663,7 +17663,7 @@ SELECT + 47 + - - 83 AS col2, 64 AS col0 # Datafusion - Expected - -15 # Datafusion - Expected - -81 # Datafusion - Expected - 4608 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(15\)\) AS col2" at position 0 and "CASE \(\- count\(\*\)\) WHEN Int64\(45\) \+ Int64\(\-13\) \* nullif\(count\(\*\), Int64\(63\) \* count\(\*\) \+ count\(\*\) \* Int64\(46\) \* Int64\(80\) \+ \(\- Int64\(\-91\)\) \+ Int64\(29\) \* Int64\(29\)\) \+ \(\- count\(\*\)\) THEN NULL WHEN Int64\(27\) THEN Int64\(37\) ELSE Int64\(47\) END \* Int64\(98\) \+ Int64\(2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(15\)\) AS col2" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(45\) \+ Int64\(\-13\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(46\) \* Int64\(80\) \+ \(\- Int64\(\-91\)\) \+ Int64\(29\) \* Int64\(29\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(27\) THEN Int64\(37\) ELSE Int64\(47\) END \* Int64\(98\) \+ Int64\(2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 15 ) AS col2, - 81, + CASE + - COUNT ( * ) WHEN + 45 + - 13 * NULLIF ( COUNT ( * ), 63 * COUNT ( * ) + + COUNT ( * ) * 46 * + 80 + - - 91 + + + 29 * 29 ) + - COUNT ( * ) THEN NULL WHEN + 27 THEN 37 ELSE 47 END * + 98 + + 2 AS col2 query I rowsort @@ -18249,7 +18249,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\(\*\) AS col2" at position 1 have the 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 @@ -18326,7 +18326,7 @@ SELECT + COUNT ( * ) + - - 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 5310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(3\) \* Int64\(\-74\) \+ nullif\(\(\- \(\- CASE Int64\(11\) WHEN CASE WHEN Int64\(87\) != Int64\(92\) \* Int64\(43\) AND NOT Int64\(\-72\) \* Int64\(82\) \* count\(\*\) \* Int64\(\-84\) IS NULL THEN Int64\(90\) WHEN NOT NULL > Int64\(\-29\) THEN Int64\(68\) ELSE \(\- coalesce\(nullif\(Int64\(7\), Int64\(97\)\), \(\- CASE Int64\(93\) WHEN Int64\(3\) \* Int64\(\-65\) \+ Int64\(\-86\) THEN Int64\(71\) / Int64\(\-95\) WHEN Int64\(1\) / Int64\(48\) THEN NULL ELSE Int64\(34\) / CAST\(Int64\(98\) / Int64\(45\) AS Int32\) END\)\)\) END THEN NULL WHEN min\(Int64\(77\)\) THEN \(\- max\(Int64\(11\)\)\) \* Int64\(74\) \+ Int64\(32\) ELSE Int64\(\-73\) END\)\), Int64\(\-14\) \+ Int64\(51\)\) \+ Int64\(95\) \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(3\) \* Int64\(\-74\) \+ nullif\(\(\- \(\- CASE Int64\(11\) WHEN CASE WHEN Int64\(87\) != Int64\(92\) \* Int64\(43\) AND NOT Int64\(\-72\) \* Int64\(82\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-84\) IS NULL THEN Int64\(90\) WHEN NOT NULL > Int64\(\-29\) THEN Int64\(68\) ELSE \(\- coalesce\(nullif\(Int64\(7\), Int64\(97\)\), \(\- CASE Int64\(93\) WHEN Int64\(3\) \* Int64\(\-65\) \+ Int64\(\-86\) THEN Int64\(71\) / Int64\(\-95\) WHEN Int64\(1\) / Int64\(48\) THEN NULL ELSE Int64\(34\) / CAST\(Int64\(98\) / Int64\(45\) AS Int32\) END\)\)\) END THEN NULL WHEN min\(Int64\(77\)\) THEN \(\- max\(Int64\(11\)\)\) \* Int64\(74\) \+ Int64\(32\) ELSE Int64\(\-73\) END\)\), Int64\(\-14\) \+ Int64\(51\)\) \+ Int64\(95\) \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 83 ) + + 28 AS col2, 3 * - 74 + NULLIF ( - - CASE 11 WHEN CASE WHEN 87 <> + + 92 * + 43 AND NOT - 72 * + 82 * COUNT ( * ) * - 84 IS NULL THEN 90 WHEN NOT ( NULL ) > - 29 THEN + 68 ELSE - COALESCE ( + NULLIF ( + 7, ( 97 ) ), - CASE 93 WHEN + 3 * - 65 + - 86 THEN + 71 / - 95 WHEN 1 / 48 THEN NULL ELSE + 34 / CAST ( 98 / + 45 AS INTEGER ) END ) END THEN NULL WHEN + MIN ( + 77 ) THEN - MAX ( 11 ) * ( + 74 ) + 32 ELSE - 73 END, - 14 + 51 ) + + 95 * 59 AS col2 query I rowsort @@ -18815,7 +18815,7 @@ SELECT ALL - COUNT ( DISTINCT - 64 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 193 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(\-38\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-38\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 70 * - - COUNT ( * ) + - 38 AS col0, 99 + + 94 AS col0 query I rowsort label-3575 @@ -18826,7 +18826,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\(\*\) 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 @@ -19476,7 +19476,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\(\*\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -19954,7 +19954,7 @@ SELECT 34 * + 19 # 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\(74\) \+ CASE \(\- Int64\(22\)\) WHEN \(\- min\(\(\- Int64\(\-45\)\)\)\) / Int64\(\-24\) \- Int64\(71\) \+ Int64\(\-23\) THEN Int64\(\-14\) \* \(\- Int64\(12\)\) WHEN count\(\*\) \* Int64\(51\) \+ \(\- Int64\(\-34\)\) THEN NULL ELSE NULL END / max\(Int64\(31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(74\) \+ CASE \(\- Int64\(22\)\) WHEN \(\- min\(\(\- Int64\(\-45\)\)\)\) / Int64\(\-24\) \- Int64\(71\) \+ Int64\(\-23\) THEN Int64\(\-14\) \* \(\- Int64\(12\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(51\) \+ \(\- Int64\(\-34\)\) THEN NULL ELSE NULL END / max\(Int64\(31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 AS col1, 74 + + + CASE - + 22 WHEN - MIN ( ALL - - 45 ) / + ( - 24 ) - + 71 + - 23 THEN - 14 * - ( + 12 ) WHEN + + COUNT ( * ) * + 51 + - ( - 34 ) THEN NULL ELSE NULL END / + + MAX ( + 31 ) col1 query I rowsort label-3796 @@ -19995,7 +19995,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\(\*\) 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 @@ -20517,7 +20517,7 @@ SELECT ALL - COUNT ( DISTINCT + 20 ), 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(\-85\), \(\- CASE Int64\(32\) WHEN count\(Int64\(\-90\)\) \* \(\- Int64\(\-18\)\) \+ CAST\(NULL AS Float64\) \* Int64\(83\) THEN count\(\*\) ELSE Int64\(\-97\) END\)\)\)\) AS col1" at position 0 and "CAST\(\(\- count\(DISTINCT Int64\(43\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(\-85\), \(\- CASE Int64\(32\) WHEN count\(Int64\(\-90\)\) \* \(\- Int64\(\-18\)\) \+ CAST\(NULL AS Float64\) \* Int64\(83\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(\-97\) END\)\)\)\) AS col1" at position 0 and "CAST\(\(\- count\(DISTINCT Int64\(43\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - COALESCE ( - 85, - CASE 32 WHEN + COUNT ( ALL - 90 ) * - - 18 + CAST ( NULL AS FLOAT8 ) * 83 THEN COUNT ( * ) ELSE - 97 END ) ) AS col1, CAST ( - COUNT ( DISTINCT + 43 ) AS INTEGER ) AS col1 query II rowsort label-3903 @@ -22360,7 +22360,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 13322 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(12\) \* Int64\(34\) \* Int64\(32\) \+ coalesce\(Int64\(8\), Int64\(43\), Int64\(\-88\) \- Int64\(\-76\)\) \* Int64\(\-29\) / \(\- count\(\*\)\) \- CASE Int64\(\-42\) WHEN \(\- avg\(Int64\(52\)\)\) \+ Int64\(71\) THEN CASE \(\- count\(\*\)\) WHEN Int64\(98\) THEN Int64\(98\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(\-64\) WHEN \(\- count\(\*\)\) THEN Int64\(\-77\) END ELSE coalesce\(count\(\*\), count\(Int64\(61\)\) \* Int64\(\-41\) \+ Int64\(\-47\) \* Int64\(\-66\), Int64\(85\) \+ Int64\(14\)\) \+ Int64\(\-35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(12\) \* Int64\(34\) \* Int64\(32\) \+ coalesce\(Int64\(8\), Int64\(43\), Int64\(\-88\) \- Int64\(\-76\)\) \* Int64\(\-29\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CASE Int64\(\-42\) WHEN \(\- avg\(Int64\(52\)\)\) \+ Int64\(71\) THEN CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(98\) THEN Int64\(98\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(\-64\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-77\) END ELSE coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(61\)\) \* Int64\(\-41\) \+ Int64\(\-47\) \* Int64\(\-66\), Int64\(85\) \+ Int64\(14\)\) \+ Int64\(\-35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 44 col1, 12 * 34 * + 32 + COALESCE ( + ( 8 ), + + 43, ( + - 88 ) - - 76 ) * - 29 / - COUNT ( * ) - + CASE - 42 WHEN - AVG ( + 52 ) + 71 THEN CASE - COUNT ( * ) WHEN + 98 THEN 98 WHEN - CAST ( NULL AS INTEGER ) THEN - 64 WHEN - COUNT ( * ) THEN - 77 END ELSE + COALESCE ( + COUNT ( * ), + COUNT ( + 61 ) * - 41 + - 47 * - 66, 85 + 14 ) + + - 35 END AS col1 query I rowsort label-4252 @@ -22391,7 +22391,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\(\*\) 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 @@ -22886,7 +22886,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1566 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(27\) \* Int64\(\-58\) AS col2" at position 0 and "CAST\(Int64\(57\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(27\) \* Int64\(\-58\) AS col2" at position 0 and "CAST\(Int64\(57\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 27 * - 58 AS col2, CAST ( 57 AS INTEGER ) AS col2 query I rowsort label-4353 @@ -23119,7 +23119,7 @@ SELECT ALL 22 * - 82 + + + SUM ( + 18 ) + - - ( + 83 ) + + COUNT ( * ) / 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1064150 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* count\(\*\) \- Int64\(10\) \+ Int64\(\-47\) \+ nullif\(\(\- max\(Int64\(\-81\)\)\), Int64\(\-56\) \- Int64\(67\)\) \+ sum\(Int64\(86\)\) \* Int64\(17\) \* Int64\(28\) \* Int64\(\-26\) \+ Int64\(54\) \+ \(\- sum\(Int64\(\-23\)\)\) \+ Int64\(25\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(10\) \+ Int64\(\-47\) \+ nullif\(\(\- max\(Int64\(\-81\)\)\), Int64\(\-56\) \- Int64\(67\)\) \+ sum\(Int64\(86\)\) \* Int64\(17\) \* Int64\(28\) \* Int64\(\-26\) \+ Int64\(54\) \+ \(\- sum\(Int64\(\-23\)\)\) \+ Int64\(25\) 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 60 * + COUNT ( * ) - + 10 + - 47 + + NULLIF ( - MAX ( - 81 ), - 56 - 67 ) + SUM ( + 86 ) * ( 17 ) * + 28 * + - 26 + + 54 + - SUM ( - 23 ) + + 25 AS col2, + 20 AS col2 query I rowsort label-4397 @@ -23895,7 +23895,7 @@ SELECT - 50 + - - 38 * + 48 AS 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 col0" at position 0 and "CASE Int64\(57\) WHEN \(\- count\(\*\)\) THEN NULL ELSE Int64\(\-65\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "CASE Int64\(57\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(\-65\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 70 ) AS col0, CASE 57 WHEN - COUNT ( * ) THEN NULL ELSE - 65 END AS col0 query I rowsort @@ -24439,7 +24439,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\(\*\) AS col0" at position 1 have the 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 @@ -24882,7 +24882,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\(\*\) AS col2" at position 1 have the 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 @@ -25006,7 +25006,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\(\*\) 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 @@ -25028,7 +25028,7 @@ SELECT DISTINCT - 64 / 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- min\(Int64\(\-42\)\)\), \(\- Int64\(32\)\), Int64\(99\), \(\- count\(\*\)\)\) \+ \(\- count\(\*\)\) \* Int64\(25\) 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 "coalesce\(\(\- min\(Int64\(\-42\)\)\), \(\- Int64\(32\)\), Int64\(99\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(25\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COALESCE ( - + MIN ( - 42 ), - + 32, + 99, + - COUNT ( * ) ) + ( - + COUNT ( * ) ) * + 25 AS col0, 72 AS col0 query I rowsort label-4769 @@ -25753,7 +25753,7 @@ SELECT + ( + ( 29 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(\*\) \+ \(\- \(\- Int64\(\-79\)\)\) \- \(\- Int64\(19\)\) \* nullif\(Int64\(38\), Int64\(22\)\) \* Int64\(19\) \+ \(\- \(\- min\(Int64\(51\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(\-79\)\)\) \- \(\- Int64\(19\)\) \* nullif\(Int64\(38\), Int64\(22\)\) \* Int64\(19\) \+ \(\- \(\- min\(Int64\(51\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) + - + ( - - 79 ) - - + 19 * + NULLIF ( 38, 22 ) * + 19 + - - MIN ( 51 ) col0 query II rowsort label-4907 @@ -27899,7 +27899,7 @@ SELECT DISTINCT 64 * - 52 * + + ( - 10 ) # Datafusion - Expected - -14 # Datafusion - Expected - 5727 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- Int64\(75\)\) AS col1" at position 0 and "\(\- Int64\(\-27\)\) \+ Int64\(\-60\) \* sum\(\(\- Int64\(95\)\)\) \+ \(\- Int64\(\-70\)\) / Int64\(\-72\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(75\)\) AS col1" at position 0 and "\(\- Int64\(\-27\)\) \+ Int64\(\-60\) \* sum\(\(\- Int64\(95\)\)\) \+ \(\- Int64\(\-70\)\) / Int64\(\-72\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 61 + - + 75 AS col1, ( - - 27 ) + + - 60 * SUM ( - + 95 ) + - - 70 / + - 72 * - - COUNT ( * ) AS col1, COALESCE ( - NULLIF ( - + ( + + 93 ), + - CAST ( + 53 AS FLOAT8 ) + - 87 ), + + COUNT ( * ) ) + - 43 query I rowsort label-5313 @@ -28207,7 +28207,7 @@ SELECT + CASE + - 19 WHEN - + MIN ( + - 26 ) * - 91 + + 22 THEN - - 10 ELSE + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-82\)\) \- \(\- \(\- nullif\(Int64\(\-9\), Int64\(\-38\)\)\)\) AS col2" at position 0 and "\(\- CASE Int64\(23\) WHEN Int64\(\-45\) \+ Int64\(13\) THEN Int64\(99\) WHEN \(\- coalesce\(Int64\(41\), Int64\(\-99\), Int64\(\-86\)\)\) \+ Int64\(\-81\) THEN Int64\(23\) \* \(\- count\(\*\)\) WHEN Int64\(\-4\) \* \(\- \(\- count\(Int64\(74\)\)\)\) 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\(\-82\)\) \- \(\- \(\- nullif\(Int64\(\-9\), Int64\(\-38\)\)\)\) AS col2" at position 0 and "\(\- CASE Int64\(23\) WHEN Int64\(\-45\) \+ Int64\(13\) THEN Int64\(99\) WHEN \(\- coalesce\(Int64\(41\), Int64\(\-99\), Int64\(\-86\)\)\) \+ Int64\(\-81\) THEN Int64\(23\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-4\) \* \(\- \(\- count\(Int64\(74\)\)\)\) THEN NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 82 - - - NULLIF ( - 9, - 38 ) AS col2, - CASE 23 WHEN + - 45 + 13 THEN + 99 WHEN - + COALESCE ( 41, - 99, - 86 ) + ( - 81 ) THEN + 23 * - + COUNT ( * ) WHEN - 4 * - - COUNT ( + 74 ) THEN NULL END AS col2 query I rowsort label-5371 @@ -28450,7 +28450,7 @@ SELECT ALL - SUM ( - - 30 ) * + 52 # Datafusion - Expected - -16 # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(17\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(17\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - + + 17 AS col1, - CASE + + 57 WHEN + 93 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN - 94 WHEN 15 * - 93 THEN - - COALESCE ( - 55, - + 98 * - 5, MAX ( DISTINCT - 84 ) ) * ( - 38 ) * + 55 END * + 7 - 72 + + MIN ( - 71 ), + 84 AS col1 query II rowsort @@ -28855,7 +28855,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\(\*\) AS col0" at position 1 have the 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 @@ -29199,7 +29199,7 @@ SELECT ALL 80 + 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "coalesce\(nullif\(Int64\(72\), Int64\(32\) / Int64\(\-15\) \+ Int64\(5\)\), \(\- CASE count\(\*\) WHEN Int64\(92\) THEN Int64\(75\) \+ \(\- Int64\(\-94\)\) / Int64\(\-44\) \+ \(\- count\(\*\)\) END\), Int64\(14\) \* Int64\(42\) \+ Int64\(\-61\) \* \(\- count\(\*\)\) \+ sum\(DISTINCT 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\(49\) AS col0" at position 0 and "coalesce\(nullif\(Int64\(72\), Int64\(32\) / Int64\(\-15\) \+ Int64\(5\)\), \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(92\) THEN Int64\(75\) \+ \(\- Int64\(\-94\)\) / Int64\(\-44\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\), Int64\(14\) \* Int64\(42\) \+ Int64\(\-61\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(DISTINCT Int64\(0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 49 col0, + ( + COALESCE ( NULLIF ( 72, + 32 / + - 15 + + 5 ), - CASE COUNT ( * ) WHEN + 92 THEN + 75 + ( - - 94 ) / - 44 + - COUNT ( * ) END, 14 * 42 + - 61 * - COUNT ( * ) + SUM ( DISTINCT - 0 ) ) ) AS col0 query I rowsort label-5559 @@ -29240,7 +29240,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\(\*\) AS col1" at position 1 have the 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 @@ -31006,7 +31006,7 @@ SELECT ALL - 49, - COUNT ( * ) / - + 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 col1" at position 0 and "Int64\(89\) \* Int64\(\-42\) \* CASE Int64\(\-86\) WHEN Int64\(31\) THEN NULL WHEN Int64\(93\) \+ Int64\(\-30\) \+ \(\- Int64\(14\)\) \* Int64\(\-47\) THEN coalesce\(count\(\*\), Int64\(52\) \* Int64\(37\) \+ nullif\(\(\- Int64\(53\)\), \(\- Int64\(\-47\)\) \* Int64\(24\) \* Int64\(81\)\) \+ nullif\(Int64\(3\), Int64\(\-95\)\) \* Int64\(11\)\) 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\(7\) AS col1" at position 0 and "Int64\(89\) \* Int64\(\-42\) \* CASE Int64\(\-86\) WHEN Int64\(31\) THEN NULL WHEN Int64\(93\) \+ Int64\(\-30\) \+ \(\- Int64\(14\)\) \* Int64\(\-47\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(52\) \* Int64\(37\) \+ nullif\(\(\- Int64\(53\)\), \(\- Int64\(\-47\)\) \* Int64\(24\) \* Int64\(81\)\) \+ nullif\(Int64\(3\), Int64\(\-95\)\) \* Int64\(11\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 7 AS col1, 89 * - 42 * CASE - 86 WHEN 31 THEN NULL WHEN + + 93 + - 30 + - ( 14 ) * + - 47 THEN + + COALESCE ( + COUNT ( * ), 52 * + + 37 + NULLIF ( - + 53, - - 47 * 24 * + 81 ) + NULLIF ( + + 3, + - 95 ) * 11 ) END AS col1 query I rowsort label-5900 @@ -31332,7 +31332,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\(\*\) 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 @@ -32189,7 +32189,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\(\*\) AS col1" at position 0 and "CASE Int64\(94\) WHEN count\(\*\) \+ Int64\(\-30\) THEN min\(Int64\(5\)\) WHEN 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 @@ -34786,7 +34786,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\(\*\)\) \+ 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 @@ -36247,7 +36247,7 @@ SELECT - 43 + + + 31 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "count\(\*\) \* Int64\(5\) \- Int64\(\-51\) \+ \(\- Int64\(28\)\) \* CAST\(NULL AS Int32\) / count\(\*\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(5\) \- Int64\(\-51\) \+ \(\- Int64\(28\)\) \* CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 37 AS col1, + COUNT ( * ) * 5 - - 51 + ( - + 28 ) * + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 87 AS col1 query II rowsort label-6894 @@ -36429,7 +36429,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\(\*\) AS col2" at position 1 have the 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 @@ -37745,7 +37745,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) \+ Int64\(\-80\) \+ \(\- CASE Int64\(61\) WHEN \(\- count\(\*\)\) THEN Int64\(\-52\) \+ Int64\(64\) / Int64\(15\) END\) / Int64\(\-45\) 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\(84\)\) \+ Int64\(\-80\) \+ \(\- CASE Int64\(61\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-52\) \+ Int64\(64\) / Int64\(15\) END\) / Int64\(\-45\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 84 ) + - 80 + - + CASE + + 61 WHEN - COUNT ( * ) THEN - 52 + + 64 / 15 END / - 45 col1, 92 AS col1 query I rowsort @@ -37969,7 +37969,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\(\*\) 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 @@ -38807,7 +38807,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\(\*\) AS col0" at position 1 have the 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 @@ -38873,7 +38873,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\(\*\) AS col0" at position 1 have the 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 @@ -39156,7 +39156,7 @@ SELECT + 83 + - + 71 + COUNT ( - 71 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "\(\- coalesce\(Int64\(6\), \(\- count\(\*\)\)\)\) \+ Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "\(\- coalesce\(Int64\(6\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 col2, - COALESCE ( + 6, - + COUNT ( * ) ) + 77 AS col2 query I rowsort @@ -39177,7 +39177,7 @@ SELECT DISTINCT - 38 + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2238 # Datafusion - Expected - 13688 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(87\) \* Int64\(\-26\) AS col2" at position 0 and "Int64\(48\) \+ coalesce\(\(\- \(\- count\(\*\)\)\), Int64\(72\), Int64\(88\) \+ Int64\(\-71\)\) \- Int64\(14\) \+ Int64\(41\) \* Int64\(37\) \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(87\) \* Int64\(\-26\) AS col2" at position 0 and "Int64\(48\) \+ coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(72\), Int64\(88\) \+ Int64\(\-71\)\) \- Int64\(14\) \+ Int64\(41\) \* Int64\(37\) \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 24 + + 87 * - 26 AS col2, + 48 + COALESCE ( - - COUNT ( * ), 72, + 88 + - 71 ) - + 14 + 41 * + 37 * + 9 AS col2 query I rowsort @@ -40996,7 +40996,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\(\*\) AS col0" at position 1 have the same 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 @@ -41472,7 +41472,7 @@ SELECT + 44 * 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "CASE Int64\(56\) WHEN Int64\(10\) THEN \(\- Int64\(16\)\) WHEN Int64\(13\) \- Int64\(22\) THEN Int64\(59\) WHEN Int64\(42\) \* Int64\(20\) \+ \(\- sum\(Int64\(32\) \- Int64\(50\)\)\) \* count\(\*\) THEN Int64\(\-46\) ELSE Int64\(40\) \+ Int64\(98\) 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\(14\) AS col1" at position 0 and "CASE Int64\(56\) WHEN Int64\(10\) THEN \(\- Int64\(16\)\) WHEN Int64\(13\) \- Int64\(22\) THEN Int64\(59\) WHEN Int64\(42\) \* Int64\(20\) \+ \(\- sum\(Int64\(32\) \- Int64\(50\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-46\) ELSE Int64\(40\) \+ Int64\(98\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 AS col1, CASE + + 56 WHEN 10 THEN - ( + 16 ) WHEN + 13 - 22 THEN + 59 WHEN 42 * + 20 + - SUM ( + 32 - + 50 ) * COUNT ( * ) THEN - 46 ELSE + 40 + 98 END AS col1 query I rowsort label-7897 @@ -41483,7 +41483,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\(\*\) 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 @@ -41835,7 +41835,7 @@ SELECT - 99 * - + 27 * - - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1241 -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\(\-69\)\) \* Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-69\)\) \* Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 AS col1, - COUNT ( * ) + - - 69 * 18 AS col1 query I rowsort label-7968 @@ -42782,7 +42782,7 @@ SELECT + CASE + 19 WHEN 80 + COUNT ( * ) + - 79 * 31 * - 84 + + 19 * - 1 THEN 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1107 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) \* \(\- min\(DISTINCT \(\- Int64\(\-94\)\)\)\) \* Int64\(\-3\) \* \(\- count\(\*\)\) \+ \(\- Int64\(21\)\) 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\(4\)\) \* \(\- min\(DISTINCT \(\- Int64\(\-94\)\)\)\) \* Int64\(\-3\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(21\)\) AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 4 * + ( - MIN ( DISTINCT - - 94 ) ) * - 3 * - COUNT ( * ) + - + 21 AS col2, - 40 col2 query I rowsort label-8149 @@ -43121,7 +43121,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ count\(\*\) \+ count\(\*\) \* Int64\(25\) 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\(21\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\) AS col0" at position 0 and "Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( ( + + 21 ) ) + + COUNT ( * ) + + + COUNT ( * ) * 25 AS col0, - 85 AS col0 query I rowsort label-8214 @@ -43713,7 +43713,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\(\*\) AS col1" at position 1 have the 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 @@ -44814,7 +44814,7 @@ SELECT - + 46 * + + 87 AS col1 # Datafusion - Expected - 27 # Datafusion - Expected - -1 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 AS col0, - COUNT ( * ) AS col0, + 93 - 74 query I rowsort @@ -44987,7 +44987,7 @@ SELECT ALL + 68 - - 68 + + COUNT ( DISTINCT 26 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 294 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(DISTINCT Int64\(6\)\)\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(\-69\) \+ Int64\(86\) \- Int64\(23\) \* sum\(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 "\(\- \(\- min\(DISTINCT Int64\(6\)\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-69\) \+ Int64\(86\) \- Int64\(23\) \* sum\(Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - MIN ( DISTINCT + + 6 ) AS col2, COUNT ( * ) + - 69 + 86 - + + 23 * + + SUM ( - 12 ) AS col2 query I rowsort label-8567 @@ -47351,7 +47351,7 @@ SELECT 38, 93 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - 58 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 1 and "\(\- count\(\*\)\) \- Int64\(\-57\) \+ \(\- Int64\(43\)\) \+ \(\- count\(\*\)\) \* Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-57\) \+ \(\- Int64\(43\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, + 58 col0, - COUNT ( * ) - - 57 + - + 43 + - COUNT ( * ) * + 94 AS col0 query I rowsort label-9015 @@ -47973,7 +47973,7 @@ SELECT 23 + 80 col0, - 5 * + - 81 * 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -12 -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\(13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 AS col1, COUNT ( * ) + - + 13 AS col1 query I rowsort label-9134 @@ -48094,7 +48094,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \- \(\- Int64\(68\)\) \+ Int64\(77\) \- \(\- count\(\*\)\) \+ Int64\(\-49\) \* Int64\(45\) / \(\- count\(\*\)\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \- \(\- Int64\(68\)\) \+ Int64\(77\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-49\) \* Int64\(45\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - - + 68 + + 77 - - COUNT ( * ) + - 49 * + 45 / - COUNT ( * ) * - 27 col0, 72 AS col0 query I rowsort label-9157 @@ -49613,7 +49613,7 @@ SELECT ALL + 12, - 21 * - 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78246 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(42\) \* Int64\(69\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \+ \(\- count\(\*\)\) \- Int64\(4\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(42\) \* Int64\(69\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 27 * + 42 * 69 AS col2, + CAST ( NULL AS FLOAT8 ) + - COUNT ( * ) - 4 * - COUNT ( * ) AS col2 query II rowsort label-9450 diff --git a/data/sqlite/random/expr/slt_good_40.slt b/data/sqlite/random/expr/slt_good_40.slt index 77c5115..7354c97 100644 --- a/data/sqlite/random/expr/slt_good_40.slt +++ b/data/sqlite/random/expr/slt_good_40.slt @@ -523,7 +523,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\(\*\) 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 @@ -1651,7 +1651,7 @@ SELECT 8 * - 57 * COALESCE ( + + 22, - NULLIF ( - 95, - COUNT ( * ) + + + SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(26\) AS Int32\) \+ \(\- count\(\*\)\) \+ count\(\*\) \* \(\- CASE max\(Int64\(22\)\) WHEN Int64\(27\) \+ \(\- Int64\(78\)\) \- Int64\(89\) \* Int64\(25\) THEN NULL WHEN Int64\(95\) \* Int64\(40\) THEN Int64\(93\) WHEN avg\(Int64\(\-90\)\) THEN NULL END\) \+ Int64\(91\) \* \(\- Int64\(\-10\)\) \* Int64\(61\) \- Int64\(\-52\) \* Int64\(46\) \* Int64\(\-73\) AS col1" at position 0 and "Int64\(\-21\) \* \(\- CASE \(\- CASE count\(DISTINCT \(\- Int64\(\-90\)\)\) WHEN \(\- count\(Int64\(81\)\)\) \* Int64\(\-67\) THEN CAST\(CAST\(NULL AS Int32\) AS Int32\) ELSE coalesce\(Int64\(75\), Int64\(\-72\) \+ Int64\(54\) \* Int64\(22\)\) END\) WHEN Int64\(66\) THEN NULL WHEN Int64\(69\) \+ Int64\(3\) THEN NULL ELSE Int64\(4\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(26\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE max\(Int64\(22\)\) WHEN Int64\(27\) \+ \(\- Int64\(78\)\) \- Int64\(89\) \* Int64\(25\) THEN NULL WHEN Int64\(95\) \* Int64\(40\) THEN Int64\(93\) WHEN avg\(Int64\(\-90\)\) THEN NULL END\) \+ Int64\(91\) \* \(\- Int64\(\-10\)\) \* Int64\(61\) \- Int64\(\-52\) \* Int64\(46\) \* Int64\(\-73\) AS col1" at position 0 and "Int64\(\-21\) \* \(\- CASE \(\- CASE count\(DISTINCT \(\- Int64\(\-90\)\)\) WHEN \(\- count\(Int64\(81\)\)\) \* Int64\(\-67\) THEN CAST\(CAST\(NULL AS Int32\) AS Int32\) ELSE coalesce\(Int64\(75\), Int64\(\-72\) \+ Int64\(54\) \* Int64\(22\)\) END\) WHEN Int64\(66\) THEN NULL WHEN Int64\(69\) \+ Int64\(3\) THEN NULL ELSE Int64\(4\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 26 AS INTEGER ) + - COUNT ( * ) + COUNT ( * ) * - CASE MAX ( + 22 ) WHEN + 27 + - + 78 - + 89 * 25 THEN NULL WHEN + 95 * 40 THEN 93 WHEN AVG ( - 90 ) THEN NULL END + + 91 * - - 10 * + 61 - - 52 * 46 * - 73 AS col1, - 21 * + - ( CASE - CASE COUNT ( DISTINCT - - 90 ) WHEN - COUNT ( 81 ) * - 67 THEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ELSE COALESCE ( + 75, + - 72 + 54 * 22 ) END WHEN + 66 THEN NULL WHEN 69 + 3 THEN NULL ELSE 4 END ) AS col1 query I rowsort @@ -3278,7 +3278,7 @@ SELECT + + 14 + + 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(75\) \+ Int64\(0\) / \(\- count\(\*\)\) \+ \(\- CASE count\(\*\) WHEN sum\(Int64\(73\)\) THEN \(\- Int64\(58\)\) \- count\(\*\) ELSE CASE WHEN NOT Int64\(71\) NOT IN \(\[Int64\(75\) \- min\(DISTINCT Int64\(\-25\) \+ Int64\(74\)\)\]\) THEN Int64\(\-10\) WHEN NULL >= min\(CASE CASE Int64\(14\) WHEN Int64\(50\) \+ Int64\(\-49\) THEN NULL ELSE Int64\(57\) \+ Int64\(9\) END WHEN Int64\(\-49\) \+ Int64\(80\) THEN Int64\(71\) \* Int64\(15\) \+ Int64\(47\) WHEN Int64\(88\) \+ CAST\(NULL AS Int32\) THEN Int64\(\-81\) \+ nullif\(Int64\(98\), Int64\(80\) \+ Int64\(\-78\)\) \* Int64\(26\) WHEN Int64\(94\) THEN NULL ELSE NULL END\) THEN NULL END \- Int64\(\-60\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(75\) \+ Int64\(0\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN sum\(Int64\(73\)\) THEN \(\- Int64\(58\)\) \- count\(Int64\(1\)\) AS count\(\*\) ELSE CASE WHEN NOT Int64\(71\) NOT IN \(\[Int64\(75\) \- min\(DISTINCT Int64\(\-25\) \+ Int64\(74\)\)\]\) THEN Int64\(\-10\) WHEN NULL >= min\(CASE CASE Int64\(14\) WHEN Int64\(50\) \+ Int64\(\-49\) THEN NULL ELSE Int64\(57\) \+ Int64\(9\) END WHEN Int64\(\-49\) \+ Int64\(80\) THEN Int64\(71\) \* Int64\(15\) \+ Int64\(47\) WHEN Int64\(88\) \+ CAST\(NULL AS Int32\) THEN Int64\(\-81\) \+ nullif\(Int64\(98\), Int64\(80\) \+ Int64\(\-78\)\) \* Int64\(26\) WHEN Int64\(94\) THEN NULL ELSE NULL END\) THEN NULL END \- Int64\(\-60\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 22 AS col2, 63 + + 75 + - 0 / - COUNT ( * ) + - CASE ( COUNT ( * ) ) WHEN ( + SUM ( 73 ) ) THEN - ( 58 ) - + ( + COUNT ( * ) ) ELSE + CASE WHEN NOT 71 NOT IN ( 75 - MIN ( DISTINCT - 25 + + ( 74 ) ) ) THEN - 10 WHEN NULL >= MIN ( CASE + CASE 14 WHEN + 50 + - 49 THEN NULL ELSE 57 + 9 END WHEN - 49 + + 80 THEN 71 * 15 + + 47 WHEN 88 + + CAST ( NULL AS INTEGER ) THEN - 81 + + NULLIF ( + 98, 80 + - 78 ) * + 26 WHEN ( 94 ) THEN NULL ELSE NULL END ) THEN NULL END - - 60 END col2 query I rowsort label-618 @@ -3832,7 +3832,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\(\*\) 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 @@ -4277,7 +4277,7 @@ SELECT 9 - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -87552 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(39\)\) \* Int64\(64\) \* \(\- Int64\(38\)\) \* \(\- count\(\*\)\) \* Int64\(36\) \* \(\- 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\(DISTINCT Int64\(39\)\) \* Int64\(64\) \* \(\- Int64\(38\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(36\) \* \(\- 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 COUNT ( DISTINCT 39 ) * + 64 * - + 38 * - COUNT ( * ) * 36 * - COUNT ( * ) AS col2, - 34 AS col2 query I rowsort label-808 @@ -4834,7 +4834,7 @@ SELECT DISTINCT 57 + - COUNT ( * ) 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\(21\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 ALL 21 col2, - COUNT ( * ) AS col2 query I rowsort label-915 @@ -5007,7 +5007,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\(\*\) 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 - Datafusion expected results: @@ -5177,7 +5177,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\(\*\) AS col2" at position 1 have 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 @@ -5572,7 +5572,7 @@ SELECT ALL COALESCE ( + 58, + 18 - + + 81, + - 93 ) * + - 6 * - 14 * + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-97\) AS col0" at position 0 and "\(\- 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\(\*\) \+ Int64\(\-97\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - 97 AS col0, - COUNT ( * ) * 64 AS col0 query I rowsort @@ -7069,7 +7069,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\(\*\) 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 @@ -8857,7 +8857,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\(\*\) 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 @@ -9102,7 +9102,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\(\*\) 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 @@ -9128,7 +9128,7 @@ SELECT ALL - ( 97 ) * + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* \(\- coalesce\(count\(\*\), Int64\(43\)\)\) AS col1" at position 0 and "count\(\*\) \* \(\- Int64\(29\)\) \+ \(\- Int64\(36\)\) \* \(\- \(\- nullif\(Int64\(7\), Int64\(72\) \+ CASE \(\- Int64\(\-79\)\) WHEN Int64\(34\) THEN NULL WHEN \(\- CASE Int64\(48\) WHEN sum\(Int64\(\-40\)\) \+ avg\(Int64\(81\)\) \+ \(\- Int64\(\-18\)\) \* Int64\(\-46\) \+ Int64\(86\) THEN CAST\(Int64\(60\) AS Int32\) \+ Int64\(76\) \* Int64\(95\) \+ Int64\(3\) \- Int64\(82\) \+ Int64\(\-24\) / \(\- Int64\(64\)\) \* \(\- Int64\(94\)\) END\) THEN NULL WHEN Int64\(20\) \* Int64\(67\) \- Int64\(62\) \* Int64\(81\) THEN Int64\(29\) ELSE Int64\(90\) \- Int64\(96\) END \+ Int64\(57\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(43\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(29\)\) \+ \(\- Int64\(36\)\) \* \(\- \(\- nullif\(Int64\(7\), Int64\(72\) \+ CASE \(\- Int64\(\-79\)\) WHEN Int64\(34\) THEN NULL WHEN \(\- CASE Int64\(48\) WHEN sum\(Int64\(\-40\)\) \+ avg\(Int64\(81\)\) \+ \(\- Int64\(\-18\)\) \* Int64\(\-46\) \+ Int64\(86\) THEN CAST\(Int64\(60\) AS Int32\) \+ Int64\(76\) \* Int64\(95\) \+ Int64\(3\) \- Int64\(82\) \+ Int64\(\-24\) / \(\- Int64\(64\)\) \* \(\- Int64\(94\)\) END\) THEN NULL WHEN Int64\(20\) \* Int64\(67\) \- Int64\(62\) \* Int64\(81\) THEN Int64\(29\) ELSE Int64\(90\) \- Int64\(96\) END \+ Int64\(57\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 * - ( + COALESCE ( COUNT ( * ), 43 ) ) col1, + COUNT ( * ) * - + 29 + - ( + 36 ) * - - NULLIF ( + 7, 72 + CASE - - 79 WHEN 34 THEN NULL WHEN - CASE 48 WHEN + SUM ( ALL - 40 ) + ( AVG ( ALL + 81 ) ) + - - 18 * + - 46 + + 86 THEN CAST ( + + 60 AS INTEGER ) + 76 * 95 + 3 - + 82 + + - 24 / - + 64 * - ( + 94 ) END THEN NULL WHEN 20 * + 67 - + 62 * 81 THEN + 29 ELSE 90 - 96 END + 57 ) AS col1 query I rowsort label-1730 @@ -9982,7 +9982,7 @@ SELECT ALL - 87 * COUNT ( * ) + - 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(40\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(40\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 47 AS col1, + 40 + 51 AS col1 query I rowsort @@ -10025,7 +10025,7 @@ SELECT + 59 + - 78 * 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(64\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 11 AS col1, 64 + - COUNT ( * ) AS col1 query I rowsort label-1902 @@ -12354,7 +12354,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\(\*\) AS col2" at position 1 have the 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 @@ -13556,7 +13556,7 @@ SELECT ALL - 64 * SUM ( DISTINCT 26 ) * - - 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1920 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(10\) \* \(\- coalesce\(Int64\(\-48\), count\(\*\) \* Int64\(2\)\)\) 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\(4\) \* Int64\(10\) \* \(\- coalesce\(Int64\(\-48\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\)\)\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 * + 10 * - COALESCE ( - 48, COUNT ( * ) * + 2 ) AS col2, + 11 AS col2 query I rowsort @@ -14139,7 +14139,7 @@ SELECT + 39 + - - ( + + COUNT ( * ) ) * + 35 col0, 66 # Datafusion - Expected - -59 # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ Int64\(77\) AS col1" at position 1 and "\(\- Int64\(\-91\)\) \+ CASE \(\- count\(\*\)\) WHEN \(\- avg\(DISTINCT Int64\(81\)\)\) \+ Int64\(\-74\) \+ Int64\(36\) / Int64\(\-91\) \* Int64\(\-42\) THEN NULL WHEN Int64\(69\) THEN Int64\(34\) / Int64\(\-52\) END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ Int64\(77\) AS col1" at position 1 and "\(\- Int64\(\-91\)\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- avg\(DISTINCT Int64\(81\)\)\) \+ Int64\(\-74\) \+ Int64\(36\) / Int64\(\-91\) \* Int64\(\-42\) THEN NULL WHEN Int64\(69\) THEN Int64\(34\) / Int64\(\-52\) END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 35 + COALESCE ( + ( - 35 ), + 37 + - 2 ) + - 59, - 72 + 77 col1, - - 91 + + + CASE - COUNT ( * ) WHEN - AVG ( DISTINCT + 81 ) + ( - 74 ) + 36 / - 91 * - 42 THEN NULL WHEN + 69 THEN + 34 / - 52 END col1 query I rowsort @@ -14274,7 +14274,7 @@ SELECT COUNT ( ALL + 65 ) - - MAX ( ALL - - 45 ) + 74 + + - COALESCE ( - - 82, + # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 80388 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(63\) \* Int64\(44\) \* count\(\*\) \* nullif\(max\(Int64\(29\)\), \(\- \(\- coalesce\(\(\- max\(\(\- coalesce\(Int64\(4\), Int64\(73\)\)\)\)\), Int64\(66\) \* Int64\(\-86\), Int64\(84\) \+ 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\(18\) AS col0" at position 0 and "Int64\(63\) \* Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) \* nullif\(max\(Int64\(29\)\), \(\- \(\- coalesce\(\(\- max\(\(\- coalesce\(Int64\(4\), Int64\(73\)\)\)\)\), Int64\(66\) \* Int64\(\-86\), Int64\(84\) \+ Int64\(71\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 18 AS col0, + 63 * + 44 * + COUNT ( * ) * NULLIF ( + MAX ( 29 ), - ( - COALESCE ( - + MAX ( - + COALESCE ( + 4, 73 ) ), 66 * - 86, + + 84 + + 71 ) ) ) AS col0 query I rowsort label-2719 @@ -14719,7 +14719,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\(\*\) AS col0" at position 1 have the 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 @@ -16198,7 +16198,7 @@ SELECT 87 * + - 62 - - + 22 + COUNT ( ALL - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 44202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-8\) \* Int64\(92\) \* Int64\(\-60\) \+ 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\(\*\)\) AS col1" at position 0 and "Int64\(\-8\) \* Int64\(92\) \* Int64\(\-60\) \+ Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col1, - 8 * 92 * - 60 + + 42 AS col1 query I rowsort label-3083 @@ -16503,7 +16503,7 @@ SELECT ALL - 1 * + + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(45\)\)\) / Int64\(85\) \+ Int64\(82\) \+ \(\- 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 "\(\- sum\(Int64\(45\)\)\) / Int64\(85\) \+ Int64\(82\) \+ \(\- 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 - + SUM ( 45 ) / + 85 + 82 + - COUNT ( * ) col1, + 15 AS col1 query I rowsort label-3141 @@ -16644,7 +16644,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\(\*\) 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 @@ -17220,7 +17220,7 @@ SELECT - 36 * - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / \(\- 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 "Int64\(48\) / \(\- 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 48 / - COUNT ( * ) AS col0, - ( 18 ) AS col0 query I rowsort label-3276 @@ -17653,7 +17653,7 @@ SELECT + 95 * 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(84\) \+ 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\) \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, + 84 + 84 AS col2 query I rowsort label-3359 @@ -17680,7 +17680,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\(\*\) 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 @@ -21135,7 +21135,7 @@ SELECT ALL + 43 AS col2, - 27 + 98 - + COUNT ( * ) AS col1 # Datafusion - Expected - 0 # Datafusion - Expected - 110 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-11\) AS col1" at position 1 and "count\(\*\) \* Int64\(\-76\) \+ Int64\(14\) / Int64\(\-7\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-11\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-76\) \+ Int64\(14\) / Int64\(\-7\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 37 / + - 54 AS col2, - 10 * - 11 AS col1, COUNT ( * ) * - 76 + 14 / - 7 AS col1 query I rowsort label-4027 @@ -21533,7 +21533,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 1233 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(15\) \* Int64\(88\) \+ Int64\(\-32\) / \(\- count\(\*\)\) \+ \(\- sum\(Int64\(72\)\)\) \- \(\- Int64\(47\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(15\) \* Int64\(88\) \+ Int64\(\-32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- sum\(Int64\(72\)\)\) \- \(\- Int64\(47\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 92 AS col2, 15 * 88 + + - 32 / - COUNT ( * ) + - SUM ( 72 ) - - + 47 * - COUNT ( * ) AS col2 query II rowsort @@ -24933,7 +24933,7 @@ SELECT NULLIF ( COUNT ( * ), 4 * 94 + + + 51 ) * - MIN ( + - 58 ) / + 18 - + - C # Datafusion - Datafusion expected results: # Datafusion - Expected - -5076 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(74\) / nullif\(count\(\*\), \(\- CAST\(\(\- Int64\(14\)\) AS Int32\)\) \* count\(\*\) \* \(\- \(\- avg\(Int64\(14\)\)\)\) \+ \(\- min\(DISTINCT Int64\(81\)\)\)\) \* count\(\*\) \- Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(74\) / nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(\(\- Int64\(14\)\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- avg\(Int64\(14\)\)\)\) \+ \(\- min\(DISTINCT Int64\(81\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 * + - 54 AS col2, 74 / NULLIF ( + + COUNT ( * ), - CAST ( - ( 14 ) AS INTEGER ) * + COUNT ( * ) * - - AVG ( + + 14 ) + + - MIN ( DISTINCT ( 81 ) ) ) * COUNT ( * ) - + 62 AS col2 query II rowsort @@ -25087,7 +25087,7 @@ SELECT - 76 * + MIN ( ALL + 49 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 3717 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(99\), Int64\(14\)\) AS col1" at position 0 and "coalesce\(Int64\(59\), Int64\(7\) \+ Int64\(2\), \(\- Int64\(\-79\)\) \* count\(\*\) \* \(\- Int64\(0\)\) \* Int64\(84\)\) \* \(\- 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 "nullif\(Int64\(99\), Int64\(14\)\) AS col1" at position 0 and "coalesce\(Int64\(59\), Int64\(7\) \+ Int64\(2\), \(\- Int64\(\-79\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(0\)\) \* Int64\(84\)\) \* \(\- Int64\(\-63\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + 99, 14 ) AS col1, COALESCE ( 59, 7 + 2, - - 79 * + COUNT ( * ) * - + 0 * 84 ) * - - 63 AS col1 query I rowsort @@ -25317,7 +25317,7 @@ SELECT 35 * + ( ( NULLIF ( + 15, + 11 * + 99 + + 79 ) ) ) - + COUNT ( * ) + - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / \(\- Int64\(\-46\)\) \* count\(\*\) \* Int64\(\-62\) \* \(\- Int64\(61\)\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / \(\- Int64\(\-46\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-62\) \* \(\- Int64\(61\)\) 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 18 / - - 46 * + COUNT ( * ) * - 62 * - + 61 AS col2, 85 AS col2 query I rowsort label-4820 @@ -25457,7 +25457,7 @@ SELECT ALL + 21 * - + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "CASE Int64\(28\) WHEN Int64\(0\) THEN count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "CASE Int64\(28\) WHEN Int64\(0\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 42 AS col1, CASE 28 WHEN + + 0 THEN + + COUNT ( * ) END AS col1 query I rowsort label-4846 @@ -25656,7 +25656,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4985 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(nullif\(count\(\*\), Int64\(93\) \+ \(\- Int64\(\-29\)\)\), Int64\(53\) \* Int64\(\-97\) \+ Int64\(\-43\) \* Int64\(\-35\)\)\) \* Int64\(22\) \* Int64\(6\) \* Int64\(\-38\) \+ Int64\(\-31\) AS col2" at position 0 and "Int64\(29\) \- Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(93\) \+ \(\- Int64\(\-29\)\)\), Int64\(53\) \* Int64\(\-97\) \+ Int64\(\-43\) \* Int64\(\-35\)\)\) \* Int64\(22\) \* Int64\(6\) \* Int64\(\-38\) \+ Int64\(\-31\) AS col2" at position 0 and "Int64\(29\) \- Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( NULLIF ( COUNT ( * ), 93 + - - 29 ), 53 * + + ( - 97 ) + + - 43 * - 35 ) * 22 * 6 * - 38 + + - 31 AS col2, 29 - - 13 col2 query II rowsort label-4884 @@ -26254,7 +26254,7 @@ SELECT ALL - - ( - 65 ) / 44 * + - 56 AS col2, + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* CASE Int64\(66\) WHEN Int64\(0\) / Int64\(57\) / Int64\(\-8\) \+ Int64\(\-81\) \+ \(\- count\(\*\)\) \- Int64\(28\) THEN Int64\(26\) END \* Int64\(1\) \* Int64\(\-9\) \* Int64\(59\) \+ \(\- coalesce\(Int64\(\-59\), nullif\(Int64\(\-47\), Int64\(\-32\) / \(\- Int64\(74\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\)\) \+ Int64\(\-90\) \+ \(\- count\(\*\)\), \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(41\)\) \+ Int64\(\-56\) \- Int64\(28\) \* Int64\(35\)\)\) AS col0" at position 0 and "count\(\*\) \* max\(Int64\(\-26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* CASE Int64\(66\) WHEN Int64\(0\) / Int64\(57\) / Int64\(\-8\) \+ Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(28\) THEN Int64\(26\) END \* Int64\(1\) \* Int64\(\-9\) \* Int64\(59\) \+ \(\- coalesce\(Int64\(\-59\), nullif\(Int64\(\-47\), Int64\(\-32\) / \(\- Int64\(74\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \+ Int64\(\-90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(41\)\) \+ Int64\(\-56\) \- Int64\(28\) \* Int64\(35\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(\-26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 41 * + CASE 66 WHEN - 0 / 57 / - 8 + - 81 + - COUNT ( * ) - + 28 THEN + 26 END * + 1 * - 9 * + ( 59 ) + - COALESCE ( - 59, NULLIF ( - 47, - 32 / - + 74 + - CAST ( NULL AS INTEGER ) + - CAST ( + - COUNT ( * ) AS INTEGER ) ) + + - 90 + - COUNT ( * ), - - COUNT ( * ) * - + 41 + - 56 - 28 * + 35 ) col0, COUNT ( * ) * MAX ( + - 26 ) AS col0 query I rowsort label-4997 @@ -27621,7 +27621,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\(\*\) 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 @@ -27741,7 +27741,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\(\*\) 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 @@ -28239,7 +28239,7 @@ NULL # 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\(\*\)\) 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\(\*\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 87 AS col1 query I rowsort label-5376 @@ -28270,7 +28270,7 @@ SELECT SUM ( ALL + 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-41\)\), Int64\(\-73\)\)\) \+ Int64\(\-20\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(83\) 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 "\(\- nullif\(\(\- Int64\(\-41\)\), Int64\(\-73\)\)\) \+ Int64\(\-20\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(83\) 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 + - NULLIF ( - - 41, + - 73 ) + - 20 * - - COUNT ( * ) + + 83 AS col0, 12 AS col0 query I rowsort label-5382 @@ -30597,7 +30597,7 @@ SELECT ALL + COALESCE ( + 60, 22 + + ( + + 83 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(78\)\) AS col1" at position 0 and "Int64\(\-20\) \- \(\- count\(Int64\(\-15\)\)\) \+ count\(\*\) \* CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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\(78\)\) AS col1" at position 0 and "Int64\(\-20\) \- \(\- count\(Int64\(\-15\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * - + 78 AS col1, ( - 20 ) - - + COUNT ( - 15 ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 query I rowsort @@ -32209,7 +32209,7 @@ SELECT CASE - 28 WHEN + + 8 * 75 - + COUNT ( * ) * - ( + + ( - 66 ) ) + 83 * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -3110 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(51\) \- nullif\(\(\- count\(\*\)\), count\(\*\) \* \(\- Int64\(94\)\)\) 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 "Int64\(\-61\) \* Int64\(51\) \- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(94\)\)\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 61 * + 51 - + NULLIF ( + - COUNT ( * ), COUNT ( * ) * - + 94 ) col1, 97 AS col1 query II rowsort @@ -33753,7 +33753,7 @@ SELECT ALL 67 / + - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "\(\- CASE Int64\(46\) WHEN Int64\(8\) \* Int64\(7\) \* CAST\(NULL AS Int32\) THEN count\(\*\) WHEN Int64\(19\) THEN CAST\(NULL AS Int32\) \* Int64\(34\) \* Int64\(84\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "\(\- CASE Int64\(46\) WHEN Int64\(8\) \* Int64\(7\) \* CAST\(NULL AS Int32\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(19\) THEN CAST\(NULL AS Int32\) \* Int64\(34\) \* Int64\(84\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 69 AS col1, - CASE + 46 WHEN + 8 * + + 7 * + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN 19 THEN + CAST ( NULL AS INTEGER ) * 34 * + 84 ELSE NULL END AS col1 query I rowsort @@ -33885,7 +33885,7 @@ SELECT - COUNT ( * ) * - 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4057 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(80\) WHEN count\(\*\) \* Int64\(4\) \+ Int64\(\-80\) \+ Int64\(\-30\) THEN \(\- Int64\(88\)\) WHEN Int64\(\-32\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(38\) \+ \(\- Int64\(\-59\)\) \- Int64\(\-19\) THEN NULL END\) \+ \(\- Int64\(\-52\)\) \* Int64\(\-83\) \* Int64\(\-12\) AS col0" at position 0 and "Int64\(47\) \* \(\- Int64\(85\)\) \+ 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 "\(\- CASE Int64\(80\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) \+ Int64\(\-80\) \+ Int64\(\-30\) THEN \(\- Int64\(88\)\) WHEN Int64\(\-32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(38\) \+ \(\- Int64\(\-59\)\) \- Int64\(\-19\) THEN NULL END\) \+ \(\- Int64\(\-52\)\) \* Int64\(\-83\) \* Int64\(\-12\) AS col0" at position 0 and "Int64\(47\) \* \(\- Int64\(85\)\) \+ Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE 80 WHEN COUNT ( * ) * 4 + - 80 + - 30 THEN - + 88 WHEN - 32 * - ( - COUNT ( * ) ) * 38 + ( - - 59 ) - - 19 THEN NULL END + - - 52 * - 83 * - 12 AS col0, + 47 * - + 85 + - 62 col0 query I rowsort label-6454 @@ -37932,7 +37932,7 @@ SELECT + + 78 - 29 # 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 col1" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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 ALL + ( 14 ) AS col1, COUNT ( * ) * - COUNT ( * ) AS col1 query I rowsort label-7225 @@ -39682,7 +39682,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\(\*\) 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 @@ -40209,7 +40209,7 @@ SELECT ALL - 35 + MIN ( DISTINCT + 26 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col2" at position 0 and "Int64\(5\) \* Int64\(\-24\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(5\) \* Int64\(\-24\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 67 AS col2, 5 * - 24 + - COUNT ( * ) AS col2 query II rowsort @@ -40519,7 +40519,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\(\*\) AS col1" at position 1 have 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 @@ -40650,7 +40650,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(14\) \+ sum\(DISTINCT Int64\(\-97\)\) \+ nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-88\)\) AS col1" at position 0 and "\(\- count\(\*\)\) / Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(14\) \+ sum\(DISTINCT Int64\(\-97\)\) \+ nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-88\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 81 * + 14 + SUM ( DISTINCT - 97 ) + + NULLIF ( - CAST ( NULL AS INTEGER ), - 88 ) AS col1, - COUNT ( * ) / 8 AS col1 query I rowsort label-7749 @@ -41598,7 +41598,7 @@ SELECT + 78 / + 10 + - + 36 + - - 26 # Datafusion - Expected - 42 # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col1" at position 1 and "Int64\(\-74\) / \(\- coalesce\(\(\- sum\(Int64\(91\)\)\), \(\- Int64\(86\)\) \+ \(\- CASE Int64\(52\) WHEN count\(\*\) THEN Int64\(41\) WHEN Int64\(56\) \* Int64\(39\) THEN NULL WHEN Int64\(\-7\) THEN NULL WHEN CASE Int64\(30\) WHEN Int64\(21\) THEN count\(\*\) \* count\(\*\) WHEN Int64\(75\) \* Int64\(31\) THEN NULL ELSE Int64\(\-73\) END \- Int64\(11\) THEN Int64\(99\) \- Int64\(77\) \* CAST\(NULL AS Int32\) WHEN Int64\(62\) THEN NULL ELSE NULL END\) \+ Int64\(22\), Int64\(49\)\)\) \- count\(\*\) \+ \(\- count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "Int64\(\-74\) / \(\- coalesce\(\(\- sum\(Int64\(91\)\)\), \(\- Int64\(86\)\) \+ \(\- CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(41\) WHEN Int64\(56\) \* Int64\(39\) THEN NULL WHEN Int64\(\-7\) THEN NULL WHEN CASE Int64\(30\) WHEN Int64\(21\) THEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \* Int64\(31\) THEN NULL ELSE Int64\(\-73\) END \- Int64\(11\) THEN Int64\(99\) \- Int64\(77\) \* CAST\(NULL AS Int32\) WHEN Int64\(62\) THEN NULL ELSE NULL END\) \+ Int64\(22\), Int64\(49\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42, - COUNT ( * ) * - COUNT ( * ) AS col1, - 74 / - COALESCE ( - SUM ( + 91 ), - + 86 + - CASE 52 WHEN COUNT ( * ) THEN + ( + + ( 41 ) ) WHEN + 56 * + 39 THEN NULL WHEN + - 7 THEN NULL WHEN + CASE + 30 WHEN 21 THEN + COUNT ( * ) * COUNT ( * ) WHEN 75 * 31 THEN NULL ELSE - 73 END - 11 THEN 99 - 77 * CAST ( NULL AS INTEGER ) WHEN 62 THEN NULL ELSE NULL END + 22, 49 ) - + COUNT ( * ) + - COUNT ( * ) col1 query I rowsort label-7929 @@ -41670,7 +41670,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\(\*\) AS col2" at position 1 have the 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 @@ -41832,7 +41832,7 @@ SELECT COALESCE ( + COUNT ( * ), + COUNT ( * ) / - - 88 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 400 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(16\) AS col2" at position 0 and "Int64\(75\) \- Int64\(\-41\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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\(16\) AS col2" at position 0 and "Int64\(75\) \- Int64\(\-41\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 * + 16 col2, 75 - + - 41 - - ( + + COUNT ( * ) ) AS col2 query I rowsort label-7973 @@ -42920,7 +42920,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\(\*\) 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 @@ -43123,7 +43123,7 @@ SELECT ALL + 65 + + + 45 AS col2, 42 / CAST ( - 68 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -5598 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) AS col1" at position 0 and "count\(\*\) \* \(\- max\(Int64\(79\)\)\) \* Int64\(70\) \+ Int64\(29\) \+ Int64\(\-70\) \- 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\(61\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(Int64\(79\)\)\) \* Int64\(70\) \+ Int64\(29\) \+ Int64\(\-70\) \- Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 61 ) AS col1, COUNT ( * ) * + - MAX ( 79 ) * + 70 + 29 + - 70 - 27 AS col1 query I rowsort label-8219 @@ -43192,7 +43192,7 @@ SELECT ALL ( + + 14 ) / - + 38 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 AS col2, - COUNT ( * ) AS col2 query II rowsort label-8232 @@ -44293,7 +44293,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\(\*\) AS col2" at position 1 have 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 @@ -44595,7 +44595,7 @@ SELECT ALL 13 * - + 84 * + + MAX ( - - ( - 8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(71\) AS col1" at position 0 and "Int64\(8\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(71\) AS col1" at position 0 and "Int64\(8\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 71 AS col1, 8 * - - CAST ( NULL AS INTEGER ) - + + 99 AS col1 query I rowsort @@ -45103,7 +45103,7 @@ SELECT 25 * 25 col1 # Datafusion - Expected - 50 # Datafusion - Expected - 25 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "\(\- \(\- nullif\(coalesce\(Int64\(7\), Int64\(27\) \+ \(\- Int64\(46\)\), \(\- Int64\(\-95\)\)\), count\(\*\) \* \(\- count\(\*\)\)\)\)\) \+ Int64\(58\) \- count\(\(\- Int64\(12\)\)\) \- coalesce\(\(\- count\(\*\)\), Int64\(40\), Int64\(\-69\)\) \* \(\- nullif\(Int64\(76\), \(\- count\(DISTINCT Int64\(20\)\)\) \* count\(\*\) \+ \(\- Int64\(\-27\)\)\)\) 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\(50\) AS col2" at position 0 and "\(\- \(\- nullif\(coalesce\(Int64\(7\), Int64\(27\) \+ \(\- Int64\(46\)\), \(\- Int64\(\-95\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \+ Int64\(58\) \- count\(\(\- Int64\(12\)\)\) \- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(40\), Int64\(\-69\)\) \* \(\- nullif\(Int64\(76\), \(\- count\(DISTINCT Int64\(20\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-27\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 50 AS col2, + NULLIF ( + 25, - + 80 ), - - NULLIF ( + COALESCE ( + 7, + + 27 + - + 46, - - 95 ), + COUNT ( * ) * - COUNT ( * ) ) + + + 58 - COUNT ( - + 12 ) - COALESCE ( + - COUNT ( * ), + 40, - 69 ) * - NULLIF ( 76, - COUNT ( DISTINCT 20 ) * COUNT ( * ) + - - 27 ) AS col2 query I rowsort label-8596 @@ -46342,7 +46342,7 @@ SELECT COALESCE ( + - 67, 95 + - CAST ( NULL AS INTEGER ) ) * - 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -872 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-80\) \* \(\- count\(\*\)\) \+ Int64\(88\) \* Int64\(\-9\) AS col2" at position 0 and "Int64\(21\) \+ coalesce\(count\(\*\), \(\- count\(\*\)\) \* Int64\(92\) \+ Int64\(62\), Int64\(\-10\) \+ Int64\(96\) \+ Int64\(78\) \* Int64\(42\) \* count\(\*\) \+ 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\(\*\)\) \* Int64\(\-80\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(88\) \* Int64\(\-9\) AS col2" at position 0 and "Int64\(21\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(92\) \+ Int64\(62\), Int64\(\-10\) \+ Int64\(96\) \+ Int64\(78\) \* Int64\(42\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) * - 80 * - COUNT ( * ) + 88 * - 9 AS col2, + 21 + COALESCE ( COUNT ( * ), - COUNT ( * ) * 92 + + 62, - 10 + 96 + 78 * + 42 * + COUNT ( * ) + - 68 ) AS col2 query I rowsort @@ -48644,7 +48644,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\(\*\) 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 @@ -48903,7 +48903,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\(80\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -49074,7 +49074,7 @@ SELECT ( + 62 ) / - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 246 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(82\) AS Int32\) \+ min\(\(\- Int64\(\-95\)\)\) \+ Int64\(69\) AS col1" at position 0 and "Int64\(70\) \+ count\(\*\) / Int64\(79\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(82\) AS Int32\) \+ min\(\(\- Int64\(\-95\)\)\) \+ Int64\(69\) AS col1" at position 0 and "Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(79\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + 82 AS INTEGER ) + + MIN ( ALL - - 95 ) + 69 AS col1, + 70 + + COUNT ( * ) / + + 79 + + 95 AS col1 query I rowsort label-9363 @@ -49261,7 +49261,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\(\*\) AS col1" at position 1 have the 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 @@ -49990,7 +49990,7 @@ SELECT ALL + 84 - - COUNT ( * ) + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(17\) / Int64\(42\) AS col2" at position 0 and "Int64\(\-30\) \+ \(\- \(\- nullif\(Int64\(\-6\), \(\- CAST\(coalesce\(Int64\(\-14\), Int64\(2\) \* Int64\(90\) \- Int64\(10\), Int64\(46\) \+ Int64\(63\) \* count\(\*\)\) AS Int32\)\)\)\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(17\) / Int64\(42\) AS col2" at position 0 and "Int64\(\-30\) \+ \(\- \(\- nullif\(Int64\(\-6\), \(\- CAST\(coalesce\(Int64\(\-14\), Int64\(2\) \* Int64\(90\) \- Int64\(10\), Int64\(46\) \+ Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\)\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 * 17 / + 42 col2, - 30 + - - NULLIF ( - 6, - CAST ( COALESCE ( - 14, 2 * + 90 - + 10, 46 + 63 * + + COUNT ( * ) ) AS INTEGER ) ) * ( + 3 ) AS col2 query I rowsort label-9537 @@ -50078,7 +50078,7 @@ SELECT - 29 * 37 * + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1915200 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-48\), Int64\(98\), Int64\(\-35\) \* Int64\(89\) \+ \(\- count\(\*\)\) \* Int64\(38\) \+ Int64\(41\)\)\) \* Int64\(60\) \* Int64\(7\) \* Int64\(\-95\) AS col2" at position 0 and "count\(\*\) \* \(\- \(\- coalesce\(Int64\(\-95\), 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 "\(\- coalesce\(Int64\(\-48\), Int64\(98\), Int64\(\-35\) \* Int64\(89\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(38\) \+ Int64\(41\)\)\) \* Int64\(60\) \* Int64\(7\) \* Int64\(\-95\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- coalesce\(Int64\(\-95\), Int64\(90\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - 48, + 98, + - 35 * 89 + - + COUNT ( * ) * 38 + 41 ) * + 60 * + 7 * - 95 AS col2, COUNT ( * ) * - - COALESCE ( - 95, + + 90 ) AS col2 query I rowsort label-9554 @@ -50187,7 +50187,7 @@ SELECT ALL + COUNT ( * ) AS col0, 33 # Datafusion - Expected - 70 # Datafusion - Expected - -3 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(94\), count\(\*\) \* nullif\(\(\- Int64\(\-82\)\), Int64\(27\)\) \* Int64\(\-31\)\)\) / Int64\(29\) AS col1" at position 1 and "Int64\(36\) \+ Int64\(\-5\) 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\), count\(Int64\(1\)\) AS count\(\*\) \* nullif\(\(\- Int64\(\-82\)\), Int64\(27\)\) \* Int64\(\-31\)\)\) / Int64\(29\) AS col1" at position 1 and "Int64\(36\) \+ Int64\(\-5\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 70, - NULLIF ( + 94, + COUNT ( * ) * + NULLIF ( - - 82, 27 ) * + - 31 ) / 29 AS col1, + 36 + - 5 AS col1 query I rowsort @@ -50543,7 +50543,7 @@ SELECT ALL 18 * + 57 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9539 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ Int64\(68\) \+ \(\- \(\- count\(\*\)\)\) \* Int64\(\-25\) \+ \(\- Int64\(16\)\) \* \(\- sum\(Int64\(\-17\)\)\) \* \(\- Int64\(35\)\) AS col1" at position 0 and "Int64\(17\) \+ 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\(\-24\) \+ Int64\(68\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-25\) \+ \(\- Int64\(16\)\) \* \(\- sum\(Int64\(\-17\)\)\) \* \(\- Int64\(35\)\) AS col1" at position 0 and "Int64\(17\) \+ Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 24 + + 68 + - - COUNT ( * ) * ( - 25 ) + - + 16 * - SUM ( - 17 ) * - + 35 AS col1, 17 + - 48 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 873bc6a..fb3327b 100644 --- a/data/sqlite/random/expr/slt_good_41.slt +++ b/data/sqlite/random/expr/slt_good_41.slt @@ -263,7 +263,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\(\*\) 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 @@ -704,7 +704,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\(24\) AS col1" at position 0 and "Int64\(84\) \* 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 @@ -2596,7 +2596,7 @@ SELECT COALESCE ( + 94, - 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2156 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(\-98\), Int64\(\-57\), min\(\(\- Int64\(53\)\)\) \* \(\- count\(\*\)\)\)\)\) \* Int64\(\-22\) 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 "\(\- \(\- coalesce\(Int64\(\-98\), Int64\(\-57\), min\(\(\- Int64\(53\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \* Int64\(\-22\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - COALESCE ( - 98, - 57, MIN ( ALL - + 53 ) * + - COUNT ( * ) ) ) * - 22 AS col2, 68 AS col2 query I rowsort @@ -5447,7 +5447,7 @@ SELECT - 73 + + 36 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 "coalesce\(count\(\*\), \(\- count\(DISTINCT Int64\(58\)\)\) \* Int64\(50\), Int64\(\-83\)\) 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 "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(DISTINCT Int64\(58\)\)\) \* Int64\(50\), Int64\(\-83\)\) 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 COALESCE ( COUNT ( * ), - + COUNT ( DISTINCT 58 ) * 50, - 83 ) AS col1, + 50 AS col1 query I rowsort label-1036 @@ -5621,7 +5621,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\(\*\) 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 @@ -5739,7 +5739,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\(\*\) AS col1" at position 1 have the 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 @@ -6283,7 +6283,7 @@ NULL # Datafusion - Expected - 840 # Datafusion - Expected - -95 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \- \(\- count\(\*\)\) AS col1" at position 1 and "\(\- 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\(\-96\) \- \(\- 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 10 * + 84, - 96 - - COUNT ( * ) AS col1, - + COUNT ( * ) AS col1 query II rowsort @@ -6363,7 +6363,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\(\*\) AS col0" at position 1 have the 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 @@ -6772,7 +6772,7 @@ SELECT DISTINCT 22 / + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1536 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(40\) \+ Int64\(16\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(\-41\) \* CAST\(Int64\(\-63\) AS Float64\) \* \(\- CASE \(\- count\(\*\)\) WHEN Int64\(\-13\) \* Int64\(36\) THEN Int64\(95\) \+ Int64\(\-51\) \+ Int64\(30\) \+ Int64\(21\) \+ Int64\(37\) \* Int64\(\-22\) \* \(\- Int64\(\-52\)\) \* Int64\(24\) \* count\(\*\) END\) \* Int64\(11\) \+ Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(40\) \+ Int64\(16\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(\-41\) \* CAST\(Int64\(\-63\) AS Float64\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-13\) \* Int64\(36\) THEN Int64\(95\) \+ Int64\(\-51\) \+ Int64\(30\) \+ Int64\(21\) \+ Int64\(37\) \* Int64\(\-22\) \* \(\- Int64\(\-52\)\) \* Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(11\) \+ Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 38 * 40 + + 16 AS col2, CAST ( NULL AS INTEGER ) - - 41 * + CAST ( - 63 AS FLOAT8 ) * - CASE + - COUNT ( * ) WHEN - 13 * + 36 THEN + 95 + - 51 + 30 + + 21 + 37 * - 22 * - - 52 * + 24 * COUNT ( * ) END * 11 + - 98 AS col2 query I rowsort label-1283 @@ -7234,7 +7234,7 @@ SELECT DISTINCT - + COUNT ( * ) * + 5 # 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\(\-24\)\) \+ \(\- max\(Int64\(\-61\)\)\) AS col2" at position 0 and "count\(\*\) \- Int64\(\-11\) / Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) \+ \(\- max\(Int64\(\-61\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-11\) / Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 24 + - MAX ( - 61 ) AS col2, COUNT ( * ) - - 11 / - 52 AS col2 query II rowsort label-1370 @@ -8548,7 +8548,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\(\*\) AS col1" at position 1 have the 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 @@ -8736,7 +8736,7 @@ SELECT DISTINCT 79 + - 6 * - 63 AS col1, + NULLIF ( 79, - 61 - 9 * 97 ) * 47 col # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ count\(\*\) \* Int64\(23\) AS col1" at position 0 and "min\(DISTINCT Int64\(40\)\) / Int64\(62\) \* 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\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) AS col1" at position 0 and "min\(DISTINCT Int64\(40\)\) / Int64\(62\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 33 + COUNT ( * ) * + 23 AS col1, MIN ( DISTINCT 40 ) / + ( 62 ) * + 60 AS col1 query II rowsort @@ -8861,7 +8861,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 1408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \- \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(16\) \* Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(16\) \* Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 60 - - COUNT ( * ) AS col2, 16 * + 88 AS col2 query I rowsort @@ -9177,7 +9177,7 @@ SELECT ALL + 36 - + - 26 + - 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6090 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \- max\(Int64\(15\)\) \+ CASE \(\- coalesce\(Int64\(\-41\), \(\- Int64\(\-79\)\)\)\) WHEN \(\- count\(\*\)\) \* Int64\(64\) / Int64\(86\) THEN NULL WHEN \(\- CASE count\(\*\) WHEN Int64\(31\) \+ Int64\(82\) \* avg\(Int64\(85\)\) \+ \(\- Int64\(\-56\)\) THEN NULL WHEN Int64\(3\) THEN \(\- count\(\*\)\) END\) \* Int64\(75\) THEN sum\(Int64\(49\)\) \* Int64\(\-39\) ELSE Int64\(\-99\) \* Int64\(\-62\) END \- Int64\(65\) AS col0" at position 0 and "Int64\(\-97\) / 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\(32\) \- max\(Int64\(15\)\) \+ CASE \(\- coalesce\(Int64\(\-41\), \(\- Int64\(\-79\)\)\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(64\) / Int64\(86\) THEN NULL WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(31\) \+ Int64\(82\) \* avg\(Int64\(85\)\) \+ \(\- Int64\(\-56\)\) THEN NULL WHEN Int64\(3\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* Int64\(75\) THEN sum\(Int64\(49\)\) \* Int64\(\-39\) ELSE Int64\(\-99\) \* Int64\(\-62\) END \- Int64\(65\) AS col0" at position 0 and "Int64\(\-97\) / Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 - MAX ( + 15 ) + CASE - COALESCE ( - 41, - - 79 ) WHEN - COUNT ( * ) * + 64 / + 86 THEN NULL WHEN + - CASE + COUNT ( * ) WHEN 31 + + 82 * AVG ( ALL + 85 ) + - - 56 THEN NULL WHEN 3 THEN - + COUNT ( * ) END * + + 75 THEN + SUM ( 49 ) * + - 39 ELSE - 99 * - 62 END - + + 65 AS col0, - 97 / - 91 AS col0 query I rowsort label-1740 @@ -9362,7 +9362,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-15\), nullif\(\(\- count\(\*\)\), Int64\(23\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-99\) \* Int64\(\-91\) \+ count\(\*\) \- Int64\(43\)\)\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-15\), nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(23\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-99\) \* Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(43\)\)\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( - 15, NULLIF ( - COUNT ( * ), + 23 - - CAST ( NULL AS INTEGER ) + + - 99 * - 91 + + COUNT ( * ) - + + 43 ) ) AS col0, - 83 AS col0 query II rowsort label-1776 @@ -10217,7 +10217,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\(\*\) 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 @@ -10585,7 +10585,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\(\*\) 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 @@ -10975,7 +10975,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 53 AS col1, CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 query I rowsort label-2085 @@ -15048,7 +15048,7 @@ SELECT + 5 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -6495 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-66\) AS Int32\)\) \* count\(\*\) / Int64\(34\) \* Int64\(\-73\) \- min\(DISTINCT \(\- Int64\(59\)\)\) \* \(\- \(\- count\(\*\)\)\) \* count\(DISTINCT Int64\(\-19\)\) AS col0" at position 0 and "Int64\(89\) \* Int64\(\-72\) \- Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-66\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \* Int64\(\-73\) \- min\(DISTINCT \(\- Int64\(59\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(DISTINCT Int64\(\-19\)\) AS col0" at position 0 and "Int64\(89\) \* Int64\(\-72\) \- Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * COUNT ( * ) / 34 * - 73 - + + MIN ( DISTINCT - + 59 ) * - - COUNT ( * ) * COUNT ( DISTINCT - 19 ) AS col0, 89 * - 72 - 87 AS col0 query II rowsort label-2865 @@ -15149,7 +15149,7 @@ SELECT ALL - 85 * + 13 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CASE Int64\(\-34\) WHEN Int64\(88\) THEN \(\- count\(\*\)\) \+ Int64\(29\) \- count\(\*\) WHEN Int64\(57\) / Int64\(\-22\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CASE Int64\(\-34\) WHEN Int64\(88\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) \- count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(57\) / Int64\(\-22\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 53 col1, CASE - 34 WHEN + 88 THEN - + COUNT ( * ) + 29 - + COUNT ( * ) WHEN 57 / - 22 THEN NULL END AS col1 query I rowsort @@ -15326,7 +15326,7 @@ SELECT ALL - + 58 AS col1 # 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 "\(\- nullif\(Int64\(11\), \(\- sum\(Int64\(32\)\)\)\)\) / Int64\(\-37\) \+ Int64\(85\) \- Int64\(27\) AS col1" at position 0 and "CASE count\(\*\) WHEN Int64\(\-33\) / count\(DISTINCT Int64\(40\)\) \- Int64\(\-35\) THEN Int64\(\-9\) WHEN Int64\(58\) / Int64\(\-15\) \+ Int64\(81\) 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 "\(\- nullif\(Int64\(11\), \(\- sum\(Int64\(32\)\)\)\)\) / Int64\(\-37\) \+ Int64\(85\) \- Int64\(27\) AS col1" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-33\) / count\(DISTINCT Int64\(40\)\) \- Int64\(\-35\) THEN Int64\(\-9\) WHEN Int64\(58\) / Int64\(\-15\) \+ Int64\(81\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - NULLIF ( + 11, - SUM ( ALL 32 ) ) / + - 37 + 85 - 27 AS col1, CASE COUNT ( * ) WHEN + - 33 / + COUNT ( DISTINCT + 40 ) - - 35 THEN - 9 WHEN 58 / - 15 + + 81 THEN NULL END AS col1 query I rowsort @@ -15649,7 +15649,7 @@ SELECT - 31 - + + NULLIF ( - + ( + COUNT ( * ) ), + - NULLIF ( COALESCE ( + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -271440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(58\) \* count\(\*\) \* \(\- coalesce\(Int64\(60\), \(\- Int64\(91\)\) \* CAST\(\(\- max\(Int64\(58\)\)\) AS Int32\) \- \(\- count\(\*\)\)\)\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(58\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(Int64\(60\), \(\- Int64\(91\)\) \* CAST\(\(\- max\(Int64\(58\)\)\) AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 52 AS col1, + 58 * + + COUNT ( * ) * - COALESCE ( + 60, - + 91 * + CAST ( + - MAX ( ALL + 58 ) AS INTEGER ) - + ( - COUNT ( * ) ) ) * 78 AS col1 query I rowsort label-2980 @@ -15942,7 +15942,7 @@ SELECT ALL + ( + 23 ) col2 # 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\(\-9\) \+ \(\- count\(\*\)\) \- Int64\(\-92\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-92\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 9 + + - COUNT ( * ) - + - 92 AS col1, + 31 AS col1 query I rowsort @@ -16512,7 +16512,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2589 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(52\) \+ Int64\(\-11\) AS col0" at position 0 and "\(\- coalesce\(\(\- coalesce\(count\(\*\), Int64\(\-94\) \* coalesce\(\(\- count\(\*\)\), \(\- count\(\*\)\)\) \+ Int64\(\-57\) \* Int64\(\-90\), \(\- Int64\(\-83\)\) \* Int64\(\-27\) \+ Int64\(56\) \* Int64\(40\) \* Int64\(96\) \* Int64\(2\)\)\), Int64\(7\), Int64\(\-17\) \* 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\(50\) \* Int64\(52\) \+ Int64\(\-11\) AS col0" at position 0 and "\(\- coalesce\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-94\) \* coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-57\) \* Int64\(\-90\), \(\- Int64\(\-83\)\) \* Int64\(\-27\) \+ Int64\(56\) \* Int64\(40\) \* Int64\(96\) \* Int64\(2\)\)\), Int64\(7\), Int64\(\-17\) \* Int64\(65\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 50 * 52 + - 11 col0, - COALESCE ( + ( - COALESCE ( COUNT ( * ), - 94 * ( COALESCE ( + - COUNT ( * ), - COUNT ( * ) ) ) + + - 57 * - 90, - ( - 83 ) * - 27 + + 56 * + + 40 * 96 * + 2 ) ), 7, - 17 * + 65 ) AS col0 query I rowsort @@ -16846,7 +16846,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\(\*\) 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 @@ -18853,7 +18853,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\(\-28\) AS col2" at position 0 and "Int64\(1\) \+ \(\- count\(\*\)\) \* Int64\(73\) \+ Int64\(\-30\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -19266,7 +19266,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\(\*\) AS col0" at position 1 have the 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 @@ -19359,7 +19359,7 @@ SELECT + + ( + - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(\-27\) \- count\(\*\) \- 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\(7\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(\-27\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 7 AS col0, 10 + - 27 - + + COUNT ( * ) - + 71 AS col0 query I rowsort label-3692 @@ -19616,7 +19616,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\(\*\)\) WHEN Int64\(94\) THEN count\(DISTINCT Int64\(80\)\) \+ Int64\(22\) END\) \* 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 @@ -20672,7 +20672,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "coalesce\(Int64\(\-5\), count\(\*\), Int64\(63\) \* coalesce\(Int64\(\-4\), \(\- Int64\(\-65\)\) / Int64\(12\)\) \* \(\- Int64\(16\)\) \* Int64\(\-63\) \+ Int64\(99\), Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "coalesce\(Int64\(\-5\), count\(Int64\(1\)\) AS count\(\*\), Int64\(63\) \* coalesce\(Int64\(\-4\), \(\- Int64\(\-65\)\) / Int64\(12\)\) \* \(\- Int64\(16\)\) \* Int64\(\-63\) \+ Int64\(99\), Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + ( - 5 ), COUNT ( * ), + 63 * + COALESCE ( - 4, - - 65 / 12 ) * - ( + + 16 ) * + - 63 + 99, 83 ) AS col2 query I rowsort @@ -21308,7 +21308,7 @@ SELECT 34 + - 48 AS col2 # 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\(\-55\) \* count\(\*\) \+ Int64\(10\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(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 - 55 * + COUNT ( * ) + 10 AS col0, - COUNT ( * ) AS col0 query I rowsort label-4060 @@ -23898,7 +23898,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\(\*\) 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 @@ -24238,7 +24238,7 @@ SELECT + 71 + - + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(28\)\) 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\(\*\)\) \* \(\- Int64\(28\)\) 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 ( * ) * + + ( - + 28 ) AS col0, 91 AS col0 query I rowsort label-4623 @@ -24463,7 +24463,7 @@ SELECT ALL - - COUNT ( * ) / 31 + + 86 * + 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) \+ count\(\*\) / \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 45 + + ( + COUNT ( * ) ) / - COUNT ( * ) AS col1, 13 col1 query I rowsort label-4666 @@ -25106,7 +25106,7 @@ SELECT + 69 * - 90 col0, - 92 - - + 31 * - + ( - - 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / \(\- Int64\(\-62\)\) 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\(\*\) / \(\- Int64\(\-62\)\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / - - 62 AS col0, 29 AS col0 query I rowsort label-4788 @@ -25375,7 +25375,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 1465 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "CAST\(Int64\(27\) AS Int32\) \* \(\- Int64\(\-51\)\) \+ \(\- Int64\(88\)\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "CAST\(Int64\(27\) AS Int32\) \* \(\- Int64\(\-51\)\) \+ \(\- Int64\(88\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 AS col1, + CAST ( + 27 AS INTEGER ) * - - 51 + - + 88 * - COUNT ( * ) col1 query I rowsort label-4838 @@ -27538,7 +27538,7 @@ SELECT ( 4 ) + 91 * - + ( + ( MIN ( ALL - 60 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 21902 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / max\(Int64\(\-79\)\) AS col2" at position 0 and "Int64\(\-33\) \+ Int64\(47\) \+ Int64\(\-15\) / Int64\(\-65\) \+ Int64\(6\) \* Int64\(\-38\) \* Int64\(96\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\) / max\(Int64\(\-79\)\) AS col2" at position 0 and "Int64\(\-33\) \+ Int64\(47\) \+ Int64\(\-15\) / Int64\(\-65\) \+ Int64\(6\) \* Int64\(\-38\) \* Int64\(96\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 58 / + MAX ( ( - 79 ) ) AS col2, - 33 + + 47 + - 15 / - 65 + + 6 * - 38 * 96 * - COUNT ( * ) AS col2 query I rowsort label-5253 @@ -29220,7 +29220,7 @@ SELECT ALL ( - 66 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ Int64\(\-21\) \+ coalesce\(Int64\(49\), Int64\(56\) \+ \(\- \(\- nullif\(Int64\(59\), 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 "Int64\(22\) \+ Int64\(\-21\) \+ coalesce\(Int64\(49\), Int64\(56\) \+ \(\- \(\- nullif\(Int64\(59\), 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 22 + - 21 + + + COALESCE ( 49, + ( + 56 ) + - ( - NULLIF ( 59, COUNT ( * ) ) ) ) AS col1, + 52 AS col1 query I rowsort @@ -29405,7 +29405,7 @@ SELECT 50 + - 29, - 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 81 -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\(\-20\)\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-20\)\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 AS col2, COUNT ( * ) + - - 20 * + 4 AS col2 query I rowsort @@ -29698,7 +29698,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\(\*\) AS col0" at position 1 have the 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 @@ -30247,7 +30247,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\(\*\) 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 @@ -32439,7 +32439,7 @@ SELECT DISTINCT NULLIF ( 0, + 49 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -2045 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(69\) AS col2" at position 0 and "\(\- coalesce\(Int64\(40\), Int64\(51\)\)\) \+ Int64\(74\) \+ \(\- Int64\(27\)\) \* 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\(\*\) \* Int64\(69\) AS col2" at position 0 and "\(\- coalesce\(Int64\(40\), Int64\(51\)\)\) \+ Int64\(74\) \+ \(\- Int64\(27\)\) \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + 69 AS col2, - COALESCE ( + 40, 51 ) + 74 + - + 27 * 77 AS col2 query I rowsort label-6197 @@ -33045,7 +33045,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\(\*\) AS Int32\) AS col0" at position 1 have the 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 @@ -34905,7 +34905,7 @@ SELECT COUNT ( * ) * - + 36 AS col0 # 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 "count\(\*\) \* Int64\(9\) 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\(\*\) \* Int64\(9\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + 9 col0, 0 col0 query I rowsort label-6668 @@ -35723,7 +35723,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\(\*\) AS col2" at position 1 have the 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 @@ -37455,7 +37455,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\(\*\) 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 @@ -38190,7 +38190,7 @@ SELECT ALL - + SUM ( + 30 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) AS col2" at position 0 and "count\(\*\) \* \(\- CASE Int64\(24\) WHEN Int64\(6\) THEN Int64\(98\) \+ \(\- Int64\(16\)\) WHEN Int64\(76\) THEN \(\- Int64\(\-48\)\) ELSE NULL END\) \- Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(24\) WHEN Int64\(6\) THEN Int64\(98\) \+ \(\- Int64\(16\)\) WHEN Int64\(76\) THEN \(\- Int64\(\-48\)\) ELSE NULL END\) \- Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 62 AS col2, + COUNT ( * ) * - + CASE 24 WHEN + 6 THEN + + 98 + - + 16 WHEN + 76 THEN - - 48 ELSE NULL END - 55 AS col2 query I rowsort label-7290 @@ -40925,7 +40925,7 @@ SELECT ALL 65 + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -1852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) \- \(\- Int64\(\-46\)\) \+ nullif\(Int64\(95\), Int64\(4\) / Int64\(90\)\) \* Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- \(\- Int64\(\-46\)\) \+ nullif\(Int64\(95\), Int64\(4\) / Int64\(90\)\) \* Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 92 col1, CAST ( - COUNT ( * ) AS INTEGER ) - - - 46 + NULLIF ( 95, 4 / + ( + 90 ) ) * - 19 col1 query II rowsort label-7818 @@ -41370,7 +41370,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\(\*\) 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 @@ -42601,7 +42601,7 @@ SELECT ALL NULLIF ( + ( - + ( - 35 ) ), + NULLIF ( - + 34, - 4 ) * + - 50 ) + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "nullif\(\(\- nullif\(Int64\(79\), \(\- Int64\(75\)\)\)\), CAST\(NULL AS Float64\) / count\(\*\)\) AS col1" at position 1 have the 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 "nullif\(\(\- nullif\(Int64\(79\), \(\- Int64\(75\)\)\)\), 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 89 AS col1, + NULLIF ( - NULLIF ( + 79, - + 75 ), CAST ( NULL AS FLOAT8 ) / COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: @@ -43717,7 +43717,7 @@ SELECT ALL - 59 + + 44 + + + ( 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 1526 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(\*\)\) WHEN \(\- Int64\(25\)\) THEN NULL WHEN \(\- Int64\(11\)\) \* CAST\(NULL AS Float64\) THEN NULL ELSE Int64\(\-23\) END AS col1" at position 0 and "Int64\(31\) \* Int64\(50\) \- Int64\(39\) \+ 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 "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(25\)\) THEN NULL WHEN \(\- Int64\(11\)\) \* CAST\(NULL AS Float64\) THEN NULL ELSE Int64\(\-23\) END AS col1" at position 0 and "Int64\(31\) \* Int64\(50\) \- Int64\(39\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE - ( COUNT ( * ) ) WHEN - + 25 THEN NULL WHEN - + 11 * CAST ( NULL AS FLOAT8 ) THEN NULL ELSE - 23 END col1, + 31 * + + 50 - + 39 + + 15 AS col1 query I rowsort label-8351 @@ -43985,7 +43985,7 @@ SELECT 24 * + - CASE + + COUNT ( * ) WHEN 86 THEN COUNT ( * ) + + 87 + + - 15 WH # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -32148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "Int64\(47\) \* count\(\*\) \* Int64\(38\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(38\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 60 AS col0, 47 * + COUNT ( * ) * 38 * - 18 AS col0 query I rowsort @@ -44421,7 +44421,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\(\*\) AS col1" at position 0 and "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: @@ -44905,7 +44905,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\(\*\) AS col0" at position 1 have the 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 @@ -46421,7 +46421,7 @@ SELECT ALL - 23 * + + 44 * - - 9 * + - NULLIF ( 16, + 22 * 50 / + ( 39 ) ) * + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 0 -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\(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\(14\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 AS col2, COUNT ( * ) / 20 AS col2 query I rowsort @@ -46765,7 +46765,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(85\) 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\(\*\) \* Int64\(85\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + 85 AS col2, 30 AS col2 query I rowsort @@ -47323,7 +47323,7 @@ SELECT + 23 + - + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(10\) WHEN Int64\(\-7\) THEN Int64\(10\) \* Int64\(0\) \* Int64\(62\) \+ Int64\(77\) WHEN count\(\*\) THEN Int64\(\-82\) END \* Int64\(23\) AS col0" at position 0 and "Int64\(\-53\) \- 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 "CASE Int64\(10\) WHEN Int64\(\-7\) THEN Int64\(10\) \* Int64\(0\) \* Int64\(62\) \+ Int64\(77\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-82\) END \* Int64\(23\) AS col0" at position 0 and "Int64\(\-53\) \- Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + + 10 WHEN - 7 THEN + 10 * + 0 * 62 + + 77 WHEN COUNT ( * ) THEN + - 82 END * 23 col0, - 53 - - 22 AS col0 query I rowsort @@ -47403,7 +47403,7 @@ SELECT + 88 - + - 48 + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(0\) \+ Int64\(95\) \+ \(\- 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 "Int64\(67\) \* Int64\(0\) \+ Int64\(95\) \+ \(\- 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 ALL + ( + 67 ) * - 0 + 95 + ( - + COUNT ( * ) ) AS col2, 23 AS col2 query I rowsort label-9058 @@ -48247,7 +48247,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\(\*\) 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 @@ -48329,7 +48329,7 @@ SELECT - ( - 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) \* CAST\(Int64\(\-85\) AS Int32\) \+ count\(\*\) \* \(\- CASE count\(\*\) WHEN Int64\(73\) THEN sum\(DISTINCT Int64\(\-75\)\) WHEN CAST\(NULL AS Int32\) \* Int64\(73\) \+ Int64\(\-10\) THEN count\(\*\) \* Int64\(\-23\) \* \(\- Int64\(14\)\) \* \(\- Int64\(36\)\) \* coalesce\(\(\- Int64\(\-21\)\), Int64\(\-94\)\) \+ Int64\(29\) END\) AS col1" at position 0 and "CAST\(Int64\(28\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) \* CAST\(Int64\(\-85\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(73\) THEN sum\(DISTINCT Int64\(\-75\)\) WHEN CAST\(NULL AS Int32\) \* Int64\(73\) \+ Int64\(\-10\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-23\) \* \(\- Int64\(14\)\) \* \(\- Int64\(36\)\) \* coalesce\(\(\- Int64\(\-21\)\), Int64\(\-94\)\) \+ Int64\(29\) END\) AS col1" at position 0 and "CAST\(Int64\(28\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 59 * + ( CAST ( - 85 AS INTEGER ) ) + + COUNT ( * ) * - CASE COUNT ( * ) WHEN 73 THEN + SUM ( DISTINCT - 75 ) WHEN + + CAST ( NULL AS INTEGER ) * + 73 + - 10 THEN + COUNT ( * ) * - 23 * - + 14 * - + 36 * + COALESCE ( - - 21, - 94 ) + + 29 END AS col1, CAST ( 28 AS INTEGER ) AS col1 query I rowsort @@ -48478,7 +48478,7 @@ SELECT DISTINCT - 26 + ( 11 ) + + 19 * + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) / Int64\(\-4\) AS col2" at position 0 and "Int64\(\-71\) / \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-4\) AS col2" at position 0 and "Int64\(\-71\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 / + - 4 AS col2, - 71 / - COUNT ( * ) AS col2 query I rowsort label-9264 @@ -50763,7 +50763,7 @@ SELECT COALESCE ( - 81, - 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(28\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(28\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / 28 AS col1, 91 AS col1 query I rowsort label-9706 diff --git a/data/sqlite/random/expr/slt_good_42.slt b/data/sqlite/random/expr/slt_good_42.slt index a551f35..b5567ca 100644 --- a/data/sqlite/random/expr/slt_good_42.slt +++ b/data/sqlite/random/expr/slt_good_42.slt @@ -1175,7 +1175,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\(\*\) 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 @@ -2099,7 +2099,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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have 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 @@ -2486,7 +2486,7 @@ SELECT - 9 AS col0, 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(6\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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 "Int64\(6\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 10 AS col0, + ( + 6 ) + - ( + COUNT ( * ) ) col0 query I rowsort label-469 @@ -3528,7 +3528,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\(\*\) AS col0" at position 1 have the 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 @@ -3630,7 +3630,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\(\*\) AS col2" at position 1 have the 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 @@ -3787,7 +3787,7 @@ SELECT DISTINCT - 82 + 26 # 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\(\*\)\)\) AS col1" at position 1 have the 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 DISTINCT - 33 AS col1, - ( - + COUNT ( * ) ) AS col1 query I rowsort label-717 @@ -4271,7 +4271,7 @@ SELECT - 59 AS col1, 30 # 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\(40\) AS col2" at position 0 and "Int64\(62\) / Int64\(\-98\) \* \(\- Int64\(\-85\)\) \* count\(\*\) \* 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\(40\) AS col2" at position 0 and "Int64\(62\) / Int64\(\-98\) \* \(\- Int64\(\-85\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 AS col2, 62 / - 98 * - - 85 * + COUNT ( * ) * + 39 AS col2 query I rowsort label-808 @@ -4850,7 +4850,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\(\*\) 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 @@ -6952,7 +6952,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 2205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col1" at position 0 and "count\(\*\) \* CASE count\(\*\) WHEN Int64\(65\) THEN \(\- coalesce\(CAST\(\(\- Int64\(\-64\)\) AS Int32\), Int64\(2\)\)\) ELSE Int64\(63\) \* Int64\(35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(65\) THEN \(\- coalesce\(CAST\(\(\- Int64\(\-64\)\) AS Int32\), Int64\(2\)\)\) ELSE Int64\(63\) \* Int64\(35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 15 AS col1, COUNT ( * ) * + CASE + COUNT ( * ) WHEN 65 THEN - COALESCE ( CAST ( - - 64 AS INTEGER ), + 2 ) ELSE + 63 * 35 END AS col1 query I rowsort label-1323 @@ -7154,7 +7154,7 @@ SELECT ALL + 87 * + 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(\-42\), \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(\-80\)\) \+ Int64\(59\) \+ CAST\(NULL AS Int32\) / Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(\-42\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-80\)\) \+ Int64\(59\) \+ CAST\(NULL AS Int32\) / Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) col0, COALESCE ( - 42, - - COUNT ( * ) * - ( ( - 80 ) ) + ( ( + 59 ) ) + + CAST ( NULL AS INTEGER ) / 14 ) AS col0 query I rowsort label-1361 @@ -7361,7 +7361,7 @@ SELECT ALL CASE - 37 WHEN + + 81 THEN NULL ELSE 50 + - 97 + 89 * + COUNT ( * ) * # Datafusion - Expected - -70 # Datafusion - Expected - -4094 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ Int64\(5\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-91\) \* 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\(\-75\) \+ Int64\(5\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-91\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 75 + + 5 AS col0, COUNT ( * ) + - 91 * 45 AS col0, + + 8 query I rowsort label-1400 @@ -7564,7 +7564,7 @@ SELECT 13 * 80 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) query I rowsort label-1440 @@ -8911,7 +8911,7 @@ SELECT + + 20 * - 60 * 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -8277 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- CASE Int64\(59\) WHEN Int64\(\-93\) THEN NULL WHEN \(\- Int64\(\-64\)\) THEN \(\- CASE Int64\(\-88\) WHEN min\(Int64\(34\)\) \- Int64\(50\) THEN NULL ELSE Int64\(67\) END\) \- \(\- count\(\*\)\) ELSE \(\- count\(\*\)\) END\) AS col1" at position 0 and "coalesce\(Int64\(\-92\), \(\- coalesce\(Int64\(13\), Int64\(76\), Int64\(\-63\) \* Int64\(56\) \+ Int64\(98\)\)\), Int64\(7\) \* \(\- count\(\*\)\) \+ Int64\(77\) \* Int64\(\-83\)\) \* Int64\(89\) \+ 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\(14\) \* \(\- CASE Int64\(59\) WHEN Int64\(\-93\) THEN NULL WHEN \(\- Int64\(\-64\)\) THEN \(\- CASE Int64\(\-88\) WHEN min\(Int64\(34\)\) \- Int64\(50\) THEN NULL ELSE Int64\(67\) END\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) AS col1" at position 0 and "coalesce\(Int64\(\-92\), \(\- coalesce\(Int64\(13\), Int64\(76\), Int64\(\-63\) \* Int64\(56\) \+ Int64\(98\)\)\), Int64\(7\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(77\) \* Int64\(\-83\)\) \* Int64\(89\) \+ Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 14 * - CASE + 59 WHEN - 93 THEN NULL WHEN - - 64 THEN + - CASE - 88 WHEN + + MIN ( 34 ) - 50 THEN NULL ELSE 67 END - - COUNT ( * ) ELSE + - COUNT ( * ) END AS col1, + COALESCE ( + - 92, - COALESCE ( + 13, 76, - 63 * + 56 + 98 ), 7 * - COUNT ( * ) + + 77 * - 83 ) * 89 + - 89 col1 query II rowsort label-1700 @@ -8981,7 +8981,7 @@ NULL # 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\(\-83\) \- \(\- coalesce\(\(\- count\(\*\)\), Int64\(\-44\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(\-83\) \- \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-44\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 21 AS col2, - 83 - - COALESCE ( - COUNT ( * ), - 44 ) AS col2 query II rowsort @@ -9026,13 +9026,13 @@ NULL # Datafusion - Expected - 139 # Datafusion - Expected - 1 # Datafusion - Expected - 530 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(86\) AS col1" at position 0 and "\(\- count\(\*\)\) \* Int64\(25\) \+ \(\- \(\- coalesce\(Int64\(\-37\), Int64\(30\)\)\)\) \* Int64\(\-15\) 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\(53\) \+ Int64\(86\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(25\) \+ \(\- \(\- coalesce\(Int64\(\-37\), Int64\(30\)\)\)\) \* Int64\(\-15\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 53 + + ( + 86 ) AS col1, + COUNT ( * ) AS col2, - COUNT ( * ) * + 25 + - - COALESCE ( + - 37, 30 ) * + - 15 AS col1 # 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\(\*\) AS col1" at position 1 have the 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 @@ -9913,7 +9913,7 @@ SELECT DISTINCT ( - 77 ) * - 33, 62 * 19 * + COUNT ( * ) + + - ( + + 2 ) AS col2 # 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\(\*\) \* \(\- count\(Int64\(\-36\)\)\) AS col0" at position 0 and "Int64\(26\) \+ Int64\(\-30\) \+ \(\- 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\(\-36\)\)\) AS col0" at position 0 and "Int64\(26\) \+ Int64\(\-30\) \+ \(\- Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - COUNT ( - 36 ) col0, + 26 + - 30 + + - ( 21 ) AS col0 query I rowsort label-1888 @@ -10319,7 +10319,7 @@ SELECT COUNT ( * ) * - 91 - + 11 + 93 + - - ( 59 ) # 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\(\*\)\)\)\) AS col1" at position 0 and "Int64\(54\) \+ 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\(54\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + - ( - COUNT ( * ) ) ) col1, 54 + 12 AS col1 query I rowsort @@ -10768,7 +10768,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\(\*\) 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 @@ -10971,7 +10971,7 @@ SELECT DISTINCT - 30 * - - 0 / - - COUNT ( * ) * - ( + 49 ) AS col1 # Datafusion - Expected - 47 # Datafusion - Expected - -67 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(27\) \* \(\- count\(\*\)\) \+ 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\(48\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 48 + - COUNT ( * ) AS col1, 27 * - COUNT ( * ) + - 40 col1, + - 84 query I rowsort label-2090 @@ -11092,7 +11092,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\(\*\) 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 @@ -13860,7 +13860,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / Int64\(\-92\) \* Int64\(20\) \+ count\(\*\) \- Int64\(31\) \- \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / Int64\(\-92\) \* Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(31\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 / - 92 * 20 + + COUNT ( * ) - + 31 - - ( COUNT ( * ) ) AS col2, + 62 AS col2 query I rowsort @@ -17681,7 +17681,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\(\*\) AS col0" at position 1 have the 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 @@ -20600,7 +20600,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\(\*\) AS col0" at position 1 have the 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 @@ -20995,7 +20995,7 @@ SELECT - 76 * 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "CASE Int64\(\-17\) WHEN Int64\(18\) \* Int64\(17\) / \(\- count\(\*\)\) \+ \(\- Int64\(\-76\)\) \+ Int64\(\-55\) \- \(\- count\(\*\)\) \* Int64\(78\) THEN Int64\(\-26\) WHEN \(\- CASE sum\(Int64\(18\)\) WHEN \(\- count\(\*\)\) \- max\(Int64\(61\)\) \+ Int64\(97\) THEN NULL WHEN \(\- count\(\*\)\) / Int64\(27\) \- Int64\(\-59\) \+ \(\- CAST\(NULL AS Int32\)\) THEN CASE Int64\(\-33\) WHEN \(\- Int64\(\-70\)\) \* Int64\(4\) / \(\- max\(Int64\(\-20\)\)\) \- Int64\(\-73\) THEN Int64\(4\) \* Int64\(\-73\) \+ Int64\(\-66\) / Int64\(47\) WHEN CAST\(NULL AS Float64\) THEN Int64\(\-16\) WHEN Int64\(85\) \- Int64\(\-58\) THEN Int64\(20\) \* Int64\(62\) END \* Int64\(81\) ELSE Int64\(\-67\) END\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "CASE Int64\(\-17\) WHEN Int64\(18\) \* Int64\(17\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-76\)\) \+ Int64\(\-55\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) THEN Int64\(\-26\) WHEN \(\- CASE sum\(Int64\(18\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- max\(Int64\(61\)\) \+ Int64\(97\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(27\) \- Int64\(\-59\) \+ \(\- CAST\(NULL AS Int32\)\) THEN CASE Int64\(\-33\) WHEN \(\- Int64\(\-70\)\) \* Int64\(4\) / \(\- max\(Int64\(\-20\)\)\) \- Int64\(\-73\) THEN Int64\(4\) \* Int64\(\-73\) \+ Int64\(\-66\) / Int64\(47\) WHEN CAST\(NULL AS Float64\) THEN Int64\(\-16\) WHEN Int64\(85\) \- Int64\(\-58\) THEN Int64\(20\) \* Int64\(62\) END \* Int64\(81\) ELSE Int64\(\-67\) END\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 98 ) AS col0, CASE - 17 WHEN 18 * + ( + 17 ) / - COUNT ( * ) + - - 76 + - 55 - - + COUNT ( * ) * 78 THEN - 26 WHEN - + CASE + SUM ( 18 ) WHEN + - COUNT ( * ) - MAX ( 61 ) + 97 THEN NULL WHEN - COUNT ( * ) / + 27 - - 59 + + - CAST ( NULL AS INTEGER ) THEN CASE - 33 WHEN - - 70 * 4 / - MAX ( - 20 ) - + - 73 THEN + 4 * - 73 + - 66 / 47 WHEN CAST ( NULL AS FLOAT8 ) THEN + - 16 WHEN 85 - - 58 THEN 20 * 62 END * 81 ELSE - 67 END THEN NULL END AS col0 query I rowsort @@ -21117,7 +21117,7 @@ SELECT 41 * CAST ( - 49 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -773 # Datafusion - Expected - 127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* count\(\*\) \+ Int64\(33\) \* Int64\(\-26\) AS col0" at position 0 and "Int64\(81\) \+ 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\(85\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(33\) \* Int64\(\-26\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 * + COUNT ( * ) + 33 * - 26 AS col0, + 81 + 46 AS col0 query I rowsort label-4036 @@ -21761,7 +21761,7 @@ SELECT ALL + 87 + + 0 * + 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -3019 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(19\) \- \(\- count\(\*\)\) \* Int64\(31\) \* \(\- 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\(6\) AS col1" at position 0 and "Int64\(19\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(31\) \* \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col1, 19 - + - COUNT ( * ) * + + 31 * - + 98 AS col1 query I rowsort label-4158 @@ -21943,7 +21943,7 @@ SELECT ALL 34 - + 61 / - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- \(\- Int64\(\-97\)\)\)\) \- \(\- 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 "min\(DISTINCT \(\- \(\- Int64\(\-97\)\)\)\) \- \(\- 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 DISTINCT + MIN ( DISTINCT - - ( - 97 ) ) - - COUNT ( * ) AS col0, 82 AS col0 query I rowsort @@ -22547,7 +22547,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\(\-92\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(16\) \+ Int64\(45\) \* count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -22565,7 +22565,7 @@ SELECT ( 90 ) * - 5 col1 # Datafusion - Expected - -12 # Datafusion - Expected - NULL skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- Int64\(85\)\) AS col0" at position 0 and "CASE \(\- Int64\(50\)\) WHEN Int64\(36\) \+ CASE \(\- \(\- nullif\(Int64\(92\), min\(DISTINCT Int64\(17\)\) \+ Int64\(54\)\)\)\) WHEN Int64\(43\) \+ Int64\(3\) THEN Int64\(57\) \* Int64\(30\) \* Int64\(\-8\) WHEN \(\- Int64\(94\)\) \* Int64\(\-23\) THEN \(\- Int64\(30\)\) / Int64\(\-88\) / CAST\(Int64\(0\) AS Int32\) END THEN CAST\(Int64\(63\) AS Int32\) END \* Int64\(86\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- Int64\(85\)\) AS col0" at position 0 and "CASE \(\- Int64\(50\)\) WHEN Int64\(36\) \+ CASE \(\- \(\- nullif\(Int64\(92\), min\(DISTINCT Int64\(17\)\) \+ Int64\(54\)\)\)\) WHEN Int64\(43\) \+ Int64\(3\) THEN Int64\(57\) \* Int64\(30\) \* Int64\(\-8\) WHEN \(\- Int64\(94\)\) \* Int64\(\-23\) THEN \(\- Int64\(30\)\) / Int64\(\-88\) / CAST\(Int64\(0\) AS Int32\) END THEN CAST\(Int64\(63\) AS Int32\) END \* Int64\(86\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 + ( - + 85 ) AS col0, CASE - ( + + 50 ) WHEN 36 + + CASE - - NULLIF ( + + 92, MIN ( DISTINCT 17 ) + + 54 ) WHEN 43 + + 3 THEN 57 * 30 * - 8 WHEN - + 94 * - 23 THEN - + 30 / + - 88 / CAST ( 0 AS INTEGER ) END THEN + + ( + CAST ( + 63 AS INTEGER ) ) END * 86 + - COUNT ( * ) AS col0 query I rowsort @@ -24960,7 +24960,7 @@ SELECT DISTINCT + 54 * + 89 * + 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(\-17\) \- \(\- count\(\*\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(\-17\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 45 AS col1, - 17 - - COUNT ( * ) * 88 AS col1 query I rowsort @@ -25275,7 +25275,7 @@ SELECT ALL - + 48 - 52 * + - 23 * 49 # 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\(\*\)\)\) AS col1" at position 0 and "Int64\(\-36\) \+ 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\(\-36\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - COUNT ( * ) ) AS col1, - 36 + 51 AS col1 query II rowsort label-4834 @@ -25710,7 +25710,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\(\*\) 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 @@ -26307,7 +26307,7 @@ SELECT + 80 - ( - 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(93\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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 "Int64\(93\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 57 col1, + 93 * ( - COUNT ( * ) ) AS col1 query I rowsort label-5032 @@ -27218,7 +27218,7 @@ SELECT + MIN ( ALL + - 7 ) # 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 "Int64\(\-1\) AS col0" at position 0 and "Int64\(91\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 "Int64\(91\) \* \(\- \(\- 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, 91 * - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -28522,7 +28522,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\(\*\) 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 @@ -29549,7 +29549,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\(\*\) AS col1" at position 1 have the 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 @@ -29560,7 +29560,7 @@ SELECT ALL + 3 / - 77 + + + 84 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) query I rowsort @@ -30148,7 +30148,7 @@ SELECT + MIN ( DISTINCT + 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5687 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(58\) \+ Int64\(\-8\) \+ count\(\*\) \* Int64\(11\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(58\) \+ Int64\(\-8\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 98 * + + 58 + - 8 + + COUNT ( * ) * 11 AS col2, 7 AS col2 query I rowsort label-5766 @@ -30370,7 +30370,7 @@ SELECT + MIN ( ALL + 73 ) * - + 74 * - + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(23\), \(\- Int64\(\-26\)\) \* 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 "coalesce\(Int64\(23\), \(\- Int64\(\-26\)\) \* 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 COALESCE ( + 23, - - 26 * + COUNT ( * ) ) AS col0, + 63 col0 query I rowsort label-5808 @@ -34362,7 +34362,7 @@ SELECT DISTINCT 25 * - - 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1, 9 col1 query I rowsort label-6578 @@ -35057,7 +35057,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\(\*\) AS col2" at position 1 have the 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 @@ -35471,7 +35471,7 @@ SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -151 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \- count\(\*\) \* count\(\(\- \(\- Int64\(\-10\)\)\)\) \+ \(\- Int64\(82\)\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \- count\(Int64\(1\)\) AS count\(\*\) \* count\(\(\- \(\- Int64\(\-10\)\)\)\) \+ \(\- Int64\(82\)\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 68 - COUNT ( * ) * COUNT ( ALL - - ( - 10 ) ) + - ( 82 ) AS col1, - 86 AS col1 query I rowsort label-6793 @@ -35662,7 +35662,7 @@ SELECT + 43 AS col1, + 16 * + - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col2" at position 0 and "Int64\(50\) \- count\(\*\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col2" at position 0 and "Int64\(50\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( ( - + ( 18 ) ) ) AS col2, + 50 - + COUNT ( * ) + + 98 AS col2 query I rowsort @@ -36137,7 +36137,7 @@ SELECT + + 60 * CAST ( + 85 AS INTEGER ) # 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\(7\) AS col1" at position 0 and "Int64\(71\) \* 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\(\*\) / Int64\(7\) AS col1" at position 0 and "Int64\(71\) \* Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / 7 AS col1, + 71 * - 0 AS col1 query I rowsort @@ -36550,7 +36550,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\(\*\) AS col1" at position 1 have the 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 @@ -37251,7 +37251,7 @@ SELECT ALL - 40 * 64 + + 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 8835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* CASE Int64\(\-11\) WHEN Int64\(\-24\) \+ Int64\(41\) THEN \(\- nullif\(Int64\(41\), count\(\*\) \+ Int64\(42\) \+ Int64\(36\)\)\) \* Int64\(21\) \* Int64\(\-64\) END \* Int64\(\-84\) AS col2" at position 0 and "Int64\(95\) \* 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\(\-71\) \* CASE Int64\(\-11\) WHEN Int64\(\-24\) \+ Int64\(41\) THEN \(\- nullif\(Int64\(41\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(42\) \+ Int64\(36\)\)\) \* Int64\(21\) \* Int64\(\-64\) END \* Int64\(\-84\) AS col2" at position 0 and "Int64\(95\) \* Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 71 * + CASE - 11 WHEN - 24 + ( + 41 ) THEN - NULLIF ( + 41, + COUNT ( * ) + + 42 + + + 36 ) * 21 * - 64 END * - 84 AS col2, 95 * + 93 AS col2 query I rowsort label-7134 @@ -37848,7 +37848,7 @@ SELECT - + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3984 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ Int64\(68\) \* count\(\*\) \* Int64\(60\) AS col0" at position 0 and "Int64\(32\) \- Int64\(\-88\) \+ CASE \(\- Int64\(\-30\)\) WHEN \(\- Int64\(\-1\)\) THEN NULL WHEN Int64\(69\) \+ Int64\(50\) \- \(\- Int64\(75\)\) THEN Int64\(\-28\) \* Int64\(84\) \* Int64\(5\) ELSE NULL END / Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(60\) AS col0" at position 0 and "Int64\(32\) \- Int64\(\-88\) \+ CASE \(\- Int64\(\-30\)\) WHEN \(\- Int64\(\-1\)\) THEN NULL WHEN Int64\(69\) \+ Int64\(50\) \- \(\- Int64\(75\)\) THEN Int64\(\-28\) \* Int64\(84\) \* Int64\(5\) ELSE NULL END / Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 96 + + 68 * + + COUNT ( * ) * 60 AS col0, 32 - - 88 + + CASE - - 30 WHEN - - 1 THEN NULL WHEN 69 + 50 - ( - + 75 ) THEN - 28 * 84 * 5 ELSE NULL END / 98 AS col0 query I rowsort label-7248 @@ -37870,7 +37870,7 @@ SELECT DISTINCT - + SUM ( + 35 ) + + 68 # Datafusion - Expected - NULL # Datafusion - Expected - -38 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \+ count\(Int64\(83\)\) \+ Int64\(52\) \+ Int64\(96\) / Int64\(49\) AS col1" at position 1 and "\(\- 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\(\-92\) \+ count\(Int64\(83\)\) \+ Int64\(52\) \+ Int64\(96\) / Int64\(49\) 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 - 33 * - CAST ( NULL AS INTEGER ), - 92 + COUNT ( ( 83 ) ) + + + 52 + + ( + + 96 ) / 49 col1, + - COUNT ( * ) AS col1 query I rowsort @@ -37980,7 +37980,7 @@ SELECT DISTINCT - 23 + + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 3796 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(\-18\)\) \+ Int64\(45\) \+ count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "\(\- min\(Int64\(73\)\)\) \* \(\- CAST\(Int64\(52\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(\-18\)\) \+ Int64\(45\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "\(\- min\(Int64\(73\)\)\) \* \(\- CAST\(Int64\(52\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + + 60 ) + - - 18 + 45 + + + COUNT ( * ) + - 33 col0, - MIN ( + + 73 ) * + - CAST ( + 52 AS INTEGER ) AS col0 query I rowsort @@ -38522,7 +38522,7 @@ SELECT + COUNT ( * ) * - + 96 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) query I rowsort @@ -41882,7 +41882,7 @@ SELECT - 66 + + 8 * 15 * MIN ( ALL - 22 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5760 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \- Int64\(81\) \* Int64\(72\) AS col0" at position 0 and "nullif\(Int64\(93\), Int64\(\-84\) \- Int64\(56\) \- \(\- count\(\*\)\) \+ 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\(72\) \- Int64\(81\) \* Int64\(72\) AS col0" at position 0 and "nullif\(Int64\(93\), Int64\(\-84\) \- Int64\(56\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 - 81 * + 72 AS col0, + NULLIF ( 93, - 84 - + 56 - + - COUNT ( * ) + 54 ) AS col0 query I rowsort @@ -41997,7 +41997,7 @@ SELECT ALL + - 11 + CAST ( + - 74 AS INTEGER ) + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "CASE Int64\(40\) WHEN Int64\(\-77\) \+ Int64\(\-26\) THEN NULL WHEN \(\- Int64\(55\)\) \- count\(\*\) THEN NULL ELSE Int64\(\-3\) END \* 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\(23\) AS col1" at position 0 and "CASE Int64\(40\) WHEN Int64\(\-77\) \+ Int64\(\-26\) THEN NULL WHEN \(\- Int64\(55\)\) \- count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(\-3\) END \* Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 23 AS col1, + CASE + 40 WHEN - 77 + - 26 THEN NULL WHEN - + 55 - + COUNT ( * ) THEN NULL ELSE - 3 END * ( 42 ) AS col1 query I rowsort label-8042 @@ -42345,7 +42345,7 @@ SELECT + CASE WHEN ( - 73 ) IS NULL THEN NULL ELSE - 21 END / SUM ( NULLIF ( + + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* \(\- Int64\(97\)\) \+ Int64\(34\) \+ \(\- CAST\(Int64\(58\) AS Int32\)\) AS col2" at position 0 and "Int64\(1\) \* count\(\*\) \* Int64\(68\) \* \(\- count\(Int64\(\-25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* \(\- Int64\(97\)\) \+ Int64\(34\) \+ \(\- CAST\(Int64\(58\) AS Int32\)\) AS col2" at position 0 and "Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(68\) \* \(\- count\(Int64\(\-25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS FLOAT8 ) * - + 97 + + 34 + + - CAST ( + + 58 AS INTEGER ) AS col2, 1 * COUNT ( * ) * + 68 * - COUNT ( + - 25 ) AS col2 query I rowsort label-8108 @@ -42361,7 +42361,7 @@ SELECT DISTINCT CASE + - 76 WHEN - 31 * - ( MAX ( 41 ) ) * + 44 * + - SUM ( DIST # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(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\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + 80 AS col1 query I rowsort @@ -42608,7 +42608,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\(\*\) 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 @@ -42817,7 +42817,7 @@ SELECT ( - MIN ( + ( - - 99 ) ) ) + + - 78 + + + 65 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) col1, + 61 AS col1 query I rowsort @@ -44085,7 +44085,7 @@ SELECT - MAX ( - 77 ) * + 33 + 64 + + + 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 117044 # Datafusion - Expected - -580 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- nullif\(Int64\(\-99\), Int64\(\-54\)\)\)\) \* \(\- Int64\(13\)\) \* \(\- Int64\(91\)\) \- Int64\(73\) \+ Int64\(47\) / Int64\(74\) AS col0" at position 0 and "nullif\(Int64\(\-73\), Int64\(84\)\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(\-41\) \+ Int64\(18\) \* Int64\(\-28\) \- \(\- Int64\(\-14\)\) \+ 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 "max\(\(\- nullif\(Int64\(\-99\), Int64\(\-54\)\)\)\) \* \(\- Int64\(13\)\) \* \(\- Int64\(91\)\) \- Int64\(73\) \+ Int64\(47\) / Int64\(74\) AS col0" at position 0 and "nullif\(Int64\(\-73\), Int64\(84\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-41\) \+ Int64\(18\) \* Int64\(\-28\) \- \(\- Int64\(\-14\)\) \+ Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - NULLIF ( ( - 99 ), - 54 ) ) * - + 13 * - + 91 - 73 + 47 / + 74 AS col0, NULLIF ( + - 73, + 84 ) * - - COUNT ( * ) + - 41 + 18 * - 28 - - - 14 + 52 AS col0 query I rowsort label-8445 @@ -44177,7 +44177,7 @@ SELECT ALL COUNT ( * ) - - + 46 + + 56 * - 41 - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -3658 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(12\) \+ \(\- Int64\(\-52\)\) AS col2" at position 0 and "Int64\(\-24\) \* Int64\(65\) \* Int64\(\-52\) \+ Int64\(97\) \* \(\- Int64\(46\)\) \* 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\(12\) \+ \(\- Int64\(\-52\)\) AS col2" at position 0 and "Int64\(\-24\) \* Int64\(65\) \* Int64\(\-52\) \+ Int64\(97\) \* \(\- Int64\(46\)\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 12 + - ( - 52 ) AS col2, - 24 * 65 * + - 52 + + 97 * - + 46 * + 19 AS col2 query I rowsort @@ -46673,7 +46673,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\(\*\) AS col1" at position 1 have the 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: @@ -46973,7 +46973,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\(\*\) AS col2" at position 1 have the 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 @@ -47288,7 +47288,7 @@ SELECT + COALESCE ( + MAX ( DISTINCT + 76 ), + + 52 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2871 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-35\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(2\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-35\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(2\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 * - 35 + - COUNT ( * ) AS col1, + 2 + - CAST ( + 10 AS INTEGER ) AS col1 query I rowsort label-9054 @@ -47524,7 +47524,7 @@ SELECT + CAST ( SUM ( - 97 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(67\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(67\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + ( + 67 ) AS col2, 7 col2 query I rowsort label-9099 @@ -47753,7 +47753,7 @@ SELECT - - COUNT ( * ) AS col2, MAX ( - 81 ) # 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\(0\) 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 "Int64\(0\) 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 ALL 0 AS col0, - COUNT ( * ) + + 61 AS col0 query I rowsort @@ -47847,7 +47847,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\(\*\) 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 @@ -47988,7 +47988,7 @@ SELECT 60 + + - 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1050 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(70\) \* Int64\(15\) AS col2" at position 0 and "Int64\(65\) / 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\(\*\) \* Int64\(70\) \* Int64\(15\) AS col2" at position 0 and "Int64\(65\) / Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 70 * + 15 AS col2, 65 / + + 81 col2 query I rowsort label-9185 @@ -48271,7 +48271,7 @@ SELECT + 1 * - 83 * + 0 + + 11 * CAST ( + COUNT ( * ) AS INTEGER ) + 60 + + 74 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 1056 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-38\) / Int64\(\-80\) \+ Int64\(\-33\) \* count\(\*\)\) \* \(\- Int64\(32\)\) AS col2" at position 0 and "min\(\(\- Int64\(\-68\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-38\) / Int64\(\-80\) \+ Int64\(\-33\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(32\)\) AS col2" at position 0 and "min\(\(\- Int64\(\-68\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( - + CAST ( NULL AS INTEGER ), + - 38 / + ( - 80 ) + + - 33 * + + ( COUNT ( * ) ) ) * - + 32 AS col2, + MIN ( - - 68 ) AS col2 query I rowsort label-9240 @@ -48713,7 +48713,7 @@ SELECT 96 * - 63 + - 43 AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - 25 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 0 and "coalesce\(Int64\(\-54\), Int64\(83\) \* Int64\(27\) / Int64\(\-65\) / Int64\(\-47\) \- count\(\*\) \+ Int64\(24\), Int64\(\-33\) \+ Int64\(\-60\) \+ Int64\(70\) \+ count\(\*\) \+ Int64\(19\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) / \(\- avg\(Int64\(10\)\)\) \+ Int64\(70\) \+ Int64\(88\) \* Int64\(\-41\) \* \(\- count\(\*\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "coalesce\(Int64\(\-54\), Int64\(83\) \* Int64\(27\) / Int64\(\-65\) / Int64\(\-47\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(24\), Int64\(\-33\) \+ Int64\(\-60\) \+ Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(19\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) / \(\- avg\(Int64\(10\)\)\) \+ Int64\(70\) \+ Int64\(88\) \* Int64\(\-41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2, 25, COALESCE ( - 54, 83 * + 27 / - 65 / - 47 - + COUNT ( * ) + + 24, - 33 + - 60 + + 70 + + COUNT ( * ) + 19 + - CAST ( + + 80 AS INTEGER ) / - AVG ( ALL + 10 ) + 70 + 88 * - 41 * - COUNT ( * ) ) AS col2 query I rowsort label-9324 @@ -50362,7 +50362,7 @@ SELECT - COUNT ( * ) - 84 # 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\(\*\)\) AS col1" at position 1 have the 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 query II rowsort @@ -50927,7 +50927,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\(\*\) AS col0" at position 1 have the 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 66ee4e4..9c53e27 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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -2639,7 +2639,7 @@ SELECT 52 + + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "count\(\*\) \+ 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\(\-91\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 91 AS col0, COUNT ( * ) + + COUNT ( + 22 ) AS col0 query I rowsort label-508 @@ -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\(\*\) 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 @@ -3881,7 +3881,7 @@ SELECT - MAX ( - 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(13\)\) \- Int64\(34\) AS col2" at position 0 and "Int64\(25\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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\(34\) 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 ( - + 13 ) - + 34 AS col2, + 25 + - - COUNT ( * ) AS col2 query I rowsort @@ -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\(\*\) 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 @@ -4717,7 +4717,7 @@ SELECT ALL - - 11 # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col1, - 70 AS col1 query I rowsort label-916 @@ -4809,7 +4809,7 @@ SELECT DISTINCT 41 * + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - MIN ( ALL - - NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) ) AS col1, 65 AS col1 query I rowsort @@ -5264,7 +5264,7 @@ SELECT + ( - - 15 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * 46 AS col0 query I rowsort @@ -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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -9926,7 +9926,7 @@ SELECT DISTINCT + MAX ( ALL 38 ) * + 22 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), COUNT ( * ) query I rowsort @@ -11232,7 +11232,7 @@ SELECT ALL CAST ( - 61 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col2" at position 0 and "\(\- CASE WHEN NOT NULL NOT IN \(\[\(\- count\(\*\)\)\]\) THEN \(\- Int64\(37\)\) 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\(\-51\) AS col2" at position 0 and "\(\- CASE WHEN NOT NULL NOT IN \(\[\(\- count\(Int64\(1\)\) AS count\(\*\)\)\]\) THEN \(\- Int64\(37\)\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 51 AS col2, - CASE WHEN NOT NULL NOT IN ( - COUNT ( * ) ) THEN ( - + 37 ) ELSE NULL END AS col2 query I rowsort label-2180 @@ -11319,7 +11319,7 @@ SELECT - ( + 68 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0, 80 AS col0 query I rowsort @@ -12032,7 +12032,7 @@ SELECT - CAST ( - - 15 AS INTEGER ) # 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\(\*\)\) AS col0" at position 1 have the 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 + ( 2 ) col0, - COUNT ( * ) AS col0 query I rowsort @@ -12195,7 +12195,7 @@ SELECT + CAST ( - 97 AS INTEGER ) # 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\(\-89\) 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\(\*\) / Int64\(\-89\) 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 ( * ) / + - 89 AS col2, 72 AS col2 query I rowsort label-2367 @@ -12425,7 +12425,7 @@ NULL # 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\(\*\)\) 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 ( * ) col2, - 95 AS col2 query I rowsort label-2412 @@ -15064,7 +15064,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\(\*\) AS col1" at position 1 have the 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 @@ -15358,7 +15358,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\(\*\) 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 @@ -16277,7 +16277,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\(\*\) AS col1" at position 1 have 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 @@ -16407,7 +16407,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\(\*\) 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 @@ -17489,7 +17489,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\(\*\)\), \(\- \(\- count\(\*\)\)\) \* count\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have 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 @@ -18283,7 +18283,7 @@ SELECT + + 59 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\(37\) \+ Int64\(11\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(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 ALL 37 + + 11 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -19206,7 +19206,7 @@ SELECT CAST ( + + 10 AS INTEGER ) * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(16\) 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\(\*\) \+ Int64\(16\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + 16 col0, 77 col0 query II rowsort label-3726 @@ -19379,7 +19379,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\(\*\) 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 @@ -25511,7 +25511,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\(\*\)\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -26173,7 +26173,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\(\*\) 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 @@ -26869,7 +26869,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\(\*\) 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 @@ -27136,7 +27136,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\(\*\) 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 @@ -27897,7 +27897,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\(\*\) AS col2" at position 1 have the 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 @@ -32362,7 +32362,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\(\*\) AS col2" at position 1 have 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 @@ -34196,7 +34196,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\(\*\) AS col1" at position 1 have the 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 @@ -34777,7 +34777,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\(\*\) 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 @@ -34834,7 +34834,7 @@ SELECT + 62 / - - COUNT ( DISTINCT 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 53 AS col1, CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 query I rowsort @@ -37325,7 +37325,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\(\*\) AS col0" at position 1 have the 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 @@ -39427,7 +39427,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\(\*\) AS col1" at position 0 and "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 @@ -39948,7 +39948,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\(\*\) 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 @@ -40776,7 +40776,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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have 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 @@ -41537,7 +41537,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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), COUNT ( * ) query I rowsort label-8063 @@ -41731,7 +41731,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\(\*\) AS col1" at position 1 have the 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 @@ -44563,7 +44563,7 @@ SELECT DISTINCT + - 77 col0, 96 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) query I rowsort label-8648 @@ -45211,7 +45211,7 @@ SELECT ALL + 89 * - COUNT ( * ) / COUNT ( - 0 ), + MIN ( ALL + 90 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1, 9 col1 query I rowsort label-8775 @@ -45318,7 +45318,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\(\*\) AS col2" at position 1 have the 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 @@ -45522,7 +45522,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\(\*\) AS col1" at position 1 have the 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 @@ -45750,7 +45750,7 @@ SELECT DISTINCT + 49 * + + 51 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ), COUNT ( * ) query I rowsort label-8880 @@ -47332,7 +47332,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\(\*\) AS col1" at position 1 have the 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 @@ -47644,7 +47644,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\(\*\) 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 @@ -48325,7 +48325,7 @@ SELECT MAX ( + 75 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(88\) 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\(\*\) \* Int64\(88\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * 88 AS col0, 46 col0 query I rowsort label-9378 @@ -48438,7 +48438,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\(\*\) 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 @@ -49246,7 +49246,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\(\*\) AS col0" at position 1 have the 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 @@ -49921,7 +49921,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\(\*\) AS col0" at position 1 have the same 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 @@ -50255,7 +50255,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\(\*\) AS col1" at position 1 have the 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 4acb789..8b3fc99 100644 --- a/data/sqlite/random/expr/slt_good_44.slt +++ b/data/sqlite/random/expr/slt_good_44.slt @@ -404,7 +404,7 @@ SELECT + SUM ( - 73 ) AS col2, + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* count\(\*\) \- count\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "max\(Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "max\(Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 * + COUNT ( * ) - + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1, + MAX ( 25 ) AS col1 query I rowsort label-70 @@ -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\(\*\) 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\(\*\) 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 @@ -2654,7 +2654,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\(\*\) AS col2" at position 1 have the 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 @@ -2886,7 +2886,7 @@ SELECT 96, 17 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 14 -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\(\-50\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-50\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 91 AS col0, COUNT ( * ) * + - 50 + 64 AS col0 query I rowsort @@ -4396,7 +4396,7 @@ SELECT DISTINCT 26 + + + 52 # Datafusion - Expected - -63 # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- Int64\(67\)\) AS col0" at position 0 and "\(\- \(\- CASE \(\- Int64\(\-88\)\) WHEN Int64\(\-81\) \* Int64\(51\) \* Int64\(86\) \+ Int64\(59\) THEN nullif\(Int64\(4\), Int64\(90\) \+ Int64\(\-5\)\) \* Int64\(\-82\) \* nullif\(\(\- count\(\*\)\), Int64\(79\)\) \* Int64\(71\) WHEN Int64\(\-87\) \* count\(nullif\(Int64\(3\), Int64\(\-33\)\)\) THEN NULL ELSE NULL END\)\) \* Int64\(56\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- Int64\(67\)\) AS col0" at position 0 and "\(\- \(\- CASE \(\- Int64\(\-88\)\) WHEN Int64\(\-81\) \* Int64\(51\) \* Int64\(86\) \+ Int64\(59\) THEN nullif\(Int64\(4\), Int64\(90\) \+ Int64\(\-5\)\) \* Int64\(\-82\) \* nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(79\)\) \* Int64\(71\) WHEN Int64\(\-87\) \* count\(nullif\(Int64\(3\), Int64\(\-33\)\)\) THEN NULL ELSE NULL END\)\) \* Int64\(56\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 + - + 67 AS col0, 36 + - 9, - - CASE - - 88 WHEN - 81 * + + 51 * + 86 + 59 THEN NULLIF ( 4, 90 + - 5 ) * - 82 * + NULLIF ( - + COUNT ( * ), + 79 ) * 71 WHEN - 87 * COUNT ( + + NULLIF ( + 3, - 33 ) ) THEN NULL ELSE NULL END * 56 AS col0 query I rowsort label-828 @@ -4547,7 +4547,7 @@ SELECT + NULLIF ( 35, + - COUNT ( * ) / - 9 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- nullif\(Int64\(\-29\), Int64\(\-52\)\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(70\) \- CAST\(NULL AS Int32\) \* \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(\-29\), Int64\(\-52\)\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(70\) \- CAST\(NULL AS Int32\) \* \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - NULLIF ( - 29, + - 52 ) + 59 AS col2, 70 - CAST ( NULL AS INTEGER ) * - - 5 AS col2 query II rowsort label-857 @@ -5410,7 +5410,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3220 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* Int64\(35\) AS col0" at position 0 and "Int64\(32\) \- Int64\(70\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(35\) AS col0" at position 0 and "Int64\(32\) \- Int64\(70\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 * 35 AS col0, + 32 - 70 * - COUNT ( * ) col0 query II rowsort label-1022 @@ -5809,7 +5809,7 @@ SELECT ALL 27 * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-1\)\) \* count\(\*\) \+ \(\- Int64\(43\)\) AS col1" at position 0 and "CASE Int64\(48\) WHEN Int64\(\-9\) THEN count\(\*\) END \* Int64\(88\) \+ Int64\(\-75\) \+ count\(\*\) \+ Int64\(\-15\) \* \(\- coalesce\(\(\- Int64\(23\)\), Int64\(36\) \* Int64\(16\) \* Int64\(55\) \+ Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-1\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(43\)\) AS col1" at position 0 and "CASE Int64\(48\) WHEN Int64\(\-9\) THEN count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(88\) \+ Int64\(\-75\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-15\) \* \(\- coalesce\(\(\- Int64\(23\)\), Int64\(36\) \* Int64\(16\) \* Int64\(55\) \+ Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( - 1 ) * + + COUNT ( * ) + - + 43 AS col1, CASE 48 WHEN - 9 THEN + COUNT ( * ) END * 88 + - 75 + COUNT ( * ) + - 15 * - + COALESCE ( - + 23, 36 * 16 * + 55 + 91 ) AS col1 query II rowsort @@ -6882,7 +6882,7 @@ SELECT MAX ( + 75 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(88\) 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\(\*\) \* Int64\(88\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * 88 AS col0, 46 col0 query I rowsort label-1309 @@ -7945,7 +7945,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\(\*\) 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 @@ -8087,7 +8087,7 @@ SELECT MIN ( 67 ) AS col0, 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int32\)\) / count\(\*\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 62 col1, ( 61 ) * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 73 AS col1 query I rowsort label-1542 @@ -8910,7 +8910,7 @@ SELECT 32, - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(\-4\) \+ \(\- coalesce\(nullif\(\(\- Int64\(\-50\)\), \(\- nullif\(count\(\*\), Int64\(85\) / Int64\(48\) \- \(\- Int64\(68\)\)\)\)\), CAST\(NULL AS Int32\), Int64\(9\) \* Int64\(\-69\) \+ coalesce\(\(\- Int64\(\-26\)\), Int64\(\-13\), Int64\(\-16\) \- Int64\(66\) \* CAST\(Int64\(\-22\) \+ Int64\(\-93\) \* Int64\(\-31\) AS Int32\)\)\)\) \+ Int64\(7\) \* \(\- CASE Int64\(\-87\) WHEN Int64\(77\) THEN \(\- count\(\*\)\) \+ \(\- Int64\(25\) \+ Int64\(60\)\) \* Int64\(\-94\) WHEN Int64\(41\) THEN Int64\(69\) \+ Int64\(25\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(\-4\) \+ \(\- coalesce\(nullif\(\(\- Int64\(\-50\)\), \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(85\) / Int64\(48\) \- \(\- Int64\(68\)\)\)\)\), CAST\(NULL AS Int32\), Int64\(9\) \* Int64\(\-69\) \+ coalesce\(\(\- Int64\(\-26\)\), Int64\(\-13\), Int64\(\-16\) \- Int64\(66\) \* CAST\(Int64\(\-22\) \+ Int64\(\-93\) \* Int64\(\-31\) AS Int32\)\)\)\) \+ Int64\(7\) \* \(\- CASE Int64\(\-87\) WHEN Int64\(77\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(25\) \+ Int64\(60\)\) \* Int64\(\-94\) WHEN Int64\(41\) THEN Int64\(69\) \+ Int64\(25\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 col2, - 4 + - COALESCE ( NULLIF ( - - 50, - NULLIF ( COUNT ( * ), 85 / + 48 - - + 68 ) ), + CAST ( NULL AS INTEGER ), 9 * - 69 + COALESCE ( - - 26, - 13, - 16 - 66 * CAST ( - 22 + - 93 * - 31 AS INTEGER ) ) ) + ( 7 ) * ( - CASE - 87 WHEN 77 THEN - ( COUNT ( * ) ) + - ( + 25 + + 60 ) * - 94 WHEN 41 THEN 69 + + 25 END ) col2 query I rowsort label-1700 @@ -10128,7 +10128,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\(\*\) 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 @@ -11125,7 +11125,7 @@ SELECT ALL + 38 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-73\)\) WHEN Int64\(99\) \+ Int64\(1\) \+ Int64\(\-46\) \+ Int64\(52\) \* Int64\(2\) THEN \(\- CAST\(Int64\(\-49\) AS Int32\)\) \* Int64\(\-87\) WHEN Int64\(\-67\) \+ Int64\(46\) THEN NULL ELSE Int64\(\-25\) \* count\(\*\) END AS col0" at position 0 and "Int64\(80\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-73\)\) WHEN Int64\(99\) \+ Int64\(1\) \+ Int64\(\-46\) \+ Int64\(52\) \* Int64\(2\) THEN \(\- CAST\(Int64\(\-49\) AS Int32\)\) \* Int64\(\-87\) WHEN Int64\(\-67\) \+ Int64\(46\) THEN NULL ELSE Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 0 and "Int64\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE - - 73 WHEN + + 99 + ( 1 ) + - 46 + + 52 * + 2 THEN - CAST ( - 49 AS INTEGER ) * + - 87 WHEN + - 67 + + + 46 THEN NULL ELSE - 25 * COUNT ( * ) END AS col0, 80 * - - COUNT ( * ) AS col0 query I rowsort @@ -12428,7 +12428,7 @@ SELECT ALL 17 AS col0, + ( 75 ) 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\(\*\)\) 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 AS col1 query I rowsort @@ -12711,7 +12711,7 @@ SELECT DISTINCT + + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6773804 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(\-30\) \* Int64\(\-98\) \* \(\- coalesce\(Int64\(\-64\), Int64\(0\), \(\- Int64\(15\)\) \+ Int64\(30\) \* CASE count\(\*\) WHEN Int64\(\-34\) THEN Int64\(89\) ELSE NULL END \+ Int64\(\-74\) \* Int64\(58\)\)\) \+ Int64\(44\) / \(\- count\(Int64\(54\)\)\) 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 "Int64\(\-36\) \* Int64\(\-30\) \* Int64\(\-98\) \* \(\- coalesce\(Int64\(\-64\), Int64\(0\), \(\- Int64\(15\)\) \+ Int64\(30\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-34\) THEN Int64\(89\) ELSE NULL END \+ Int64\(\-74\) \* Int64\(58\)\)\) \+ Int64\(44\) / \(\- count\(Int64\(54\)\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 * - 30 * - 98 * - COALESCE ( + - 64, 0, - + 15 + + 30 * CASE COUNT ( * ) WHEN - 34 THEN + ( 89 ) ELSE NULL END + - 74 * 58 ) + 44 / - COUNT ( ALL + 54 ) AS col1, 87 AS col1 query I rowsort label-2429 @@ -13397,7 +13397,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\(\*\) AS col0" at position 1 have the 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 @@ -13629,7 +13629,7 @@ SELECT DISTINCT 7 / 34 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 0 -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\(\-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\(\-20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 20 AS col1, + ( COUNT ( * ) ) / - ( - 14 ) AS col1 query I rowsort @@ -16309,7 +16309,7 @@ SELECT CASE - ( - - 2 ) WHEN + - ( - COUNT ( * ) ) THEN NULL WHEN - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(67\) AS col0" at position 0 and "Int64\(\-18\) \+ Int64\(28\) \- Int64\(27\) \+ \(\- count\(\*\)\) \+ \(\- min\(Int64\(12\)\)\) / 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\(62\) \+ Int64\(67\) AS col0" at position 0 and "Int64\(\-18\) \+ Int64\(28\) \- Int64\(27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- min\(Int64\(12\)\)\) / Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 + + 67 AS col0, - 18 + + 28 - 27 + + - COUNT ( * ) + - MIN ( + 12 ) / - 35 AS col0 query I rowsort label-3123 @@ -16446,7 +16446,7 @@ SELECT 7 + - 58 + - 75 * 93 / - - 99 * - + COUNT ( * ) 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\(\*\)\) 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 - COUNT ( * ) AS col2, 37 AS col2 query II rowsort @@ -16483,7 +16483,7 @@ SELECT DISTINCT 64 / + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -144 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- max\(Int64\(36\)\)\) AS col0" at position 0 and "Int64\(\-33\) \* count\(\*\) \+ Int64\(\-5\) \+ Int64\(16\) \* Int64\(95\) / 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\(4\) \* \(\- max\(Int64\(36\)\)\) AS col0" at position 0 and "Int64\(\-33\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-5\) \+ Int64\(16\) \* Int64\(95\) / Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 4 * - MAX ( + 36 ) AS col0, - 33 * + COUNT ( * ) + - 5 + + 16 * 95 / + 69 AS col0 query I rowsort label-3157 @@ -17473,7 +17473,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\(\*\) AS col2" at position 1 have the 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 @@ -17885,7 +17885,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\(\*\) AS col2" at position 1 have the 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: @@ -19001,7 +19001,7 @@ SELECT ALL + - 75 * - 0 * + 85 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-19\) AS col2" at position 0 and "count\(\*\) \* Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + - 19 AS col2, COUNT ( * ) * + 54 AS col2 query I rowsort label-3632 @@ -19286,7 +19286,7 @@ SELECT CASE - 96 WHEN - CAST ( 90 AS INTEGER ) THEN + 0 WHEN AVG ( ALL + 49 ) + # 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\(\*\) 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 @@ -20093,7 +20093,7 @@ SELECT - 46 / 51 # 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 "nullif\(count\(\*\), Int64\(81\)\) AS col2" at position 0 and "Int64\(94\) \+ 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 "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(81\)\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( COUNT ( * ), 81 ) AS col2, ( 94 ) + - 73 AS col2 query I rowsort label-3839 @@ -21167,7 +21167,7 @@ NULL # 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\(\*\)\)\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( + + COUNT ( * ) ) AS col1, - 44 AS col1 query I rowsort label-4043 @@ -21491,7 +21491,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(16\) \+ count\(\*\) \- coalesce\(CASE Int64\(\-17\) WHEN Int64\(20\) THEN Int64\(4\) / \(\- Int64\(61\)\) \+ \(\- Int64\(\-16\)\) WHEN Int64\(\-46\) THEN NULL END, \(\- count\(\*\)\), Int64\(92\), \(\- \(\- Int64\(\-26\)\)\) \* \(\- \(\- \(\- nullif\(Int64\(64\), Int64\(\-23\) \* 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\(6\) AS col0" at position 0 and "Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) \- coalesce\(CASE Int64\(\-17\) WHEN Int64\(20\) THEN Int64\(4\) / \(\- Int64\(61\)\) \+ \(\- Int64\(\-16\)\) WHEN Int64\(\-46\) THEN NULL END, \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(92\), \(\- \(\- Int64\(\-26\)\)\) \* \(\- \(\- \(\- nullif\(Int64\(64\), Int64\(\-23\) \* Int64\(17\)\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 6 col0, + 16 + COUNT ( * ) - + COALESCE ( + + CASE + - 17 WHEN + 20 THEN 4 / - + 61 + - - 16 WHEN - 46 THEN NULL END, - COUNT ( * ), + + 92, - ( - - 26 ) * - ( - - NULLIF ( + 64, - 23 * + 17 ) ) ) AS col0 query I rowsort label-4106 @@ -21785,7 +21785,7 @@ SELECT + MIN ( + + 98 ) 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 "coalesce\(Int64\(8\), Int64\(\-98\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(8\), Int64\(\-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 + COALESCE ( 8, - 98 ) AS col2, - COUNT ( * ) AS col2 query II rowsort label-4163 @@ -26561,7 +26561,7 @@ SELECT - 73 * - COUNT ( * ) * - + 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -101 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ \(\- count\(\*\)\) \+ Int64\(\-57\) \+ Int64\(73\) / Int64\(22\) \+ \(\- count\(\*\)\) \* Int64\(62\) \+ count\(\*\) \+ Int64\(80\) \+ Int64\(2\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(69\) / \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\*\)\) \+ Int64\(\-57\) \+ Int64\(73\) / Int64\(22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(62\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(80\) \+ Int64\(2\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) 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 - 67 + - COUNT ( * ) + - 57 + + 73 / 22 + - COUNT ( * ) * 62 + + COUNT ( * ) + 80 + 2 / - - COUNT ( * ) AS col0, 69 / - COUNT ( * ) AS col0 query I rowsort label-5072 @@ -27611,7 +27611,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\(\*\) AS col1" at position 1 have the 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 @@ -29053,7 +29053,7 @@ SELECT COUNT ( DISTINCT - 73 ) # Datafusion - Expected - 117 # Datafusion - Expected - 4 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* count\(\*\) \+ \(\- CASE \(\- Int64\(\-93\)\) WHEN CAST\(\(\- Int64\(83\)\) AS Int32\) \+ sum\(\(\- CASE Int64\(\-86\) WHEN Int64\(0\) THEN Int64\(65\) END\)\) THEN NULL ELSE Int64\(\-49\) END\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- Int64\(\-93\)\) WHEN CAST\(\(\- Int64\(83\)\) AS Int32\) \+ sum\(\(\- CASE Int64\(\-86\) WHEN Int64\(0\) THEN Int64\(65\) END\)\) THEN NULL ELSE Int64\(\-49\) END\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 * + COUNT ( * ) + - ( + CASE - - 93 WHEN + CAST ( - ( 83 ) AS INTEGER ) + + SUM ( ALL - CASE - 86 WHEN 0 THEN 65 END ) THEN NULL ELSE - 49 END ) AS col2, + 4 AS col2, - 12 + + - 76 + - 77 + 94 query I rowsort label-5546 @@ -30273,7 +30273,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -4810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(\-77\) \* \(\- Int64\(\-63\)\) \* count\(\*\) \* count\(\*\) \+ 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\(77\) AS col1" at position 0 and "Int64\(\-77\) \* \(\- Int64\(\-63\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 77 AS col1, - 77 * - - 63 * COUNT ( * ) * + COUNT ( * ) + + 41 AS col1 query II rowsort @@ -30633,7 +30633,7 @@ SELECT DISTINCT - 27 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3184 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(35\) \+ \(\- 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 "Int64\(91\) \* Int64\(35\) \+ \(\- 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 91 * + 35 + - COUNT ( * ) AS col0, - 44 AS col0 query II rowsort label-5846 @@ -31267,7 +31267,7 @@ SELECT ALL ( - + 77 ) * - 28 + - + 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "CASE Int64\(\-94\) WHEN \(\- \(\- count\(\*\)\)\) THEN Int64\(99\) \- Int64\(\-52\) WHEN Int64\(1\) \* Int64\(16\) THEN Int64\(2\) END \* 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\(55\) AS col2" at position 0 and "CASE Int64\(\-94\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(99\) \- Int64\(\-52\) WHEN Int64\(1\) \* Int64\(16\) THEN Int64\(2\) END \* Int64\(6\) \* \(\- Int64\(\-67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 55 col2, CASE + - 94 WHEN - - COUNT ( * ) THEN + 99 - - 52 WHEN 1 * + 16 THEN + 2 END * 6 * - - 67 AS col2 query I rowsort label-5966 @@ -33362,7 +33362,7 @@ SELECT ALL - 36 * + COUNT ( * ) 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 col1" at position 0 and "nullif\(count\(\*\), 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\(\-99\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 99 col1, + NULLIF ( + COUNT ( * ), + 26 ) AS col1 query II rowsort label-6370 @@ -33766,7 +33766,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\(\*\) 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 @@ -34147,7 +34147,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\(\*\) 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 @@ -34899,7 +34899,7 @@ SELECT + 46 + 48 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(Int64\(45\) AS Int32\), Int64\(\-66\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(Int64\(45\) AS Int32\), Int64\(\-66\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + CAST ( 45 AS INTEGER ), - 66 ) AS col0, - COUNT ( * ) AS col0 query II rowsort label-6665 @@ -35075,7 +35075,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\(\*\) AS col0" at position 1 have the 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 @@ -35616,7 +35616,7 @@ SELECT ALL 55 * + - CAST ( + 83 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 1980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-62\)\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(45\) \* 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 "min\(\(\- Int64\(\-62\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(45\) \* Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( - - 62 ) * + - COUNT ( * ) AS col2, + 45 * + + 44 col2 query I rowsort label-6802 @@ -35852,7 +35852,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\(\*\) AS col1" at position 1 have the 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 @@ -36288,7 +36288,7 @@ SELECT ALL CAST ( 72 AS INTEGER ) + + - 81 / + 89 + + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 82100480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(46\) / Int64\(61\) / Int64\(69\) \+ \(\- CASE CAST\(NULL AS Float64\) WHEN Int64\(\-52\) THEN Int64\(39\) ELSE NULL END\) AS col1" at position 0 and "Int64\(98\) \* \(\- Int64\(34\)\) \* \(\- Int64\(\-55\)\) \* Int64\(\-7\) \* 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\(\*\) \* Int64\(46\) / Int64\(61\) / Int64\(69\) \+ \(\- CASE CAST\(NULL AS Float64\) WHEN Int64\(\-52\) THEN Int64\(39\) ELSE NULL END\) AS col1" at position 0 and "Int64\(98\) \* \(\- Int64\(34\)\) \* \(\- Int64\(\-55\)\) \* Int64\(\-7\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + + 46 / 61 / + 69 + - CASE CAST ( NULL AS FLOAT8 ) WHEN - 52 THEN 39 ELSE NULL END col1, 98 * - ( + 34 ) * - - 55 * - 7 * + 64 AS col1 query I rowsort @@ -38006,7 +38006,7 @@ SELECT 60 / + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ Int64\(63\) \* count\(\*\) \+ Int64\(\-72\) \* CASE \(\- count\(\*\)\) WHEN \(\- CAST\(Int64\(\-55\) AS Int32\)\) / \(\- CAST\(Int64\(24\) AS Int32\)\) THEN Int64\(52\) \* count\(\*\) \+ Int64\(1\) ELSE NULL END \* \(\- Int64\(\-41\)\) \- Int64\(\-24\) \* CAST\(Int64\(\-96\) AS Int32\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(\-55\) AS Int32\)\) / \(\- CAST\(Int64\(24\) AS Int32\)\) THEN Int64\(52\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(1\) ELSE NULL END \* \(\- Int64\(\-41\)\) \- Int64\(\-24\) \* CAST\(Int64\(\-96\) AS Int32\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 + + 63 * + COUNT ( * ) + - 72 * + CASE - COUNT ( * ) WHEN - + CAST ( - 55 AS INTEGER ) / + - ( + CAST ( 24 AS INTEGER ) ) THEN + 52 * + COUNT ( * ) + + 1 ELSE NULL END * - - 41 - + - 24 * + CAST ( + ( - 96 ) AS INTEGER ) AS col0, - 35 AS col0 query I rowsort label-7256 @@ -38313,7 +38313,7 @@ SELECT ALL - COALESCE ( + + 84, 10 / - - NULLIF ( - + COUNT ( * ), 93 * + + 77 + # 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 "sum\(nullif\(Int64\(90\), Int64\(82\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(nullif\(Int64\(90\), 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 + SUM ( + + NULLIF ( + 90, 82 ) ) col1, - COUNT ( * ) AS col1 query I rowsort label-7315 @@ -38766,7 +38766,7 @@ SELECT ALL + - 18 / ( - 56 ) + 79 AS col1 # 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\(\-97\)\) AS col2" at position 0 and "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 "\(\- Int64\(\-97\)\) 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 ALL - - 97 AS col2, + COUNT ( * ) / - 2 AS col2 query I rowsort @@ -39097,7 +39097,7 @@ SELECT DISTINCT ( - + ( + - 59 ) ) * - COALESCE ( - 79, + + 40 * 49 + 77 * COUNT # 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 "coalesce\(count\(\*\), Int64\(19\)\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(19\)\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COALESCE ( COUNT ( * ), + 19 ) col1, - 44 AS col1 # Datafusion - Datafusion expected results: @@ -39204,7 +39204,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\(\*\) 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 @@ -39438,7 +39438,7 @@ SELECT + 68 * + CASE - - 96 WHEN 70 + - - 26 - 47 / - 67 THEN - - 74 WHEN - 61 T # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COALESCE ( 52, - - COUNT ( * ) * + 73 ) AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) col0 query I rowsort label-7526 @@ -39875,7 +39875,7 @@ SELECT ALL 23 - - ( + 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ \(\- Int64\(18\)\) AS col2" at position 0 and "Int64\(19\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(18\)\) 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 + 5 + - + 18 AS col2, + 19 * ( + - COUNT ( * ) ) AS col2 query I rowsort label-7609 @@ -40073,7 +40073,7 @@ SELECT DISTINCT + 24 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19263292 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(73\)\) \+ Int64\(\-50\) \- max\(Int64\(3\)\) \+ Int64\(68\) \* Int64\(61\) \* \(\- count\(\*\)\) \* \(\- Int64\(86\)\) \* Int64\(\-54\) 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 "min\(Int64\(73\)\) \+ Int64\(\-50\) \- max\(Int64\(3\)\) \+ Int64\(68\) \* Int64\(61\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(86\)\) \* Int64\(\-54\) 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 MIN ( ALL 73 ) + + - 50 - + MAX ( + 3 ) + 68 * 61 * - COUNT ( * ) * - + 86 * + - 54 AS col2, + 32 AS col2 query I rowsort @@ -40143,13 +40143,13 @@ 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\(\*\) AS col1" at position 1 have the 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: # Datafusion - Expected - 80 # Datafusion - Expected - 0 -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\(32\) / 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\(80\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(32\) / Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 80 AS col2, - COUNT ( * ) * + 32 / + 57 AS col2 query I rowsort label-7660 @@ -40242,7 +40242,7 @@ SELECT + SUM ( DISTINCT 54 ) - 40 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 "coalesce\(count\(Int64\(\-23\)\), Int64\(\-31\) \* \(\- count\(\*\)\) \+ Int64\(\-41\) \* Int64\(5\) \* Int64\(36\) \* \(\- 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\(\-54\) AS col1" at position 0 and "coalesce\(count\(Int64\(\-23\)\), Int64\(\-31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-41\) \* Int64\(5\) \* Int64\(36\) \* \(\- Int64\(46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 54 AS col1, COALESCE ( + COUNT ( ALL - 23 ), - 31 * - COUNT ( * ) + - 41 * 5 * + 36 * - + 46 ) AS col1 query I rowsort @@ -43449,7 +43449,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(71\) AS col2" at position 0 and "Int64\(57\) \* Int64\(\-77\) / \(\- Int64\(10\)\) \+ Int64\(\-98\) \* min\(Int64\(\-53\)\) \* Int64\(\-89\) \* count\(\*\) \- Int64\(88\) / CASE Int64\(33\) WHEN \(\- CASE nullif\(Int64\(33\), \(\- coalesce\(Int64\(90\), \(\- CASE Int64\(21\) WHEN Int64\(\-53\) THEN Int64\(34\) END\) \+ count\(Int64\(52\)\)\)\)\) WHEN Int64\(12\) \* Int64\(59\) THEN Int64\(\-81\) \+ \(\- \(\- avg\(DISTINCT Int64\(24\)\)\) \+ CAST\(Int64\(\-63\) AS Float64\)\) / Int64\(\-64\) END\) \- avg\(DISTINCT Int64\(59\)\) THEN Int64\(33\) \+ Int64\(\-58\) \* Int64\(\-98\) WHEN Int64\(\-46\) THEN Int64\(\-9\) WHEN Int64\(\-77\) \+ CAST\(Int64\(\-64\) AS Int32\) THEN NULL ELSE NULL END \- Int64\(6\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(71\) AS col2" at position 0 and "Int64\(57\) \* Int64\(\-77\) / \(\- Int64\(10\)\) \+ Int64\(\-98\) \* min\(Int64\(\-53\)\) \* Int64\(\-89\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(88\) / CASE Int64\(33\) WHEN \(\- CASE nullif\(Int64\(33\), \(\- coalesce\(Int64\(90\), \(\- CASE Int64\(21\) WHEN Int64\(\-53\) THEN Int64\(34\) END\) \+ count\(Int64\(52\)\)\)\)\) WHEN Int64\(12\) \* Int64\(59\) THEN Int64\(\-81\) \+ \(\- \(\- avg\(DISTINCT Int64\(24\)\)\) \+ CAST\(Int64\(\-63\) AS Float64\)\) / Int64\(\-64\) END\) \- avg\(DISTINCT Int64\(59\)\) THEN Int64\(33\) \+ Int64\(\-58\) \* Int64\(\-98\) WHEN Int64\(\-46\) THEN Int64\(\-9\) WHEN Int64\(\-77\) \+ CAST\(Int64\(\-64\) AS Int32\) THEN NULL ELSE NULL END \- Int64\(6\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 26 - 71 AS col2, 57 * - 77 / - + 10 + + - 98 * MIN ( ALL + - 53 ) * - 89 * ( COUNT ( * ) ) - + 88 / + CASE 33 WHEN - CASE + NULLIF ( 33, - COALESCE ( ( + 90 ), - CASE + 21 WHEN - 53 THEN + 34 END + COUNT ( 52 ) ) ) WHEN 12 * + 59 THEN - 81 + - ( - AVG ( DISTINCT + 24 ) + CAST ( - 63 AS FLOAT8 ) ) / - 64 END - AVG ( DISTINCT 59 ) THEN 33 + - 58 * - 98 WHEN - 46 THEN - 9 WHEN - 77 + CAST ( - 64 AS INTEGER ) THEN NULL ELSE NULL END - 6 * + 21 AS col2 query I rowsort @@ -43937,7 +43937,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\(\*\) AS col0" at position 1 have the 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 @@ -45637,7 +45637,7 @@ SELECT + 68 * + - 28 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE nullif\(Int64\(\-44\), Int64\(97\) \- Int64\(\-43\)\) WHEN Int64\(82\) \- Int64\(8\) THEN Int64\(90\) \* Int64\(38\) WHEN Int64\(\-49\) \+ Int64\(\-37\) \+ \(\- nullif\(count\(\*\), Int64\(32\) \* Int64\(51\)\)\) / Int64\(66\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE nullif\(Int64\(\-44\), Int64\(97\) \- Int64\(\-43\)\) WHEN Int64\(82\) \- Int64\(8\) THEN Int64\(90\) \* Int64\(38\) WHEN Int64\(\-49\) \+ Int64\(\-37\) \+ \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(32\) \* Int64\(51\)\)\) / Int64\(66\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE + + NULLIF ( + - 44, 97 - - 43 ) WHEN + + 82 - + + 8 THEN + 90 * + ( + 38 ) WHEN + - 49 + + - 37 + - NULLIF ( + COUNT ( * ), + 32 * + 51 ) / 66 THEN NULL ELSE NULL END AS col0, 79 AS col0 query II rowsort label-8713 @@ -52276,7 +52276,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\(\*\) AS col2" at position 1 have the 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 1c6ec4d..67ff34b 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\(\*\) AS col1" at position 0 and "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 @@ -2159,7 +2159,7 @@ SELECT + 62 + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) AS col0" at position 0 and "count\(\*\) \+ CAST\(\(\- min\(\(\- Int64\(5\)\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- min\(\(\- Int64\(5\)\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 36 AS col0, + COUNT ( * ) + + CAST ( - MIN ( - + 5 ) AS INTEGER ) AS col0 query I rowsort label-406 @@ -2190,7 +2190,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\(\*\) AS col0" at position 1 have the 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 @@ -2294,7 +2294,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(55\) AS col2" at position 0 and "Int64\(\-91\) \+ Int64\(\-82\) \+ 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\(\*\) / Int64\(55\) AS col2" at position 0 and "Int64\(\-91\) \+ Int64\(\-82\) \+ Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / + 55 AS col2, ( - 91 ) + - 82 + ( + 31 ) AS col2 query I rowsort label-431 @@ -4644,7 +4644,7 @@ SELECT ALL 60 * - 96 + - 24 + + 64 * + + 9 + 98 + 34 / 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8024 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* CAST\(Int64\(\-94\) AS Int32\) \+ Int64\(\-35\) \+ nullif\(count\(\*\), Int64\(11\) \+ \(\- Int64\(38\)\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* CAST\(Int64\(\-94\) AS Int32\) \+ Int64\(\-35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(11\) \+ \(\- Int64\(38\)\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 85 * + CAST ( - 94 AS INTEGER ) + + - 35 + NULLIF ( + + COUNT ( * ), 11 + - + 38 ) AS col1, + 34 AS col1 query I rowsort label-875 @@ -5633,7 +5633,7 @@ SELECT + 16 * COUNT ( 72 ) * + - 44 * - COUNT ( * ) AS col0, 24 # 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\(\*\)\) 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 "\(\- 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 ALL - COUNT ( * ) AS col2, - 21 AS col2 query I rowsort label-1063 @@ -7333,7 +7333,7 @@ SELECT + COUNT ( * ) / - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -1207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "\(\- \(\- Int64\(53\)\)\) \* count\(\*\) \- min\(Int64\(12\)\) \+ CAST\(\(\- Int64\(72\)\) AS Int32\) \+ Int64\(12\) \* Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "\(\- \(\- Int64\(53\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- min\(Int64\(12\)\) \+ CAST\(\(\- Int64\(72\)\) AS Int32\) \+ Int64\(12\) \* Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 96 AS col2, - ( - + 53 ) * + + COUNT ( * ) - + MIN ( + 12 ) + CAST ( - + 72 AS INTEGER ) + + 12 * - 98 AS col2 query I rowsort label-1383 @@ -9661,7 +9661,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -1879 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \- \(\- count\(\*\)\) AS col1" at position 0 and "\(\- CASE Int64\(19\) WHEN Int64\(\-11\) THEN Int64\(\-19\) WHEN Int64\(84\) THEN Int64\(4\) ELSE Int64\(\-27\) \* CAST\(Int64\(\-89\) AS Int32\) \+ Int64\(9\) \* Int64\(\-59\) END\) \- \(\- nullif\(Int64\(\-7\), Int64\(\-90\) \+ count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CASE Int64\(19\) WHEN Int64\(\-11\) THEN Int64\(\-19\) WHEN Int64\(84\) THEN Int64\(4\) ELSE Int64\(\-27\) \* CAST\(Int64\(\-89\) AS Int32\) \+ Int64\(9\) \* Int64\(\-59\) END\) \- \(\- nullif\(Int64\(\-7\), Int64\(\-90\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 43 - + - COUNT ( * ) AS col1, - CASE 19 WHEN - 11 THEN - 19 WHEN + 84 THEN 4 ELSE - 27 * + CAST ( - 89 AS INTEGER ) + + 9 * - 59 END - - NULLIF ( - 7, - 90 + COUNT ( * ) ) AS col1 query I rowsort @@ -10674,7 +10674,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\(\*\) AS col1" at position 1 have the 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 @@ -11455,7 +11455,7 @@ SELECT - + 89 - - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1602 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(44\) \* sum\(Int64\(39\)\) \+ Int64\(53\) \- Int64\(\-84\) \- sum\(Int64\(23\)\) 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\(\*\)\) \* Int64\(44\) \* sum\(Int64\(39\)\) \+ Int64\(53\) \- Int64\(\-84\) \- sum\(Int64\(23\)\) 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 ( * ) * + 44 * + + SUM ( ALL + 39 ) + 53 - - 84 - + SUM ( + 23 ) col0, - 15 AS col0 query I rowsort label-2173 @@ -11954,7 +11954,7 @@ SELECT ALL 47 * - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* CASE \(\- Int64\(\-46\)\) WHEN Int64\(87\) THEN \(\- count\(\*\)\) END AS col1" at position 0 and "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 "Int64\(93\) \* CASE \(\- Int64\(\-46\)\) WHEN Int64\(87\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END 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 93 * + CASE - - 46 WHEN + 87 THEN + - COUNT ( * ) END col1, COUNT ( * ) + 20 AS col1 query I rowsort @@ -12609,7 +12609,7 @@ SELECT + 57 + 66 * + + 46 + 91 # 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 Float64\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-25\) \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-25\) \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS FLOAT8 ) col2, COUNT ( * ) * - 25 + 23 AS col2 query I rowsort label-2392 @@ -12895,7 +12895,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\(\*\) 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 @@ -13154,7 +13154,7 @@ SELECT DISTINCT COUNT ( * ) + 77, 1 + + + 66 + ( + - 73 ) * - + 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "CAST\(coalesce\(\(\- CASE Int64\(\-10\) WHEN coalesce\(Int64\(37\), Int64\(\-73\) \* \(\- Int64\(34\)\)\) \- Int64\(20\) THEN NULL WHEN \(\- coalesce\(\(\- Int64\(26\)\), \(\- coalesce\(Int64\(11\), count\(\*\)\)\) \+ \(\- Int64\(\-89\)\)\)\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(22\) THEN NULL WHEN Int64\(\-91\) \* Int64\(42\) \* Int64\(\-72\) \+ Int64\(99\) THEN Int64\(20\) END\), CAST\(NULL AS Int32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "CAST\(coalesce\(\(\- CASE Int64\(\-10\) WHEN coalesce\(Int64\(37\), Int64\(\-73\) \* \(\- Int64\(34\)\)\) \- Int64\(20\) THEN NULL WHEN \(\- coalesce\(\(\- Int64\(26\)\), \(\- coalesce\(Int64\(11\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-89\)\)\)\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(22\) THEN NULL WHEN Int64\(\-91\) \* Int64\(42\) \* Int64\(\-72\) \+ Int64\(99\) THEN Int64\(20\) END\), CAST\(NULL AS Int32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 76 AS col0, CAST ( + COALESCE ( - CASE + - 10 WHEN + COALESCE ( + 37, - 73 * - ( 34 ) ) - 20 THEN NULL WHEN - COALESCE ( - + 26, - COALESCE ( + 11, COUNT ( * ) ) + - - 89 ) * - CAST ( NULL AS FLOAT8 ) + + + 22 THEN NULL WHEN + - 91 * 42 * + - 72 + 99 THEN 20 END, CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 query I rowsort label-2497 @@ -13378,7 +13378,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\(\*\) AS col1" at position 1 have the 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 @@ -18559,7 +18559,7 @@ SELECT ALL + COUNT ( * ) AS col1, - 71 * - + 78 * + 41 + - 95 * - ( + 68 ) + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3929 # Datafusion - Expected - 3835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(54\), \(\- Int64\(50\)\)\) \* count\(\*\) \* Int64\(72\) \+ Int64\(41\) AS col1" at position 0 and "nullif\(nullif\(CAST\(Int64\(82\) AS Int32\), Int64\(\-46\) \* CASE Int64\(53\) WHEN CAST\(NULL AS Int32\) THEN Int64\(34\) \* CAST\(Int64\(27\) AS Int32\) \+ Int64\(\-10\) ELSE NULL END\), Int64\(33\) / Int64\(\-58\)\) / Int64\(66\) \+ Int64\(54\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(54\), \(\- Int64\(50\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) \+ Int64\(41\) AS col1" at position 0 and "nullif\(nullif\(CAST\(Int64\(82\) AS Int32\), Int64\(\-46\) \* CASE Int64\(53\) WHEN CAST\(NULL AS Int32\) THEN Int64\(34\) \* CAST\(Int64\(27\) AS Int32\) \+ Int64\(\-10\) ELSE NULL END\), Int64\(33\) / Int64\(\-58\)\) / Int64\(66\) \+ Int64\(54\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + 54, - + 50 ) * COUNT ( * ) * + 72 + + 41 AS col1, NULLIF ( NULLIF ( + CAST ( ( + 82 ) AS INTEGER ), - 46 * + ( + CASE 53 WHEN CAST ( NULL AS INTEGER ) THEN 34 * CAST ( 27 AS INTEGER ) + - 10 ELSE NULL END ) ), 33 / - 58 ) / 66 + ( 54 ) * 71 AS col1 # Datafusion - Types were automatically converted from: @@ -18834,7 +18834,7 @@ SELECT DISTINCT + COUNT ( * ) * - 4 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) query I rowsort @@ -20075,7 +20075,7 @@ SELECT DISTINCT - + NULLIF ( 27, 10 * - 35 + - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2046 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(\-37\) \+ sum\(Int64\(26\)\) AS col1" at position 0 and "Int64\(31\) \* count\(\*\) \+ 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\(56\) \* Int64\(\-37\) \+ sum\(Int64\(26\)\) AS col1" at position 0 and "Int64\(31\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( 56 ) * - 37 + SUM ( + 26 ) AS col1, + 31 * COUNT ( * ) + - 97 AS col1 query I rowsort @@ -20409,13 +20409,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\(\*\) 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\(\*\) 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 @@ -21409,7 +21409,7 @@ SELECT 74, 52 * COUNT ( + - 57 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(\-38\) \* nullif\(Int64\(4\), CASE \(\- avg\(Int64\(41\)\)\) WHEN \(\- Int64\(\-71\)\) \* Int64\(\-56\) THEN count\(Int64\(85\)\) \* Int64\(79\) \* \(\- CASE \(\- \(\- count\(\*\)\)\) WHEN \(\- Int64\(75\)\) \* Int64\(77\) THEN count\(\*\) \+ Int64\(68\) \+ Int64\(1\) WHEN \(\- CASE count\(\*\) WHEN Int64\(\-40\) THEN NULL ELSE Int64\(\-21\) END\) THEN NULL END\) END \* count\(\*\) \+ 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\(\-62\) AS col0" at position 0 and "Int64\(\-38\) \* nullif\(Int64\(4\), CASE \(\- avg\(Int64\(41\)\)\) WHEN \(\- Int64\(\-71\)\) \* Int64\(\-56\) THEN count\(Int64\(85\)\) \* Int64\(79\) \* \(\- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- Int64\(75\)\) \* Int64\(77\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(68\) \+ Int64\(1\) WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-40\) THEN NULL ELSE Int64\(\-21\) END\) THEN NULL END\) END \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 col0, - 38 * NULLIF ( 4, CASE - AVG ( 41 ) WHEN - - 71 * - 56 THEN COUNT ( ALL 85 ) * 79 * - CASE - - COUNT ( * ) WHEN - + 75 * + 77 THEN + COUNT ( * ) + 68 + + 1 WHEN - CASE COUNT ( * ) WHEN - 40 THEN NULL ELSE - 21 END THEN NULL END END * + + COUNT ( * ) + + 33 ) AS col0 query I rowsort label-4074 @@ -23083,7 +23083,7 @@ SELECT - 63 + - - 65 * 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 164025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-81\)\) \* Int64\(81\) \* CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-81\)\) \* Int64\(81\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 AS col1, - 25 * ( - - 81 ) * + ( + 81 ) * CAST ( + - COUNT ( * ) AS INTEGER ) col1 query I rowsort label-4394 @@ -24243,7 +24243,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\(\*\) 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 @@ -25235,7 +25235,7 @@ SELECT 18 + - 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(41\) \- \(\- Int64\(97\)\) \- 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\(21\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(41\) \- \(\- Int64\(97\)\) \- Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 - ( - - COUNT ( * ) ) AS col1, 41 - ( - + 97 ) - 71 AS col1 query I rowsort label-4807 @@ -27244,7 +27244,7 @@ SELECT 55 * + ( + 9 ) AS col2 # 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\(\*\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-18\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-18\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col1, - 18 + - 13 AS col1 query I rowsort @@ -27464,7 +27464,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\(\*\) \* 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 @@ -28904,7 +28904,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\(\*\) 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 @@ -28915,7 +28915,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\(\*\) 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 @@ -32800,7 +32800,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -33131,7 +33131,7 @@ SELECT 91 * + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(43\) \* \(\- Int64\(73\)\) / Int64\(\-36\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \* \(\- Int64\(73\)\) / Int64\(\-36\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - COUNT ( * ) * 43 * - + 73 / - 36 + + + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -33356,7 +33356,7 @@ SELECT + ( - 34 ) * 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ count\(\*\) \+ \(\- Int64\(44\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(97\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(\-73\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(44\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(97\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(\-73\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 + + COUNT ( * ) + - ( + 44 ) * - CAST ( NULL AS INTEGER ) + + 97 * + - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) - + - 73 AS col2, 7 AS col2 query II rowsort label-6361 @@ -34192,7 +34192,7 @@ SELECT ALL - COALESCE ( + 35, CAST ( + 83 AS INTEGER ) * 1, 74 + + COUNT ( - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -194053 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(77\) / \(\- count\(\*\)\) \+ \(\- Int64\(17\)\) \+ \(\- Int64\(45\)\) \- Int64\(\-57\) \* Int64\(\-42\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(77\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(17\)\) \+ \(\- Int64\(45\)\) \- Int64\(\-57\) \* Int64\(\-42\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + + 30 ) AS col2, 77 / - COUNT ( * ) + - + 17 + - ( + 45 ) - - 57 * - 42 * + 81 AS col2 query I rowsort @@ -34845,7 +34845,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\(\*\) AS col1" at position 1 have the 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 @@ -35188,7 +35188,7 @@ SELECT + ( - 97 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(\-96\) AS col0" at position 0 and "CAST\(Int64\(\-77\) AS Int32\) \+ Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-96\) AS col0" at position 0 and "CAST\(Int64\(\-77\) AS Int32\) \+ Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - - 96 AS col0, ( + CAST ( - 77 AS INTEGER ) ) + 48 col0 query I rowsort @@ -39114,7 +39114,7 @@ SELECT ALL + + 33 + + 8 * + 85 AS col0 # 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\(\*\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-42\) \+ 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-42\) \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, COUNT ( * ) * - 42 + 82 AS col2 query I rowsort @@ -40015,7 +40015,7 @@ SELECT ALL + 46, 22 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) query I rowsort label-7639 @@ -40580,7 +40580,7 @@ SELECT ALL + 86 * 32 * - + 83 * - 64 AS col1, - 52 + + 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4553 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* \(\- Int64\(66\)\) \+ count\(DISTINCT Int64\(\-96\)\) AS col0" at position 0 and "Int64\(37\) \+ coalesce\(Int64\(\-79\), Int64\(39\) / Int64\(\-47\) \- \(\- min\(Int64\(45\)\)\) \- count\(\*\) / \(\- \(\- 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\(69\) \* \(\- Int64\(66\)\) \+ count\(DISTINCT Int64\(\-96\)\) AS col0" at position 0 and "Int64\(37\) \+ coalesce\(Int64\(\-79\), Int64\(39\) / Int64\(\-47\) \- \(\- min\(Int64\(45\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- Int64\(29\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 69 * - + 66 + + COUNT ( DISTINCT + - 96 ) AS col0, 37 + + COALESCE ( - 79, + 39 / - 47 - + - MIN ( ALL + 45 ) - COUNT ( * ) / - - ( 29 ) ) AS col0 query I rowsort label-7747 @@ -41476,7 +41476,7 @@ SELECT DISTINCT + 75 * 66 * - + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ \(\- count\(\*\)\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 84 + - ( COUNT ( * ) ) + 99 AS col2, - 43 col2 query I rowsort @@ -41912,7 +41912,7 @@ SELECT + 12 * + + ( COUNT ( * ) ) / - 99 - COUNT ( * ) * + COUNT ( * ) * - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 577808 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* coalesce\(Int64\(67\), Int64\(63\), Int64\(7\)\) \* Int64\(88\) \* Int64\(98\) AS col2" at position 0 and "Int64\(73\) \* Int64\(\-89\) \+ \(\- Int64\(28\)\) \- CAST\(NULL AS Int32\) \* Int64\(\-22\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(Int64\(67\), Int64\(63\), Int64\(7\)\) \* Int64\(88\) \* Int64\(98\) AS col2" at position 0 and "Int64\(73\) \* Int64\(\-89\) \+ \(\- Int64\(28\)\) \- CAST\(NULL AS Int32\) \* Int64\(\-22\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * COALESCE ( + 67, + 63, + 7 ) * 88 * + 98 AS col2, + ( + 73 ) * - 89 + - + 28 - + CAST ( NULL AS INTEGER ) * - 22 + 67 AS col2 query I rowsort label-7999 @@ -42648,7 +42648,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\(\*\) 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 @@ -44403,7 +44403,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- 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\(40\) \+ \(\- 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 + 40 + + - COUNT ( * ) AS col0, 67 AS col0 query I rowsort @@ -45301,7 +45301,7 @@ NULL # 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\(56\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \* 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\(56\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( 56 ) col0, - COUNT ( * ) * - 33 AS col0 query I rowsort label-8652 @@ -45558,7 +45558,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -475 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- CAST\(Int64\(87\) AS Int32\)\) \+ \(\- Int64\(\-7\)\) \* count\(\*\) \* max\(Int64\(56\)\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- CAST\(Int64\(87\) AS Int32\)\) \+ \(\- Int64\(\-7\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(56\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 4 + - CAST ( + 87 AS INTEGER ) + - - 7 * COUNT ( * ) * MAX ( ALL + + 56 ) * - COUNT ( * ) AS col1, 48 AS col1 query I rowsort @@ -46192,7 +46192,7 @@ SELECT DISTINCT - + SUM ( + 14 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1900359 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-15\) \* \(\- Int64\(\-16\)\) \* Int64\(92\) \* Int64\(86\) \- Int64\(17\) \* sum\(DISTINCT \(\- nullif\(nullif\(\(\- Int64\(87\)\), Int64\(31\)\), Int64\(\-17\) \+ Int64\(80\) \* 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\(\-15\) \* \(\- Int64\(\-16\)\) \* Int64\(92\) \* Int64\(86\) \- Int64\(17\) \* sum\(DISTINCT \(\- nullif\(nullif\(\(\- Int64\(87\)\), Int64\(31\)\), Int64\(\-17\) \+ Int64\(80\) \* Int64\(92\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ) AS col0, - 15 * ( - - 16 ) * + + 92 * 86 - + 17 * SUM ( DISTINCT - NULLIF ( + NULLIF ( - + 87, 31 ), - 17 + + 80 * 92 ) ) AS col0 query I rowsort @@ -48016,7 +48016,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\(\*\) AS col2" at position 1 have the 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 @@ -48362,7 +48362,7 @@ SELECT - 39 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 304 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* \(\- count\(\*\)\) \* Int64\(76\) 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\(\-4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(76\) 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 - 4 * - COUNT ( * ) * 76 AS col2, - 50 AS col2 query I rowsort @@ -48445,7 +48445,7 @@ SELECT - 85 * - COUNT ( ALL 1 ) AS col0 # Datafusion - Expected - 121 # Datafusion - Expected - 1 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- Int64\(\-66\)\) AS col1" at position 0 and "coalesce\(coalesce\(count\(\*\), Int64\(47\)\), 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\(55\) \+ \(\- Int64\(\-66\)\) AS col1" at position 0 and "coalesce\(coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(47\)\), Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 55 + - - 66 AS col1, COALESCE ( + COALESCE ( + COUNT ( * ), + 47 ), + + 84 ) AS col1, - 39 * COUNT ( + 15 ) - - 51 AS col2 query I rowsort label-9254 @@ -50899,7 +50899,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\(\*\) 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 @@ -51264,7 +51264,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\(\*\) / \(\- count\(\*\)\) \* Int64\(41\) / \(\- Int64\(\-17\)\)\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have 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 @@ -52090,7 +52090,7 @@ SELECT ALL - - 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ Int64\(22\) AS col0" at position 0 and "count\(\*\) \* Int64\(38\) \* count\(DISTINCT CASE \(\- Int64\(37\)\) WHEN Int64\(63\) \- Int64\(66\) \+ Int64\(98\) \* CASE Int64\(77\) WHEN Int64\(\-62\) THEN NULL ELSE Int64\(\-73\) END THEN NULL WHEN \(\- Int64\(\-94\)\) \+ Int64\(91\) / nullif\(CASE Int64\(18\) WHEN Int64\(66\) THEN Int64\(\-24\) END, \(\- Int64\(\-17\)\)\) THEN Int64\(26\) 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\(78\) \+ Int64\(22\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(38\) \* count\(DISTINCT CASE \(\- Int64\(37\)\) WHEN Int64\(63\) \- Int64\(66\) \+ Int64\(98\) \* CASE Int64\(77\) WHEN Int64\(\-62\) THEN NULL ELSE Int64\(\-73\) END THEN NULL WHEN \(\- Int64\(\-94\)\) \+ Int64\(91\) / nullif\(CASE Int64\(18\) WHEN Int64\(66\) THEN Int64\(\-24\) END, \(\- Int64\(\-17\)\)\) THEN Int64\(26\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 + + + ( 22 ) AS col0, COUNT ( * ) * 38 * + COUNT ( DISTINCT + + CASE - + 37 WHEN + + 63 - 66 + + 98 * + + CASE + 77 WHEN - 62 THEN NULL ELSE - 73 END THEN NULL WHEN - ( - 94 ) + 91 / NULLIF ( + CASE + + 18 WHEN 66 THEN - 24 END, - - 17 ) THEN + 26 ELSE NULL END ) AS col0 query I rowsort label-9949 diff --git a/data/sqlite/random/expr/slt_good_46.slt b/data/sqlite/random/expr/slt_good_46.slt index 8d7371b..3f34675 100644 --- a/data/sqlite/random/expr/slt_good_46.slt +++ b/data/sqlite/random/expr/slt_good_46.slt @@ -1258,7 +1258,7 @@ SELECT - 4 * 37 + + + 68 * 86 * 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "\(\- \(\- \(\- Int64\(99\)\)\)\) / Int64\(\-17\) \* CASE Int64\(\-9\) WHEN count\(\*\) THEN NULL WHEN Int64\(94\) THEN count\(\*\) \+ CAST\(NULL AS Int32\) \* Int64\(71\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "\(\- \(\- \(\- Int64\(99\)\)\)\) / Int64\(\-17\) \* CASE Int64\(\-9\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(94\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* Int64\(71\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 0 * - - 3 AS col0, - ( - ( - + 99 ) ) / - 17 * + CASE - 9 WHEN COUNT ( * ) THEN NULL WHEN 94 THEN ( ( COUNT ( * ) ) ) + CAST ( NULL AS INTEGER ) * + 71 END AS col0 query I rowsort label-239 @@ -1612,7 +1612,7 @@ SELECT - ( + - 49 ) + - + 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3384 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(36\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(36\) AS col0" at 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 - 94 * + 36 AS col0, - COUNT ( * ) col0 query I rowsort label-306 @@ -2099,7 +2099,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -1798 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- \(\- max\(Int64\(\-85\)\)\)\) AS col2" at position 0 and "coalesce\(Int64\(45\), \(\- Int64\(\-45\)\)\) \- \(\- count\(\*\)\) \* \(\- Int64\(21\)\) \* Int64\(85\) \+ 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\(\*\) \+ \(\- \(\- max\(Int64\(\-85\)\)\)\) AS col2" at position 0 and "coalesce\(Int64\(45\), \(\- Int64\(\-45\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(21\)\) \* Int64\(85\) \+ Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + - - MAX ( - 85 ) col2, + COALESCE ( 45, - - 45 ) - + - COUNT ( * ) * + - ( + + 21 ) * 85 + - 58 AS col2 query I rowsort label-399 @@ -5299,7 +5299,7 @@ SELECT + + SUM ( ALL - - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6206 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(64\) \* Int64\(4\) \+ Int64\(\-61\) \+ \(\- 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\(\-24\) \* Int64\(64\) \* Int64\(4\) \+ Int64\(\-61\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 24 * 64 * + 4 + + - 61 + - COUNT ( * ) col1, - 20 AS col1 query I rowsort label-1007 @@ -6271,7 +6271,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\(\*\) 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 @@ -6741,7 +6741,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\(\*\) 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 @@ -7356,7 +7356,7 @@ SELECT ALL - 80 + - 7 # 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 "coalesce\(Int64\(0\), CASE \(\- Int64\(\-28\)\) WHEN Int64\(29\) \+ \(\- Int64\(66\)\) THEN NULL WHEN Int64\(\-64\) THEN NULL ELSE Int64\(77\) \- \(\- Int64\(18\)\) END \+ Int64\(88\) \* Int64\(92\) \+ Int64\(1\)\) \* Int64\(53\) \* Int64\(12\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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 "coalesce\(Int64\(0\), CASE \(\- Int64\(\-28\)\) WHEN Int64\(29\) \+ \(\- Int64\(66\)\) THEN NULL WHEN Int64\(\-64\) THEN NULL ELSE Int64\(77\) \- \(\- Int64\(18\)\) END \+ Int64\(88\) \* Int64\(92\) \+ Int64\(1\)\) \* Int64\(53\) \* Int64\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col2, COALESCE ( - 0, CASE - ( - 28 ) WHEN 29 + - + 66 THEN NULL WHEN - 64 THEN NULL ELSE 77 - - + 18 END + + + 88 * ( + 92 ) + 1 ) * + 53 * + 12 + - COUNT ( * ) AS col2 query I rowsort label-1392 @@ -8462,7 +8462,7 @@ SELECT ALL - ( - 92 ) + - - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3128 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- Int64\(\-31\)\) \+ \(\- Int64\(\-98\)\) \+ Int64\(65\) \+ sum\(nullif\(Int64\(\-35\), Int64\(96\)\)\) \* \(\- count\(\*\)\) \* Int64\(83\) 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 "Int64\(29\) \+ \(\- Int64\(\-31\)\) \+ \(\- Int64\(\-98\)\) \+ Int64\(65\) \+ sum\(nullif\(Int64\(\-35\), Int64\(96\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(83\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 29 + - - 31 + + - ( - 98 ) + + 65 + + + SUM ( NULLIF ( - 35, + + 96 ) ) * + - COUNT ( * ) * 83 AS col1, ( - 61 ) AS col1 query I rowsort @@ -8778,7 +8778,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\(\-30\) \* Int64\(57\) AS col0" at position 0 and "Int64\(\-82\) \- 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 @@ -9944,7 +9944,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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 query I rowsort label-1892 @@ -12337,7 +12337,7 @@ SELECT MIN ( DISTINCT 17 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -125 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ \(\- nullif\(Int64\(52\), nullif\(\(\- count\(\*\)\), Int64\(47\) \- Int64\(0\)\) / Int64\(61\)\)\) AS col0" at position 0 and "Int64\(4\) / coalesce\(Int64\(21\), \(\- nullif\(Int64\(\-53\), \(\- count\(\*\)\) \* Int64\(\-67\) \+ Int64\(36\)\)\) \- Int64\(\-24\) / CAST\(Int64\(36\) AS Int32\), Int64\(74\) \* Int64\(2\)\) \+ Int64\(48\) / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ \(\- nullif\(Int64\(52\), nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(47\) \- Int64\(0\)\) / Int64\(61\)\)\) AS col0" at position 0 and "Int64\(4\) / coalesce\(Int64\(21\), \(\- nullif\(Int64\(\-53\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-67\) \+ Int64\(36\)\)\) \- Int64\(\-24\) / CAST\(Int64\(36\) AS Int32\), Int64\(74\) \* Int64\(2\)\) \+ Int64\(48\) / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 73 + - NULLIF ( 52, NULLIF ( - + COUNT ( * ), + 47 - + 0 ) / + 61 ) AS col0, 4 / COALESCE ( + 21, - NULLIF ( + - 53, - + COUNT ( * ) * - 67 + + 36 ) - + - 24 / CAST ( 36 AS INTEGER ), + 74 * 2 ) + + 48 / 42 AS col0 query II rowsort label-2346 @@ -12844,7 +12844,7 @@ SELECT - NULLIF ( - - 62, COUNT ( * ) ) * - COUNT ( * ) - 59 # 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\(15\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "count\(\*\) \- \(\- CAST\(NULL AS Float64\)\) \* 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\(15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Float64\)\) \* Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 15 + - COUNT ( * ) AS col1, COUNT ( * ) - - + CAST ( NULL AS FLOAT8 ) * - 96 AS col1 # Datafusion - Types were automatically converted from: @@ -15551,7 +15551,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -4174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) \+ Int64\(0\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ Int64\(\-57\) \+ \(\- Int64\(71\)\) \* Int64\(59\) \+ max\(Int64\(65\)\) / Int64\(75\) \+ nullif\(max\(\(\- Int64\(\-73\)\)\), Int64\(\-57\) \+ 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\(\-87\)\) \+ Int64\(0\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-57\) \+ \(\- Int64\(71\)\) \* Int64\(59\) \+ max\(Int64\(65\)\) / Int64\(75\) \+ nullif\(max\(\(\- Int64\(\-73\)\)\), Int64\(\-57\) \+ Int64\(3\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 87 + + 0 AS col1, - COUNT ( * ) + - 57 + - + 71 * 59 + MAX ( ALL + + 65 ) / 75 + + NULLIF ( + MAX ( ALL - ( + - 73 ) ), + ( + - 57 ) + + 3 ) AS col1 query I rowsort label-2960 @@ -15903,7 +15903,7 @@ SELECT + 4 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(4\), \(\- Int64\(72\)\) \+ CAST\(NULL AS Int32\) \- sum\(Int64\(22\)\)\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(4\), \(\- Int64\(72\)\) \+ CAST\(NULL AS Int32\) \- sum\(Int64\(22\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( 4, + ( - + 72 ) + CAST ( NULL AS INTEGER ) - SUM ( + 22 ) ) AS col1, COUNT ( * ) * 44 AS col1 query II rowsort label-3027 @@ -17342,7 +17342,7 @@ SELECT - COUNT ( * ) * - 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1200 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(40\), \(\- count\(\*\)\) \+ Int64\(27\) \* count\(\*\)\) \* Int64\(30\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(\-79\) \+ \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(40\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(30\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(\-79\) \+ \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( + 40, - COUNT ( * ) + + 27 * COUNT ( * ) ) * + 30 AS col2, 62 + + - 79 + - - 58 AS col2 query II rowsort label-3302 @@ -18990,7 +18990,7 @@ SELECT + 14 + - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(69\)\), \(\- count\(\*\)\), Int64\(65\)\)\) AS col0" at position 0 and "Int64\(76\) / Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(69\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(65\)\)\) AS col0" at position 0 and "Int64\(76\) / Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - + 69, + - COUNT ( * ), + 65 ) AS col0, 76 / + 18 col0 query II rowsort label-3622 @@ -19843,7 +19843,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -180986 -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\(\-43\) \* Int64\(61\) \* \(\- \(\- sum\(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\(\-99\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-43\) \* Int64\(61\) \* \(\- \(\- sum\(Int64\(69\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 99 AS col1, COUNT ( * ) + - 43 * 61 * - - SUM ( ALL + + 69 ) AS col1 query I rowsort @@ -21787,7 +21787,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 @@ -21872,7 +21872,7 @@ SELECT ALL 88 * 39 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(54\) AS col0" at position 0 and "Int64\(\-11\) / \(\- \(\- coalesce\(Int64\(13\), \(\- CASE Int64\(\-60\) WHEN count\(\*\) / Int64\(\-2\) THEN Int64\(\-75\) \+ \(\- min\(Int64\(18\)\)\) / Int64\(\-8\) ELSE Int64\(39\) \* count\(\*\) \+ Int64\(65\) \- Int64\(71\) END\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(54\) AS col0" at position 0 and "Int64\(\-11\) / \(\- \(\- coalesce\(Int64\(13\), \(\- CASE Int64\(\-60\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-2\) THEN Int64\(\-75\) \+ \(\- min\(Int64\(18\)\)\) / Int64\(\-8\) ELSE Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \- Int64\(71\) END\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + COUNT ( * ) ) * + 54 AS col0, - 11 / - - COALESCE ( + 13, - + CASE - 60 WHEN + COUNT ( * ) / + - 2 THEN - 75 + - MIN ( + + 18 ) / + - 8 ELSE 39 * + COUNT ( * ) + 65 - 71 END ) AS col0 query I rowsort label-4173 @@ -23325,7 +23325,7 @@ SELECT ALL ( + 85 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 4600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(90\)\), Int64\(\-47\) \+ Int64\(78\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(58\), count\(\*\)\)\) \* Int64\(\-78\) \+ Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(90\)\), Int64\(\-47\) \+ Int64\(78\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(58\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-78\) \+ Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - ( + 90 ), - 47 + 78 ) col1, - ( + + NULLIF ( + + 58, + COUNT ( * ) ) ) * - 78 + 76 AS col1 query I rowsort label-4453 @@ -23955,7 +23955,7 @@ SELECT DISTINCT - 29 + - + 58 / - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-2\)\) AS col0" at position 0 and "nullif\(\(\- coalesce\(Int64\(\-40\), Int64\(\-96\) \- count\(\*\) \+ Int64\(\-44\) \+ Int64\(49\)\)\), Int64\(96\) \+ 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 "sum\(DISTINCT Int64\(\-2\)\) AS col0" at position 0 and "nullif\(\(\- coalesce\(Int64\(\-40\), Int64\(\-96\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-44\) \+ Int64\(49\)\)\), Int64\(96\) \+ Int64\(60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT + - 2 ) AS col0, NULLIF ( - COALESCE ( - 40, - 96 - + COUNT ( * ) + - 44 + + 49 ), + 96 + + + 60 ) AS col0 query I rowsort @@ -23999,7 +23999,7 @@ SELECT + + 58 + - + 3 AS col0 # Datafusion - Expected - 41 # Datafusion - Expected - 5 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \- Int64\(11\) AS col1" at position 0 and "\(\- \(\- 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\(52\) \- Int64\(11\) 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 + 52 - + + 11 AS col1, - COUNT ( + 49 ) + + 61 / - + ( - 9 ), - - COUNT ( * ) AS col1 query II rowsort @@ -24211,7 +24211,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\(\*\) AS col2" at position 1 have 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 @@ -24318,7 +24318,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\(\*\) AS col2" at position 1 have the 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 @@ -25568,7 +25568,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\(\*\) AS col0" at position 1 have 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 @@ -26217,7 +26217,7 @@ SELECT + COUNT ( * ) * 83 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(15\) \* Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(15\) \* Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 7 / - COUNT ( * ) col2, + 15 * - 51 col2 query I rowsort label-5002 @@ -26298,7 +26298,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 224532 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(36\) \* Int64\(99\) \* 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\(36\) \* Int64\(99\) \* Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, 36 * + 99 * + 63 AS col0 query I rowsort @@ -27905,7 +27905,7 @@ SELECT DISTINCT - - 34 + SUM ( ALL 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-57\) AS col2" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- min\(Int64\(34\)\)\) \* count\(\*\) \+ Int64\(\-96\) \* \(\- count\(\*\)\) END \* Int64\(5\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-57\) AS col2" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- min\(Int64\(34\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-96\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* Int64\(5\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) + - 57 AS col2, CASE + 58 WHEN + - 28 THEN NULL ELSE + - MIN ( + 34 ) * COUNT ( * ) + - 96 * - COUNT ( * ) END * + 5 + 20 col2 # Datafusion - Types were automatically converted from: @@ -28476,7 +28476,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\(\*\) AS col1" at position 1 have the 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 @@ -29494,7 +29494,7 @@ SELECT COALESCE ( - - ( + + 54 ), 51, 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(53\) / Int64\(98\) \+ Int64\(32\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(53\) / Int64\(98\) \+ Int64\(32\) \+ \(\- 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, + 53 / 98 + 32 + - COUNT ( * ) AS col1 query I rowsort label-5630 @@ -29982,7 +29982,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\(\*\) 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 @@ -31860,7 +31860,7 @@ SELECT CAST ( - + 66 AS INTEGER ) # Datafusion - Expected - 4272 # Datafusion - Expected - 7 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- nullif\(\(\- Int64\(\-48\)\), count\(\*\) \* Int64\(57\)\)\)\), Int64\(\-2\)\) \* Int64\(89\) 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 "nullif\(\(\- \(\- nullif\(\(\- Int64\(\-48\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\)\)\)\), Int64\(\-2\)\) \* Int64\(89\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( - - NULLIF ( + ( - - 48 ), + COUNT ( * ) * 57 ), - 2 ) * 89 AS col2, + 7 + - 72 / + + 81 AS col1, 52 AS col2 query I rowsort @@ -32104,7 +32104,7 @@ SELECT MIN ( ALL + CAST ( - 22 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -3323 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(9\) \+ count\(\*\) \+ Int64\(68\) \* Int64\(\-49\) \- \(\- coalesce\(\(\- count\(\*\)\), \(\- Int64\(\-44\)\) / 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\(54\) AS col1" at position 0 and "Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(68\) \* Int64\(\-49\) \- \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-44\)\) / Int64\(\-14\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 54 AS col1, 9 + + COUNT ( * ) + 68 * + - 49 - - COALESCE ( + - COUNT ( * ), - - 44 / - 14 ) col1 query I rowsort @@ -34235,7 +34235,7 @@ SELECT - 36 / + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2985 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(5\)\) \* Int64\(54\) / CASE Int64\(56\) WHEN \(\- \(\- max\(Int64\(\-35\)\)\)\) \* count\(\*\) THEN NULL ELSE Int64\(10\) END \* \(\- Int64\(67\)\) \- Int64\(\-94\) \* Int64\(51\) \+ \(\- min\(Int64\(44\)\)\) / Int64\(88\) AS col2" at position 0 and "CASE WHEN NOT count\(CAST\(Int64\(\-75\) AS Int32\)\) NOT BETWEEN NULL AND NULL THEN Int64\(\-86\) \+ count\(\*\) / CAST\(Int64\(\-23\) AS Float64\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(5\)\) \* Int64\(54\) / CASE Int64\(56\) WHEN \(\- \(\- max\(Int64\(\-35\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(10\) END \* \(\- Int64\(67\)\) \- Int64\(\-94\) \* Int64\(51\) \+ \(\- min\(Int64\(44\)\)\) / Int64\(88\) AS col2" at position 0 and "CASE WHEN NOT count\(CAST\(Int64\(\-75\) AS Int32\)\) NOT BETWEEN NULL AND NULL THEN Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(\-23\) AS Float64\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( + + 5 ) * 54 / CASE 56 WHEN - - MAX ( - 35 ) * + COUNT ( * ) THEN NULL ELSE ( + 10 ) END * - + ( 67 ) - - 94 * + 51 + - MIN ( ALL + + 44 ) / ( + + 88 ) AS col2, CASE WHEN NOT COUNT ( ALL + CAST ( - 75 AS INTEGER ) ) NOT BETWEEN NULL AND NULL THEN ( - 86 ) + COUNT ( * ) / CAST ( - 23 AS FLOAT8 ) ELSE NULL END AS col2 query I rowsort label-6530 @@ -35740,7 +35740,7 @@ SELECT 28 * 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(64\) \+ Int64\(\-40\) AS col1" at position 0 and "nullif\(\(\- \(\- count\(\*\)\)\), Int64\(72\) \* count\(\*\) \* Int64\(\-43\) \* nullif\(\(\- Int64\(49\)\), \(\- Int64\(\-98\)\) \* Int64\(39\) \* Int64\(\-97\) \+ Int64\(43\) \+ \(\- CAST\(NULL AS Int32\)\) \* count\(\*\) \+ Int64\(\-19\)\) \* Int64\(\-35\)\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(64\) \+ Int64\(\-40\) AS col1" at position 0 and "nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(72\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\) \* nullif\(\(\- Int64\(49\)\), \(\- Int64\(\-98\)\) \* Int64\(39\) \* Int64\(\-97\) \+ Int64\(43\) \+ \(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\)\) \* Int64\(\-35\)\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 9 + + + 64 + - 40 AS col1, NULLIF ( - - COUNT ( * ), 72 * + COUNT ( * ) * - 43 * NULLIF ( - + 49, - - 98 * 39 * + - 97 + + 43 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) + ( - 19 ) ) * - 35 ) + 21 AS col1 query I rowsort @@ -36837,7 +36837,7 @@ SELECT DISTINCT CASE 50 WHEN + 51 THEN COUNT ( * ) + CAST ( + 34 AS INTEGER ) EL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) AS col2" at position 0 and "sum\(Int64\(\-72\)\) / coalesce\(\(\- count\(\*\)\), Int64\(70\) \* Int64\(\-89\), Int64\(92\)\) \- Int64\(37\) \* Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) AS col2" at position 0 and "sum\(Int64\(\-72\)\) / coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(70\) \* Int64\(\-89\), Int64\(92\)\) \- Int64\(37\) \* Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 57 col2, SUM ( - 72 ) / COALESCE ( + ( - COUNT ( * ) ), + 70 * - 89, + 92 ) - 37 * - 21 AS col2 query I rowsort label-7032 @@ -36923,7 +36923,7 @@ SELECT ALL 13 * + 69 # Datafusion - Expected - -1177 # Datafusion - Expected - 64 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col2" at position 1 and "Int64\(\-79\) \+ Int64\(71\) \- count\(\*\) \* Int64\(7\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col2" at position 1 and "Int64\(\-79\) \+ Int64\(71\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(7\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + 98 * - 12 col0, - ( - 64 ) AS col2, - 79 + 71 - COUNT ( * ) * 7 AS col2 query II rowsort label-7048 @@ -36935,7 +36935,7 @@ SELECT ALL + 7 + + MAX ( ALL 35 ) AS col1, COUNT ( * ) * - 70 / 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2130 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \* Int64\(\-71\) AS col1" at position 0 and "Int64\(38\) \* Int64\(\-69\) \* \(\- Int64\(\-78\)\) \- CASE Int64\(31\) WHEN \(\- avg\(Int64\(\-27\)\)\) THEN Int64\(79\) WHEN Int64\(48\) \* \(\- nullif\(Int64\(35\), count\(\*\) \+ Int64\(66\)\)\) \+ \(\- max\(Int64\(44\)\)\) THEN NULL ELSE NULL END \+ min\(Int64\(71\)\) \* 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\(\-30\) \* Int64\(\-71\) AS col1" at position 0 and "Int64\(38\) \* Int64\(\-69\) \* \(\- Int64\(\-78\)\) \- CASE Int64\(31\) WHEN \(\- avg\(Int64\(\-27\)\)\) THEN Int64\(79\) WHEN Int64\(48\) \* \(\- nullif\(Int64\(35\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\)\)\) \+ \(\- max\(Int64\(44\)\)\) THEN NULL ELSE NULL END \+ min\(Int64\(71\)\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 30 * - 71 AS col1, 38 * - 69 * - - 78 - CASE + 31 WHEN - AVG ( - 27 ) THEN 79 WHEN 48 * - NULLIF ( + 35, + COUNT ( * ) + 66 ) + - MAX ( 44 ) THEN NULL ELSE NULL END + + MIN ( ALL 71 ) * + 6 AS col1 query I rowsort label-7050 @@ -37017,7 +37017,7 @@ SELECT - - 31 * + 3 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(53\) AS col2" at position 0 and "count\(\*\) \* \(\- 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\(58\) \+ Int64\(53\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 58 + 53 AS col2, + COUNT ( * ) * - - 61 AS col2 query I rowsort label-7066 @@ -37749,7 +37749,7 @@ SELECT ALL - MIN ( ALL - + 21 ) * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-25\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-25\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 25 AS col0, 14 AS col0 query I rowsort label-7207 @@ -38666,7 +38666,7 @@ SELECT - 73 / + 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -2550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(30\)\) \+ \(\- count\(\*\)\) \* Int64\(\-17\) AS col1" at position 0 and "Int64\(13\) \* \(\- Int64\(2\)\) \* Int64\(99\) \+ Int64\(\-50\) \+ 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 "sum\(Int64\(30\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-17\) AS col1" at position 0 and "Int64\(13\) \* \(\- Int64\(2\)\) \* Int64\(99\) \+ Int64\(\-50\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + SUM ( ALL + 30 ) + - COUNT ( * ) * - 17 AS col1, 13 * + ( - ( + 2 ) ) * + 99 + - 50 + 74 col1 query I rowsort @@ -41056,7 +41056,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\(89\) / Int64\(46\) \* \(\- count\(\*\)\) \* nullif\(Int64\(\-33\), Int64\(57\) \* Int64\(\-72\) \+ Int64\(57\)\) \+ max\(DISTINCT CAST\(Int64\(19\) AS Int32\)\) AS col2" at position 1 and "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 @@ -41829,7 +41829,7 @@ SELECT - 36 + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(0\) \+ \(\- Int64\(\-53\)\) 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\(\*\) \* Int64\(0\) \+ \(\- Int64\(\-53\)\) 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 ( * ) * ( + + 0 ) + - - 53 AS col1, - 32 AS col1 query I rowsort label-7987 @@ -42433,7 +42433,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\(\*\) AS col0" at position 1 have the 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 @@ -42619,7 +42619,7 @@ SELECT - 95 AS col2, - ( - - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(\*\)\)\), \(\- Int64\(87\)\) \+ Int64\(\-48\) \* Int64\(62\), Int64\(67\) \+ Int64\(46\) \+ nullif\(nullif\(Int64\(\-48\), count\(\*\) \+ min\(DISTINCT Int64\(28\)\) \+ CASE \(\- Int64\(\-3\)\) WHEN Int64\(\-57\) THEN \(\- CAST\(Int64\(41\) AS Int32\)\) END / Int64\(\-8\)\), Int64\(58\)\) \+ Int64\(\-80\) \* \(\- count\(\*\)\)\) \+ Int64\(94\) \- sum\(Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- Int64\(87\)\) \+ Int64\(\-48\) \* Int64\(62\), Int64\(67\) \+ Int64\(46\) \+ nullif\(nullif\(Int64\(\-48\), count\(Int64\(1\)\) AS count\(\*\) \+ min\(DISTINCT Int64\(28\)\) \+ CASE \(\- Int64\(\-3\)\) WHEN Int64\(\-57\) THEN \(\- CAST\(Int64\(41\) AS Int32\)\) END / Int64\(\-8\)\), Int64\(58\)\) \+ Int64\(\-80\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(94\) \- sum\(Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 35 col2, COALESCE ( - - COUNT ( * ), - ( 87 ) + - 48 * + + 62, + 67 + + 46 + + NULLIF ( NULLIF ( - 48, + COUNT ( * ) + MIN ( DISTINCT + + 28 ) + + CASE - - 3 WHEN - 57 THEN + - CAST ( 41 AS INTEGER ) END / ( - 8 ) ), + 58 ) + - 80 * + - COUNT ( * ) ) + 94 - + SUM ( - 11 ) AS col2 query II rowsort @@ -44394,7 +44394,7 @@ SELECT DISTINCT 37 + - 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -31680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) AS col0" at position 0 and "Int64\(\-99\) \* Int64\(4\) \* \(\- 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\(\-45\)\) AS col0" at position 0 and "Int64\(\-99\) \* Int64\(4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- Int64\(\-80\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 45 AS col0, - 99 * 4 * + - COUNT ( * ) * - - ( - 80 ) AS col0 query I rowsort @@ -44421,7 +44421,7 @@ SELECT DISTINCT 80 AS col2, 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 80 -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\(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\(\-2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 AS col1, COUNT ( * ) + 79 AS col1 query I rowsort label-8482 @@ -45228,7 +45228,7 @@ SELECT DISTINCT 16 * + + ( 13 ) * - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(67\) \- 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 "Int64\(11\) AS col1" at position 0 and "Int64\(67\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 AS col1, 67 - COUNT ( * ) / 66 col1 query I rowsort @@ -45311,7 +45311,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\(\*\) 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 @@ -45723,7 +45723,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\(\*\) AS col0" at position 1 have the 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 - Datafusion expected results: @@ -48084,7 +48084,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\(\*\) 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 @@ -48251,7 +48251,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\(\*\) 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 @@ -48358,7 +48358,7 @@ SELECT 56 + - - 78 - 84 * COUNT ( * ) * + 99 + - 50 + + + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7106 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-22\), Int64\(56\)\)\) \* count\(\*\) \- Int64\(77\) \* Int64\(\-92\) AS col0" at position 0 and "Int64\(55\) \+ 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 "\(\- coalesce\(Int64\(\-22\), Int64\(56\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(77\) \* Int64\(\-92\) AS col0" at position 0 and "Int64\(55\) \+ Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( - 22, + 56 ) * + COUNT ( * ) - + 77 * - 92 AS col0, 55 + 20 AS col0 query I rowsort @@ -48517,7 +48517,7 @@ SELECT + 53 * - ( - 20 ) + 70 * - 35 - 31 AS col1, + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(10\) \- count\(\*\) \* nullif\(Int64\(84\), Int64\(84\)\) \* Int64\(\-76\) \+ Int64\(57\) / \(\- 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 "Int64\(25\) AS col1" at position 0 and "Int64\(10\) \- count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(84\), Int64\(84\)\) \* Int64\(\-76\) \+ Int64\(57\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col1, + 10 - COUNT ( * ) * NULLIF ( 84, + 84 ) * - 76 + 57 / - COUNT ( * ) + 23 AS col1 query I rowsort label-9264 @@ -50172,7 +50172,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\(\*\) 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 @@ -50304,7 +50304,7 @@ SELECT ALL - COUNT ( * ) / + 23 + + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 5 -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\(\-91\) / Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-91\) / Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 67 AS col1, COUNT ( * ) * - 91 / - 16 AS col1 query I rowsort label-9606 @@ -50677,7 +50677,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -51426,7 +51426,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\(\*\) AS col1" at position 1 have 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 @@ -51916,7 +51916,7 @@ SELECT DISTINCT - 96 * + MIN ( + - 84 ) * - 49 * + 26 AS col1, + CAST ( 54 AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(32\), \(\- 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 "\(\- coalesce\(Int64\(32\), \(\- 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 - COALESCE ( 32, - COUNT ( * ) ) AS col1, 4 AS col1 query I rowsort @@ -52115,7 +52115,7 @@ SELECT + 50 AS col0, + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(coalesce\(count\(\*\), \(\- \(\- Int64\(27\)\)\), \(\- Int64\(2\)\) \+ Int64\(60\) \- CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-10\) \+ Int64\(85\), Int64\(20\)\), Int64\(51\) \* \(\- \(\- count\(\*\)\)\), Int64\(45\)\) \* nullif\(Int64\(42\), Int64\(69\) \* Int64\(51\)\) \* \(\- count\(\*\)\) \+ \(\- Int64\(58\)\) AS col0" at position 0 and "Int64\(77\) \+ Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- \(\- Int64\(27\)\)\), \(\- Int64\(2\)\) \+ Int64\(60\) \- CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-10\) \+ Int64\(85\), Int64\(20\)\), Int64\(51\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(45\)\) \* nullif\(Int64\(42\), Int64\(69\) \* Int64\(51\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(58\)\) AS col0" at position 0 and "Int64\(77\) \+ Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( + COALESCE ( + COUNT ( * ), - - ( + + 27 ), - + 2 + 60 - + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + - 10 + + 85, 20 ), 51 * - - COUNT ( * ), + + 45 ) * + NULLIF ( + 42, 69 * + + 51 ) * + - COUNT ( * ) + - + 58 AS col0, + 77 + - 25 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_47.slt b/data/sqlite/random/expr/slt_good_47.slt index 8c22b44..8615ee7 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\(\*\) 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 @@ -2678,7 +2678,7 @@ SELECT ALL ( + 18 ) AS col2, - 69 / + + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2772 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(33\) AS col2" at position 0 and "Int64\(\-54\) \- nullif\(\(\- coalesce\(Int64\(13\), Int64\(81\), count\(\*\)\)\), Int64\(89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(33\) AS col2" at position 0 and "Int64\(\-54\) \- nullif\(\(\- coalesce\(Int64\(13\), Int64\(81\), count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 84 * 33 AS col2, - 54 - NULLIF ( - + COALESCE ( + 13, 81, + COUNT ( * ) ), 89 ) AS col2 query I rowsort @@ -2774,7 +2774,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\(\-17\)\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -3570,7 +3570,7 @@ SELECT ALL 32 + + - 55 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -50 -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\(\-43\) / Int64\(\-44\) \+ Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-43\) / Int64\(\-44\) \+ Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 AS col1, COUNT ( * ) - + - 43 / - 44 + - 51 col1 query I rowsort label-679 @@ -5523,7 +5523,7 @@ SELECT 45 * - 89 # Datafusion - Expected - 45 # Datafusion - Expected - -38 # Datafusion - Expected - -4233 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(39\) \+ \(\- Int64\(\-64\)\) / Int64\(88\) AS col1" at position 1 and "nullif\(Int64\(14\), Int64\(14\) \+ \(\- Int64\(1\)\) \+ CASE Int64\(10\) WHEN Int64\(\-76\) \+ Int64\(\-82\) THEN count\(\*\) \+ Int64\(\-56\) END \+ \(\- CAST\(Int64\(\-25\) AS Int32\)\)\) \* Int64\(0\) \- Int64\(\-96\) \+ Int64\(\-3\) \+ Int64\(90\) \+ Int64\(69\) \* Int64\(\-64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(39\) \+ \(\- Int64\(\-64\)\) / Int64\(88\) AS col1" at position 1 and "nullif\(Int64\(14\), Int64\(14\) \+ \(\- Int64\(1\)\) \+ CASE Int64\(10\) WHEN Int64\(\-76\) \+ Int64\(\-82\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) END \+ \(\- CAST\(Int64\(\-25\) AS Int32\)\)\) \* Int64\(0\) \- Int64\(\-96\) \+ Int64\(\-3\) \+ Int64\(90\) \+ Int64\(69\) \* Int64\(\-64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45, - 77 + 39 + + - ( - 64 ) / 88 AS col1, + NULLIF ( + 14, + 14 + - + 1 + + CASE 10 WHEN + - 76 + - 82 THEN + COUNT ( * ) + + - 56 END + + - CAST ( + - 25 AS INTEGER ) ) * 0 - - 96 + - 3 + + + 90 + + + 69 * - 64 col1 query I rowsort label-1054 @@ -5739,7 +5739,7 @@ SELECT - + 82 * COALESCE ( - 28, 79 ) * COALESCE ( - 41, 52, COUNT ( * ) / + + C # Datafusion - Datafusion expected results: # Datafusion - Expected - 383768 # Datafusion - Expected - -4703 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(88\) \* Int64\(49\) \* Int64\(\-89\) AS col2" at position 0 and "Int64\(85\) \+ Int64\(76\) \* 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\(\*\)\) \* Int64\(88\) \* Int64\(49\) \* Int64\(\-89\) AS col2" at position 0 and "Int64\(85\) \+ Int64\(76\) \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 88 * + 49 * - 89 AS col2, 85 + + 76 * - 63 AS col2 query I rowsort label-1095 @@ -7023,7 +7023,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\(\*\) AS col2" at position 1 have the 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 @@ -9178,7 +9178,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(\*\)\), \(\- Int64\(30\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \- Int64\(\-49\) \+ count\(\*\) \+ Int64\(24\) \+ Int64\(30\) \+ Int64\(\-32\) / 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 "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(30\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-49\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(24\) \+ Int64\(30\) \+ Int64\(\-32\) / Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - COUNT ( * ), - + 30 ) AS col2, - COUNT ( * ) - - 49 + COUNT ( * ) + 24 + 30 + - 32 / ( ( + 69 ) ) AS col2 query I rowsort @@ -9299,7 +9299,7 @@ SELECT ALL + 89 + + + 64 AS col1, + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(\-92\) AS col2" at position 0 and "Int64\(88\) \+ \(\- coalesce\(count\(\*\), Int64\(51\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(\-92\) AS col2" at position 0 and "Int64\(88\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(51\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 0 * + - 92 AS col2, + 88 + - + COALESCE ( + COUNT ( * ), 51 ) AS col2 query I rowsort @@ -9653,7 +9653,7 @@ SELECT ALL + - COALESCE ( - 69, - 19 + + 56 * - - 62 + 19 * - 85 ) * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 query I rowsort @@ -10019,7 +10019,7 @@ SELECT - COUNT ( * ) / 72 / + - 1 + + 8 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) query II rowsort @@ -11566,7 +11566,7 @@ SELECT ALL - COUNT ( * ) + - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -83 -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\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 48 AS col2, COUNT ( * ) + - 84 AS col2 query I rowsort label-2209 @@ -11606,7 +11606,7 @@ SELECT 21 + - - 72 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 "Int64\(24\) \* \(\- count\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 * + - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -12263,7 +12263,7 @@ SELECT + COALESCE ( + 56, - - COUNT ( * ) - - 5 - + + COUNT ( * ) ) * + - ( + + # 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\(\*\)\) AS col2" at position 1 have the 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 + + 76 col2, - COUNT ( * ) AS col2 query I rowsort @@ -12652,7 +12652,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\(\*\) 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 @@ -13976,13 +13976,13 @@ SELECT DISTINCT 77 + - + 28 + + ( + 13 ) 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\(\*\)\) AS col1" at position 0 and "min\(\(\- \(\- nullif\(Int64\(19\), \(\- Int64\(\-66\)\) \+ Int64\(\-32\)\)\)\)\) \+ 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 "min\(\(\- \(\- nullif\(Int64\(19\), \(\- Int64\(\-66\)\) \+ Int64\(\-32\)\)\)\)\) \+ Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, MIN ( - - NULLIF ( 19, - - 66 + + - 32 ) ) + - 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(22\) \+ Int64\(32\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-71\) \* \(\- Int64\(51\)\) \+ \(\- \(\- count\(\*\)\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(22\) \+ Int64\(32\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-71\) \* \(\- Int64\(51\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 45 AS col2, 43 + + + 22 + 32 + + 80 * + - CAST ( NULL AS INTEGER ) * - 71 * + - ( 51 ) + - - COUNT ( * ) * + 55 AS col2 query I rowsort @@ -14235,7 +14235,7 @@ SELECT DISTINCT MIN ( ALL - 46 ) AS col0, + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(60\) AS col0" at position 0 and "Int64\(17\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(60\) AS col0" at position 0 and "Int64\(17\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 30 + + 60 AS col0, 17 + - COUNT ( * ) AS col0 query I rowsort @@ -17167,7 +17167,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\(\*\) AS col0" at position 0 and "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 @@ -17530,7 +17530,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \- \(\- 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\(10\) \- \(\- 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 + 10 - - COUNT ( * ) AS col1, 43 AS col1 query I rowsort @@ -18005,7 +18005,7 @@ SELECT DISTINCT - CASE WHEN NULL IS NULL THEN COUNT ( * ) ELSE NULL END AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- Int64\(\-26\) AS col2" at position 0 and "\(\- nullif\(Int64\(70\), count\(\*\) \+ CAST\(NULL AS Int32\)\)\) \+ Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- Int64\(\-26\) AS col2" at position 0 and "\(\- nullif\(Int64\(70\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\)\)\) \+ Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 - - 26 AS col2, - NULLIF ( + 70, COUNT ( * ) + CAST ( NULL AS INTEGER ) ) + - 26 AS col2 query I rowsort label-3436 @@ -18707,7 +18707,7 @@ SELECT ALL - 58 * - + ( - 8 ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(Int64\(50\)\)\)\) AS col2" at position 0 and "count\(\*\) \* 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 "\(\- \(\- sum\(Int64\(50\)\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - SUM ( + 50 ) AS col2, + ( + COUNT ( * ) ) * - 7 AS col2 query I rowsort @@ -18867,7 +18867,7 @@ SELECT ALL - 22 * 37 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\(\*\)\) AS col0" at position 0 and "max\(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 "max\(Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, + MAX ( ALL - 47 ) AS col0 query I rowsort @@ -22515,7 +22515,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\(19\)\)\)\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have 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 @@ -22880,7 +22880,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\(\*\) AS col2" at position 1 have the same 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 @@ -24211,7 +24211,7 @@ SELECT ALL + 39 * 62 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -473 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(6\) \- \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(76\) / \(\- Int64\(\-16\)\) \+ Int64\(\-88\) \- count\(Int64\(36\)\) \* count\(\*\) \+ Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(6\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(76\) / \(\- Int64\(\-16\)\) \+ Int64\(\-88\) \- count\(Int64\(36\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 79 * + 6 - - COUNT ( * ) AS col2, 76 / - - 16 + - 88 - + COUNT ( ALL + 36 ) * + COUNT ( * ) + - 10 AS col2 query II rowsort @@ -25174,7 +25174,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\(\*\) 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 @@ -25323,7 +25323,7 @@ SELECT 20 * - 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \+ Int64\(40\) AS col0" at position 0 and "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 "Int64\(\-95\) \+ Int64\(40\) 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 - 95 + + 40 col0, COUNT ( * ) / 82 col0 query I rowsort label-4838 @@ -26632,7 +26632,7 @@ SELECT DISTINCT + 68 - - 20 AS col2 # Datafusion - Expected - -13 # Datafusion - Expected - -1 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 1 and "Int64\(5\) 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\(5\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 13, - COUNT ( * ) AS col0, 5 AS col0 query II rowsort @@ -27510,7 +27510,7 @@ SELECT + 42 - - 72 # 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\(\*\)\) 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 query I rowsort label-5250 @@ -29028,7 +29028,7 @@ SELECT ALL - - 50 * 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-44\) AS col1" at position 0 and "Int64\(6\) / Int64\(\-31\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-44\) AS col1" at position 0 and "Int64\(6\) / Int64\(\-31\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) / - 44 AS col1, 6 / + - 31 - + CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -30309,7 +30309,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -63 -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\(\-16\) \- 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\(15\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-16\) \- Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 AS col1, COUNT ( * ) + - 16 - + ( + 48 ) AS col1 query II rowsort @@ -30750,7 +30750,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\(\*\) AS col2" at position 1 have the 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 - Datafusion expected results: @@ -30816,7 +30816,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\(73\) \+ \(\- nullif\(Int64\(\-23\), Int64\(31\)\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(77\) \* Int64\(60\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -32575,7 +32575,7 @@ SELECT 4 * - - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3018 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \+ \(\- Int64\(14\)\) \* Int64\(73\) \* Int64\(\-3\) AS col0" at position 0 and "\(\- 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 "Int64\(\-48\) \+ \(\- Int64\(14\)\) \* Int64\(73\) \* Int64\(\-3\) 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 - 48 + - + 14 * 73 * + - 3 AS col0, - COUNT ( * ) + + 97 AS col0 query I rowsort @@ -32784,7 +32784,7 @@ SELECT + - 5 * - 98 + + 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(33\)\), \(\- count\(\*\)\) \+ \(\- Int64\(74\)\) \- \(\- Int64\(\-13\)\) \+ Int64\(\-60\) \* Int64\(93\)\)\) 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 "\(\- coalesce\(\(\- Int64\(33\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(74\)\) \- \(\- Int64\(\-13\)\) \+ Int64\(\-60\) \* Int64\(93\)\)\) 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 - COALESCE ( - + 33, + - COUNT ( * ) + - ( + 74 ) - - - 13 + - 60 * 93 ) AS col2, 93 AS col2 query I rowsort label-6261 @@ -33938,7 +33938,7 @@ SELECT DISTINCT - 23 + - COUNT ( ALL 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -2183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-90\) \* CAST\(count\(DISTINCT Int64\(20\)\) AS Int32\) \+ \(\- Int64\(\-23\)\) \* \(\- CAST\(Int64\(91\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-90\) \* CAST\(count\(DISTINCT Int64\(20\)\) AS Int32\) \+ \(\- Int64\(\-23\)\) \* \(\- CAST\(Int64\(91\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 + + - COUNT ( * ) AS col2, - 90 * + + CAST ( + COUNT ( DISTINCT + 20 ) AS INTEGER ) + - - 23 * - CAST ( + 91 AS INTEGER ) AS col2 query I rowsort label-6480 @@ -34130,7 +34130,7 @@ SELECT + 73 * CAST ( 81 AS INTEGER ) + - 65 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) / \(\- Int64\(\-39\)\) AS col2" at position 0 and "nullif\(Int64\(45\), \(\- count\(\*\)\) \+ \(\- Int64\(\-4\)\)\) \* \(\- 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\(\-57\) / \(\- Int64\(\-39\)\) AS col2" at position 0 and "nullif\(Int64\(45\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-4\)\)\) \* \(\- Int64\(30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 57 / - ( - 39 ) AS col2, NULLIF ( + + 45, - + COUNT ( * ) + - - 4 ) * - + ( 30 ) AS col2 query I rowsort label-6517 @@ -34631,7 +34631,7 @@ SELECT - 51, + 67 + + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "coalesce\(Int64\(89\), count\(\(\- Int64\(\-42\)\)\) \+ Int64\(\-57\) \- count\(\*\) / Int64\(32\) \* Int64\(\-31\)\) \+ \(\- 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\(54\) AS col1" at position 0 and "coalesce\(Int64\(89\), count\(\(\- Int64\(\-42\)\)\) \+ Int64\(\-57\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(32\) \* Int64\(\-31\)\) \+ \(\- Int64\(\-81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54 AS col1, COALESCE ( 89, COUNT ( - - 42 ) + - 57 - COUNT ( * ) / + 32 * - 31 ) + - ( - 81 ) AS col1 query I rowsort @@ -35591,7 +35591,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\(\*\) 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 @@ -36621,7 +36621,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\(\*\) 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 @@ -37588,7 +37588,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -39303,7 +39303,7 @@ SELECT - 99 - + 36 AS col1 # 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 "coalesce\(count\(\*\), Int64\(7\)\) AS col2" at position 0 and "Int64\(78\) \* \(\- count\(\*\)\) AS col2" at position 1 have 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\(7\)\) 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 + COALESCE ( + COUNT ( * ), 7 ) AS col2, 78 * - + COUNT ( * ) col2 query I rowsort label-7510 @@ -40023,7 +40023,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\(\*\) AS col1" at position 1 have the 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 @@ -40354,7 +40354,7 @@ SELECT 1 * 78 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, 1 AS col2 query I rowsort label-7711 @@ -40943,7 +40943,7 @@ SELECT + + NULLIF ( + 62, 14 ) + 83 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "\(\- CASE Int64\(4\) WHEN Int64\(41\) \* CAST\(\(\- CASE \(\- avg\(DISTINCT Int64\(\-68\)\)\) WHEN Int64\(86\) THEN \(\- avg\(\(\- Int64\(\-97\)\)\)\) \- Int64\(\-61\) \* Int64\(\-20\) WHEN Int64\(\-60\) THEN Int64\(43\) ELSE NULL END\) AS Int32\) THEN NULL WHEN count\(\*\) THEN Int64\(\-1\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "\(\- CASE Int64\(4\) WHEN Int64\(41\) \* CAST\(\(\- CASE \(\- avg\(DISTINCT Int64\(\-68\)\)\) WHEN Int64\(86\) THEN \(\- avg\(\(\- Int64\(\-97\)\)\)\) \- Int64\(\-61\) \* Int64\(\-20\) WHEN Int64\(\-60\) THEN Int64\(43\) ELSE NULL END\) AS Int32\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-1\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 9 AS col0, - CASE + 4 WHEN 41 * CAST ( + - CASE - AVG ( DISTINCT - 68 ) WHEN + 86 THEN - + AVG ( ALL - - 97 ) - - 61 * + - 20 WHEN - 60 THEN + 43 ELSE NULL END AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN - 1 END AS col0 query I rowsort @@ -41108,13 +41108,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 632 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(8\) AS col0" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(8\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 * 8 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-76\) AS col1" at position 0 and "Int64\(59\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-76\) 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 ALL + 79 + - 76 AS col1, + 59 - - COUNT ( * ) AS col1 query I rowsort label-7853 @@ -41960,7 +41960,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-93\) 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\(1\)\) AS count\(\*\) \+ Int64\(\-93\) 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 ( * ) + - 93 AS col1, - 89 AS col1 query I rowsort @@ -42639,7 +42639,7 @@ SELECT ALL + + NULLIF ( + + 61, 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \- Int64\(23\) AS col1" at position 0 and "Int64\(64\) \+ \(\- \(\- Int64\(\-6\)\)\) \+ \(\- nullif\(Int64\(38\), \(\- coalesce\(Int64\(\-17\), Int64\(63\) \* Int64\(6\) \* Int64\(\-71\) / Int64\(\-35\) \* \(\- Int64\(\-7\)\) \+ Int64\(\-53\) \+ \(\- Int64\(\-10\)\) \* Int64\(\-2\)\)\)\)\) \+ \(\- count\(\*\)\) \* count\(\*\) \* Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \- Int64\(23\) AS col1" at position 0 and "Int64\(64\) \+ \(\- \(\- Int64\(\-6\)\)\) \+ \(\- nullif\(Int64\(38\), \(\- coalesce\(Int64\(\-17\), Int64\(63\) \* Int64\(6\) \* Int64\(\-71\) / Int64\(\-35\) \* \(\- Int64\(\-7\)\) \+ Int64\(\-53\) \+ \(\- Int64\(\-10\)\) \* Int64\(\-2\)\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 34 - + 23 col1, + 64 + - + ( - - 6 ) + + - NULLIF ( 38, + - COALESCE ( - 17, 63 * 6 * - 71 / - 35 * - - 7 + ( - 53 ) + - - 10 * - 2 ) ) + - COUNT ( * ) * + COUNT ( * ) * - 28 AS col1 query I rowsort @@ -42895,7 +42895,7 @@ SELECT + 87 + + 4 AS col2 # Datafusion - Expected - -5703 # Datafusion - Expected - 77 # Datafusion - Expected - -9215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(12\) \* Int64\(\-49\) \+ \(\- Int64\(71\)\) \+ Int64\(\-88\) \* Int64\(64\) 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\(\*\) / Int64\(12\) \* Int64\(\-49\) \+ \(\- Int64\(71\)\) \+ Int64\(\-88\) \* Int64\(64\) 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 ( + COUNT ( * ) ) / + 12 * - 49 + - ( + 71 ) + - 88 * 64 AS col0, + 77 AS col0, COUNT ( * ) * - 97 * 95 query I rowsort @@ -43434,7 +43434,7 @@ SELECT + 80 * - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "CASE Int64\(22\) WHEN Int64\(45\) THEN Int64\(63\) WHEN coalesce\(Int64\(\-99\), count\(\*\)\) 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\(93\) AS col0" at position 0 and "CASE Int64\(22\) WHEN Int64\(45\) THEN Int64\(63\) WHEN coalesce\(Int64\(\-99\), count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 93 AS col0, + CASE + 22 WHEN 45 THEN 63 WHEN + COALESCE ( - 99, COUNT ( * ) ) THEN NULL ELSE NULL END col0 query II rowsort @@ -43517,7 +43517,7 @@ SELECT - - 70 + - - COUNT ( * ) - + 92 * - 52 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 36 AS col1 query I rowsort label-8312 @@ -43882,7 +43882,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\(\*\) AS col0" at position 1 have the 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 @@ -43991,7 +43991,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\(\*\) AS col1" at position 1 have 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 @@ -44032,7 +44032,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\(\*\) 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 @@ -47252,7 +47252,7 @@ SELECT 95 col0, - 38 + - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -6471 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(77\) \* Int64\(\-99\) \+ \(\- Int64\(\-32\)\) \* 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\(77\) \* Int64\(\-99\) \+ \(\- Int64\(\-32\)\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - ( - COUNT ( * ) ) ) AS col0, 77 * - 99 + - - 32 * 36 AS col0 query I rowsort @@ -48379,7 +48379,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\(\*\) AS col1" at position 1 have the 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 @@ -48698,7 +48698,7 @@ SELECT - - COALESCE ( COALESCE ( - - COUNT ( * ), - 90 ), + 18 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -107 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) \+ Int64\(\-8\) \+ \(\- coalesce\(count\(Int64\(98\)\), count\(\*\)\)\) \+ Int64\(\-22\) \- \(\- Int64\(\-58\)\) AS col0" at position 0 and "coalesce\(Int64\(\-77\), \(\- \(\- Int64\(74\)\)\) \* Int64\(90\) \- Int64\(\-77\) \+ Int64\(13\) \* 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\(18\)\) \+ Int64\(\-8\) \+ \(\- coalesce\(count\(Int64\(98\)\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-22\) \- \(\- Int64\(\-58\)\) AS col0" at position 0 and "coalesce\(Int64\(\-77\), \(\- \(\- Int64\(74\)\)\) \* Int64\(90\) \- Int64\(\-77\) \+ Int64\(13\) \* Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 18 + + - 8 + - COALESCE ( + COUNT ( + 98 ), + COUNT ( * ) ) + - 22 - - - 58 AS col0, + COALESCE ( - 77, - ( - ( + 74 ) ) * + 90 - - 77 + 13 * 88 ) col0 query I rowsort label-9306 @@ -52239,7 +52239,7 @@ SELECT ALL + ( 9 ) * + - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 145 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ Int64\(46\) \+ count\(\*\) \* Int64\(50\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(46\) \+ count\(Int64\(1\)\) AS 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 49 + + 46 + + COUNT ( * ) * + 50 AS col0, ( - COUNT ( * ) ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_48.slt b/data/sqlite/random/expr/slt_good_48.slt index 62ec582..fcc78f7 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\(\*\) AS col2" at position 1 have the 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 @@ -949,7 +949,7 @@ SELECT DISTINCT - 71 * - + 33 + - 1 + - MAX ( + 97 ) # 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\(\*\)\) \* Int64\(49\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * 49 col1, - COUNT ( * ) col1 # Datafusion - Types were automatically converted from: @@ -3614,7 +3614,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\(\*\) THEN NULL WHEN CAST\(NULL AS Int32\) \* Int64\(\-95\) \+ Int64\(4\) THEN NULL ELSE Int64\(5\) \* count\(\*\) END\) AS Int32\)\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -4418,7 +4418,7 @@ SELECT 43, 1 col0, - - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "nullif\(nullif\(Int64\(50\), max\(Int64\(\-53\)\) \* count\(\*\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(86\)\)\), 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\(21\) AS col0" at position 0 and "nullif\(nullif\(Int64\(50\), max\(Int64\(\-53\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(86\)\)\), Int64\(41\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 21 AS col0, NULLIF ( + NULLIF ( 50, + + MAX ( - 53 ) * COUNT ( * ) + - ( + COUNT ( * ) ) + - ( 86 ) ), 41 ) col0 query II rowsort label-838 @@ -4615,7 +4615,7 @@ SELECT ALL - 36 / 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(76\) \+ \(\- sum\(DISTINCT Int64\(73\)\)\) \+ \(\- max\(Int64\(1\)\)\) \* \(\- count\(\*\)\) \* Int64\(\-72\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(76\) \+ \(\- sum\(DISTINCT Int64\(73\)\)\) \+ \(\- max\(Int64\(1\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-72\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 53 + + 76 + - SUM ( DISTINCT + 73 ) + - + MAX ( 1 ) * + - COUNT ( * ) * + - 72 AS col2, 13 col2 query II rowsort label-875 @@ -4659,7 +4659,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1674 # Datafusion - Expected - 183040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(62\) AS col2" at position 0 and "Int64\(4\) \* \(\- Int64\(\-55\)\) \* Int64\(\-26\) \* count\(\*\) \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(62\) AS col2" at position 0 and "Int64\(4\) \* \(\- Int64\(\-55\)\) \* Int64\(\-26\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 * + 62 AS col2, 4 * - - 55 * + ( - 26 ) * + COUNT ( * ) * - 32 AS col2 query I rowsort label-883 @@ -5483,7 +5483,7 @@ SELECT DISTINCT 54 * ( - 66 ) AS col0 # Datafusion - Expected - 65 # Datafusion - Expected - -93 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(65\)\) AS col0" at position 0 and "count\(\*\) \- Int64\(88\) 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\(Int64\(65\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(88\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL + + 65 ) AS col0, - 93, + COUNT ( * ) - 88 AS col0 query I rowsort label-1038 @@ -6801,7 +6801,7 @@ SELECT + 52 + + 81, 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \* \(\- count\(\*\)\) \+ Int64\(86\) \- Int64\(19\) 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\(63\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(86\) \- Int64\(19\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 63 * - COUNT ( * ) + + 86 - 19 AS col1, + 25 col1 query I rowsort @@ -6924,7 +6924,7 @@ SELECT - 24 AS col1, + 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / \(\- sum\(Int64\(\-90\)\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / \(\- sum\(Int64\(\-90\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 95 ) / - SUM ( - 90 ) * - COUNT ( * ) col0, + 99 + 53 AS col0 query I rowsort label-1312 @@ -7962,7 +7962,7 @@ SELECT ALL - 33 AS col1, 80 # Datafusion - Expected - 947 # Datafusion - Expected - 100 # Datafusion - Expected - -293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* coalesce\(count\(\*\), \(\- Int64\(75\)\), Int64\(48\) \+ Int64\(87\) \* coalesce\(\(\- Int64\(\-82\)\), CAST\(NULL AS Int32\) \* \(\- Int64\(\-97\)\) / Int64\(5\) \+ Int64\(90\)\) \+ Int64\(66\)\) \- count\(\*\) \+ Int64\(21\) AS col0" at position 1 and "Int64\(\-91\) \- Int64\(47\) \+ count\(\*\) \+ count\(\*\) \+ Int64\(\-91\) \+ Int64\(\-66\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(75\)\), Int64\(48\) \+ Int64\(87\) \* coalesce\(\(\- Int64\(\-82\)\), CAST\(NULL AS Int32\) \* \(\- Int64\(\-97\)\) / Int64\(5\) \+ Int64\(90\)\) \+ Int64\(66\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(21\) AS col0" at position 1 and "Int64\(\-91\) \- Int64\(47\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-91\) \+ Int64\(\-66\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 * - CAST ( - 35 AS INTEGER ) + 2, 80 * + + COALESCE ( COUNT ( * ), - + 75, 48 + + 87 * COALESCE ( - - 82, CAST ( NULL AS INTEGER ) * - - 97 / + 5 + 90 ) + + 66 ) - COUNT ( * ) + 21 col0, - 91 - + 47 + + + COUNT ( * ) + + COUNT ( * ) + - 91 + - 66 AS col0 query I rowsort label-1507 @@ -7990,7 +7990,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\(\*\) AS col1" at position 1 have the 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 @@ -8016,7 +8016,7 @@ SELECT + 51 * + 66 * - ( - - COALESCE ( - - 23, + - 16, 32 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 75 AS col0, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1517 @@ -8362,7 +8362,7 @@ SELECT DISTINCT - 37 + - 85 / - 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -940 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(1\) \* Int64\(74\) \+ Int64\(84\) \+ Int64\(33\) \+ Int64\(\-30\) \* Int64\(37\) \+ CASE WHEN Int64\(70\) <= NULL THEN \(\- Int64\(51\)\) \* \(\- count\(\*\)\) \* count\(\*\) \+ Int64\(75\) ELSE Int64\(62\) \+ Int64\(\-95\) END AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(47\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(10\)\) \* max\(Int64\(\-91\)\) \- Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(1\) \* Int64\(74\) \+ Int64\(84\) \+ Int64\(33\) \+ Int64\(\-30\) \* Int64\(37\) \+ CASE WHEN Int64\(70\) <= NULL THEN \(\- Int64\(51\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(75\) ELSE Int64\(62\) \+ Int64\(\-95\) END AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(47\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(10\)\) \* max\(Int64\(\-91\)\) \- Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 12 + + 1 * 74 + 84 + + + 33 + + - 30 * 37 + + + CASE WHEN 70 <= NULL THEN - + 51 * - COUNT ( * ) * + + COUNT ( * ) + 75 ELSE + + 62 + - 95 END col0, - COUNT ( * ) * + 47 * - CAST ( NULL AS INTEGER ) * - + 10 * ( + MAX ( - 91 ) ) - 13 AS col0 query II rowsort label-1583 @@ -8925,7 +8925,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\(\*\) 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 @@ -10116,7 +10116,7 @@ SELECT - - COUNT ( * ) * 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 4800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(75\) \* count\(\*\) \* count\(\*\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 57 AS col0, 75 * COUNT ( * ) * + COUNT ( * ) * 64 AS col0 query II rowsort @@ -10812,7 +10812,7 @@ SELECT DISTINCT 8, + CAST ( 25 AS INTEGER ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(27\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 51 AS col2, 27 * - ( COUNT ( * ) ) AS col2 query I rowsort @@ -13628,7 +13628,7 @@ SELECT 63, - 33 + - NULLIF ( - COALESCE ( + 78, - - ( + + 60 ) ), + + 40 * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) AS col2" at position 0 and "coalesce\(Int64\(\-13\), \(\- Int64\(\-18\)\) / count\(\*\)\) AS col2" at position 1 have the 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 "coalesce\(Int64\(\-13\), \(\- Int64\(\-18\)\) / 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, COALESCE ( - 13, - - 18 / COUNT ( * ) ) AS col2 query I rowsort label-2594 @@ -14307,7 +14307,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\(\*\) AS col1" at position 1 have the 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 @@ -15405,7 +15405,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\(\*\) 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 @@ -15640,7 +15640,7 @@ SELECT ALL 8 * CASE - - 82 WHEN - 37 * + COUNT ( * ) / NULLIF ( + - 12, - - 2 * # Datafusion - Expected - -62 # Datafusion - Expected - -6030902 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ count\(\*\) \+ \(\- Int64\(26\)\) \* \(\- \(\- max\(Int64\(70\)\)\)\) \+ Int64\(58\) \* count\(DISTINCT Int64\(34\)\) \+ Int64\(87\) \- \(\- nullif\(Int64\(51\), Int64\(\-79\)\)\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-90\) \* Int64\(16\) \* Int64\(79\) AS col2" at position 1 and "count\(Int64\(1\)\) \- 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\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(26\)\) \* \(\- \(\- max\(Int64\(70\)\)\)\) \+ Int64\(58\) \* count\(DISTINCT Int64\(34\)\) \+ Int64\(87\) \- \(\- nullif\(Int64\(51\), Int64\(\-79\)\)\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-90\) \* Int64\(16\) \* Int64\(79\) AS col2" at position 1 and "count\(Int64\(1\)\) \- Int64\(17\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 62, COUNT ( * ) + ( COUNT ( * ) ) + - + 26 * - - MAX ( + 70 ) + 58 * COUNT ( DISTINCT 34 ) + + 87 - - NULLIF ( + 51, - 79 ) + - - 53 * - 90 * 16 * 79 AS col2, + COUNT ( + 1 ) - + 17 AS col2 query I rowsort @@ -15893,7 +15893,7 @@ SELECT ALL - + 56 + - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(53\) \+ Int64\(63\) \+ Int64\(37\) \+ \(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(\-55\) \+ count\(\*\) \+ Int64\(93\) \* Int64\(\-15\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(53\) \+ Int64\(63\) \+ Int64\(37\) \+ \(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(\-55\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(93\) \* Int64\(\-15\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 74 + 53 + + 63 + + ( + 37 ) + - + 67 AS col0, - 55 + + COUNT ( * ) + 93 * - 15 * CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-3024 @@ -16778,7 +16778,7 @@ SELECT + CASE 79 WHEN + 2 * - 75 + + - 49 THEN NULL WHEN - 92 + + MAX ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - -4530 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* count\(\*\) \* \(\- Int64\(68\)\) \+ \(\- Int64\(\-94\)\) AS col0" at position 0 and "Int64\(98\) \- 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\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(68\)\) \+ \(\- Int64\(\-94\)\) AS col0" at position 0 and "Int64\(98\) \- Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 * + COUNT ( * ) * - + 68 + - - 94 AS col0, 98 - 62 AS col0 query I rowsort @@ -17581,7 +17581,7 @@ SELECT 71 * + NULLIF ( + + 98, 19 ), + ( - 16 ) 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 "Int64\(14\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 14 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -17826,7 +17826,7 @@ SELECT - ( - 42 ) / + 46 + - 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- CASE Int64\(\-60\) WHEN count\(\*\) THEN \(\- count\(\*\)\) END\) \+ Int64\(68\) AS col0" at position 0 and "Int64\(\-24\) \* 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\(14\) \* \(\- CASE Int64\(\-60\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \+ Int64\(68\) AS col0" at position 0 and "Int64\(\-24\) \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 14 * - CASE - 60 WHEN COUNT ( * ) THEN - ( COUNT ( * ) ) END + + 68 AS col0, - 24 * - 70 AS col0 query I rowsort label-3393 @@ -18097,7 +18097,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\(\*\) 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 @@ -18492,7 +18492,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\(\*\) AS col1" at position 1 have the 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 @@ -23495,7 +23495,7 @@ SELECT DISTINCT + 8 * MAX ( ( - - 70 ) ) col2, + 44 # 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\(\*\)\)\) 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 @@ -23925,7 +23925,7 @@ SELECT - + 4 * - 30 + - - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(\*\)\) / Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - ( + COUNT ( * ) ) / + + 60 AS col1 query I rowsort label-4563 @@ -24735,7 +24735,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\(\*\) AS col0" at position 1 have the 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 @@ -26213,7 +26213,7 @@ SELECT 63 - - 50 / 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1330 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- Int64\(19\)\) AS col1" at position 0 and "count\(\*\) / 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\(70\) \* \(\- Int64\(19\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 70 * + - ( 19 ) AS col1, COUNT ( * ) / + 65 AS col1 query I rowsort @@ -26743,7 +26743,7 @@ SELECT 14, ( 80 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) / Int64\(11\) \+ \(\- \(\- count\(\*\)\)\) \- Int64\(\-56\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) / Int64\(11\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-56\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 / 11 + - - COUNT ( * ) - - 56 AS col1, 13 AS col1 query I rowsort label-5097 @@ -27184,7 +27184,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\(\*\) AS col1" at position 1 have the 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 @@ -27231,7 +27231,7 @@ SELECT NULLIF ( 49, + - CASE - 17 WHEN - - 20 * + - 66 * - 79 THEN NULL ELSE + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 65 AS col2, - COUNT ( * ) * 84 AS col2 # Datafusion - Types were automatically converted from: @@ -27943,7 +27943,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\(\*\) AS col2" at position 1 and "Int64\(44\) \+ 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 @@ -27969,7 +27969,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\(\*\) AS col2" at position 1 have 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 @@ -28145,7 +28145,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\(\*\) AS col1" at position 1 have the 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 @@ -28491,7 +28491,7 @@ SELECT + MAX ( DISTINCT - 52 ) * + - 81 * + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2244 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* Int64\(68\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 ALL + - 33 * + + ( 68 ) AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -30863,7 +30863,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\(\*\) AS col0" at position 1 have the 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 @@ -32278,7 +32278,7 @@ SELECT - COALESCE ( + 28, + + MAX ( DISTINCT - + 12 ) * 0 + - COUNT ( * ) - + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 314160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(70\) \* \(\- count\(\*\)\) \* \(\- Int64\(\-88\)\) \* 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\(25\) AS col0" at position 0 and "Int64\(70\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-88\)\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 25 AS col0, 70 * - COUNT ( * ) * - - 88 * - 51 AS col0 query I rowsort label-6162 @@ -33788,7 +33788,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -34049,7 +34049,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\(\*\) AS col0" at position 1 have the 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 @@ -34657,7 +34657,7 @@ SELECT - 51 * + SUM ( - 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(8\) AS col0" at position 0 and "Int64\(80\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(8\) 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 57 + + 8 AS col0, + 80 / - - COUNT ( * ) col0 query I rowsort label-6617 @@ -34933,7 +34933,7 @@ SELECT - SUM ( ALL - 89 ) + - + COUNT ( * ) - + 84 - - - 35 + + 63 * - 96 + + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* count\(\*\) \+ coalesce\(Int64\(79\), Int64\(29\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(Int64\(93\) AS Float64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(79\), Int64\(29\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(Int64\(93\) AS Float64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 7 * + COUNT ( * ) + + + COALESCE ( + 79, + 29 ) AS col0, CAST ( NULL AS INTEGER ) * - + ( - CAST ( 93 AS FLOAT8 ) ) AS col0 query I rowsort label-6670 @@ -35008,7 +35008,7 @@ SELECT 51 + - 91 AS col0, - NULLIF ( + + 56, 12 ) 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 query I rowsort @@ -36965,7 +36965,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\(\*\) AS col0" at position 1 have the same 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 @@ -37215,7 +37215,7 @@ SELECT 53 * - - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(42\) AS col1" at position 0 and "max\(Int64\(\-62\)\) / 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\(\*\) / Int64\(42\) AS col1" at position 0 and "max\(Int64\(\-62\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + + ( + COUNT ( * ) ) ) / + 42 AS col1, MAX ( - 62 ) / + COUNT ( * ) + - 63 AS col1 query I rowsort label-7104 @@ -37517,7 +37517,7 @@ SELECT ALL 74 + + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -11 -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\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 72 AS col2, - COUNT ( * ) + ( - 10 ) AS col2 query I rowsort @@ -38637,7 +38637,7 @@ SELECT + + 98 AS col2, 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-41\) \+ CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-41\) \+ CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 57 AS col2, + COUNT ( * ) * - 41 + CAST ( NULL AS FLOAT8 ) AS col2 query I rowsort @@ -38659,7 +38659,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\(\*\) AS col0" at position 1 have the same 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 @@ -40953,7 +40953,7 @@ SELECT DISTINCT + 67 * + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2131 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(\-26\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-1\) \* \(\- Int64\(14\)\) \- \(\- CAST\(NULL AS Int32\)\) \+ max\(Int64\(\-22\)\) \* \(\- Int64\(\-68\)\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(\-26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-1\) \* \(\- Int64\(14\)\) \- \(\- CAST\(NULL AS Int32\)\) \+ max\(Int64\(\-22\)\) \* \(\- Int64\(\-68\)\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 82 * - 26 + - + COUNT ( * ) AS col2, 97 * - 1 * - + 14 - - CAST ( NULL AS INTEGER ) + + MAX ( - 22 ) * - - 68 * 66 col2 # Datafusion - Datafusion expected results: @@ -42398,7 +42398,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\(\*\) 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 @@ -42465,7 +42465,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ \(\- CAST\(Int64\(27\) AS Int32\)\) AS col2" at position 0 and "Int64\(73\) \- CASE Int64\(\-67\) WHEN \(\- Int64\(\-6\)\) \* Int64\(\-58\) THEN NULL WHEN \(\- count\(\*\)\) THEN Int64\(63\) END \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ \(\- CAST\(Int64\(27\) AS Int32\)\) AS col2" at position 0 and "Int64\(73\) \- CASE Int64\(\-67\) WHEN \(\- Int64\(\-6\)\) \* Int64\(\-58\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(63\) END \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 66 + - + CAST ( 27 AS INTEGER ) AS col2, 73 - + CASE - 67 WHEN - - 6 * - 58 THEN NULL WHEN - COUNT ( * ) THEN + 63 END + 84 AS col2 query I rowsort label-8113 @@ -44550,7 +44550,7 @@ SELECT + 70 + + 46 * + 16 # 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\(\*\)\) AS col2" at position 1 have the 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-8512 @@ -44918,7 +44918,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\(19\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "\(\- count\(DISTINCT 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\(19\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "\(\- count\(DISTINCT Int64\(95\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 + - - COUNT ( * ) AS col1, - COUNT ( DISTINCT + 95 ) AS col1 query I rowsort label-8580 @@ -45272,7 +45272,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\(\*\) AS col1" at position 1 have the 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 @@ -46110,7 +46110,7 @@ SELECT - - 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \+ \(\- Int64\(66\)\) AS col1" at position 0 and "count\(\*\) \* 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\(\*\)\)\) \+ \(\- Int64\(66\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - COUNT ( * ) ) + - ( 66 ) AS col1, + COUNT ( * ) * + - 41 col1 query I rowsort @@ -46800,7 +46800,7 @@ SELECT 35 / - + 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col2" at position 0 and "count\(\*\) \+ coalesce\(count\(\*\), Int64\(44\) \* CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(44\) \* CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 6 AS col2, COUNT ( * ) + + COALESCE ( COUNT ( * ), 44 * + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -46875,7 +46875,7 @@ SELECT ( COALESCE ( + + 43, + 63 + COUNT ( * ) * 57 ) ) + - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "count\(\*\) \* \(\- \(\- CASE Int64\(\-40\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(7\) THEN \(\- sum\(Int64\(66\)\)\) \* Int64\(42\) \+ Int64\(84\) END\)\) / Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CASE Int64\(\-40\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(7\) THEN \(\- sum\(Int64\(66\)\)\) \* Int64\(42\) \+ Int64\(84\) END\)\) / Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 11 AS col1, COUNT ( * ) * - - CASE - 40 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 7 THEN - SUM ( 66 ) * 42 + 84 END / - 32 col1 query I rowsort @@ -48919,7 +48919,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -49282,7 +49282,7 @@ SELECT DISTINCT - + MIN ( ALL - 37 ), 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-43\) 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\(\*\) \+ Int64\(\-43\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - 43 AS col2, + 5 AS col2 query I rowsort @@ -49718,7 +49718,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\(\*\) 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 @@ -50301,7 +50301,7 @@ SELECT DISTINCT COALESCE ( - + 74, ( - + 43 ) ) * + 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\(23\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 "\(\- 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, - COUNT ( * ) AS col1 query I rowsort label-9613 diff --git a/data/sqlite/random/expr/slt_good_49.slt b/data/sqlite/random/expr/slt_good_49.slt index ee9da57..f54d60e 100644 --- a/data/sqlite/random/expr/slt_good_49.slt +++ b/data/sqlite/random/expr/slt_good_49.slt @@ -327,7 +327,7 @@ SELECT 33 + + MIN ( 9 ) * + + 10 + + 25 * + + 53 AS col2, + COUNT ( * ) # 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\(\*\)\) 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 query I rowsort @@ -1154,7 +1154,7 @@ SELECT DISTINCT - 7 + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "CASE \(\- Int64\(46\)\) WHEN \(\- Int64\(\-81\)\) THEN Int64\(83\) \* \(\- Int64\(51\)\) / Int64\(61\) \* \(\- Int64\(\-91\)\) \+ Int64\(93\) \* \(\- count\(\*\)\) \* Int64\(89\) 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\(1\) AS col0" at position 0 and "CASE \(\- Int64\(46\)\) WHEN \(\- Int64\(\-81\)\) THEN Int64\(83\) \* \(\- Int64\(51\)\) / Int64\(61\) \* \(\- Int64\(\-91\)\) \+ Int64\(93\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(89\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 AS col0, CASE - + 46 WHEN - - 81 THEN 83 * - + 51 / + 61 * - - 91 + 93 * - COUNT ( * ) * 89 END AS col0 query I rowsort label-212 @@ -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\(\*\) 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 @@ -5485,7 +5485,7 @@ SELECT ALL - CASE - - 71 WHEN - 3 THEN + MAX ( - 84 ) ELSE - + ( + ( + 69 ) ) EN # Datafusion - Datafusion expected results: # Datafusion - Expected - 1943 # Datafusion - Expected - 688 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* \(\- coalesce\(\(\- Int64\(\-29\)\), Int64\(31\) / \(\- count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(\-16\) \* 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\(\-67\) \* \(\- coalesce\(\(\- Int64\(\-29\)\), Int64\(31\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(\-16\) \* Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 67 * - COALESCE ( - - 29, 31 / - + COUNT ( * ) ) AS col0, - 16 * - 43 AS col0 query I rowsort label-1043 @@ -5889,7 +5889,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\(45\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -6465,7 +6465,7 @@ SELECT + + 90 * COUNT ( * ) + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4296 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-52\) \+ coalesce\(Int64\(72\), Int64\(\-23\) \* Int64\(1\) \+ Int64\(21\) \+ Int64\(17\) \- \(\- Int64\(\-48\)\) \+ Int64\(\-37\) \* Int64\(\-17\) \* \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-52\) \+ coalesce\(Int64\(72\), Int64\(\-23\) \* Int64\(1\) \+ Int64\(21\) \+ Int64\(17\) \- \(\- Int64\(\-48\)\) \+ Int64\(\-37\) \* Int64\(\-17\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 84 * ( - 52 ) + + + COALESCE ( 72, + - 23 * + 1 + 21 + 17 - - ( - 48 ) + - 37 * + - 17 * + - ( + COUNT ( * ) ) ) col2, 62 AS col2 query I rowsort @@ -7576,7 +7576,7 @@ SELECT - 28 * - - 40 - ( + COUNT ( * ) ) + - - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2157 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* Int64\(\-32\) \+ Int64\(45\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ \(\- Int64\(\-69\)\) \- coalesce\(Int64\(\-70\), Int64\(\-62\)\) \+ Int64\(\-23\) / 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\(\-66\) \* Int64\(\-32\) \+ Int64\(45\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-69\)\) \- coalesce\(Int64\(\-70\), Int64\(\-62\)\) \+ Int64\(\-23\) / Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 66 * - 32 + + 45 AS col0, - COUNT ( * ) + + ( - - 69 ) - + COALESCE ( - 70, - 62 ) + - 23 / - 21 AS col0 query I rowsort label-1441 @@ -7981,7 +7981,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1440 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(36\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(36\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 * - - COUNT ( * ) * + 36 AS col2, 71 AS col2 query I rowsort label-1519 @@ -10359,7 +10359,7 @@ SELECT - 15 * - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ Int64\(32\) / Int64\(80\) AS col2" at position 0 and "count\(\*\) \* max\(\(\- 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\(\-47\) \+ Int64\(32\) / Int64\(80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* max\(\(\- Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 47 + 32 / + + 80 AS col2, + COUNT ( * ) * + MAX ( + - ( - 72 ) ) col2 query I rowsort label-1971 @@ -10655,7 +10655,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -6 -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\(\-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\(54\) 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 54 AS col0, + COUNT ( * ) + - 7 AS col0 query I rowsort @@ -11301,7 +11301,7 @@ SELECT ALL - SUM ( - + 42 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -1026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col0" at position 0 and "CAST\(\(\- \(\- coalesce\(Int64\(\-27\), \(\- Int64\(92\)\), count\(\*\) \* \(\- Int64\(11\)\), Int64\(97\)\)\)\) AS Int32\) \* Int64\(40\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col0" at position 0 and "CAST\(\(\- \(\- coalesce\(Int64\(\-27\), \(\- Int64\(92\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(11\)\), Int64\(97\)\)\)\) AS Int32\) \* Int64\(40\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( 60 ) AS col0, + CAST ( - - COALESCE ( - 27, - + 92, + COUNT ( * ) * - + 11, 97 ) AS INTEGER ) * 40 + + + 54 AS col0 query I rowsort @@ -11469,7 +11469,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\(\*\) 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 @@ -11956,7 +11956,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\(\*\) AS col0" at position 1 have the 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 @@ -12407,7 +12407,7 @@ SELECT - COUNT ( * ) + + MIN ( - + 40 ) 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 "Int64\(70\) / Int64\(40\) AS col0" at position 0 and "CASE Int64\(22\) WHEN Int64\(0\) \* count\(DISTINCT Int64\(\-78\)\) THEN Int64\(13\) WHEN Int64\(21\) THEN NULL END / Int64\(\-39\) \+ sum\(DISTINCT Int64\(44\)\) \* coalesce\(count\(\*\) \+ count\(\*\), 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\(70\) / Int64\(40\) AS col0" at position 0 and "CASE Int64\(22\) WHEN Int64\(0\) \* count\(DISTINCT Int64\(\-78\)\) THEN Int64\(13\) WHEN Int64\(21\) THEN NULL END / Int64\(\-39\) \+ sum\(DISTINCT Int64\(44\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 70 ) / + 40 col0, CASE 22 WHEN - 0 * COUNT ( DISTINCT - 78 ) THEN 13 WHEN 21 THEN NULL END / - 39 + SUM ( DISTINCT + 44 ) * + COALESCE ( COUNT ( * ) + COUNT ( * ), CAST ( NULL AS FLOAT8 ) ) AS col0 query I rowsort label-2367 @@ -12531,7 +12531,7 @@ SELECT 30 + - 8 + + 25 * + 47 AS col1, + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "Int64\(2\) \* Int64\(1\) \+ \(\- count\(\*\)\) \+ Int64\(63\) \- \(\- \(\- coalesce\(coalesce\(Int64\(87\), CASE Int64\(21\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(45\) \- avg\(Int64\(12\) \+ Int64\(85\)\) \* count\(\*\) THEN NULL WHEN Int64\(31\) THEN sum\(Int64\(\-7\)\) ELSE Int64\(44\) END \* Int64\(\-33\), Int64\(58\)\), Int64\(54\)\)\)\) \* Int64\(25\) / Int64\(77\) \* \(\- nullif\(Int64\(70\) \- Int64\(83\), Int64\(50\) \* Int64\(61\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "Int64\(2\) \* Int64\(1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(63\) \- \(\- \(\- coalesce\(coalesce\(Int64\(87\), CASE Int64\(21\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(45\) \- avg\(Int64\(12\) \+ Int64\(85\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(31\) THEN sum\(Int64\(\-7\)\) ELSE Int64\(44\) END \* Int64\(\-33\), Int64\(58\)\), Int64\(54\)\)\)\) \* Int64\(25\) / Int64\(77\) \* \(\- nullif\(Int64\(70\) \- Int64\(83\), Int64\(50\) \* Int64\(61\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 AS col2, + 2 * 1 + - COUNT ( * ) + 63 - - - COALESCE ( + COALESCE ( 87, + CASE + 21 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 45 - AVG ( 12 + 85 ) * + COUNT ( * ) THEN NULL WHEN 31 THEN + SUM ( ( - 7 ) ) ELSE 44 END * - 33, + 58 ), 54 ) * 25 / 77 * - NULLIF ( 70 - 83, 50 * 61 ) AS col2 query II rowsort label-2391 @@ -14273,7 +14273,7 @@ SELECT - 65 * CAST ( - - ( + ( + MIN ( ALL - + 11 ) ) ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(95\) AS col1" at position 0 and "count\(Int64\(\-12\)\) \+ 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(95\) AS col1" at position 0 and "count\(Int64\(\-12\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(49\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / + 95 AS col1, + COUNT ( ALL - 12 ) + COUNT ( * ) - - + 49 AS col1 query I rowsort label-2723 @@ -15612,7 +15612,7 @@ NULL # Datafusion - Expected - 2 # Datafusion - Expected - 8 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) / Int64\(12\) AS col1" at position 0 and "count\(\*\) \* \(\- Int64\(83\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) / Int64\(12\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(83\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 / + 12 AS col1, 8, + COUNT ( * ) * - + 83 AS col1 query I rowsort @@ -15703,7 +15703,7 @@ SELECT + COUNT ( DISTINCT - 46 ) / + 50 # Datafusion - Expected - -148 # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(99\)\)\) AS col2" at position 1 and "nullif\(\(\- avg\(CAST\(NULL AS Float64\)\)\), \(\- \(\- 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\(DISTINCT Int64\(99\)\)\) AS col2" at position 1 and "nullif\(\(\- avg\(CAST\(NULL AS Float64\)\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 96 + - 52, - COUNT ( DISTINCT ( 99 ) ) AS col2, + + NULLIF ( - + AVG ( + + CAST ( NULL AS FLOAT8 ) ), - + ( - + COUNT ( * ) ) ) AS col2 query II rowsort label-2994 @@ -16134,7 +16134,7 @@ SELECT ( - 86 ) * - 28 + + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "nullif\(Int64\(\-87\), Int64\(\-68\) / \(\- Int64\(\-97\)\) \+ max\(\(\- nullif\(Int64\(16\), \(\- Int64\(70\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\)\) \* Int64\(36\) \* Int64\(99\) \- \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(\*\)\) \+ Int64\(76\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "nullif\(Int64\(\-87\), Int64\(\-68\) / \(\- Int64\(\-97\)\) \+ max\(\(\- nullif\(Int64\(16\), \(\- Int64\(70\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\)\) \* Int64\(36\) \* Int64\(99\) \- \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(76\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 51 col0, + NULLIF ( - 87, + - 68 / - - 97 + MAX ( + - NULLIF ( + 16, - + 70 * - - CAST ( NULL AS INTEGER ) ) ) ) * + 36 * ( + + 99 ) - - CAST ( NULL AS FLOAT8 ) + + - COUNT ( * ) + 76 * + 22 AS col0 query I rowsort @@ -16473,7 +16473,7 @@ SELECT + + COUNT ( * ), 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "\(\- CASE count\(\*\) WHEN \(\- Int64\(13\)\) \+ Int64\(\-69\) THEN Int64\(\-5\) WHEN Int64\(\-41\) \* Int64\(25\) THEN NULL ELSE NULL END\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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 "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(13\)\) \+ Int64\(\-69\) THEN Int64\(\-5\) WHEN Int64\(\-41\) \* Int64\(25\) THEN NULL ELSE NULL END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 col1, - CASE + COUNT ( * ) WHEN - + 13 + - 69 THEN - 5 WHEN - 41 * 25 THEN NULL ELSE NULL END * - COUNT ( * ) AS col1 query I rowsort @@ -16774,7 +16774,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\(\*\) AS col2" at position 1 have the 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 @@ -16831,7 +16831,7 @@ SELECT DISTINCT - 55 * + + 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1106 # Datafusion - Expected - -102426 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-79\) AS col2" at position 0 and "Int64\(30\) \* coalesce\(Int64\(61\), \(\- count\(\*\)\) \* \(\- count\(\*\)\)\) \* Int64\(\-56\) \+ 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\(14\) \* Int64\(\-79\) AS col2" at position 0 and "Int64\(30\) \* coalesce\(Int64\(61\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-56\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 14 * - 79 AS col2, 30 * + + COALESCE ( ( + 61 ), - COUNT ( * ) * - COUNT ( * ) ) * - 56 + + 54 col2 query I rowsort label-3207 @@ -19211,7 +19211,7 @@ SELECT + 2 * COUNT ( * ) / + 37 * - 25 # 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\(\*\)\) AS col2" at position 0 and "coalesce\(Int64\(81\), \(\- count\(\*\)\) \+ 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 "coalesce\(Int64\(81\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + COUNT ( * ) ) AS col2, COALESCE ( + + 81, - COUNT ( * ) + - 76 ) AS col2 query II rowsort @@ -19238,7 +19238,7 @@ SELECT ( COUNT ( DISTINCT + ( - 11 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "CASE Int64\(\-5\) WHEN \(\- count\(\*\)\) THEN \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(97\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "CASE Int64\(\-5\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(97\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 42 ) AS col1, CASE - 5 WHEN + - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL END AS col1 query I rowsort label-3663 @@ -19396,7 +19396,7 @@ SELECT + 10, COUNT ( - CASE - - 98 WHEN 81 THEN 39 ELSE + 39 END ) * - 41 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 5963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(48\) \+ \(\- nullif\(Int64\(73\), \(\- nullif\(count\(\*\), Int64\(95\) \* CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ \(\- Int64\(\-71\)\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(48\) \+ \(\- nullif\(Int64\(73\), \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(95\) \* CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-71\)\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 77 + + 48 + - + NULLIF ( + + 73, - NULLIF ( + ( COUNT ( * ) ), 95 * + CAST ( NULL AS INTEGER ) ) ) AS col2, + ( - COUNT ( * ) ) + - ( - 71 ) * + 84 AS col2 query II rowsort @@ -20281,7 +20281,7 @@ SELECT ALL NULLIF ( 86, - 70 * + 67 + - + ( + + NULLIF ( - + CAST ( - - ( 4 ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- Int64\(85\)\) \* \(\- count\(\*\)\) \* min\(\(\- Int64\(\-2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- Int64\(85\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(\(\- Int64\(\-2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 AS col1, - ( + 85 ) * - COUNT ( * ) * + + MIN ( ALL - - 2 ) AS col1 query I rowsort label-3858 @@ -20323,7 +20323,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\(\*\) 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 @@ -20543,7 +20543,7 @@ SELECT + 39 * - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / \(\- CAST\(NULL AS Float64\)\) 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\(\*\)\) / \(\- CAST\(NULL AS Float64\)\) 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 ( * ) / + - CAST ( NULL AS FLOAT8 ) AS col0, 42 AS col0 query I rowsort label-3908 @@ -21553,7 +21553,7 @@ SELECT ALL - 89 * + 87 # 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\(22\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "count\(DISTINCT Int64\(\-1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(DISTINCT Int64\(\-1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 22 + - + COUNT ( * ) AS col0, + COUNT ( DISTINCT + - 1 ) col0 query I rowsort label-4105 @@ -21662,7 +21662,7 @@ SELECT COALESCE ( - + 83, 65 * - + ( + + 88 ) * MAX ( ALL + 47 * CAST ( + 6 AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 0 -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\(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\(\-60\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 60 AS col0, COUNT ( * ) / 27 AS col0 query I rowsort label-4126 @@ -23185,7 +23185,7 @@ SELECT + MIN ( DISTINCT - 10 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - 5856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- coalesce\(Int64\(36\), Int64\(2\), count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-19\) \* Int64\(\-48\) \+ Int64\(73\)\)\) \- Int64\(58\) \+ Int64\(\-15\) AS col0" at position 0 and "Int64\(96\) \* \(\- Int64\(\-61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- coalesce\(Int64\(36\), Int64\(2\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-19\) \* Int64\(\-48\) \+ Int64\(73\)\)\) \- Int64\(58\) \+ Int64\(\-15\) AS col0" at position 0 and "Int64\(96\) \* \(\- Int64\(\-61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 5 * - COALESCE ( 36, 2, COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - 19 * + - 48 + + 73 ) - + 58 + - 15 AS col0, 96 * - - 61 AS col0 query II rowsort @@ -24206,7 +24206,7 @@ SELECT COUNT ( * ) + MIN ( - 56 ) + 98 + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -116 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(72\)\) \- coalesce\(Int64\(97\), Int64\(\-19\), \(\- Int64\(\-67\)\) \+ \(\- Int64\(91\)\) \* \(\- Int64\(\-20\)\) \- count\(\*\) \+ Int64\(\-11\) / Int64\(\-70\), Int64\(61\)\) \+ max\(Int64\(\-91\)\) 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 "max\(Int64\(72\)\) \- coalesce\(Int64\(97\), Int64\(\-19\), \(\- Int64\(\-67\)\) \+ \(\- Int64\(91\)\) \* \(\- Int64\(\-20\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-11\) / Int64\(\-70\), Int64\(61\)\) \+ max\(Int64\(\-91\)\) 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 MAX ( 72 ) - COALESCE ( + 97, + - 19, - - 67 + - + 91 * - - 20 - + COUNT ( * ) + - 11 / - 70, 61 ) + + MAX ( + - 91 ) AS col0, - 85 AS col0 query I rowsort label-4611 @@ -25382,7 +25382,7 @@ NULL # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -26164,7 +26164,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\(\*\) \* count\(\*\) \* Int64\(77\) \* \(\- count\(\*\)\) \+ Int64\(69\) \+ \(\- Int64\(64\)\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -26658,7 +26658,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\(\*\) AS col1" at position 1 have the 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 @@ -26836,7 +26836,7 @@ SELECT ALL ( - NULLIF ( + + ( 49 ), - - 3 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -1359 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(53\), Int64\(\-61\) \* \(\- \(\- max\(\(\- Int64\(\-12\)\)\)\)\)\) \+ Int64\(37\) AS col0" at position 0 and "Int64\(40\) \* Int64\(\-34\) \- \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(53\), Int64\(\-61\) \* \(\- \(\- max\(\(\- Int64\(\-12\)\)\)\)\)\) \+ Int64\(37\) AS col0" at position 0 and "Int64\(40\) \* Int64\(\-34\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( 53, - 61 * - ( + - MAX ( - ( - 12 ) ) ) ) + + 37 AS col0, 40 * - 34 - - COUNT ( * ) AS col0 query I rowsort @@ -28333,7 +28333,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -28950,7 +28950,7 @@ SELECT ALL 37, 74 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\(\-20\) / Int64\(56\) \* \(\- Int64\(\-33\)\) AS col2" at position 0 and "\(\- \(\- count\(\*\)\)\) / \(\- CAST\(NULL AS Float64\)\) \* Int64\(6\) \- min\(\(\- Int64\(\-43\)\)\) \+ Int64\(16\) \+ Int64\(\-2\) \* 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\(\*\) \+ Int64\(\-20\) / Int64\(56\) \* \(\- Int64\(\-33\)\) AS col2" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / \(\- CAST\(NULL AS Float64\)\) \* Int64\(6\) \- min\(\(\- Int64\(\-43\)\)\) \+ Int64\(16\) \+ Int64\(\-2\) \* Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - 20 / 56 * - - 33 AS col2, + ( - - COUNT ( * ) ) / - CAST ( NULL AS FLOAT8 ) * 6 - + MIN ( - - 43 ) + 16 + - 2 * - 54 AS col2 query I rowsort @@ -28961,7 +28961,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -32038,7 +32038,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(\-80\) \+ \(\- 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\(29\) \+ Int64\(\-80\) \+ \(\- 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 29 + + - 80 + - + ( + COUNT ( * ) ) AS col0, + 63 AS col0 query I rowsort @@ -32423,7 +32423,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\(\*\) 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 @@ -32891,7 +32891,7 @@ SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN CAST ( - 85 AS INTEGER ) THEN NU # Datafusion - Datafusion expected results: # Datafusion - Expected - -7600 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* coalesce\(Int64\(95\), Int64\(\-97\), Int64\(41\) \* Int64\(77\) \+ count\(\*\) \* Int64\(62\) \+ \(\- Int64\(76\)\) \* Int64\(\-50\)\) 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 "Int64\(\-80\) \* coalesce\(Int64\(95\), Int64\(\-97\), Int64\(41\) \* Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(62\) \+ \(\- Int64\(76\)\) \* Int64\(\-50\)\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 * COALESCE ( 95, - 97, + 41 * 77 + + COUNT ( * ) * + 62 + - + 76 * - 50 ) AS col1, 94 col1 query I rowsort label-6276 @@ -33335,7 +33335,7 @@ NULL # 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\(\*\)\) 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 query II rowsort @@ -35519,7 +35519,7 @@ SELECT MAX ( - - 71 ), - 14 * - COALESCE ( - 20, - 48, + - ( 56 ) + - NULLIF ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* nullif\(count\(\*\), \(\- Int64\(24\)\) \* Int64\(\-57\) \+ Int64\(11\) \+ Int64\(88\) \+ Int64\(\-39\) \* Int64\(\-38\) \+ count\(\*\) \- Int64\(\-79\) \* Int64\(71\) \+ Int64\(90\) \+ Int64\(66\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(24\)\) \* Int64\(\-57\) \+ Int64\(11\) \+ Int64\(88\) \+ Int64\(\-39\) \* Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-79\) \* Int64\(71\) \+ Int64\(90\) \+ Int64\(66\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 * + NULLIF ( COUNT ( * ), - + 24 * - 57 + + + 11 + + 88 + - 39 * - 38 + + + COUNT ( * ) - - 79 * + 71 + 90 + + + 66 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -38279,7 +38279,7 @@ SELECT + + 31 * - 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-28\)\) AS Int32\) \+ Int64\(\-61\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-28\)\) AS Int32\) \+ Int64\(\-61\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - - 28 AS INTEGER ) + - 61 + CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) * - 89 AS col2 query I rowsort label-7301 @@ -40029,7 +40029,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(63\)\) AS col1" at position 0 and "Int64\(71\) \* CASE count\(\*\) WHEN \(\- count\(Int64\(42\)\)\) \* Int64\(63\) \+ avg\(DISTINCT Int64\(28\)\) / Int64\(\-91\) THEN Int64\(55\) \+ Int64\(32\) WHEN Int64\(41\) \- Int64\(\-1\) THEN NULL ELSE NULL END \* 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\(\*\) \* \(\- Int64\(63\)\) AS col1" at position 0 and "Int64\(71\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- count\(Int64\(42\)\)\) \* Int64\(63\) \+ avg\(DISTINCT Int64\(28\)\) / Int64\(\-91\) THEN Int64\(55\) \+ Int64\(32\) WHEN Int64\(41\) \- Int64\(\-1\) THEN NULL ELSE NULL END \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - + 63 col1, 71 * CASE COUNT ( * ) WHEN - COUNT ( + 42 ) * + 63 + + + AVG ( DISTINCT + 28 ) / - 91 THEN 55 + + 32 WHEN + 41 - - 1 THEN NULL ELSE NULL END * ( + 6 ) AS col1 query I rowsort label-7642 @@ -40766,7 +40766,7 @@ SELECT ALL + ( - - 17 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 576 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(32\) AS col1" at position 0 and "count\(\*\) \* 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\(18\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 18 * - - ( + COUNT ( * ) ) * 32 AS col1, COUNT ( * ) * + 97 AS col1 query I rowsort label-7785 @@ -40970,7 +40970,7 @@ SELECT - 39 AS col1, NULLIF ( + 34, - ( - 17 ) + COUNT ( * ) * 85 ) + - 84 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(67\) \+ \(\- CASE Int64\(90\) WHEN Int64\(60\) \+ \(\- Int64\(\-18\)\) THEN \(\- \(\- count\(\*\)\)\) WHEN Int64\(26\) THEN NULL END\) \+ \(\- Int64\(\-30\)\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(67\) \+ \(\- CASE Int64\(90\) WHEN Int64\(60\) \+ \(\- Int64\(\-18\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(26\) THEN NULL END\) \+ \(\- Int64\(\-30\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 AS col1, + 67 + - + CASE 90 WHEN + + 60 + ( - - 18 ) THEN - - COUNT ( * ) WHEN 26 THEN NULL END + - - 30 * - + ( COUNT ( * ) ) AS col1 query II rowsort @@ -42708,7 +42708,7 @@ SELECT ALL + 40 * + + 5 + - 53 col2 # Datafusion - Expected - -649 # Datafusion - Expected - -131 # Datafusion - Expected - -940 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(12\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(26\) \* Int64\(\-7\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(26\) \* Int64\(\-7\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 54 * + 12 + - ( + COUNT ( * ) ) AS col2, + 26 * - 7 + + + 51 AS col2, + 47 * + - 20 query I rowsort @@ -43091,7 +43091,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 665 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(8\) \* Int64\(83\) \- \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(8\) \* Int64\(83\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 AS col1, ( + 8 ) * 83 - - COUNT ( * ) AS col1 query I rowsort @@ -43137,13 +43137,13 @@ 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\(\*\)\)\) 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 ( * ) 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\(\*\) AS col0" at position 1 have the 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 @@ -43237,7 +43237,7 @@ SELECT DISTINCT 24 + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 1415 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(93\) AS col1" at position 0 and "Int64\(\-85\) \+ Int64\(74\) \+ Int64\(23\) \* 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\(\*\) \* Int64\(93\) AS col1" at position 0 and "Int64\(\-85\) \+ Int64\(74\) \+ Int64\(23\) \* Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + 93 AS col1, - 85 + 74 + 23 * 62 AS col1 query I rowsort label-8252 @@ -44853,7 +44853,7 @@ SELECT DISTINCT - 85 - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(31\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(31\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 71 / - - COUNT ( * ) AS col0, 31 + - COUNT ( * ) AS col0 query I rowsort @@ -45731,7 +45731,7 @@ SELECT - ( - COUNT ( * ) ) + + - 21 + - 68 * - - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int32\) \+ count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( + ( - + 95 ) ) AS col0, 91 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + + 67 AS col0 query I rowsort @@ -46207,7 +46207,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\(\*\) AS col0" at position 1 have the 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 @@ -46297,7 +46297,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\(\*\) 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 @@ -49579,7 +49579,7 @@ SELECT 4 + - 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1330 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(14\) AS col0" at position 0 and "count\(\*\) / CAST\(NULL AS Int32\) \+ Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) \+ Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 95 * + 14 AS col0, + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - 60 AS col0 query I rowsort @@ -49948,7 +49948,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\(\*\) 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 @@ -52256,7 +52256,7 @@ SELECT ALL + ( - CASE + + COUNT ( * ) WHEN + 8 * + 68 / - 24 * + - 37 + + SUM ( # Datafusion - Expected - 48 # Datafusion - Expected - -2 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* Int64\(49\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "\(\- CASE \(\- Int64\(\-56\)\) WHEN Int64\(19\) \* Int64\(52\) \* \(\- min\(Int64\(50\)\)\) \* \(\- Int64\(55\)\) \+ Int64\(57\) THEN NULL ELSE Int64\(\-83\) END\) / Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* Int64\(49\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- CASE \(\- Int64\(\-56\)\) WHEN Int64\(19\) \* Int64\(52\) \* \(\- min\(Int64\(50\)\)\) \* \(\- Int64\(55\)\) \+ Int64\(57\) THEN NULL ELSE Int64\(\-83\) END\) / Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 1 * 49 + - COUNT ( * ) col2, ( - CASE - - 56 WHEN + 19 * + 52 * + - MIN ( ALL + 50 ) * - + 55 + + 57 THEN NULL ELSE - 83 END ) / - 41 AS col2, - - 92 col1 query I rowsort label-9969 diff --git a/data/sqlite/random/expr/slt_good_5.slt b/data/sqlite/random/expr/slt_good_5.slt index 7b11438..a4d4982 100644 --- a/data/sqlite/random/expr/slt_good_5.slt +++ b/data/sqlite/random/expr/slt_good_5.slt @@ -280,7 +280,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1931 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- \(\- Int64\(92\)\) \* Int64\(21\) AS col2" at position 0 and "count\(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\(\*\)\) \- \(\- Int64\(92\)\) \* Int64\(21\) AS col2" at position 0 and "count\(Int64\(40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - - + 92 * 21 AS col2, + COUNT ( ALL 40 ) AS col2 query I rowsort label-47 @@ -332,7 +332,7 @@ SELECT ALL - + 80 * + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2212 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-39\)\) \* Int64\(\-57\) \+ \(\- count\(\*\)\) \- \(\- Int64\(\-10\)\) AS col0" at position 0 and "coalesce\(Int64\(48\), Int64\(41\)\) / Int64\(48\) \* \(\- Int64\(\-62\)\) \+ \(\- 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 "sum\(DISTINCT Int64\(\-39\)\) \* Int64\(\-57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-10\)\) AS col0" at position 0 and "coalesce\(Int64\(48\), Int64\(41\)\) / Int64\(48\) \* \(\- Int64\(\-62\)\) \+ \(\- Int64\(94\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT - 39 ) * - 57 + - COUNT ( * ) - - - 10 AS col0, COALESCE ( 48, + + 41 ) / 48 * - - 62 + - + 94 AS col0 query I rowsort @@ -442,7 +442,7 @@ SELECT 80 AS col2, + 53 / - + 43 # Datafusion - Expected - NULL # Datafusion - Expected - -86805 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(62\) \+ Int64\(\-53\) \- Int64\(30\) \* CASE count\(\*\) WHEN CAST\(NULL AS Int32\) \* Int64\(\-43\) THEN NULL WHEN avg\(Int64\(\-54\)\) THEN Int64\(\-89\) END AS col1" at position 0 and "Int64\(87\) \* Int64\(7\) \* Int64\(54\) \- Int64\(\-9\) \+ Int64\(57\) \* CAST\(Int64\(\-35\) AS Int32\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(62\) \+ Int64\(\-53\) \- Int64\(30\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(NULL AS Int32\) \* Int64\(\-43\) THEN NULL WHEN avg\(Int64\(\-54\)\) THEN Int64\(\-89\) END AS col1" at position 0 and "Int64\(87\) \* Int64\(7\) \* Int64\(54\) \- Int64\(\-9\) \+ Int64\(57\) \* CAST\(Int64\(\-35\) AS Int32\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 * + 62 + - 53 - 30 * + CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * - 43 THEN NULL WHEN AVG ( - 54 ) THEN - 89 END col1, 87 * 7 * + 54 - - 9 + 57 * CAST ( - 35 AS INTEGER ) * 60 col1, + COUNT ( * ) AS col2 query II rowsort label-77 @@ -1426,7 +1426,7 @@ SELECT - COUNT ( * ) * - + 54 * - MAX ( - 80 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -832 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "coalesce\(Int64\(\-84\), count\(\*\)\) \+ \(\- Int64\(73\)\) \+ Int64\(\-25\) \* \(\- \(\- sum\(DISTINCT Int64\(27\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "coalesce\(Int64\(\-84\), count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(73\)\) \+ Int64\(\-25\) \* \(\- \(\- sum\(DISTINCT Int64\(27\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 7 AS col1, COALESCE ( - 84, ( + COUNT ( * ) ) ) + - + 73 + - 25 * - - SUM ( DISTINCT 27 ) AS col1 # Datafusion - Datafusion expected results: @@ -1621,7 +1621,7 @@ SELECT ALL ( - COUNT ( * ) ), NULLIF ( - COUNT ( * ), 23 * + 56 * 13 ) # 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\(\-95\) \+ \(\- CASE Int64\(\-45\) WHEN count\(\*\) \* count\(\*\) THEN NULL WHEN Int64\(\-93\) \* \(\- Int64\(47\)\) \+ \(\- count\(\*\)\) THEN Int64\(94\) END\) \+ Int64\(31\) 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\(\-95\) \+ \(\- CASE Int64\(\-45\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-93\) \* \(\- Int64\(47\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(94\) END\) \+ Int64\(31\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 + + - CASE - 45 WHEN COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN - 93 * - + 47 + + - COUNT ( * ) THEN + 94 END + + 31 col0, 85 AS col0 query I rowsort label-300 @@ -1632,7 +1632,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\(\*\) 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 @@ -2360,7 +2360,7 @@ SELECT + 80 + + ( - ( - 94 ) ) * + - ( + COUNT ( * ) ) + - 7 - - + 19 + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -91044 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) AS col1" at position 0 and "min\(Int64\(\-36\)\) \- \(\- Int64\(79\)\) \* Int64\(8\) \* \(\- nullif\(Int64\(4\), count\(\*\)\)\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) AS col1" at position 0 and "min\(Int64\(\-36\)\) \- \(\- Int64\(79\)\) \* Int64\(8\) \* \(\- nullif\(Int64\(4\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 37 AS col1, MIN ( - 36 ) - - + 79 * 8 * - NULLIF ( + 4, + COUNT ( * ) ) * 36 AS col1 query I rowsort label-440 @@ -2609,7 +2609,7 @@ SELECT + + COALESCE ( 62, + 77 ) * 33 # 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\(\*\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - 4 AS col2 query I rowsort @@ -3288,7 +3288,7 @@ SELECT 7 * - 48 + - 0 + - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* CASE \(\- Int64\(\-32\)\) WHEN coalesce\(Int64\(\-94\), Int64\(64\)\) \+ coalesce\(\(\- Int64\(95\)\), \(\- CAST\(\(\- Int64\(\-9\)\) AS Float64\)\)\) THEN Int64\(\-73\) \* Int64\(\-11\) \* Int64\(76\) \+ Int64\(\-86\) \* Int64\(77\) END \- \(\- Int64\(\-10\)\) 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\(\*\) \* CASE \(\- Int64\(\-32\)\) WHEN coalesce\(Int64\(\-94\), Int64\(64\)\) \+ coalesce\(\(\- Int64\(95\)\), \(\- CAST\(\(\- Int64\(\-9\)\) AS Float64\)\)\) THEN Int64\(\-73\) \* Int64\(\-11\) \* Int64\(76\) \+ Int64\(\-86\) \* Int64\(77\) END \- \(\- Int64\(\-10\)\) 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 ( * ) * + CASE - - 32 WHEN COALESCE ( - 94, + + 64 ) + + COALESCE ( - + 95, - CAST ( - - 9 AS FLOAT8 ) ) THEN - 73 * + - 11 * 76 + - 86 * + 77 END - - - 10 AS col1, - 34 AS col1 query I rowsort label-617 @@ -3705,7 +3705,7 @@ SELECT - - COUNT ( ALL + 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -259 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- \(\- Int64\(\-4\)\)\) \+ \(\- Int64\(27\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-4\)\)\) \+ \(\- 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 58 * - ( - - 4 ) + - + ( 27 ) col2, - COUNT ( * ) col2 query I rowsort label-698 @@ -3971,7 +3971,7 @@ SELECT CAST ( - 86 AS INTEGER ) AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - -6 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 + ( - COUNT ( * ) ) AS col2, - 6 AS col2, + ( - 38 ) AS col0 query I rowsort label-749 @@ -5020,7 +5020,7 @@ SELECT ALL 64 AS col2, 94 + + + 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "coalesce\(Int64\(84\), \(\- count\(\*\)\) \+ Int64\(\-34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "coalesce\(Int64\(84\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 AS col0, + COALESCE ( + 84, - COUNT ( * ) + - 34 ) AS col0 query I rowsort label-952 @@ -5087,7 +5087,7 @@ SELECT ALL + - 89 + - 50 + COALESCE ( - 20, - 57 / - 18 ) # 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\(\*\)\) 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 - + COUNT ( * ) AS col0, 29 col0 query I rowsort @@ -5514,7 +5514,7 @@ SELECT 42 * SUM ( DISTINCT - NULLIF ( + 84, - 62 / 88 ) ) * + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col2" at position 0 and "Int64\(\-83\) / \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col2" at position 0 and "Int64\(\-83\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 86 AS col2, - 83 / - COUNT ( * ) AS col2 query I rowsort label-1047 @@ -5946,7 +5946,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(\-80\) \* Int64\(0\) AS col0" at position 0 and "count\(\*\) / Int64\(\-7\) \* Int64\(8\) \+ Int64\(\-7\) \+ \(\- \(\- CASE Int64\(55\) WHEN Int64\(\-78\) THEN Int64\(\-57\) WHEN Int64\(93\) / Int64\(53\) \- Int64\(45\) THEN NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(\-80\) \* Int64\(0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-7\) \* Int64\(8\) \+ Int64\(\-7\) \+ \(\- \(\- CASE Int64\(55\) WHEN Int64\(\-78\) THEN Int64\(\-57\) WHEN Int64\(93\) / Int64\(53\) \- Int64\(45\) THEN NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 54 + - 80 * 0 AS col0, COUNT ( * ) / - 7 * + 8 + + - 7 + + - ( - CASE 55 WHEN - 78 THEN - 57 WHEN 93 / + 53 - 45 THEN NULL END ) AS col0 query I rowsort label-1130 @@ -6596,7 +6596,7 @@ SELECT 53 * + 58 + + + 13 + SUM ( DISTINCT + 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(13\) \+ 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\(\*\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) + + + 86 AS col0, + 13 + - 53 AS col0 query II rowsort label-1254 @@ -6842,7 +6842,7 @@ SELECT DISTINCT 82 - + 21 + + ( - 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- Int64\(0\)\) / Int64\(50\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(78\) \* coalesce\(\(\- count\(\*\)\), \(\- Int64\(\-30\)\)\) \+ 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\(41\) \* \(\- Int64\(0\)\) / Int64\(50\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(78\) \* coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-30\)\)\) \+ Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 41 * - + 0 / 50 * + - COUNT ( * ) AS col1, + 78 * + + COALESCE ( - COUNT ( * ), - - 30 ) + 94 AS col1 query I rowsort label-1300 @@ -7913,7 +7913,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 39 -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\(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\) 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 68 col0, + COUNT ( * ) + 38 AS col0 query I rowsort @@ -8847,7 +8847,7 @@ SELECT 94 * - COUNT ( * ) + + ( + - COUNT ( * ) ) + - + 40 * - NULLIF ( 30, - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - 5856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \- Int64\(12\) \- Int64\(\-78\) \- CASE Int64\(65\) WHEN \(\- count\(\*\)\) THEN NULL WHEN Int64\(39\) THEN CASE Int64\(\-88\) WHEN Int64\(\-86\) \- \(\- avg\(Int64\(\-31\)\)\) THEN NULL WHEN Int64\(\-95\) \- count\(\*\) THEN Int64\(91\) \+ Int64\(34\) \+ Int64\(\-66\) WHEN Int64\(\-4\) \+ Int64\(33\) THEN NULL END ELSE \(\- Int64\(46\)\) END AS col0" at position 0 and "Int64\(61\) \* Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \- Int64\(12\) \- Int64\(\-78\) \- CASE Int64\(65\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(39\) THEN CASE Int64\(\-88\) WHEN Int64\(\-86\) \- \(\- avg\(Int64\(\-31\)\)\) THEN NULL WHEN Int64\(\-95\) \- count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(91\) \+ Int64\(34\) \+ Int64\(\-66\) WHEN Int64\(\-4\) \+ Int64\(33\) THEN NULL END ELSE \(\- Int64\(46\)\) END AS col0" at position 0 and "Int64\(61\) \* Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 - + 12 - - 78 - + ( CASE 65 WHEN - COUNT ( * ) THEN NULL WHEN + 39 THEN + CASE - 88 WHEN - 86 - - AVG ( - 31 ) THEN NULL WHEN - 95 - COUNT ( * ) THEN + ( + 91 ) + + 34 + + - 66 WHEN - 4 + 33 THEN NULL END ELSE - + 46 END ) AS col0, + 61 * 96 AS col0 query I rowsort @@ -10103,7 +10103,7 @@ SELECT ALL + ( - - 16 ) - + SUM ( + 97 ) AS col2, COUNT ( 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1254 # Datafusion - Expected - 988 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-66\)\) AS Int32\)\) / count\(\*\) \* Int64\(19\) AS col0" at position 0 and "Int64\(15\) \* Int64\(66\) \+ \(\- Int64\(2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-66\)\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col0" at position 0 and "Int64\(15\) \* Int64\(66\) \+ \(\- Int64\(2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - - 66 AS INTEGER ) / COUNT ( * ) * 19 col0, + 15 * 66 + - + 2 AS col0 query I rowsort @@ -10243,7 +10243,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\(\*\) AS col2" at position 1 have the 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 @@ -10777,7 +10777,7 @@ SELECT DISTINCT 61, COUNT ( - CAST ( NULL AS INTEGER ) ) * - 44 * + 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1838 # Datafusion - Expected - -176905 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(57\) \+ Int64\(47\) \+ \(\- count\(\*\)\) \- Int64\(63\) \- Int64\(\-28\) \* Int64\(48\) \* Int64\(67\) / \(\- Int64\(51\)\) AS col0" at position 0 and "Int64\(45\) \* \(\- Int64\(47\)\) \* nullif\(\(\- Int64\(\-88\)\), \(\- Int64\(\-57\)\) \+ Int64\(\-16\)\) \+ Int64\(95\) \* 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\(\*\) \- Int64\(57\) \+ Int64\(47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(63\) \- Int64\(\-28\) \* Int64\(48\) \* Int64\(67\) / \(\- Int64\(51\)\) AS col0" at position 0 and "Int64\(45\) \* \(\- Int64\(47\)\) \* nullif\(\(\- Int64\(\-88\)\), \(\- Int64\(\-57\)\) \+ Int64\(\-16\)\) \+ Int64\(95\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) - 57 + 47 + - COUNT ( * ) - 63 - + - 28 * 48 * 67 / - + 51 AS col0, 45 * - + 47 * NULLIF ( - - 88, - - 57 + + - 16 ) + + 95 * + 97 AS col0 query II rowsort @@ -11044,7 +11044,7 @@ SELECT + 83 + - - 42 # 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\(31\) \- \(\- 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\(\*\) / Int64\(31\) \- \(\- 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 DISTINCT COUNT ( * ) / 31 - - + COUNT ( * ) AS col2, 63 AS col2 query I rowsort label-2095 @@ -11717,7 +11717,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(10\) AS col1" at position 0 and "count\(\*\) \* 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\(77\) \+ Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 77 + + + 10 AS col1, COUNT ( * ) * 84 AS col1 query I rowsort label-2219 @@ -13647,7 +13647,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\(\*\) 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 @@ -14227,7 +14227,7 @@ SELECT + - COUNT ( DISTINCT + 19 ) * - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 21790 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(16\) \* Int64\(16\) \* Int64\(99\) \- Int64\(88\) \* Int64\(33\) \+ Int64\(\-65\) \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(16\) \* Int64\(16\) \* Int64\(99\) \- Int64\(88\) \* Int64\(33\) \+ Int64\(\-65\) \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 28 * + - COUNT ( * ) AS col1, + 16 * ( + 16 ) * + + 99 - 88 * + 33 + - 65 * 10 AS col1 query I rowsort label-2701 @@ -14706,7 +14706,7 @@ SELECT + 64 / - 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(92\) \* CASE count\(\*\) WHEN Int64\(\-3\) THEN Int64\(37\) ELSE NULL END AS col2" at position 0 and "Int64\(45\) \* 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\(\*\)\) \* Int64\(92\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-3\) THEN Int64\(37\) ELSE NULL END AS col2" at position 0 and "Int64\(45\) \* Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + + 92 * + CASE COUNT ( * ) WHEN - 3 THEN + 37 ELSE NULL END AS col2, 45 * - 72 AS col2 query I rowsort label-2793 @@ -15321,7 +15321,7 @@ SELECT DISTINCT NULLIF ( - - MIN ( + 16 ), - 33 + - 98 ) + + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -1196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-92\) \* \(\- Int64\(\-13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-92\) \* \(\- Int64\(\-13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 10 * - COUNT ( * ) AS col1, - 92 * - - 13 col1 query II rowsort @@ -16695,7 +16695,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\(\*\) 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 @@ -17226,7 +17226,7 @@ SELECT ALL 76 + - 65 * - - 0 # 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 "nullif\(\(\- \(\- count\(\*\)\)\), CASE Int64\(48\) WHEN Int64\(51\) THEN Int64\(36\) ELSE NULL END \+ Int64\(16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), CASE Int64\(48\) WHEN Int64\(51\) THEN Int64\(36\) ELSE NULL END \+ Int64\(16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 AS col0, NULLIF ( - + ( - COUNT ( * ) ), + CASE 48 WHEN + + 51 THEN + 36 ELSE NULL END + ( 16 ) ) AS col0 query I rowsort @@ -17416,7 +17416,7 @@ SELECT - 17 AS col2, + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -111 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(78\)\) \+ count\(\*\) \+ Int64\(\-20\) \+ Int64\(\-95\) \+ Int64\(2\) 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\(78\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-20\) \+ Int64\(\-95\) \+ Int64\(2\) 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 ( 78 ) + COUNT ( * ) + - 20 + - 95 + + 2 col1, - 2 AS col1 query II rowsort @@ -17564,7 +17564,7 @@ SELECT 24 * + - 39 * 73 + + 4 * + 73 - 58 + + + 9 + 92 + - COUNT ( DISTINCT CASE # 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\(\*\)\) 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 ( * ) col2, 61 AS col2 query I rowsort @@ -18215,7 +18215,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\(\*\) 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 @@ -18509,7 +18509,7 @@ SELECT DISTINCT 58 AS col0, 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -41337 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(73\) \* \(\- count\(\*\)\) \* Int64\(\-94\) \+ \(\- Int64\(77\)\) \+ \(\- Int64\(34\)\) \+ Int64\(23\) \- Int64\(38\) / count\(\*\) \+ \(\- Int64\(71\)\) \+ coalesce\(\(\- Int64\(74\)\), Int64\(90\) \+ Int64\(\-77\)\) \* Int64\(27\) \* min\(Int64\(24\)\) \+ Int64\(\-98\) \- Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-94\) \+ \(\- Int64\(77\)\) \+ \(\- Int64\(34\)\) \+ Int64\(23\) \- Int64\(38\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(71\)\) \+ coalesce\(\(\- Int64\(74\)\), Int64\(90\) \+ Int64\(\-77\)\) \* Int64\(27\) \* min\(Int64\(24\)\) \+ Int64\(\-98\) \- Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 74 AS col2, 73 * + ( - COUNT ( * ) ) * - 94 + - + 77 + - + 34 + 23 - + 38 / COUNT ( * ) + - + 71 + COALESCE ( - + 74, + 90 + - 77 ) * 27 * + MIN ( 24 ) + - 98 - + - 48 AS col2 query I rowsort @@ -18998,7 +18998,7 @@ SELECT - + 90 + + 57 # Datafusion - Expected - 95 # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- Int64\(\-51\)\) \+ Int64\(97\) \+ count\(\*\) \- Int64\(95\) \- count\(\*\) \+ CAST\(NULL AS Int32\) \+ Int64\(29\) \+ count\(\*\) \+ Int64\(70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- Int64\(\-51\)\) \+ Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(95\) \- count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ Int64\(29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 AS col0, - 52 AS col1, - + ( + - 51 ) + 97 + COUNT ( * ) - + 95 - + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 29 + COUNT ( * ) + 70 col0 query I rowsort label-3605 @@ -22192,7 +22192,7 @@ SELECT 15 + + + COUNT ( * ) * + + COALESCE ( ( + 60 ), CASE 84 WHEN + 5 THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 51 -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\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 67 col0, - COUNT ( * ) + + 52 AS col0 query I rowsort @@ -24779,7 +24779,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\(\*\)\) ELSE Int64\(\-44\) \* Int64\(52\) END\) WHEN Int64\(\-44\) THEN Int64\(\-73\) END \+ 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 @@ -24827,7 +24827,7 @@ SELECT ALL + - 26 + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(34\)\)\)\) \+ Int64\(\-24\) \+ Int64\(\-36\) \* Int64\(58\) \* \(\- CASE count\(Int64\(\-26\)\) WHEN Int64\(91\) \* \(\- count\(\*\)\) \* sum\(Int64\(\-3\)\) \+ Int64\(38\) \* Int64\(33\) THEN Int64\(11\) \+ Int64\(4\) ELSE CASE CAST\(Int64\(60\) AS Int32\) WHEN \(\- max\(Int64\(\-74\)\)\) \* Int64\(31\) THEN Int64\(31\) WHEN avg\(DISTINCT Int64\(41\)\) \+ Int64\(98\) THEN NULL ELSE NULL END \+ Int64\(\-25\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(34\)\)\)\) \+ Int64\(\-24\) \+ Int64\(\-36\) \* Int64\(58\) \* \(\- CASE count\(Int64\(\-26\)\) WHEN Int64\(91\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(Int64\(\-3\)\) \+ Int64\(38\) \* Int64\(33\) THEN Int64\(11\) \+ Int64\(4\) ELSE CASE CAST\(Int64\(60\) AS Int32\) WHEN \(\- max\(Int64\(\-74\)\)\) \* Int64\(31\) THEN Int64\(31\) WHEN avg\(DISTINCT Int64\(41\)\) \+ Int64\(98\) THEN NULL ELSE NULL END \+ Int64\(\-25\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 3 AS col1, - MIN ( ALL - + 34 ) + - 24 + - 36 * + 58 * - CASE COUNT ( - 26 ) WHEN + + 91 * ( - COUNT ( * ) ) * + SUM ( ALL + ( - 3 ) ) + 38 * 33 THEN + 11 + 4 ELSE + CASE + CAST ( 60 AS INTEGER ) WHEN - MAX ( - 74 ) * 31 THEN 31 WHEN AVG ( DISTINCT 41 ) + + 98 THEN NULL ELSE NULL END + - 25 END AS col1 query I rowsort label-4721 @@ -24954,7 +24954,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\(\*\) AS col2" at position 1 have the 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 @@ -25033,7 +25033,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\(\*\) AS col2" at position 1 have the 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 @@ -25282,7 +25282,7 @@ SELECT - + 83 * ( + 21 ) + - - 79 * 44 * + - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) AS col0" at position 0 and "\(\- \(\- count\(\*\)\)\) \* max\(DISTINCT Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) AS col0" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* max\(DISTINCT Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 85 AS col0, - ( + - COUNT ( * ) ) * MAX ( DISTINCT 98 ) AS col0 query II rowsort label-4808 @@ -25954,7 +25954,7 @@ SELECT 23 * + 44 * + 69 + - ( 89 ) - - 86 + - 2 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1843 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* \(\- min\(Int64\(55\)\)\) \+ Int64\(27\) \* \(\- nullif\(\(\- count\(\*\)\), coalesce\(Int64\(83\), Int64\(4\)\)\)\) \+ Int64\(\-30\) / Int64\(\-78\) \* Int64\(87\) \* Int64\(84\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- avg\(\(\- Int64\(82\)\)\)\) \* Int64\(0\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* \(\- min\(Int64\(55\)\)\) \+ Int64\(27\) \* \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), coalesce\(Int64\(83\), Int64\(4\)\)\)\) \+ Int64\(\-30\) / Int64\(\-78\) \* Int64\(87\) \* Int64\(84\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- avg\(\(\- Int64\(82\)\)\)\) \* Int64\(0\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 * - MIN ( 55 ) + + 27 * - NULLIF ( + - COUNT ( * ), + COALESCE ( + 83, + + 4 ) ) + - 30 / + - 78 * + 87 * + + 84 AS col2, - CAST ( NULL AS INTEGER ) / - AVG ( - + 82 ) * + 0 + 32 AS col2 query I rowsort @@ -26429,7 +26429,7 @@ SELECT + 34 + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 364038 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) \* Int64\(\-51\) \* Int64\(86\) AS col1" at position 0 and "\(\- count\(Int64\(\-90\)\)\) \* count\(\*\) \+ \(\- \(\- min\(Int64\(\-20\)\)\)\) / 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\(83\)\) \* Int64\(\-51\) \* Int64\(86\) AS col1" at position 0 and "\(\- count\(Int64\(\-90\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- min\(Int64\(\-20\)\)\)\) / Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 83 * - 51 * + 86 AS col1, - COUNT ( ALL + - 90 ) * COUNT ( * ) + - - MIN ( - 20 ) / - 88 AS col1 query I rowsort @@ -26658,7 +26658,7 @@ SELECT 22 * 37 * + + 2 + - + 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- 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\(96\) \* \(\- 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 96 * - COUNT ( * ) AS col2, ( + 82 ) col2 query I rowsort @@ -26711,7 +26711,7 @@ SELECT - 79 * - - 37 + - MAX ( + 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4286 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- \(\- CASE \(\- Int64\(\-16\)\) WHEN \(\- count\(\*\)\) \* Int64\(22\) \- Int64\(47\) THEN Int64\(59\) ELSE Int64\(\-76\) END\) \* \(\- Int64\(56\)\) AS col0" at position 0 and "Int64\(9\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- \(\- CASE \(\- Int64\(\-16\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(22\) \- Int64\(47\) THEN Int64\(59\) ELSE Int64\(\-76\) END\) \* \(\- Int64\(56\)\) AS col0" at position 0 and "Int64\(9\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( 30 ) - + - CASE - - 16 WHEN - COUNT ( * ) * + + 22 - + 47 THEN 59 ELSE + - 76 END * - + 56 AS col0, + 9 + + + 12 AS col0 query I rowsort @@ -27703,7 +27703,7 @@ SELECT 77 AS col1, + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 200756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(79\) AS col0" at position 0 and "Int64\(\-39\) \* \(\- max\(Int64\(92\)\)\) \* Int64\(56\) \+ \(\- count\(\*\)\) / Int64\(89\) \+ Int64\(\-87\) \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(79\) AS col0" at position 0 and "Int64\(\-39\) \* \(\- max\(Int64\(92\)\)\) \* Int64\(56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(89\) \+ Int64\(\-87\) \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - + CAST ( NULL AS INTEGER ) ) / + 79 AS col0, ( - 39 ) * - + MAX ( ALL 92 ) * + 56 + - + COUNT ( * ) / 89 + - 87 + + - 85 AS col0 query II rowsort label-5270 @@ -28296,7 +28296,7 @@ SELECT ALL + 98 - + + 91 AS col0 # 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 "max\(DISTINCT \(\- Int64\(71\)\)\) AS col2" at position 0 and "count\(\*\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have 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\(71\)\)\) 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 MAX ( DISTINCT - + 71 ) col2, + COUNT ( * ) + - - COUNT ( * ) col2 query I rowsort label-5384 @@ -28701,7 +28701,7 @@ SELECT ALL 93, + 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) / Int64\(10\) / CASE \(\- Int64\(62\)\) WHEN Int64\(\-71\) THEN sum\(DISTINCT Int64\(18\)\) WHEN Int64\(\-3\) \* Int64\(80\) \* Int64\(35\) \* Int64\(\-89\) \* Int64\(\-43\) \+ min\(Int64\(\-68\)\) \* Int64\(\-68\) \* \(\- count\(Int64\(67\)\)\) \* Int64\(57\) / count\(\*\) \+ \(\- max\(\(\- Int64\(\-23\)\)\)\) THEN NULL ELSE NULL END 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\(60\) / Int64\(10\) / CASE \(\- Int64\(62\)\) WHEN Int64\(\-71\) THEN sum\(DISTINCT Int64\(18\)\) WHEN Int64\(\-3\) \* Int64\(80\) \* Int64\(35\) \* Int64\(\-89\) \* Int64\(\-43\) \+ min\(Int64\(\-68\)\) \* Int64\(\-68\) \* \(\- count\(Int64\(67\)\)\) \* Int64\(57\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(\(\- Int64\(\-23\)\)\)\) THEN NULL ELSE NULL END AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 / 10 / + CASE - + 62 WHEN - 71 THEN + SUM ( DISTINCT + + 18 ) WHEN - 3 * + + 80 * + + 35 * - 89 * - 43 + + MIN ( - 68 ) * - 68 * - COUNT ( ALL + 67 ) * + 57 / + COUNT ( * ) + - MAX ( - - 23 ) THEN NULL ELSE NULL END AS col2, + 57 AS col2 query I rowsort @@ -29283,7 +29283,7 @@ SELECT ALL ( + 97 ) + 67 AS col1, + 81 * + ( 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- sum\(\(\- Int64\(38\)\)\)\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- sum\(\(\- Int64\(38\)\)\)\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - + SUM ( + + ( - ( + 38 ) ) ) AS col1, 31 AS col1 query I rowsort label-5570 @@ -29360,7 +29360,7 @@ SELECT - NULLIF ( - + 52, - 53 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-28\), \(\- CAST\(Int64\(20\) AS Int32\)\) \* Int64\(62\)\) AS col2" at position 0 and "nullif\(Int64\(\-36\), count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-28\), \(\- CAST\(Int64\(20\) AS Int32\)\) \* Int64\(62\)\) AS col2" at position 0 and "nullif\(Int64\(\-36\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( - 28, - CAST ( + 20 AS INTEGER ) * + 62 ) AS col2, NULLIF ( - 36, COUNT ( * ) ) AS col2 query I rowsort label-5585 @@ -29483,13 +29483,13 @@ 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\(\*\)\) END \+ Int64\(\-81\) \* count\(\*\) AS col1" at position 1 have the 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: # Datafusion - Expected - 2245 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(74\) \* count\(\*\) \- Int64\(49\) 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 "Int64\(31\) \* Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(49\) AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 31 * 74 * + COUNT ( * ) - + 49 AS col1, - 76 AS col1 query I rowsort label-5609 @@ -31066,7 +31066,7 @@ SELECT - 10 + + COUNT ( * ) + - ( + COALESCE ( ( + 29 ), + 28 / + + 10 * 11 + + # 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\(\*\)\) AS col2" at position 0 and "Int64\(63\) / 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\(63\) / Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ) AS col2, + 63 / 55 col2 query I rowsort @@ -32623,7 +32623,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\(\*\) 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 @@ -33239,7 +33239,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\(\*\) AS col2" at position 1 have the 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 @@ -34723,7 +34723,7 @@ SELECT + NULLIF ( 13, - COALESCE ( - COALESCE ( + CASE + - MAX ( DISTINCT - - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "CASE nullif\(Int64\(\-76\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(26\) \+ \(\- Int64\(42\)\)\) WHEN CASE Int64\(43\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN CAST\(NULL AS Int32\) END \- min\(Int64\(73\)\) \* count\(\*\) THEN NULL ELSE \(\- CASE Int64\(26\) WHEN count\(\*\) \* Int64\(\-4\) THEN \(\- coalesce\(Int64\(\-77\), Int64\(50\)\)\) \+ Int64\(86\) \- Int64\(57\) \* Int64\(1\) ELSE NULL END\) \- \(\- Int64\(48\)\) / Int64\(19\) END \+ Int64\(\-67\) \* nullif\(Int64\(46\), Int64\(16\)\) \- \(\- max\(DISTINCT Int64\(26\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "CASE nullif\(Int64\(\-76\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(26\) \+ \(\- Int64\(42\)\)\) WHEN CASE Int64\(43\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN CAST\(NULL AS Int32\) END \- min\(Int64\(73\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE \(\- CASE Int64\(26\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-4\) THEN \(\- coalesce\(Int64\(\-77\), Int64\(50\)\)\) \+ Int64\(86\) \- Int64\(57\) \* Int64\(1\) ELSE NULL END\) \- \(\- Int64\(48\)\) / Int64\(19\) END \+ Int64\(\-67\) \* nullif\(Int64\(46\), Int64\(16\)\) \- \(\- max\(DISTINCT Int64\(26\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 AS col0, CASE + NULLIF ( - 76, + - CAST ( NULL AS INTEGER ) * 26 + + ( - + 42 ) ) WHEN CASE + 43 WHEN - - CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) END - MIN ( ALL 73 ) * COUNT ( * ) THEN NULL ELSE - CASE 26 WHEN COUNT ( * ) * - 4 THEN - COALESCE ( - 77, + 50 ) + + 86 - + 57 * 1 ELSE NULL END - - + 48 / + + 19 END + - 67 * + NULLIF ( + 46, 16 ) - - MAX ( DISTINCT + 26 ) AS col0 # Datafusion - Datafusion expected results: @@ -35234,7 +35234,7 @@ SELECT ALL + 51 - - - 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - -948 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(79\), count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-12\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(79\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-12\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( 79, + COUNT ( * ) ) col2, - 12 * 79 col2 query I rowsort label-6705 @@ -35537,7 +35537,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\(\*\) AS col1" at position 1 have the 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 @@ -35873,7 +35873,7 @@ SELECT ALL 51 * - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "coalesce\(Int64\(\-88\), sum\(DISTINCT Int64\(90\)\) \- count\(\*\) \+ \(\- \(\- Int64\(6\)\)\) \* \(\- Int64\(\-9\)\)\) \- 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\(\-82\) AS col1" at position 0 and "coalesce\(Int64\(\-88\), sum\(DISTINCT Int64\(90\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(6\)\)\) \* \(\- Int64\(\-9\)\)\) \- Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 82 AS col1, COALESCE ( - 88, SUM ( DISTINCT + + 90 ) - + COUNT ( * ) + - ( - + 6 ) * - - 9 ) - + + ( + + 29 ) AS col1 query II rowsort label-6825 @@ -36313,7 +36313,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\(\*\)\) \+ 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 @@ -36623,7 +36623,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -688 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(\-8\) AS col2" at position 0 and "\(\- Int64\(\-70\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-8\) 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 86 * - 8 col2, ( - - 70 ) * - + COUNT ( * ) AS col2 query I rowsort label-6968 @@ -39249,7 +39249,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\(\*\) 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 @@ -39279,7 +39279,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\(\*\) AS col1" at position 1 have the 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 @@ -39709,7 +39709,7 @@ SELECT 52 * + 97 # Datafusion - Expected - NULL # Datafusion - Expected - 83 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) / Int64\(53\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) / Int64\(53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 53 + - - COUNT ( * ) AS col0, + 83, + 94 AS col0 query I rowsort label-7559 @@ -41510,7 +41510,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\(\*\) AS col0" at position 1 have the 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 @@ -42794,7 +42794,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\(\*\) AS col2" at position 1 have the 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 @@ -44181,7 +44181,7 @@ SELECT ALL - 63 AS col2, - 61 * + 55 - - COUNT ( * ) + - - COUNT ( ALL - + 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5538 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \* Int64\(2\) \* Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(46\) WHEN \(\- nullif\(\(\- Int64\(\-98\)\), count\(\*\) \+ Int64\(72\) \- Int64\(\-43\) \* Int64\(0\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-87\)\)\) THEN Int64\(53\) \+ \(\- Int64\(\-56\)\) \+ \(\- \(\- Int64\(\-92\)\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \* Int64\(2\) \* Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(46\) WHEN \(\- nullif\(\(\- Int64\(\-98\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) \- Int64\(\-43\) \* Int64\(0\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-87\)\)\) THEN Int64\(53\) \+ \(\- Int64\(\-56\)\) \+ \(\- \(\- Int64\(\-92\)\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 39 * + 2 * - 71 AS col0, CASE 46 WHEN + - NULLIF ( - - 98, COUNT ( * ) + 72 - - 43 * - 0 * - CAST ( NULL AS INTEGER ) + - 87 ) THEN + 53 + - - 56 + - - ( - 92 ) ELSE NULL END AS col0 query I rowsort @@ -44255,7 +44255,7 @@ SELECT 24 * MIN ( DISTINCT CAST ( + 97 AS INTEGER ) ) - + 89 AS col0, 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(83\) 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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(83\) 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 COUNT ( * ) + + + 83 AS col0, - 87 AS col0 query I rowsort @@ -44436,7 +44436,7 @@ SELECT ALL + - COUNT ( * ) * - + MIN ( DISTINCT + 85 ) + + 97 AS col1, 59 + - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(89\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(89\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 18 AS col2, 89 * - COUNT ( * ) AS col2 query I rowsort @@ -44763,7 +44763,7 @@ SELECT - + MIN ( DISTINCT + 72 ) / - MIN ( ALL + - 41 ) + + ( + COUNT ( * ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- CAST\(Int64\(\-79\) AS Int32\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(\-79\) AS Int32\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + - CAST ( - 79 AS INTEGER ) col0, + 8 AS col0 query I rowsort @@ -47319,7 +47319,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\(\*\) 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 @@ -48061,7 +48061,7 @@ SELECT - SUM ( ALL - 99 ) * - + 76 * + 81 + + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 294854 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* \(\- CASE Int64\(\-78\) WHEN Int64\(\-37\) THEN Int64\(52\) END\) AS col0" at position 0 and "Int64\(\-55\) \* \(\- Int64\(74\)\) \* Int64\(73\) \+ count\(\*\) \+ Int64\(61\) \* 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\(\-26\) \* \(\- CASE Int64\(\-78\) WHEN Int64\(\-37\) THEN Int64\(52\) END\) AS col0" at position 0 and "Int64\(\-55\) \* \(\- Int64\(74\)\) \* Int64\(73\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(61\) \* Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 26 * - CASE - 78 WHEN - 37 THEN 52 END AS col0, - 55 * - + 74 * + 73 + + + COUNT ( * ) + 61 * - 37 AS col0 query I rowsort @@ -49185,7 +49185,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\(\*\) AS col1" at position 1 have the 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 @@ -49250,7 +49250,7 @@ SELECT 63 AS col1, 36 * 72 AS col1 # 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\(\*\)\) \- count\(\*\) \* Int64\(2\) AS col2" at position 0 and "count\(\*\) \+ \(\- Int64\(\-35\)\) \+ sum\(Int64\(\-51\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-35\)\) \+ sum\(Int64\(\-51\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) - + COUNT ( * ) * 2 AS col2, COUNT ( * ) + - - 35 + + + SUM ( + - 51 ) col2 query I rowsort label-9376 @@ -49873,7 +49873,7 @@ SELECT 10 - - 22 + + 51 * - 51 - - - COALESCE ( + - 48, + - 51 * - SUM ( + ( - - # Datafusion - Expected - 64 # Datafusion - Expected - -1 # Datafusion - Expected - 560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-64\)\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-34\)\), count\(\*\)\) \* nullif\(\(\- Int64\(\-17\)\), Int64\(35\)\) \+ 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\(\*\) \* \(\- Int64\(\-64\)\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-34\)\), count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(\(\- Int64\(\-17\)\), Int64\(35\)\) \+ Int64\(\-18\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - - 64 AS col1, - 66 / CAST ( + + 53 AS INTEGER ) AS col0, COALESCE ( - - 34, COUNT ( * ) ) * + NULLIF ( - - 17, + 35 ) + - 18 col1 query II rowsort label-9494 @@ -50345,7 +50345,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\(\*\) AS col1" at position 1 have the 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 @@ -50648,7 +50648,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\(\*\) AS col1" at position 1 have the 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 @@ -51953,7 +51953,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\(\*\) AS col1" at position 1 have the 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 @@ -52017,7 +52017,7 @@ SELECT ALL + 58 * - 58 # 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\(\*\)\) AS col2" at position 0 and "Int64\(\-70\) \+ count\(DISTINCT 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\(\-70\) \+ count\(DISTINCT Int64\(37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col2, - 70 + + COUNT ( DISTINCT + 37 ) AS col2 query I rowsort label-9905 diff --git a/data/sqlite/random/expr/slt_good_50.slt b/data/sqlite/random/expr/slt_good_50.slt index d1038ea..6e4041b 100644 --- a/data/sqlite/random/expr/slt_good_50.slt +++ b/data/sqlite/random/expr/slt_good_50.slt @@ -643,7 +643,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\(\-32\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(36\) \+ CAST\(\(\- Int64\(66\)\) AS Int32\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -969,7 +969,7 @@ SELECT + 64 + - + 44 + - + SUM ( + + 22 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 0 -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\(76\)\) / Int64\(78\) / 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 "Int64\(24\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(76\)\) / Int64\(78\) / Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 24 AS col2, COUNT ( * ) * - + 76 / 78 / + ( 17 ) AS col2 query I rowsort label-180 @@ -1315,7 +1315,7 @@ SELECT DISTINCT - - 58, + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-98\)\) AS col0" at position 0 and "CASE Int64\(65\) WHEN \(\- count\(\*\)\) THEN NULL WHEN \(\- Int64\(\-96\)\) THEN Int64\(10\) \* Int64\(19\) \* Int64\(67\) \+ \(\- Int64\(\-60\)\) \* Int64\(23\) \+ Int64\(78\) END \* \(\- Int64\(33\)\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-98\)\) AS col0" at position 0 and "CASE Int64\(65\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- Int64\(\-96\)\) THEN Int64\(10\) \* Int64\(19\) \* Int64\(67\) \+ \(\- Int64\(\-60\)\) \* Int64\(23\) \+ Int64\(78\) END \* \(\- Int64\(33\)\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 98 AS col0, + ( + CASE 65 WHEN - COUNT ( * ) THEN NULL WHEN - - 96 THEN + 10 * + 19 * 67 + - ( - 60 ) * 23 + 78 END ) * - + 33 + - 34 AS col0 query I rowsort @@ -2127,7 +2127,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5200 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(80\) AS col1" at position 0 and "Int64\(27\) \* count\(\*\) \+ 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\(65\) \* Int64\(80\) AS col1" at position 0 and "Int64\(27\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 65 * 80 AS col1, 27 * + COUNT ( * ) + + - 9 col1 query I rowsort @@ -3106,7 +3106,7 @@ SELECT - 88 * - 42 + + + 10 AS col0 # 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\(\*\)\) AS col1" at position 1 have the 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 col1, - COUNT ( * ) AS col1 query I rowsort label-588 @@ -4875,7 +4875,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\(\*\) 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 @@ -5152,7 +5152,7 @@ SELECT ALL - 83 AS col2, 21 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\(\-79\) / Int64\(81\) 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\(\*\)\) \+ Int64\(\-79\) / Int64\(81\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + - COUNT ( * ) ) + - 79 / 81 AS col1, - 18 AS col1 query I rowsort label-981 @@ -5411,7 +5411,7 @@ SELECT ALL 46 * + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 2556 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(10\) \+ Int64\(67\) \* count\(\*\) \* Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(10\) \+ Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 56 AS col1, + 10 + + 67 * + COUNT ( * ) * 38 col1 query I rowsort label-1032 @@ -5620,7 +5620,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\(\*\) AS col2" at position 1 have the 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 @@ -8360,7 +8360,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\(\*\) 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 @@ -8382,7 +8382,7 @@ SELECT + COUNT ( 58 ) * + SUM ( + - 80 ) + COUNT ( * ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(\-98\) \+ CASE Int64\(\-67\) WHEN \(\- min\(Int64\(\-27\)\)\) \- Int64\(61\) THEN coalesce\(count\(\*\), Int64\(33\) \+ CAST\(Int64\(65\) AS Int32\), Int64\(49\)\) WHEN \(\- avg\(DISTINCT Int64\(\-52\)\)\) THEN Int64\(36\) \* Int64\(83\) \+ \(\- Int64\(\-32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(\-98\) \+ CASE Int64\(\-67\) WHEN \(\- min\(Int64\(\-27\)\)\) \- Int64\(61\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(33\) \+ CAST\(Int64\(65\) AS Int32\), Int64\(49\)\) WHEN \(\- avg\(DISTINCT Int64\(\-52\)\)\) THEN Int64\(36\) \* Int64\(83\) \+ \(\- Int64\(\-32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 18 AS col1, - 98 + CASE + - 67 WHEN - MIN ( - 27 ) - + 61 THEN + COALESCE ( COUNT ( * ), + 33 + + + CAST ( + 65 AS INTEGER ), 49 ) WHEN - AVG ( DISTINCT - 52 ) THEN + 36 * + 83 + - - 32 END col1 query I rowsort label-1597 @@ -8440,7 +8440,7 @@ SELECT ALL + 4 / + COUNT ( * ) # 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\(\*\)\) 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 col1 query II rowsort label-1608 @@ -9611,7 +9611,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\(\*\) 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 @@ -11100,7 +11100,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\(\*\) 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 @@ -11821,7 +11821,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\(\*\) 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 @@ -12009,7 +12009,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\(\*\) AS col2" at position 1 have 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 @@ -13142,7 +13142,7 @@ SELECT ALL - 25 * - 44 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-34\) 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\(\*\)\) \* Int64\(\-34\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - 34 AS col2, 72 col2 query I rowsort label-2506 @@ -13922,7 +13922,7 @@ SELECT ALL + ( 76 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 157950 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(78\) \* Int64\(81\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(78\) \* Int64\(81\) 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 25 * + 78 * + 81 AS col1, COUNT ( * ) * - 56 col1 query I rowsort label-2656 @@ -15719,7 +15719,7 @@ SELECT ALL - 22 + + SUM ( DISTINCT 21 ) # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 - - ( + 35 ) AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -17286,7 +17286,7 @@ SELECT DISTINCT 74 / - ( + 62 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "Int64\(23\) \+ \(\- nullif\(\(\- count\(\*\)\), Int64\(\-39\) \+ count\(\*\)\)\) AS col2" at position 1 have the 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 "Int64\(23\) \+ \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-39\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 59 col2, 23 + - NULLIF ( - COUNT ( * ), - 39 + + COUNT ( * ) ) AS col2 query I rowsort @@ -17416,7 +17416,7 @@ SELECT - 96 - - 41 + - - 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40151 # Datafusion - Expected - -1332 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(18\) \* Int64\(\-53\) \+ Int64\(\-83\) AS col1" at position 0 and "Int64\(\-37\) \* \(\- nullif\(\(\- coalesce\(Int64\(36\), \(\- Int64\(34\)\) \+ Int64\(76\)\)\), Int64\(40\) \+ min\(Int64\(33\)\) \* Int64\(85\) \+ count\(\*\) \* Int64\(60\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(18\) \* Int64\(\-53\) \+ Int64\(\-83\) AS col1" at position 0 and "Int64\(\-37\) \* \(\- nullif\(\(\- coalesce\(Int64\(36\), \(\- Int64\(34\)\) \+ Int64\(76\)\)\), Int64\(40\) \+ min\(Int64\(33\)\) \* Int64\(85\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(60\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + + 42 ) * 18 * + - 53 + - 83 AS col1, - 37 * + - NULLIF ( - + COALESCE ( 36, - + 34 + 76 ), 40 + + MIN ( 33 ) * + 85 + COUNT ( * ) * + 60 ) AS col1 query II rowsort @@ -18052,7 +18052,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -18386,7 +18386,7 @@ SELECT ALL 1 * + 58 + + 39 * + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* count\(\*\) \+ Int64\(6\) 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\(\-49\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) 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 + - 49 * COUNT ( * ) + + 6 col1, 29 AS col1 query I rowsort @@ -18658,7 +18658,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\(\*\) 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 @@ -18897,7 +18897,7 @@ SELECT ALL COUNT ( * ) - + 59 / + NULLIF ( - 54, - CAST ( NULL AS INTEGER ) / + # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(20\) 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\(\*\) \* Int64\(20\) 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 ( * ) * + 20 AS col2, 11 AS col2 query I rowsort label-3605 @@ -20754,7 +20754,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\(\*\) 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 @@ -20855,7 +20855,7 @@ SELECT ALL - COALESCE ( + 96, - - COUNT ( * ) + + - 96 + 5, + 96 + - CASE + - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(32\) \+ Int64\(\-89\) \+ Int64\(18\) \+ \(\- count\(\*\)\) \* Int64\(45\) \+ 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\(65\) AS col0" at position 0 and "Int64\(32\) \+ Int64\(\-89\) \+ Int64\(18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(45\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 65 col0, 32 + + ( - 89 ) + + 18 + - COUNT ( * ) * + 45 + 88 AS col0 query II rowsort label-3976 @@ -23761,7 +23761,7 @@ SELECT ALL + 11 * COALESCE ( + 34, - 92 * - COUNT ( * ) ) + COUNT ( * ) + + 36 # 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\(\-54\) \+ Int64\(\-8\) AS col2" at position 0 and "CASE sum\(DISTINCT Int64\(20\)\) WHEN Int64\(1\) \+ Int64\(30\) THEN Int64\(\-44\) \+ Int64\(6\) \- Int64\(\-98\) \+ \(\- count\(\*\)\) \- Int64\(\-53\) END \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ Int64\(\-8\) AS col2" at position 0 and "CASE sum\(DISTINCT Int64\(20\)\) WHEN Int64\(1\) \+ Int64\(30\) THEN Int64\(\-44\) \+ Int64\(6\) \- Int64\(\-98\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-53\) END \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 54 + + ( - 8 ) AS col2, CASE + SUM ( DISTINCT 20 ) WHEN + 1 + 30 THEN - 44 + + 6 - - 98 + - COUNT ( * ) - - 53 END * - 19 AS col2 query I rowsort label-4532 @@ -23833,7 +23833,7 @@ SELECT ALL - - COALESCE ( + 7, - 5, 42 ) * 74 / - 15 AS col0 # Datafusion - Expected - -1 # Datafusion - Expected - -11 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(61\)\) 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\(61\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) col0, + 49 - + 6 + - 44 + 1 * + - 10, - + 61 AS col0 query I rowsort label-4545 @@ -23998,7 +23998,7 @@ SELECT - 89 * - 19 col0, ( + + 60 ) * + 53 * - + 98 * 77 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 239616 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* \(\- Int64\(\-26\)\) \* \(\- Int64\(9\)\) \* \(\- Int64\(16\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ \(\- \(\- 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\(64\) \* \(\- Int64\(\-26\)\) \* \(\- Int64\(9\)\) \* \(\- Int64\(16\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(14\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 * - + ( - 26 ) * - + 9 * - + 16 AS col1, - COUNT ( * ) + - ( - + 14 ) AS col1 query I rowsort label-4576 @@ -24386,7 +24386,7 @@ SELECT + 19 * - 44 AS col1 # Datafusion - Expected - 79 # Datafusion - Expected - -66 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col2" at position 0 and "nullif\(Int64\(\-85\), Int64\(\-84\) \- \(\- count\(\*\)\) / \(\- \(\- count\(\*\)\)\) \+ Int64\(57\) \+ \(\- count\(\*\)\) \* Int64\(\-28\) \* Int64\(\-35\) \* count\(\*\) \+ Int64\(\-16\) \+ Int64\(42\) \* CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col2" at position 0 and "nullif\(Int64\(\-85\), Int64\(\-84\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-28\) \* Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-16\) \+ Int64\(42\) \* CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 79 AS col2, - 13 + + MAX ( DISTINCT - 53 ) AS col0, NULLIF ( - 85, - 84 - + - COUNT ( * ) / - - COUNT ( * ) + 57 + - COUNT ( * ) * - 28 * + - 35 * + + COUNT ( * ) + - 16 + + 42 * CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-4651 @@ -24620,7 +24620,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(84\) WHEN \(\- Int64\(18\)\) THEN Int64\(61\) \+ Int64\(69\) WHEN Int64\(43\) \* Int64\(\-65\) THEN NULL END AS col1" at position 0 and "count\(\*\) \- Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(84\) WHEN \(\- Int64\(18\)\) THEN Int64\(61\) \+ Int64\(69\) WHEN Int64\(43\) \* Int64\(\-65\) THEN NULL END AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + ( + 84 ) WHEN - + 18 THEN 61 + + 69 WHEN + + 43 * - 65 THEN NULL END AS col1, COUNT ( * ) - - 96 AS col1 query I rowsort label-4695 @@ -27119,7 +27119,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 5795 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(79\) AS col2" at position 0 and "Int64\(61\) \* \(\- sum\(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\(\*\) \* Int64\(79\) AS col2" at position 0 and "Int64\(61\) \* \(\- sum\(Int64\(\-95\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * 79 AS col2, 61 * - + SUM ( - 95 ) col2 query I rowsort label-5174 @@ -27230,7 +27230,7 @@ SELECT ( + 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "CASE \(\- Int64\(86\)\) WHEN \(\- count\(\*\)\) \* \(\- Int64\(\-36\)\) \* \(\- Int64\(\-44\)\) THEN Int64\(52\) END \+ \(\- Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "CASE \(\- Int64\(86\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-36\)\) \* \(\- Int64\(\-44\)\) THEN Int64\(52\) END \+ \(\- Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 AS col0, + CASE - + 86 WHEN ( - COUNT ( * ) ) * - ( ( + - 36 ) ) * - ( - 44 ) THEN + 52 END + - + 55 AS col0 query I rowsort label-5195 @@ -28862,7 +28862,7 @@ SELECT - 95 + - 1 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3648 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* \(\- Int64\(57\)\) AS col2" at position 0 and "Int64\(\-20\) / Int64\(\-25\) \* \(\- nullif\(Int64\(\-43\), Int64\(\-34\)\)\) \+ Int64\(35\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(57\)\) AS col2" at position 0 and "Int64\(\-20\) / Int64\(\-25\) \* \(\- nullif\(Int64\(\-43\), Int64\(\-34\)\)\) \+ Int64\(35\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 64 * - + 57 AS col2, - 20 / + ( - 25 ) * ( - NULLIF ( + - 43, - 34 ) ) + 35 + - COUNT ( * ) AS col2 query I rowsort label-5506 @@ -29360,7 +29360,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\(\*\) 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 @@ -30890,7 +30890,7 @@ SELECT + 67 * - + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 814 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(22\) AS col1" at position 0 and "nullif\(Int64\(\-5\), Int64\(\-70\)\) / \(count\(\*\) \* Int64\(41\) \+ 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\(37\) \* Int64\(22\) AS col1" at position 0 and "nullif\(Int64\(\-5\), Int64\(\-70\)\) / \(count\(Int64\(1\)\) AS count\(\*\) \* Int64\(41\) \+ Int64\(88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 37 * + 22 AS col1, NULLIF ( - 5, - 70 ) / + ( + COUNT ( * ) * + 41 + 88 ) AS col1 query I rowsort label-5899 @@ -31289,7 +31289,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\(\*\) 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 @@ -31591,7 +31591,7 @@ SELECT ALL COALESCE ( 64, - 7 ) * 83 - - ( + 7 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 125911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-41\) \* \(\- nullif\(\(\- \(\- count\(\*\)\)\), max\(\(\- Int64\(\-9\)\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-65\)\)\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-41\) \* \(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), max\(\(\- Int64\(\-9\)\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-65\)\)\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 AS col1, 83 * + - 41 * - NULLIF ( + ( - - COUNT ( * ) ), + MAX ( - - 9 ) + CAST ( NULL AS INTEGER ) * - 65 ) * 37 AS col1 query I rowsort @@ -31617,7 +31617,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\(\*\) 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 @@ -32474,7 +32474,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\(\*\)\) \- 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 @@ -33550,7 +33550,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\(\*\) 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 @@ -34307,7 +34307,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "count\(\*\) / Int64\(84\) \* \(\- count\(\*\)\) \* \(\- Int64\(\-65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 6 ) AS col2, COUNT ( * ) / + 84 * - COUNT ( * ) * - - 65 AS col2 query II rowsort label-6545 @@ -34625,7 +34625,7 @@ SELECT 92 - + + 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(58\) \+ Int64\(77\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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\(58\) \+ Int64\(77\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 AS col1, 58 + + 77 - - COUNT ( * ) AS col1 query I rowsort @@ -34899,7 +34899,7 @@ SELECT - 49 / + - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(64\) \+ \(\- count\(\*\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 60 * + 64 + - COUNT ( * ) * + ( + + CAST ( NULL AS INTEGER ) ) AS col0, ( - - 68 ) AS col0 query I rowsort @@ -35130,7 +35130,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\(\*\) AS col2" at position 1 have the 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 @@ -35956,7 +35956,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\(\*\) AS col2" at position 1 have 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 @@ -36009,7 +36009,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\(\*\) AS col0" at position 1 have the 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 @@ -36765,7 +36765,7 @@ SELECT ALL - 79 + - - 3 + + - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(18\) AS col0" at position 0 and "count\(\*\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(18\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 95 + 18 AS col0, + COUNT ( * ) * + - 45 AS col0 query I rowsort label-7015 @@ -37209,7 +37209,7 @@ SELECT ( COUNT ( * ) ) + - 9 AS col2, 8 * 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -25599 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "sum\(Int64\(\-61\)\) \+ Int64\(\-13\) \- Int64\(27\) \- Int64\(19\) \* Int64\(61\) \* nullif\(Int64\(22\), \(\- count\(\*\)\)\) AS col1" at position 1 have the 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 "sum\(Int64\(\-61\)\) \+ Int64\(\-13\) \- Int64\(27\) \- Int64\(19\) \* Int64\(61\) \* nullif\(Int64\(22\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 col1, SUM ( - 61 ) + - 13 - + 27 - + 19 * + 61 * + NULLIF ( + 22, - COUNT ( * ) ) AS col1 query I rowsort @@ -37255,7 +37255,7 @@ SELECT + 65 / 75 * + COUNT ( * ) + + - COUNT ( ALL 17 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- CAST\(Int64\(\-41\) AS Int32\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- CAST\(Int64\(\-41\) AS 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 7 + - + CAST ( + - 41 AS INTEGER ) AS col1, - COUNT ( * ) col1 query I rowsort label-7107 @@ -37974,7 +37974,7 @@ SELECT 50 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -741 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(73\) \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(61\) 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 "Int64\(\-11\) \* Int64\(73\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(61\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 11 * + 73 + - - COUNT ( * ) + + 61 AS col1, 97 AS col1 query III rowsort label-7242 @@ -38049,7 +38049,7 @@ SELECT + 48 + - 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- count\(\*\)\) \* \(\- count\(\*\)\) \- Int64\(4\) AS col2" at position 0 and "CAST\(Int64\(\-63\) AS Int32\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(4\) AS col2" at position 0 and "CAST\(Int64\(\-63\) AS Int32\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - + - COUNT ( * ) * - COUNT ( * ) - 4 AS col2, CAST ( + - 63 AS INTEGER ) + + 26 AS col2 query I rowsort @@ -38290,7 +38290,7 @@ SELECT + + 45 + - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- count\(\*\) \* Int64\(48\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-50\) \* Int64\(\-84\) \* CAST\(NULL AS Int32\) \- Int64\(\-50\) \+ Int64\(75\) \+ Int64\(\-75\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-50\) \* Int64\(\-84\) \* CAST\(NULL AS Int32\) \- Int64\(\-50\) \+ Int64\(75\) \+ Int64\(\-75\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 40 - COUNT ( * ) * + 48 AS col0, 99 * - 50 * - 84 * + CAST ( NULL AS INTEGER ) - - 50 + 75 + - 75 * 12 AS col0 query I rowsort @@ -39005,7 +39005,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\(\*\) 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 @@ -40917,7 +40917,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\(88\) \- Int64\(\-80\) \* 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 @@ -41990,7 +41990,7 @@ SELECT 3, - 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -234869 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(3\) \+ Int64\(66\) \+ Int64\(44\) \* Int64\(60\) \* Int64\(\-89\) \+ \(\- Int64\(\-55\)\) \+ count\(\*\) \* Int64\(45\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(3\) \+ Int64\(66\) \+ Int64\(44\) \* Int64\(60\) \* Int64\(\-89\) \+ \(\- Int64\(\-55\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(45\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 25 * + 3 + + + 66 + + + 44 * + 60 * - 89 + - - 55 + + COUNT ( * ) * 45 AS col0, + 35 AS col0 query I rowsort label-8009 @@ -42016,7 +42016,7 @@ SELECT + 36 * - - 42 * 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-65\), Int64\(59\) \* Int64\(\-14\)\)\) \+ Int64\(91\) AS col2" at position 0 and "Int64\(8\) \* CASE Int64\(\-43\) WHEN Int64\(\-71\) / CASE Int64\(64\) WHEN Int64\(36\) \* \(\- max\(Int64\(11\)\)\) \+ \(\- max\(Int64\(93\)\)\) \* Int64\(36\) THEN Int64\(17\) \* Int64\(\-67\) ELSE NULL END THEN NULL ELSE Int64\(15\) \+ Int64\(\-84\) END \+ avg\(DISTINCT Int64\(6\)\) \* CASE Int64\(77\) WHEN \(\- coalesce\(Int64\(\-56\), Int64\(68\) \+ Int64\(\-51\), min\(Int64\(\-23\)\)\)\) \* Int64\(60\) THEN CASE Int64\(\-68\) WHEN Int64\(83\) THEN sum\(DISTINCT Int64\(29\)\) ELSE Int64\(67\) \+ \(\- count\(\*\)\) END END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-65\), Int64\(59\) \* Int64\(\-14\)\)\) \+ Int64\(91\) AS col2" at position 0 and "Int64\(8\) \* CASE Int64\(\-43\) WHEN Int64\(\-71\) / CASE Int64\(64\) WHEN Int64\(36\) \* \(\- max\(Int64\(11\)\)\) \+ \(\- max\(Int64\(93\)\)\) \* Int64\(36\) THEN Int64\(17\) \* Int64\(\-67\) ELSE NULL END THEN NULL ELSE Int64\(15\) \+ Int64\(\-84\) END \+ avg\(DISTINCT Int64\(6\)\) \* CASE Int64\(77\) WHEN \(\- coalesce\(Int64\(\-56\), Int64\(68\) \+ Int64\(\-51\), min\(Int64\(\-23\)\)\)\) \* Int64\(60\) THEN CASE Int64\(\-68\) WHEN Int64\(83\) THEN sum\(DISTINCT Int64\(29\)\) ELSE Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COALESCE ( - 65, + + 59 * + + ( + - 14 ) ) + + 91 AS col2, + 8 * CASE - 43 WHEN - 71 / + CASE + + 64 WHEN 36 * - MAX ( ALL 11 ) + - + MAX ( ALL 93 ) * + 36 THEN 17 * - 67 ELSE NULL END THEN NULL ELSE + 15 + - 84 END + + AVG ( DISTINCT 6 ) * + CASE + ( + 77 ) WHEN - COALESCE ( - 56, + 68 + - 51, + MIN ( - 23 ) ) * 60 THEN CASE - 68 WHEN + 83 THEN + SUM ( DISTINCT 29 ) ELSE 67 + - COUNT ( * ) END END AS col2 query II rowsort label-8014 @@ -43635,7 +43635,7 @@ SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( - - 27 ) + - COALESCE ( + 3, 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), COUNT ( * ) # Datafusion - Types were automatically converted from: @@ -43841,7 +43841,7 @@ SELECT - 88 + + - 99 * 21 AS col0 # Datafusion - Expected - -1275 # Datafusion - Expected - -2790 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(62\) AS col1" at position 1 and "Int64\(\-10\) \* Int64\(\-1\) \+ count\(\*\) \+ \(\- Int64\(95\)\) 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\(\-45\) \* Int64\(62\) AS col1" at position 1 and "Int64\(\-10\) \* Int64\(\-1\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(95\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 85 * + 15, - 45 * + 62 AS col1, - 10 * + - 1 + + COUNT ( * ) + - + 95 AS col1 query I rowsort @@ -46959,7 +46959,7 @@ SELECT 84 * - ( + 37 ) - + 17 - - + 70 * - ( - + 77 ) + + 66 * - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - 1206 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ \(\- count\(\*\)\) \+ Int64\(32\) AS col2" at position 0 and "Int64\(67\) \* \(\- Int64\(\-18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(32\) AS col2" at position 0 and "Int64\(67\) \* \(\- Int64\(\-18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 + - + COUNT ( * ) + 32 AS col2, 67 * - - 18 AS col2 query I rowsort label-8951 @@ -50997,7 +50997,7 @@ SELECT 64 * - 43 AS col1, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5162 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) \* Int64\(\-58\) AS col2" at position 0 and "\(\- \(\- count\(\*\)\)\) \+ \(\- 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\(\-89\)\) \* Int64\(\-58\) AS col2" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 89 * - 58 AS col2, - ( - COUNT ( * ) ) + - - 70 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_51.slt b/data/sqlite/random/expr/slt_good_51.slt index ec04414..0eac19a 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col2" at position 0 and "Int64\(\-3\) \+ \(\- \(\- Int64\(\-70\)\)\) / coalesce\(count\(\*\), Int64\(\-11\) \* Int64\(97\)\) \+ \(\- CASE CASE 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 @@ -1492,7 +1492,7 @@ SELECT - 0 * 49 + 44, MIN ( DISTINCT + 93 ) * + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 3381 -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\(40\) \+ Int64\(38\) \* sum\(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\(51\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(40\) \+ Int64\(38\) \* sum\(Int64\(90\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + ( + 51 ) ) AS col2, + COUNT ( * ) - + 40 + + + 38 * SUM ( + 90 ) AS col2 query I rowsort @@ -1897,7 +1897,7 @@ SELECT ( COUNT ( * ) ) * - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-28\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-28\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 28 AS col0, - 90 AS col0 query I rowsort @@ -2110,7 +2110,7 @@ SELECT + 6 AS col0, 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(19\) 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\(\*\)\) \+ Int64\(19\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + 19 AS col1, + 7 AS col1 query I rowsort label-392 @@ -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\(\*\) 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 @@ -2980,7 +2980,7 @@ SELECT ALL + 82 * + - SUM ( + 68 ) AS col0, NULLIF ( + - 81, - - 51 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* \(\- 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\(64\) \* \(\- 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 DISTINCT + 64 * - COUNT ( * ) AS col1, 38 col1 query I rowsort @@ -3323,7 +3323,7 @@ SELECT DISTINCT COUNT ( * ) col2, - 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21371816 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- coalesce\(Int64\(94\), Int64\(45\) \+ Int64\(12\)\)\) \* nullif\(Int64\(\-98\), Int64\(99\)\) \* Int64\(40\) \- Int64\(\-24\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-19\) \- Int64\(\-5\) / CAST\(NULL AS Int32\) \* nullif\(Int64\(94\), Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- coalesce\(Int64\(94\), Int64\(45\) \+ Int64\(12\)\)\) \* nullif\(Int64\(\-98\), Int64\(99\)\) \* Int64\(40\) \- Int64\(\-24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-19\) \- Int64\(\-5\) / CAST\(NULL AS Int32\) \* nullif\(Int64\(94\), Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 58 * - + COALESCE ( + + 94, + + 45 + + 12 ) * + NULLIF ( + - 98, + 99 ) * 40 - - 24 * + ( - COUNT ( * ) ) AS col0, - 19 - - 5 / CAST ( NULL AS INTEGER ) * + NULLIF ( 94, + 99 ) AS col0 query I rowsort @@ -3651,7 +3651,7 @@ SELECT DISTINCT MAX ( 94 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-11\)\) \- CASE Int64\(5\) WHEN \(\- count\(\*\)\) THEN Int64\(\-22\) ELSE NULL END AS col0" at position 0 and "min\(\(\- Int64\(47\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-11\)\) \- CASE Int64\(5\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-22\) ELSE NULL END AS col0" at position 0 and "min\(\(\- Int64\(47\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( DISTINCT - 11 ) - + CASE 5 WHEN - + COUNT ( * ) THEN + - 22 ELSE NULL END col0, + MIN ( + - ( + 47 ) ) AS col0 query I rowsort @@ -3879,7 +3879,7 @@ SELECT + MAX ( + 82 ) + + + 32 - + 49 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 12540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \- \(\- \(\- \(\- Int64\(\-36\)\)\)\) AS col1" at position 0 and "Int64\(\-33\) \* CASE \(\- count\(\*\)\) WHEN Int64\(93\) THEN \(\- count\(\(\- \(\- CAST\(Int64\(\-33\) AS Float64\)\)\)\)\) ELSE count\(\*\) \- Int64\(21\) END \* 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\(75\) \- \(\- \(\- \(\- Int64\(\-36\)\)\)\) AS col1" at position 0 and "Int64\(\-33\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(93\) THEN \(\- count\(\(\- \(\- CAST\(Int64\(\-33\) AS Float64\)\)\)\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) END \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 75 - - - ( - - 36 ) AS col1, - 33 * + CASE - COUNT ( * ) WHEN + 93 THEN - COUNT ( - - CAST ( - 33 AS FLOAT8 ) ) ELSE COUNT ( * ) - 21 END * 19 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\(\-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\(\*\) AS col1" at position 1 have the 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 @@ -5417,7 +5417,7 @@ SELECT 66 col0, 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(45\) \* coalesce\(\(\- \(\- count\(\*\)\)\), Int64\(\-21\) \+ Int64\(18\), Int64\(65\)\) \+ 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\(36\) AS col1" at position 0 and "Int64\(45\) \* coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-21\) \+ Int64\(18\), Int64\(65\)\) \+ Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 AS col1, ( + 45 ) * COALESCE ( - - COUNT ( * ), + - 21 + 18, 65 ) + 63 AS col1 query I rowsort label-1030 @@ -6577,7 +6577,7 @@ SELECT ALL COUNT ( * ) * - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( 71 ) + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1250 @@ -8914,7 +8914,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\(\*\) AS col0" at position 0 and "Int64\(\-48\) \- nullif\(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 @@ -9849,13 +9849,13 @@ SELECT COUNT ( * ) + - - 83 - - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "coalesce\(Int64\(65\), Int64\(\-20\)\) / \(\- count\(\*\)\) AS col2" at position 1 have the 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 "coalesce\(Int64\(65\), Int64\(\-20\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 AS col2, + COALESCE ( + 65, - 20 ) / + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -3159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(81\) \* count\(\*\) \* coalesce\(Int64\(\-39\), count\(\*\) / coalesce\(\(\- Int64\(\-78\)\), \(\- Int64\(\-73\)\) \* avg\(DISTINCT 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 "Int64\(62\) AS col2" at position 0 and "Int64\(81\) \* count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(Int64\(\-39\), count\(Int64\(1\)\) AS count\(\*\) / coalesce\(\(\- Int64\(\-78\)\), \(\- Int64\(\-73\)\) \* avg\(DISTINCT Int64\(\-56\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 AS col2, + 81 * + COUNT ( * ) * COALESCE ( + - 39, + COUNT ( * ) / + COALESCE ( - ( - 78 ), + - ( - 73 ) * AVG ( DISTINCT + - 56 ) ) ) AS col2 query I rowsort @@ -9973,7 +9973,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\(\*\) 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 @@ -9995,7 +9995,7 @@ SELECT + 33 / 51 * - 84 + + - COALESCE ( - MIN ( ALL - 19 ), + ( + 73 ), - ( - + # 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\(\*\)\) AS col2" at position 0 and "Int64\(83\) \- \(\- min\(DISTINCT Int64\(\-45\)\)\) \+ Int64\(58\) \+ 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\(83\) \- \(\- min\(DISTINCT Int64\(\-45\)\)\) \+ Int64\(58\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col2, 83 - - MIN ( DISTINCT - 45 ) + + + 58 + 0 AS col2 query I rowsort label-1894 @@ -15040,7 +15040,7 @@ SELECT ALL - 8 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(76\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(76\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 AS col0, + 76 * - - COUNT ( * ) AS col0 query I rowsort label-2856 @@ -15523,7 +15523,7 @@ NULL # 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\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 18 AS col1, COUNT ( * ) / + 70 AS col1 query I rowsort @@ -16253,7 +16253,7 @@ SELECT - 19 * - COUNT ( * ) * MIN ( ALL 66 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(82\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \* \(\- count\(Int64\(84\)\)\) \* Int64\(63\) \* Int64\(55\) \* Int64\(97\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(82\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(84\)\)\) \* Int64\(63\) \* Int64\(55\) \* Int64\(97\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( 82 ) AS col1, - COUNT ( * ) * - COUNT ( 84 ) * + 63 * + + 55 * 97 - - CAST ( NULL AS INTEGER ) * + + 14 AS col1 query I rowsort label-3090 @@ -17772,7 +17772,7 @@ SELECT + 14, + 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-49\) \+ count\(\*\) \+ Int64\(79\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-49\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 + - 49 + COUNT ( * ) + 79 col1, 45 col1 query I rowsort label-3379 @@ -18124,7 +18124,7 @@ SELECT DISTINCT 42 / 75 - - - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(61\), CASE Int64\(23\) WHEN Int64\(\-67\) \* Int64\(63\) THEN Int64\(87\) \+ Int64\(\-14\) \* Int64\(83\) / \(\- count\(\*\)\) \+ Int64\(30\) WHEN \(\- Int64\(42\)\) THEN NULL ELSE Int64\(67\) END \* Int64\(83\) \* Int64\(89\)\) 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 "coalesce\(Int64\(61\), CASE Int64\(23\) WHEN Int64\(\-67\) \* Int64\(63\) THEN Int64\(87\) \+ Int64\(\-14\) \* Int64\(83\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(30\) WHEN \(\- Int64\(42\)\) THEN NULL ELSE Int64\(67\) END \* Int64\(83\) \* Int64\(89\)\) 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 + COALESCE ( 61, + + CASE + 23 WHEN + - 67 * 63 THEN 87 + - 14 * + 83 / - COUNT ( * ) + ( + 30 ) WHEN - + 42 THEN NULL ELSE 67 END * + 83 * + 89 ) AS col1, - 46 AS col1 query I rowsort label-3446 @@ -21296,7 +21296,7 @@ SELECT DISTINCT - 7 / ( + 67 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(6\) \+ Int64\(12\) / Int64\(66\) \+ Int64\(83\) \+ \(\- CASE Int64\(7\) WHEN Int64\(\-95\) \* Int64\(57\) \* Int64\(36\) \* \(\- Int64\(\-97\)\) THEN count\(\*\) \+ count\(\*\) END\) \* Int64\(1\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(6\) \+ Int64\(12\) / Int64\(66\) \+ Int64\(83\) \+ \(\- CASE Int64\(7\) WHEN Int64\(\-95\) \* Int64\(57\) \* Int64\(36\) \* \(\- Int64\(\-97\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(1\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 99 AS col2, 6 + 12 / + 66 + 83 + - + CASE + 7 WHEN - 95 * + 57 * + + 36 * - - 97 THEN COUNT ( * ) + + COUNT ( * ) END * 1 * - - COUNT ( * ) AS col2 query II rowsort @@ -23382,7 +23382,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\(\*\) 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 @@ -25029,7 +25029,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\(\*\) AS col1" at position 1 have the 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 @@ -25141,7 +25141,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -25409,7 +25409,7 @@ SELECT + 46 * + MIN ( ALL - ( + - 96 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(68\) \* \(\- count\(\(\- Int64\(\-65\)\)\)\) 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\(\*\)\) / Int64\(68\) \* \(\- count\(\(\- Int64\(\-65\)\)\)\) 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 ( * ) / + 68 * - COUNT ( - - 65 ) AS col0, + 51 AS col0 query I rowsort label-4843 @@ -26064,7 +26064,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\(\*\) AS col1" at position 1 have the 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 @@ -27184,7 +27184,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\(\*\) 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 @@ -27495,7 +27495,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\(\*\) AS col2" at position 1 have the 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 @@ -27582,7 +27582,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\(\*\) WHEN \(\- Int64\(\-98\)\) \+ count\(\*\) \+ \(\- Int64\(\-30\)\) THEN NULL ELSE \(\- \(\- Int64\(\-98\)\)\) END \+ Int64\(1\) ELSE NULL END AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have 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 @@ -27837,7 +27837,7 @@ SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(62\) \* count\(\*\) \* \(\- CASE Int64\(16\) WHEN Int64\(25\) THEN Int64\(98\) \+ CAST\(Int64\(\-67\) AS Int32\) END\) \* Int64\(\-80\) \* Int64\(\-14\) \- Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(16\) WHEN Int64\(25\) THEN Int64\(98\) \+ CAST\(Int64\(\-67\) AS Int32\) END\) \* Int64\(\-80\) \* Int64\(\-14\) \- Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 73 AS col0, 62 * + COUNT ( * ) * - CASE + 16 WHEN 25 THEN 98 + CAST ( - 67 AS INTEGER ) END * - 80 * - 14 - 54 col0 query II rowsort label-5306 @@ -29135,7 +29135,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\(\*\) AS col2" at position 1 have the 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 @@ -29760,7 +29760,7 @@ SELECT ALL - SUM ( DISTINCT COALESCE ( - - 71, + + 90 ) ) * + 78 + + 84 + + + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -4333 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(7\) \* Int64\(\-94\) \* count\(\*\) \+ \(\- count\(Int64\(25\)\)\) AS col1" at position 0 and "Int64\(\-47\) \* Int64\(92\) \- 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\(\*\) / Int64\(7\) \* Int64\(\-94\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(25\)\)\) AS col1" at position 0 and "Int64\(\-47\) \* Int64\(92\) \- Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) / + 7 * ( - 94 ) * + + COUNT ( * ) + - + COUNT ( ALL + 25 ) col1, - 47 * 92 - + 9 AS col1 query II rowsort label-5670 @@ -29797,7 +29797,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(43\) \+ \(\- CAST\(Int64\(\-60\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \+ \(\- CAST\(Int64\(\-60\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * 43 + + - ( CAST ( - 60 AS INTEGER ) ) AS col2, - 4 AS col2 query I rowsort @@ -30305,7 +30305,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\(\*\) AS col2" at position 1 have the 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 @@ -30673,7 +30673,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 6480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(\-25\) \+ Int64\(54\) AS col1" at position 0 and "Int64\(81\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-25\) \+ Int64\(54\) AS col1" at position 0 and "Int64\(81\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / - 25 + 54 AS col1, 81 * 80 AS col1 query I rowsort @@ -31481,7 +31481,7 @@ SELECT ALL + 48 * - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(12\) 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\(\*\) \* Int64\(12\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * + + 12 AS col2, - 80 AS col2 query I rowsort label-6004 @@ -32420,7 +32420,7 @@ SELECT ALL + COUNT ( ALL 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5762 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* \(\- nullif\(Int64\(67\), Int64\(70\) \* Int64\(\-85\)\)\) AS col1" at position 0 and "Int64\(29\) \* \(\- CASE Int64\(72\) WHEN count\(\*\) \* min\(Int64\(24\) \* Int64\(\-98\)\) THEN NULL ELSE \(\- CASE Int64\(77\) WHEN Int64\(\-38\) THEN Int64\(62\) WHEN CASE count\(\*\) WHEN Int64\(\-21\) THEN Int64\(24\) END \+ Int64\(89\) / Int64\(\-29\) THEN NULL ELSE NULL END\) \* Int64\(89\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* \(\- nullif\(Int64\(67\), Int64\(70\) \* Int64\(\-85\)\)\) AS col1" at position 0 and "Int64\(29\) \* \(\- CASE Int64\(72\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(24\) \* Int64\(\-98\)\) THEN NULL ELSE \(\- CASE Int64\(77\) WHEN Int64\(\-38\) THEN Int64\(62\) WHEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-21\) THEN Int64\(24\) END \+ Int64\(89\) / Int64\(\-29\) THEN NULL ELSE NULL END\) \* Int64\(89\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 86 * - NULLIF ( 67, + 70 * - 85 ) AS col1, + 29 * + - CASE 72 WHEN + + COUNT ( * ) * + MIN ( 24 * - 98 ) THEN NULL ELSE - CASE 77 WHEN - 38 THEN + 62 WHEN + CASE COUNT ( * ) WHEN - 21 THEN ( + 24 ) END + 89 / - 29 THEN NULL ELSE NULL END * + 89 END AS col1 query I rowsort @@ -33678,7 +33678,7 @@ SELECT - 55 + - 36 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\(\*\)\) 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 - COUNT ( * ) col1, - 46 col1 query I rowsort label-6423 @@ -34310,7 +34310,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\(\*\) AS col1" at position 1 have the 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 @@ -35495,7 +35495,7 @@ SELECT ALL - 9 AS col1, 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(7\) \+ Int64\(99\) \+ CASE Int64\(55\) WHEN Int64\(58\) / \(\- avg\(Int64\(68\)\)\) \* Int64\(\-28\) \* Int64\(\-35\) \+ \(\- Int64\(66\)\) \+ \(\- Int64\(32\)\) \* \(\- Int64\(81\)\) \+ Int64\(5\) \- min\(Int64\(\-99\)\) THEN Int64\(82\) \- Int64\(\-74\) WHEN count\(\*\) THEN Int64\(99\) \+ Int64\(2\) \* Int64\(9\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(7\) \+ Int64\(99\) \+ CASE Int64\(55\) WHEN Int64\(58\) / \(\- avg\(Int64\(68\)\)\) \* Int64\(\-28\) \* Int64\(\-35\) \+ \(\- Int64\(66\)\) \+ \(\- Int64\(32\)\) \* \(\- Int64\(81\)\) \+ Int64\(5\) \- min\(Int64\(\-99\)\) THEN Int64\(82\) \- Int64\(\-74\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(99\) \+ Int64\(2\) \* Int64\(9\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 45 AS col1, 7 + 99 + + + CASE + 55 WHEN + 58 / - AVG ( 68 ) * - 28 * - 35 + + - ( + 66 ) + - + 32 * ( - + 81 ) + + 5 - + MIN ( - 99 ) THEN + 82 - - 74 WHEN COUNT ( * ) THEN + 99 + 2 * 9 END AS col1 query I rowsort label-6769 @@ -36678,7 +36678,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\(\*\) AS col0" at position 1 have the 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 @@ -36747,7 +36747,7 @@ SELECT ALL - CAST ( - 25 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 693 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- coalesce\(\(\- Int64\(76\)\), Int64\(26\)\)\) / Int64\(71\) \* Int64\(77\) AS col2" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(\-77\)\) \- Int64\(15\) \- \(\- coalesce\(Int64\(51\), \(\- coalesce\(Int64\(83\), Int64\(18\) \* Int64\(\-72\) \* \(\- Int64\(\-16\)\) \* Int64\(\-24\) \* \(\- \(\- count\(\*\)\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- coalesce\(\(\- Int64\(76\)\), Int64\(26\)\)\) / Int64\(71\) \* Int64\(77\) AS col2" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(\-77\)\) \- Int64\(15\) \- \(\- coalesce\(Int64\(51\), \(\- coalesce\(Int64\(83\), Int64\(18\) \* Int64\(\-72\) \* \(\- Int64\(\-16\)\) \* Int64\(\-24\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( ( 9 ) ) * - COALESCE ( - + ( + 76 ), 26 ) / 71 * 77 AS col2, + NULLIF ( CAST ( NULL AS INTEGER ), - 77 ) - + + 15 - + - COALESCE ( + 51, - COALESCE ( 83, + 18 * + - 72 * - - 16 * - 24 * - - COUNT ( * ) ) ) AS col2 query II rowsort label-7006 @@ -37617,7 +37617,7 @@ SELECT DISTINCT + 53 / + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "count\(\*\) \+ \(\- \(\- CAST\(Int64\(43\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(Int64\(43\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 19 AS col0, + COUNT ( * ) + - - CAST ( 43 AS INTEGER ) AS col0 query II rowsort label-7173 @@ -37853,7 +37853,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\(\-40\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 ( * ) col0 query I rowsort label-7215 @@ -38479,7 +38479,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\(\*\) AS col0" at position 1 have the 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 @@ -39130,7 +39130,7 @@ SELECT 94 AS col0, + 16 col2 # Datafusion - Expected - 35 # Datafusion - Expected - NULL # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(92\) / CASE WHEN NOT Int64\(76\) >= Int64\(28\) \- Int64\(68\) OR Int64\(9\) / \(\- Int64\(\-73\)\) \- Int64\(\-47\) IN \(\[\(\- Int64\(\-49\)\), count\(\*\), \(\- Int64\(\-55\)\), Int64\(\-71\), Int64\(68\), count\(\*\)\]\) THEN \(\- \(\- \(\- sum\(DISTINCT Int64\(76\)\)\)\)\) 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\) AS col1" at position 0 and "Int64\(92\) / CASE WHEN NOT Int64\(76\) >= Int64\(28\) \- Int64\(68\) OR Int64\(9\) / \(\- Int64\(\-73\)\) \- Int64\(\-47\) IN \(\[\(\- Int64\(\-49\)\), count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(\-55\)\), Int64\(\-71\), Int64\(68\), count\(Int64\(1\)\) AS count\(\*\)\]\) THEN \(\- \(\- \(\- sum\(DISTINCT Int64\(76\)\)\)\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 35 col1, 92 / CASE WHEN NOT 76 >= + + 28 - 68 OR + 9 / - - 73 - + - 47 IN ( - - 49, + COUNT ( * ), - - 55, - 71, + 68, + COUNT ( * ) ) THEN - - ( - SUM ( DISTINCT + 76 ) ) END AS col1, MIN ( DISTINCT 51 ) + + 91 AS col0 query I rowsort @@ -40920,7 +40920,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\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(70\) \+ count\(\*\) AS col1" at position 1 have 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 @@ -41028,7 +41028,7 @@ SELECT DISTINCT CAST ( - - 54 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(71\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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\(71\) \+ \(\- 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 ) AS col0, + 71 + - COUNT ( * ) col0 query I rowsort @@ -41202,7 +41202,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ count\(\*\) \* Int64\(25\) \+ Int64\(\-52\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\) \+ Int64\(\-52\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 + COUNT ( * ) * + + 25 + - 52 AS col1, ( + - 57 ) AS col1 query I rowsort label-7862 @@ -43370,7 +43370,7 @@ SELECT - COUNT ( * ), 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-59\) / Int64\(17\) \* \(\- CASE Int64\(47\) WHEN Int64\(8\) / Int64\(92\) THEN NULL WHEN Int64\(15\) \+ Int64\(\-65\) \* Int64\(70\) \* Int64\(77\) THEN Int64\(\-11\) END\) \* Int64\(79\) \+ \(\- CASE Int64\(\-55\) WHEN Int64\(\-18\) THEN Int64\(0\) \* Int64\(\-62\) \+ \(\- min\(Int64\(\-92\)\)\) ELSE count\(\*\) \+ Int64\(45\) END\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-59\) / Int64\(17\) \* \(\- CASE Int64\(47\) WHEN Int64\(8\) / Int64\(92\) THEN NULL WHEN Int64\(15\) \+ Int64\(\-65\) \* Int64\(70\) \* Int64\(77\) THEN Int64\(\-11\) END\) \* Int64\(79\) \+ \(\- CASE Int64\(\-55\) WHEN Int64\(\-18\) THEN Int64\(0\) \* Int64\(\-62\) \+ \(\- min\(Int64\(\-92\)\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) END\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, - 59 / 17 * - CASE + + 47 WHEN 8 / 92 THEN NULL WHEN + 15 + - 65 * 70 * + 77 THEN + - 11 END * + 79 + - CASE - 55 WHEN - 18 THEN + 0 * - 62 + - MIN ( - 92 ) ELSE COUNT ( * ) + 45 END * 36 AS col1 query I rowsort label-8274 @@ -43381,7 +43381,7 @@ SELECT ALL + 8 + + + 33 * COUNT ( * ) 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 col0" at position 0 and "coalesce\(count\(\*\), \(\- CASE \(\- \(\- Int64\(55\)\)\) WHEN Int64\(\-77\) THEN Int64\(\-81\) WHEN count\(\*\) \* \(\- count\(\*\)\) \* Int64\(51\) 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\(84\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- CASE \(\- \(\- Int64\(55\)\)\) WHEN Int64\(\-77\) THEN Int64\(\-81\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(51\) THEN NULL ELSE NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 AS col0, COALESCE ( COUNT ( * ), - CASE - + ( - + 55 ) WHEN - 77 THEN ( + - 81 ) WHEN + + COUNT ( * ) * - COUNT ( * ) * + 51 THEN NULL ELSE NULL END ) AS col0 query I rowsort label-8276 @@ -43820,7 +43820,7 @@ SELECT ALL 58 + - + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 53 * - COUNT ( * ) col0, 8 AS col0 query I rowsort label-8358 @@ -45161,7 +45161,7 @@ SELECT - - SUM ( + 60 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "Int64\(60\) \+ \(\- Int64\(34\)\) \+ Int64\(81\) \* CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\) \+ \(\- Int64\(35\)\) \* Int64\(\-22\) \- \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "Int64\(60\) \+ \(\- Int64\(34\)\) \+ Int64\(81\) \* CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) \+ \(\- Int64\(35\)\) \* Int64\(\-22\) \- \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 1 AS col1, + 60 + - + 34 + 81 * CAST ( - - ( + + COUNT ( * ) ) AS INTEGER ) + - + 35 * ( - 22 ) - - - 70 AS col1 query I rowsort @@ -46221,7 +46221,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\(\*\) AS col0" at position 1 have the 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 @@ -46689,7 +46689,7 @@ SELECT ALL - + 67 / + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-4\), Int64\(86\), Int64\(23\) \* \(\- \(\- count\(\*\)\)\) \- Int64\(33\)\) AS col1" at position 0 and "coalesce\(Int64\(53\), Int64\(46\), count\(\*\)\) AS col1" at position 1 have 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\), Int64\(86\), Int64\(23\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(33\)\) AS col1" at position 0 and "coalesce\(Int64\(53\), Int64\(46\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - 4, 86, 23 * - - COUNT ( * ) - + + 33 ) AS col1, + COALESCE ( + + 53, + 46, + + COUNT ( * ) ) AS col1 query I rowsort label-8903 @@ -47171,7 +47171,7 @@ SELECT DISTINCT - 49 + - 34 + COUNT ( * ) * ( - + 32 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -32 -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\(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\(50\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 AS col2, COUNT ( * ) - + 33 AS col2 query II rowsort label-8994 @@ -47683,7 +47683,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\(\*\) AS col2" at position 1 have the 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 @@ -47907,7 +47907,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\(\*\) 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: @@ -49473,7 +49473,7 @@ SELECT 79 / - COALESCE ( + + 92, - 48 * + 53 ) 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\(\*\)\) AS col0" at position 0 and "nullif\(Int64\(77\), Int64\(\-87\) \* Int64\(5\) \* Int64\(50\) \+ 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 "nullif\(Int64\(77\), Int64\(\-87\) \* Int64\(5\) \* Int64\(50\) \+ Int64\(\-37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, NULLIF ( 77, - 87 * ( 5 ) * 50 + - 37 ) AS col0 query I rowsort @@ -49491,7 +49491,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\(\*\) 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 @@ -50689,7 +50689,7 @@ SELECT DISTINCT COALESCE ( - NULLIF ( - 79, - 32 * + 85 / - 69 * + NULLIF ( - 9, # Datafusion - Datafusion expected results: # Datafusion - Expected - -108 # Datafusion - Expected - 118560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ Int64\(82\) \+ \(\- Int64\(29\)\) \+ Int64\(\-68\) \+ Int64\(\-48\) \* coalesce\(count\(\*\), Int64\(\-93\) \+ Int64\(52\)\) AS col1" at position 0 and "Int64\(32\) \* Int64\(\-65\) \* Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ Int64\(82\) \+ \(\- Int64\(29\)\) \+ Int64\(\-68\) \+ Int64\(\-48\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-93\) \+ Int64\(52\)\) AS col1" at position 0 and "Int64\(32\) \* Int64\(\-65\) \* Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 45 + 82 + - ( 29 ) + + + ( - 68 ) + - 48 * + COALESCE ( COUNT ( * ), - 93 + 52 ) AS col1, 32 * - 65 * - 57 AS col1 query I rowsort label-9668 @@ -51239,7 +51239,7 @@ SELECT - 15 / - 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(76\) \+ count\(\*\) \- Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(76\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 77 AS col1, 76 + + COUNT ( * ) - - 28 AS col1 query I rowsort label-9773 diff --git a/data/sqlite/random/expr/slt_good_52.slt b/data/sqlite/random/expr/slt_good_52.slt index 58dd9a2..2f90235 100644 --- a/data/sqlite/random/expr/slt_good_52.slt +++ b/data/sqlite/random/expr/slt_good_52.slt @@ -1211,7 +1211,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(44\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-41\) \* \(\- CASE Int64\(48\) WHEN Int64\(21\) \* \(\- CASE \(\- count\(\*\)\) WHEN Int64\(\-3\) THEN Int64\(\-7\) \* Int64\(69\) END\) \* Int64\(30\) \- Int64\(35\) THEN Int64\(46\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(44\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-41\) \* \(\- CASE Int64\(48\) WHEN Int64\(21\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-3\) THEN Int64\(\-7\) \* Int64\(69\) END\) \* Int64\(30\) \- Int64\(35\) THEN Int64\(46\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - ( + 44 ) + - COUNT ( * ) AS col2, - 41 * - CASE 48 WHEN + 21 * - + CASE - + COUNT ( * ) WHEN - 3 THEN + - 7 * + + ( + 69 ) END * 30 - 35 THEN + 46 END AS col2 query I rowsort @@ -2618,7 +2618,7 @@ SELECT ( + - 99 ), COUNT ( - - 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(62\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-81\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(8\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(62\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-81\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(8\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 0 / + 62 * + - CAST ( NULL AS INTEGER ) / - 81 + + - 11 AS col2, 8 + - ( COUNT ( * ) ) AS col2 query I rowsort label-491 @@ -3572,7 +3572,7 @@ SELECT 0 col2, 62 + ( + 61 ) + - + ( + 46 ) * + CASE - + 50 WHEN 67 THEN - + COU # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(80\) \+ Int64\(\-14\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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 "Int64\(80\) \+ Int64\(\-14\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 35 AS col1, 80 + + - 14 + - - COUNT ( * ) col1 query I rowsort label-675 @@ -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\(\*\) 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 @@ -3977,7 +3977,7 @@ SELECT + ( COUNT ( * ) ) * COUNT ( * ) * + + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ count\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1, 29 col1 query I rowsort label-752 @@ -7484,7 +7484,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(68\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(68\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - AVG ( 68 ) * - ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) col2, 63 col2 query I rowsort label-1426 @@ -7576,7 +7576,7 @@ SELECT ALL 91 + + 7 * COALESCE ( - ( - 56 ), COUNT ( * ) / + 60 + + COUNT ( * ), # Datafusion - Datafusion expected results: # Datafusion - Expected - -3306 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(55\) WHEN CAST\(NULL AS Int32\) THEN NULL ELSE Int64\(\-87\) \* \(\- Int64\(\-38\)\) END AS col1" at position 0 and "Int64\(34\) \- Int64\(\-56\) \+ Int64\(\-89\) \- coalesce\(Int64\(\-37\), Int64\(35\) \* CAST\(NULL AS Int32\), \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(55\) WHEN CAST\(NULL AS Int32\) THEN NULL ELSE Int64\(\-87\) \* \(\- Int64\(\-38\)\) END AS col1" at position 0 and "Int64\(34\) \- Int64\(\-56\) \+ Int64\(\-89\) \- coalesce\(Int64\(\-37\), Int64\(35\) \* CAST\(NULL AS Int32\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + CASE + 55 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 87 * - - 38 END ) AS col1, 34 - ( - 56 ) + - 89 - + + COALESCE ( - 37, + 35 * + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) col1 query I rowsort label-1444 @@ -8120,7 +8120,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\(\*\) 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 @@ -8698,7 +8698,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\(\*\) 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 @@ -8893,7 +8893,7 @@ SELECT + 28 - + + CAST ( - + 4 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 681 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(31\) \* Int64\(22\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(31\) \* Int64\(22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 AS col0, + 31 * + 22 + - COUNT ( * ) col0 query I rowsort label-1695 @@ -9081,7 +9081,7 @@ SELECT ALL - 1 + + + ( + 23 ) + - ( + 50 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(\-4\) \+ coalesce\(Int64\(56\), Int64\(72\), \(\- count\(\*\)\) \+ Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(\-4\) \+ coalesce\(Int64\(56\), Int64\(72\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 90 AS col2, - 4 + + COALESCE ( 56, + + 72, - COUNT ( * ) + 35 ) AS col2 query I rowsort label-1730 @@ -9700,7 +9700,7 @@ SELECT DISTINCT - 35 / + 35 * COUNT ( - 58 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "\(\- count\(\*\)\) / min\(Int64\(\-5\)\) \- Int64\(79\) \+ Int64\(71\) \- Int64\(48\) / Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / min\(Int64\(\-5\)\) \- Int64\(79\) \+ Int64\(71\) \- Int64\(48\) / Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 77 AS col2, - COUNT ( * ) / + + MIN ( + - 5 ) - 79 + + ( 71 ) - 48 / 36 AS col2 query I rowsort label-1850 @@ -9822,7 +9822,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\(\*\)\) \* 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 @@ -10070,7 +10070,7 @@ SELECT ALL 24 + - 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) \+ \(\- Int64\(\-14\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \* Int64\(99\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) \+ \(\- Int64\(\-14\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(99\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - 7 ) + - - 14 col1, - COUNT ( * ) * + 99 + + - 18 AS col1 query II rowsort @@ -10813,7 +10813,7 @@ SELECT ALL + ( + 46 ) + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 4674 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(69\), coalesce\(coalesce\(Int64\(41\), Int64\(86\) \* Int64\(93\) \- Int64\(6\), Int64\(\-21\) \+ coalesce\(\(\- count\(\*\)\), count\(\*\)\)\), Int64\(\-15\)\)\) AS col2" at position 0 and "Int64\(82\) \* 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 "coalesce\(Int64\(69\), coalesce\(coalesce\(Int64\(41\), Int64\(86\) \* Int64\(93\) \- Int64\(6\), Int64\(\-21\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-15\)\)\) AS col2" at position 0 and "Int64\(82\) \* Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( + 69, + COALESCE ( + COALESCE ( + 41, + 86 * + 93 - + + 6, + - 21 + + COALESCE ( - + COUNT ( * ), + ( COUNT ( * ) ) ) ), - 15 ) ) AS col2, 82 * 57 AS col2 query II rowsort label-2063 @@ -10879,7 +10879,7 @@ SELECT ( + 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22770 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- Int64\(55\)\) \* Int64\(23\) AS col0" at position 0 and "Int64\(\-28\) \+ Int64\(12\) \+ Int64\(9\) / Int64\(\-30\) \* \(\- \(\- count\(\(\- nullif\(\(\- \(\- Int64\(32\)\)\), \(\- Int64\(\-74\)\)\)\)\)\)\) \* count\(\*\) \* Int64\(\-97\) \+ \(\- count\(DISTINCT Int64\(\-77\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- Int64\(55\)\) \* Int64\(23\) AS col0" at position 0 and "Int64\(\-28\) \+ Int64\(12\) \+ Int64\(9\) / Int64\(\-30\) \* \(\- \(\- count\(\(\- nullif\(\(\- \(\- Int64\(32\)\)\), \(\- Int64\(\-74\)\)\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-97\) \+ \(\- count\(DISTINCT Int64\(\-77\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 * - + 55 * + + 23 AS col0, - 28 + 12 + + 9 / - 30 * - - ( COUNT ( - NULLIF ( - - ( + + 32 ), ( - - 74 ) ) ) ) * + COUNT ( * ) * - 97 + - COUNT ( DISTINCT - 77 ) AS col0 query I rowsort @@ -10994,7 +10994,7 @@ SELECT + - 33 + - 11 + - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(19\) \+ Int64\(\-58\) \- 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\(19\) \+ Int64\(\-58\) \- Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col0, + 19 + - 58 - + 82 AS col0 # Datafusion - Datafusion expected results: @@ -11112,7 +11112,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9108 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(99\) AS col2" at position 0 and "count\(\*\) / Int64\(33\) / \(\- Int64\(\-65\)\) \+ Int64\(4\) \+ Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(99\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(33\) / \(\- Int64\(\-65\)\) \+ Int64\(4\) \+ Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 92 * + 99 col2, + COUNT ( * ) / 33 / - - 65 + + 4 + + 11 col2 query I rowsort @@ -16777,7 +16777,7 @@ SELECT ALL + COUNT ( DISTINCT - 72 ) AS col2, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 10 -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\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 75 AS col1, + COUNT ( * ) + + 9 AS col1 query I rowsort @@ -17431,7 +17431,7 @@ SELECT + + 39 * 42 + 30 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(94\) / nullif\(Int64\(86\), Int64\(\-44\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-44\)\) \+ Int64\(\-25\) \+ Int64\(20\) / Int64\(14\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(94\) / nullif\(Int64\(86\), Int64\(\-44\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-44\)\) \+ Int64\(\-25\) \+ Int64\(20\) / Int64\(14\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 33 + + 94 / + NULLIF ( 86, - 44 * - - COUNT ( * ) * + - 44 ) + - 25 + + + 20 / + + 14 AS col0, 56 AS col0 query I rowsort label-3326 @@ -17447,7 +17447,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(31\), \(\- nullif\(\(\- count\(\*\)\), Int64\(\-99\)\)\)\)\) AS col0" at position 0 and "Int64\(45\) / Int64\(56\) \+ 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 "\(\- coalesce\(Int64\(31\), \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-99\)\)\)\)\) AS col0" at position 0 and "Int64\(45\) / Int64\(56\) \+ Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COALESCE ( 31, - NULLIF ( - COUNT ( * ), - 99 ) ) AS col0, 45 / + 56 + 82 AS col0 query I rowsort label-3329 @@ -17638,7 +17638,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\(37\)\) \+ \(\- Int64\(\-41\)\) \+ Int64\(73\) \* Int64\(13\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -17670,7 +17670,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\(\*\) AS col1" at position 1 have the 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 @@ -18198,7 +18198,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\(\*\) 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 @@ -18407,7 +18407,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\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col2, COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-3512 @@ -19404,7 +19404,7 @@ SELECT - 93 / - - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 908 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-20\)\) \* \(\- min\(DISTINCT Int64\(53\)\)\) \+ \(\- Int64\(59\)\) \+ \(\- Int64\(93\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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\(\-20\)\) \* \(\- min\(DISTINCT Int64\(53\)\)\) \+ \(\- Int64\(59\)\) \+ \(\- 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 SUM ( - 20 ) * - MIN ( DISTINCT + 53 ) + - ( + 59 ) + - + 93 AS col1, - ( COUNT ( * ) ) col1 query II rowsort label-3703 @@ -20236,7 +20236,7 @@ SELECT 14 + + - 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 202130 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(\-85\) \* Int64\(\-82\) AS col1" at position 0 and "Int64\(77\) \* count\(\*\) / Int64\(8\) \- 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\(29\) \* Int64\(\-85\) \* Int64\(\-82\) AS col1" at position 0 and "Int64\(77\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(8\) \- Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 29 * - 85 * - 82 AS col1, 77 * COUNT ( * ) / 8 - 61 AS col1 query I rowsort @@ -21813,7 +21813,7 @@ SELECT ALL + 5 * 6 + 5 # 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 "coalesce\(\(\- coalesce\(\(\- count\(\*\)\), Int64\(\-3\)\)\), Int64\(59\) \* \(\- Int64\(\-2\)\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-3\)\)\), Int64\(59\) \* \(\- Int64\(\-2\)\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - + COALESCE ( - COUNT ( * ), - 3 ), + 59 * - - 2 ) AS col2, 88 AS col2 query I rowsort label-4165 @@ -21882,7 +21882,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\(\*\) AS col1" at position 1 have the 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 @@ -21921,7 +21921,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\(\*\) 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 @@ -22148,7 +22148,7 @@ SELECT ALL + 61 / - COALESCE ( 47, - 84 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \- Int64\(24\) / Int64\(\-23\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(88\) \- \(\- Int64\(\-43\)\) AS col1" at position 0 and "count\(\*\) / 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\(67\) \- Int64\(24\) / Int64\(\-23\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(88\) \- \(\- Int64\(\-43\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 67 - + 24 / + - 23 * - - COUNT ( * ) + 88 - - - 43 AS col1, COUNT ( * ) / - 82 AS col1 query I rowsort @@ -23250,7 +23250,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 263 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- Int64\(\-90\)\) \+ Int64\(81\) AS col2" at position 0 and "count\(\*\) \- Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- Int64\(\-90\)\) \+ Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 92 + - - 90 + + + 81 AS col2, COUNT ( * ) - + + 35 AS col2 query I rowsort label-4443 @@ -23444,7 +23444,7 @@ SELECT + MIN ( DISTINCT - 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 94 -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\(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\(55\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 AS col2, COUNT ( * ) + 93 col2 query I rowsort label-4480 @@ -23590,7 +23590,7 @@ SELECT ALL COALESCE ( + 34, + 1 + 48 / COUNT ( * ) + + 82 + 96 ) # 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\(93\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at 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 ( * ) / + 93 AS col1, - COUNT ( * ) col1 query I rowsort @@ -24587,7 +24587,7 @@ SELECT - NULLIF ( MAX ( ALL - 14 ), + 59 ) / - 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 4267 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) \* count\(\*\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(54\) \* Int64\(79\) \+ \(\- coalesce\(\(\- count\(\*\)\), \(\- Int64\(29\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(54\) \* Int64\(79\) \+ \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(29\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - - 78 ) * + COUNT ( * ) + ( - COUNT ( * ) ) col2, 54 * + 79 + - COALESCE ( - COUNT ( * ), - + 29 ) col2 query I rowsort label-4695 @@ -24990,7 +24990,7 @@ SELECT ALL + 1 * + 64 * - 37 * + 43 AS 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 "Int64\(3\) \* \(\- 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\(3\) \* \(\- 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 3 * - COUNT ( * ) AS col0, 49 AS col0 query I rowsort label-4773 @@ -27454,7 +27454,7 @@ SELECT ALL + - ( + + 35 ) * COALESCE ( + 33, + 54 * + 3 + + - 47 + + - COUNT ( * # 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 "count\(\*\) / \(\- min\(DISTINCT Int64\(\-18\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(DISTINCT Int64\(\-18\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 AS col1, + ( COUNT ( * ) ) / - MIN ( DISTINCT - 18 ) AS col1 query II rowsort label-5243 @@ -29845,7 +29845,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ \(\- count\(\*\)\) \+ CAST\(NULL AS Int32\) \+ Int64\(7\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(1\) \* Int64\(14\) \* Int64\(5\) \+ Int64\(81\) \+ nullif\(\(\- Int64\(6\)\), \(\- Int64\(\-2\)\) \+ \(\- Int64\(0\)\) \+ \(\- Int64\(34\)\) \* count\(\*\) \+ \(\- Int64\(61\)\) \* Int64\(\-37\) \* Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \+ Int64\(7\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(1\) \* Int64\(14\) \* Int64\(5\) \+ Int64\(81\) \+ nullif\(\(\- Int64\(6\)\), \(\- Int64\(\-2\)\) \+ \(\- Int64\(0\)\) \+ \(\- Int64\(34\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(61\)\) \* Int64\(\-37\) \* Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 81 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 7 * + - 94 AS col2, 1 * + 14 * + 5 + + 81 + + NULLIF ( - + 6, - - 2 + + ( - - 0 ) + - + 34 * COUNT ( * ) + - + 61 * - 37 * + 81 ) AS col2 query II rowsort label-5699 @@ -30141,7 +30141,7 @@ SELECT COUNT ( ALL + 29 ) * + 68 - 95 * - 2 + + 15 * + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 57 AS col0 # Datafusion - Types were automatically converted from: @@ -33045,7 +33045,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\(\*\) 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 @@ -33300,7 +33300,7 @@ SELECT DISTINCT - - NULLIF ( 76, - 5 - + 11 ) AS col0, - 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ \(\- \(\- count\(\*\)\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 77 + - - ( COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col1, 38 col1 query I rowsort label-6364 @@ -33598,7 +33598,7 @@ SELECT ALL ( 18 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 33088 -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\(\-88\)\) \* nullif\(\(\- Int64\(\-47\)\), Int64\(\-41\) \* Int64\(83\)\) \* \(\- \(\- 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\(30\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-88\)\) \* nullif\(\(\- Int64\(\-47\)\), Int64\(\-41\) \* Int64\(83\)\) \* \(\- \(\- Int64\(8\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 AS col2, + COUNT ( * ) * - - 88 * + ( + ( + NULLIF ( - - 47, - 41 * 83 ) ) ) * - + ( - + 8 ) col2 query I rowsort @@ -34833,7 +34833,7 @@ SELECT - 48 + 52 / - MIN ( 51 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(\-12\) 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\(\*\)\) / Int64\(\-12\) 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 ( * ) ) / - 12 AS col1, - 94 AS col1 query I rowsort @@ -35126,7 +35126,7 @@ SELECT + 25 + - - NULLIF ( - 12, - + CAST ( NULL AS INTEGER ) + + - SUM ( DISTIN # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -399 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(7\) \* Int64\(\-61\) \+ 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 "Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(7\) \* Int64\(\-61\) \+ Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 8 * - COUNT ( * ) AS col2, 7 * + - 61 + 28 AS col2 query I rowsort label-6712 @@ -35431,7 +35431,7 @@ SELECT - - 75 * + ( - - 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -4332 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ count\(\*\) \+ sum\(DISTINCT Int64\(\-77\)\) AS col0" at position 0 and "Int64\(\-57\) \* Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(DISTINCT Int64\(\-77\)\) AS col0" at position 0 and "Int64\(\-57\) \* Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 49 + COUNT ( * ) + + SUM ( DISTINCT - 77 ) AS col0, - 57 * + 76 AS col0 query I rowsort @@ -35563,7 +35563,7 @@ SELECT DISTINCT + 8 / - COUNT ( * ) + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2220 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(94\) \+ Int64\(60\) \+ Int64\(92\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(94\) \+ Int64\(60\) \+ Int64\(92\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 22 * + 94 + + + 60 + + 92 col2, ( - COUNT ( * ) ) + + - 35 AS col2 query I rowsort label-6796 @@ -35665,7 +35665,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\(\*\) AS col1" at position 1 have the 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 @@ -35771,7 +35771,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(77\), max\(Int64\(58\)\)\) \- nullif\(Int64\(9\), Int64\(39\) \* Int64\(99\) \+ Int64\(31\) \- \(\- CASE Int64\(29\) WHEN Int64\(1\) THEN NULL ELSE \(\- count\(\*\)\) \+ CASE Int64\(30\) WHEN Int64\(51\) / Int64\(34\) THEN max\(Int64\(99\)\) END END\) \* 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 "coalesce\(Int64\(77\), max\(Int64\(58\)\)\) \- nullif\(Int64\(9\), Int64\(39\) \* Int64\(99\) \+ Int64\(31\) \- \(\- CASE Int64\(29\) WHEN Int64\(1\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE Int64\(30\) WHEN Int64\(51\) / Int64\(34\) THEN max\(Int64\(99\)\) END END\) \* 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 COALESCE ( + + 77, + MAX ( 58 ) ) - + + NULLIF ( + 9, + 39 * + 99 + + 31 - - + CASE 29 WHEN + 1 THEN NULL ELSE - COUNT ( * ) + + CASE 30 WHEN + 51 / + 34 THEN + MAX ( + + 99 ) END END * COUNT ( * ) ) AS col1, 72 AS col1 query II rowsort @@ -36264,7 +36264,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\(\*\) AS col2" at position 1 have the 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 @@ -38028,7 +38028,7 @@ SELECT DISTINCT + 54 * 25 * + + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(30\)\)\) \- \(\- Int64\(28\)\) AS col0" at position 0 and "coalesce\(Int64\(\-27\), coalesce\(Int64\(9\), \(\- CAST\(Int64\(\-6\) AS Int32\)\) \- Int64\(95\), \(\- \(\- Int64\(1\)\)\) \* \(\- Int64\(\-94\)\) \+ Int64\(\-58\) \* Int64\(\-23\)\), count\(\*\) \+ Int64\(84\) \- \(\- count\(DISTINCT \(\- Int64\(42\)\)\)\) / \(\- Int64\(69\)\) \+ count\(\*\), Int64\(62\) \* Int64\(\-7\) \- \(\- coalesce\(CASE Int64\(\-46\) WHEN nullif\(\(\- min\(Int64\(91\)\)\), Int64\(76\)\) THEN Int64\(\-55\) WHEN \(\- Int64\(39\)\) \- count\(\*\) \- Int64\(89\) THEN Int64\(90\) \+ \(\- Int64\(26\)\) \+ Int64\(62\) \+ Int64\(87\) \* \(\- count\(\*\)\) WHEN Int64\(\-46\) THEN Int64\(5\) ELSE NULL END, Int64\(93\), Int64\(75\)\)\) \* Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(30\)\)\) \- \(\- Int64\(28\)\) AS col0" at position 0 and "coalesce\(Int64\(\-27\), coalesce\(Int64\(9\), \(\- CAST\(Int64\(\-6\) AS Int32\)\) \- Int64\(95\), \(\- \(\- Int64\(1\)\)\) \* \(\- Int64\(\-94\)\) \+ Int64\(\-58\) \* Int64\(\-23\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(84\) \- \(\- count\(DISTINCT \(\- Int64\(42\)\)\)\) / \(\- Int64\(69\)\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(62\) \* Int64\(\-7\) \- \(\- coalesce\(CASE Int64\(\-46\) WHEN nullif\(\(\- min\(Int64\(91\)\)\), Int64\(76\)\) THEN Int64\(\-55\) WHEN \(\- Int64\(39\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(89\) THEN Int64\(90\) \+ \(\- Int64\(26\)\) \+ Int64\(62\) \+ Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-46\) THEN Int64\(5\) ELSE NULL END, Int64\(93\), Int64\(75\)\)\) \* Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - MAX ( DISTINCT + 30 ) - - + 28 AS col0, COALESCE ( - 27, + COALESCE ( 9, - CAST ( - 6 AS INTEGER ) - + 95, - - ( 1 ) * - - 94 + - 58 * - 23 ), COUNT ( * ) + + + 84 - - COUNT ( DISTINCT - + 42 ) / - + 69 + COUNT ( * ), 62 * - 7 - - COALESCE ( CASE - 46 WHEN + NULLIF ( - + MIN ( ALL 91 ), + 76 ) THEN - 55 WHEN - + 39 - + COUNT ( * ) - 89 THEN + ( + 90 ) + - + 26 + + 62 + 87 * - COUNT ( * ) WHEN - 46 THEN + 5 ELSE NULL END, + 93, + ( 75 ) ) * - 92 ) AS col0 query I rowsort label-7261 @@ -38798,7 +38798,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\(\*\) AS col2" at position 1 have the 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 @@ -39277,7 +39277,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\(\*\) AS col1" at position 1 have the 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 @@ -39306,7 +39306,7 @@ NULL # 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\(\*\)\) AS col2" at position 0 and "Int64\(\-56\) \+ \(\- 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\(\-56\) \+ \(\- Int64\(\-78\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - 56 + - - 78 AS col2 query I rowsort label-7505 @@ -39552,7 +39552,7 @@ SELECT ALL ( - 26 ), - SUM ( - 88 ) + 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(72\) / \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(72\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 35 * CAST ( NULL AS INTEGER ) AS col2, 72 / - COUNT ( * ) AS col2 query II rowsort label-7551 @@ -41339,7 +41339,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\(30\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -42003,7 +42003,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\(\*\) 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 @@ -43917,7 +43917,7 @@ SELECT + 78 * + + COUNT ( * ) - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1525 # Datafusion - Expected - -5370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(25\) AS col1" at position 0 and "\(\- CAST\(Int64\(78\) AS Int32\)\) \* Int64\(70\) \+ \(\- coalesce\(Int64\(\-90\), coalesce\(min\(DISTINCT Int64\(9\)\), Int64\(70\), \(\- Int64\(98\)\) \+ sum\(\(\- Int64\(\-4\)\)\) \+ \(\- Int64\(10\)\) \- Int64\(\-50\) \+ Int64\(65\) \+ count\(\*\) \+ Int64\(95\) \+ Int64\(59\) / Int64\(38\) \* Int64\(40\)\), count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(25\) AS col1" at position 0 and "\(\- CAST\(Int64\(78\) AS Int32\)\) \* Int64\(70\) \+ \(\- coalesce\(Int64\(\-90\), coalesce\(min\(DISTINCT Int64\(9\)\), Int64\(70\), \(\- Int64\(98\)\) \+ sum\(\(\- Int64\(\-4\)\)\) \+ \(\- Int64\(10\)\) \- Int64\(\-50\) \+ Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(95\) \+ Int64\(59\) / Int64\(38\) \* Int64\(40\)\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 61 * + 25 col1, - CAST ( + 78 AS INTEGER ) * + 70 + - COALESCE ( - 90, + COALESCE ( + MIN ( DISTINCT 9 ), 70, - + 98 + SUM ( + + ( - - 4 ) ) + + - ( 10 ) - - 50 + 65 + COUNT ( * ) + 95 + + 59 / + 38 * 40 ), COUNT ( * ) ) AS col1 query II rowsort label-8386 @@ -44209,7 +44209,7 @@ NULL # 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\(\-36\) \* Int64\(79\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-22\) \- Int64\(64\) / Int64\(84\) \* 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\(\-36\) \* Int64\(79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-22\) \- Int64\(64\) / Int64\(84\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / - 36 * 79 + + - COUNT ( * ) AS col0, - 22 - + 64 / + 84 * 6 AS col0 query I rowsort label-8442 @@ -44294,7 +44294,7 @@ SELECT + 17 AS col0, 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) / Int64\(\-87\) AS col0" at position 0 and "\(\- CASE Int64\(10\) WHEN Int64\(\-17\) THEN NULL WHEN \(\- count\(\*\)\) THEN Int64\(\-67\) 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\(59\)\) / Int64\(\-87\) AS col0" at position 0 and "\(\- CASE Int64\(10\) WHEN Int64\(\-17\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-67\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + + 59 ) / - 87 AS col0, - CASE + 10 WHEN - 17 THEN NULL WHEN - ( + COUNT ( * ) ) THEN - 67 ELSE NULL END AS col0 query I rowsort label-8458 @@ -45232,7 +45232,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\(\*\) 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 @@ -45453,7 +45453,7 @@ SELECT + CASE + - 56 WHEN + + 27 THEN NULL ELSE + 9 END AS col1 # Datafusion - Expected - -3861 # Datafusion - Expected - 42 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* count\(\*\) \* \(\- Int64\(\-39\)\) AS col1" at position 0 and "sum\(Int64\(84\)\) \+ \(\- 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\(\-99\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-39\)\) AS col1" at position 0 and "sum\(Int64\(84\)\) \+ \(\- Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 99 * + COUNT ( * ) * ( - - 39 ) col1, SUM ( ALL 84 ) + - + 42 AS col1, + - COUNT ( * ) + - 91 AS col0 query I rowsort @@ -45797,7 +45797,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\(\*\) 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: @@ -47531,7 +47531,7 @@ SELECT ALL - + 43 * + - 24 # Datafusion - Expected - -1 # Datafusion - Expected - 21 # Datafusion - Expected - 3149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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, + 67 * + + 47 AS col0 query I rowsort label-9071 @@ -48240,7 +48240,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\(56\)\)\) / count\(\*\) AS col0" at position 0 and "Int64\(47\) / count\(\*\) AS col0" at position 1 have 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 @@ -48360,7 +48360,7 @@ SELECT + 62 + - + 26 + - - COUNT ( * ) * - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(\-88\) / \(\- count\(\*\)\) \+ Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(\-88\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 71 col0, - 88 / - COUNT ( * ) + + 94 AS col0 query I rowsort label-9228 @@ -48977,7 +48977,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / \(\- Int64\(50\)\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(\-56\) / \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(50\)\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(\-56\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) / - + 50 AS col1, - ( + - CAST ( NULL AS INTEGER ) ) / - 56 / - - COUNT ( * ) col1 query I rowsort label-9347 @@ -50027,7 +50027,7 @@ SELECT ALL + 84 + 43 + + - COUNT ( DISTINCT 64 ) + - COALESCE ( + 16, CASE + 97 # 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\(16\) \+ Int64\(\-97\) \+ \(\- Int64\(\-8\)\) AS col0" at position 0 and "nullif\(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\(16\) \+ Int64\(\-97\) \+ \(\- Int64\(\-8\)\) AS col0" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(80\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 16 + - 97 + - - 8 col0, NULLIF ( + COUNT ( * ), + 80 ) AS col0 query I rowsort label-9550 @@ -50837,7 +50837,7 @@ SELECT - - 23 + + - MAX ( DISTINCT 16 ) col1, + COUNT ( * ) + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 714 # Datafusion - Expected - -17296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* Int64\(\-34\) \* Int64\(\-21\) AS col2" at position 0 and "Int64\(4\) \* count\(\*\) \* Int64\(47\) \* \(\- coalesce\(sum\(DISTINCT Int64\(92\)\), Int64\(99\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-34\) \* Int64\(\-21\) AS col2" at position 0 and "Int64\(4\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) \* \(\- coalesce\(sum\(DISTINCT Int64\(92\)\), Int64\(99\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) * - 34 * - 21 AS col2, 4 * + COUNT ( * ) * 47 * - COALESCE ( + SUM ( DISTINCT 92 ), 99 ) AS col2 query I rowsort label-9703 @@ -50854,7 +50854,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "CASE Int64\(8\) WHEN Int64\(99\) THEN \(\- \(\- Int64\(2\)\)\) WHEN Int64\(16\) \* Int64\(19\) THEN NULL END \* \(\- count\(\*\)\) \* Int64\(\-36\) \- Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "CASE Int64\(8\) WHEN Int64\(99\) THEN \(\- \(\- Int64\(2\)\)\) WHEN Int64\(16\) \* Int64\(19\) THEN NULL END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-36\) \- Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 42 ) AS col1, CASE 8 WHEN + 99 THEN - - ( 2 ) WHEN 16 * 19 THEN NULL END * + ( - COUNT ( * ) * - 36 ) - 91 AS col1 query I rowsort label-9706 diff --git a/data/sqlite/random/expr/slt_good_53.slt b/data/sqlite/random/expr/slt_good_53.slt index 40bcec0..1a13c6a 100644 --- a/data/sqlite/random/expr/slt_good_53.slt +++ b/data/sqlite/random/expr/slt_good_53.slt @@ -629,7 +629,7 @@ SELECT ALL + 66 * - + 87 + 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 0 -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\(91\) / 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\(87\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(91\) / Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 87 AS col0, - COUNT ( * ) + 91 / + 62 AS col0 query I rowsort label-113 @@ -2053,7 +2053,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\(\*\) AS col1" at position 1 have the 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 @@ -2324,7 +2324,7 @@ NULL # Datafusion - Expected - -57 # Datafusion - Expected - 2736 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \- \(\- Int64\(0\)\) \+ count\(\*\) \- Int64\(\-24\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \- \(\- Int64\(0\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-24\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 82 ) - - + 0 + COUNT ( * ) - - 24 AS col0, - 52 - + 34 * - 82, - 13 AS col0 query I rowsort @@ -2869,7 +2869,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\(\*\) AS col0" at position 1 have the 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 @@ -3200,7 +3200,7 @@ SELECT - - 25 * - + 86 + - CASE - 77 WHEN - 50 * - 24 + - 2 THEN NULL ELSE 40 EN # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -1712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(35\) / Int64\(\-2\) AS col0" at position 0 and "Int64\(26\) \* \(\- max\(Int64\(68\)\)\) \+ 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\(\*\)\) \+ Int64\(35\) / Int64\(\-2\) AS col0" at position 0 and "Int64\(26\) \* \(\- max\(Int64\(68\)\)\) \+ Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 35 / + ( + - 2 ) AS col0, ( + 26 ) * + - MAX ( + ( + + 68 ) ) + + 56 AS col0 query I rowsort @@ -3246,7 +3246,7 @@ SELECT ALL 14 * + + 18 + - - ( + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) / \(\- count\(\*\)\) \+ Int64\(29\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 51 / - COUNT ( * ) + + 29 col0, CAST ( NULL AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: @@ -4828,7 +4828,7 @@ SELECT DISTINCT 7 * COALESCE ( - + 73, - - 76 + - 53 ) AS col0, + COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 136 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- coalesce\(\(\- Int64\(94\)\), sum\(coalesce\(Int64\(86\), Int64\(\-89\) \* Int64\(\-66\) \+ Int64\(17\) / Int64\(92\), \(\- coalesce\(Int64\(45\), Int64\(\-8\), CAST\(Int64\(\-79\) AS Int32\) \+ Int64\(0\), Int64\(8\)\)\)\)\) \+ Int64\(41\)\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(22\)\) WHEN Int64\(27\) \* \(\- count\(\*\)\) THEN Int64\(\-79\) \- \(\- Int64\(45\)\) WHEN Int64\(92\) / Int64\(69\) \* Int64\(\-21\) THEN \(\- CAST\(Int64\(\-94\) AS Int32\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- coalesce\(\(\- Int64\(94\)\), sum\(coalesce\(Int64\(86\), Int64\(\-89\) \* Int64\(\-66\) \+ Int64\(17\) / Int64\(92\), \(\- coalesce\(Int64\(45\), Int64\(\-8\), CAST\(Int64\(\-79\) AS Int32\) \+ Int64\(0\), Int64\(8\)\)\)\)\) \+ Int64\(41\)\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(22\)\) WHEN Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-79\) \- \(\- Int64\(45\)\) WHEN Int64\(92\) / Int64\(69\) \* Int64\(\-21\) THEN \(\- CAST\(Int64\(\-94\) AS Int32\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 42 - + COALESCE ( - + 94, + SUM ( COALESCE ( 86, - 89 * - 66 + + + 17 / + + 92, - COALESCE ( 45, - 8, CAST ( - 79 AS INTEGER ) + + ( + 0 ), + 8 ) ) ) + + + 41 ) AS col1, + ( - + CASE - + 22 WHEN 27 * - COUNT ( * ) THEN - 79 - - + 45 WHEN + 92 / + + 69 * + - 21 THEN - CAST ( - 94 AS INTEGER ) END ) AS col1 query I rowsort @@ -6986,7 +6986,7 @@ SELECT ( - 44 ) / - - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(3\)\)\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(85\)\), Int64\(58\) \+ coalesce\(Int64\(41\) \+ Int64\(\-46\), coalesce\(\(\- Int64\(\-41\)\), Int64\(96\) \+ CASE \(\- count\(Int64\(\-22\)\)\) WHEN Int64\(\-96\) \+ coalesce\(count\(\*\) \+ count\(\*\) \* Int64\(73\), Int64\(30\) \* Int64\(97\) \- CAST\(NULL AS Int32\)\) THEN Int64\(94\) \+ Int64\(\-68\) ELSE Int64\(50\) END\), Int64\(34\) \* avg\(Int64\(34\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(3\)\)\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(85\)\), Int64\(58\) \+ coalesce\(Int64\(41\) \+ Int64\(\-46\), coalesce\(\(\- Int64\(\-41\)\), Int64\(96\) \+ CASE \(\- count\(Int64\(\-22\)\)\) WHEN Int64\(\-96\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(73\), Int64\(30\) \* Int64\(97\) \- CAST\(NULL AS Int32\)\) THEN Int64\(94\) \+ Int64\(\-68\) ELSE Int64\(50\) END\), Int64\(34\) \* avg\(Int64\(34\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( ( 3 ) ) AS col2, - NULLIF ( - + 85, 58 + COALESCE ( + 41 + - 46, COALESCE ( - ( - 41 ), 96 + CASE - COUNT ( ALL - 22 ) WHEN - 96 + + COALESCE ( + COUNT ( * ) + + COUNT ( * ) * 73, 30 * 97 - CAST ( NULL AS INTEGER ) ) THEN + 94 + - 68 ELSE 50 END ), 34 * AVG ( 34 ) ) ) AS col2 query I rowsort @@ -7113,7 +7113,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\(\*\) AS col1" at position 1 have the 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 @@ -8417,7 +8417,7 @@ SELECT 62 * - MIN ( + COALESCE ( + 42, - 63 ) ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col0" at position 0 and "count\(\*\) \* Int64\(\-11\) \+ \(\- count\(DISTINCT Int64\(44\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-11\) \+ \(\- count\(DISTINCT Int64\(44\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 6 AS col0, ( + + COUNT ( * ) ) * - 11 + - COUNT ( DISTINCT 44 ) AS col0 query II rowsort @@ -8928,7 +8928,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\(\*\) AS col0" at position 1 have the 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 @@ -9638,7 +9638,7 @@ SELECT DISTINCT - - 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 7350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "\(\- CASE Int64\(84\) WHEN Int64\(65\) \* count\(Int64\(36\)\) THEN count\(\*\) / Int64\(88\) WHEN Int64\(88\) THEN NULL ELSE Int64\(\-75\) END\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "\(\- CASE Int64\(84\) WHEN Int64\(65\) \* count\(Int64\(36\)\) THEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(88\) WHEN Int64\(88\) THEN NULL ELSE Int64\(\-75\) END\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 50 AS col0, - CASE + 84 WHEN + 65 * COUNT ( 36 ) THEN + COUNT ( * ) / ( + 88 ) WHEN + 88 THEN NULL ELSE - 75 END * + 98 col0 query I rowsort @@ -9970,7 +9970,7 @@ SELECT DISTINCT 52 * - + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1892 @@ -10195,7 +10195,7 @@ SELECT + 38 + + + 9 AS col1 # 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\(94\) \* Int64\(\-18\) \+ Int64\(56\) \* CASE Int64\(73\) WHEN Int64\(91\) THEN \(\- Int64\(\-62\)\) ELSE NULL END \* Int64\(82\) \+ Int64\(\-71\) \+ Int64\(\-48\) \+ \(\- count\(\*\)\) / Int64\(64\) \+ count\(Int64\(\-65\)\) \+ \(\- Int64\(\-26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "Int64\(94\) \* Int64\(\-18\) \+ Int64\(56\) \* CASE Int64\(73\) WHEN Int64\(91\) THEN \(\- Int64\(\-62\)\) ELSE NULL END \* Int64\(82\) \+ Int64\(\-71\) \+ Int64\(\-48\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(64\) \+ count\(Int64\(\-65\)\) \+ \(\- Int64\(\-26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 57 AS col0, 94 * - 18 + + 56 * + CASE 73 WHEN + 91 THEN - - 62 ELSE NULL END * + 82 + ( - 71 ) + - 48 + - COUNT ( * ) / 64 + + COUNT ( ALL + - 65 ) + - - 26 AS col0 query I rowsort @@ -10285,7 +10285,7 @@ SELECT ALL 48 - - - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\*\), \(\- CAST\(NULL AS Int32\)\)\) / Int64\(76\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(NULL AS Int32\)\)\) / Int64\(76\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) / + + 76 col2, 38 AS col2 query I rowsort label-1953 @@ -10749,7 +10749,7 @@ SELECT ALL + 23 * + + 17 * - 80 - - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1455 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-15\) \* 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\(90\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-15\) \* Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 90 - - COUNT ( * ) AS col1, - 15 * - 97 AS col1 query I rowsort label-2042 @@ -10775,7 +10775,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\(\*\) AS Int32\)" at position 0 and "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 @@ -12026,7 +12026,7 @@ SELECT - 31 + - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -4089 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(87\) \* 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\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(87\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 37 * - COUNT ( * ) AS col1, 87 * - 47 col1 query I rowsort @@ -12803,7 +12803,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL IS NULL THEN Int64\(80\) ELSE NULL END \* Int64\(12\) AS col2" at position 0 and "\(\- Int64\(\-98\)\) \+ Int64\(\-21\) \+ Int64\(70\) \+ \(\- count\(\*\)\) \+ \(\- coalesce\(Int64\(62\), Int64\(74\)\)\) \* count\(DISTINCT Int64\(24\)\) \* \(\- Int64\(\-65\)\) \* Int64\(\-95\) / Int64\(\-32\) \+ Int64\(\-33\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL IS NULL THEN Int64\(80\) ELSE NULL END \* Int64\(12\) AS col2" at position 0 and "\(\- Int64\(\-98\)\) \+ Int64\(\-21\) \+ Int64\(70\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(62\), Int64\(74\)\)\) \* count\(DISTINCT Int64\(24\)\) \* \(\- Int64\(\-65\)\) \* Int64\(\-95\) / Int64\(\-32\) \+ Int64\(\-33\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE WHEN NOT NULL IS NULL THEN 80 ELSE NULL END * 12 AS col2, - ( - 98 ) + + - 21 + + 70 + - + COUNT ( * ) + - COALESCE ( 62, + 74 ) * COUNT ( DISTINCT + 24 ) * - - 65 * - 95 / + - 32 + + ( - 33 ) * - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2432 @@ -12938,7 +12938,7 @@ SELECT 9 * - - 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6935 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(73\)\) \* Int64\(\-95\) AS col2" at position 0 and "nullif\(count\(\*\), Int64\(\-53\) \* \(\- \(\- coalesce\(Int64\(93\), count\(\*\) \* Int64\(33\) \* Int64\(80\), count\(\*\) \+ Int64\(33\) \* Int64\(58\) \* \(\- Int64\(41\)\) \* \(\- nullif\(Int64\(80\), Int64\(38\) \* nullif\(Int64\(91\), \(\- Int64\(\-41\)\) \- Int64\(\-76\)\) \* Int64\(\-91\) \- \(\- Int64\(\-42\)\) \+ Int64\(67\)\)\)\)\)\) \+ Int64\(16\) \+ \(\- nullif\(Int64\(\-9\), Int64\(77\) \* nullif\(Int64\(79\), \(\- coalesce\(Int64\(92\), \(\- \(\- count\(\*\)\)\)\)\) / Int64\(\-91\) \+ count\(\*\)\) \+ \(\- CAST\(Int64\(4\) \+ Int64\(16\) AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(73\)\) \* Int64\(\-95\) AS col2" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-53\) \* \(\- \(\- coalesce\(Int64\(93\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\) \* Int64\(80\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(33\) \* Int64\(58\) \* \(\- Int64\(41\)\) \* \(\- nullif\(Int64\(80\), Int64\(38\) \* nullif\(Int64\(91\), \(\- Int64\(\-41\)\) \- Int64\(\-76\)\) \* Int64\(\-91\) \- \(\- Int64\(\-42\)\) \+ Int64\(67\)\)\)\)\)\) \+ Int64\(16\) \+ \(\- nullif\(Int64\(\-9\), Int64\(77\) \* nullif\(Int64\(79\), \(\- coalesce\(Int64\(92\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) / Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(4\) \+ Int64\(16\) AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( + 73 ) * ( + - 95 ) AS col2, NULLIF ( + COUNT ( * ), - 53 * - - COALESCE ( + 93, COUNT ( * ) * + 33 * 80, COUNT ( * ) + 33 * + + 58 * + - ( + 41 ) * - NULLIF ( 80, + 38 * + NULLIF ( + 91, - - 41 - - 76 ) * + - 91 - - - 42 + 67 ) ) + 16 + - NULLIF ( - 9, + 77 * + ( + NULLIF ( 79, ( - COALESCE ( 92, - - COUNT ( * ) ) ) / - 91 + + COUNT ( * ) ) ) + - CAST ( 4 + 16 AS INTEGER ) ) ) AS col2 query I rowsort label-2457 @@ -13129,7 +13129,7 @@ SELECT ALL COUNT ( - 35 ), + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(\-60\)\) AS Int32\)\) \* Int64\(76\) \* Int64\(44\) \* \(\- sum\(DISTINCT Int64\(38\)\)\) \* \(\- CASE Int64\(54\) WHEN \(\- count\(\*\)\) THEN NULL WHEN CAST\(Int64\(\-60\) AS Float64\) THEN \(\- nullif\(Int64\(23\), \(\- Int64\(\-50\)\) / Int64\(\-42\)\)\) \* Int64\(17\) \+ \(\- coalesce\(Int64\(42\), Int64\(\-71\)\)\) \+ Int64\(81\) \* Int64\(\-50\) \* Int64\(\-85\) / Int64\(\-43\) WHEN Int64\(\-24\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(\-60\)\) AS Int32\)\) \* Int64\(76\) \* Int64\(44\) \* \(\- sum\(DISTINCT Int64\(38\)\)\) \* \(\- CASE Int64\(54\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN CAST\(Int64\(\-60\) AS Float64\) THEN \(\- nullif\(Int64\(23\), \(\- Int64\(\-50\)\) / Int64\(\-42\)\)\) \* Int64\(17\) \+ \(\- coalesce\(Int64\(42\), Int64\(\-71\)\)\) \+ Int64\(81\) \* Int64\(\-50\) \* Int64\(\-85\) / Int64\(\-43\) WHEN Int64\(\-24\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 AS col1, - CAST ( - - 60 AS INTEGER ) * + 76 * + 44 * - SUM ( DISTINCT 38 ) * - CASE 54 WHEN ( - COUNT ( * ) ) THEN NULL WHEN CAST ( + - 60 AS FLOAT8 ) THEN - + NULLIF ( + + 23, - - 50 / + - 42 ) * + 17 + + - COALESCE ( + 42, - 71 ) + 81 * + - 50 * - 85 / - 43 WHEN - 24 THEN NULL END AS col1 query I rowsort label-2494 @@ -13689,7 +13689,7 @@ SELECT DISTINCT - + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1327 # Datafusion - Expected - 7498 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(32\) \+ count\(\*\) \- Int64\(82\) AS col1" at position 0 and "nullif\(Int64\(95\), Int64\(\-86\)\) \* Int64\(78\) \+ 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\(44\) \* Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(82\) AS col1" at position 0 and "nullif\(Int64\(95\), Int64\(\-86\)\) \* Int64\(78\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 44 * + 32 + + COUNT ( * ) - + + 82 AS col1, + NULLIF ( ( + + 95 ), - 86 ) * + + 78 + + 88 AS col1 query I rowsort @@ -14030,7 +14030,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\(\*\) AS col0" at position 1 have the 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 @@ -14235,7 +14235,7 @@ SELECT DISTINCT - 89 * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(\*\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 AS col2, COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -16401,7 +16401,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\(\*\) 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 @@ -17109,7 +17109,7 @@ SELECT COUNT ( ALL + 29 ) * - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-86\)\) AS col1" at position 0 and "CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-86\)\) AS col1" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 + - - 86 AS col1, + CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) AS col1 query II rowsort @@ -18504,7 +18504,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\(\*\) 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 @@ -19134,7 +19134,7 @@ SELECT 40 AS col0, + 67 + - 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3440685 # Datafusion - Expected - 7830 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(\-85\) \* nullif\(Int64\(20\), Int64\(\-37\) \+ count\(\*\)\) \* nullif\(Int64\(\-92\), \(\- Int64\(61\)\) \* nullif\(Int64\(87\), \(\- Int64\(\-84\)\)\) \- Int64\(\-14\)\) \+ Int64\(79\) \* count\(\*\) \+ Int64\(\-97\) \* Int64\(2\) AS col2" at position 0 and "Int64\(93\) \* \(\- Int64\(\-85\)\) \+ \(\- count\(\*\)\) \* 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\(22\) \* Int64\(\-85\) \* nullif\(Int64\(20\), Int64\(\-37\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-92\), \(\- Int64\(61\)\) \* nullif\(Int64\(87\), \(\- Int64\(\-84\)\)\) \- Int64\(\-14\)\) \+ Int64\(79\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) \* Int64\(2\) AS col2" at position 0 and "Int64\(93\) \* \(\- Int64\(\-85\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 22 * - 85 * NULLIF ( 20, + - 37 + COUNT ( * ) ) * + NULLIF ( - 92, - + 61 * + + NULLIF ( 87, - - 84 ) - + + ( - 14 ) ) + 79 * COUNT ( * ) + + - 97 * 2 col2, 93 * - - 85 + + - COUNT ( * ) * + 75 AS col2 query I rowsort label-3642 @@ -19428,7 +19428,7 @@ SELECT COUNT ( + 70 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 732366 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* \(\- coalesce\(Int64\(\-61\), Int64\(\-72\) \* count\(\*\), Int64\(76\)\)\) \* Int64\(58\) \* Int64\(\-9\) 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\(\-23\) \* \(\- coalesce\(Int64\(\-61\), Int64\(\-72\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(76\)\)\) \* Int64\(58\) \* Int64\(\-9\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 * + - COALESCE ( - 61, - 72 * COUNT ( * ), 76 ) * + + 58 * - 9 AS col1, - 25 AS col1 query I rowsort @@ -19674,7 +19674,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\(\*\) AS col0" at position 1 have the 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 @@ -20029,7 +20029,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 196 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-37\)\) \+ Int64\(\-32\) \* \(\- max\(\(\- coalesce\(Int64\(\-5\), \(\- Int64\(53\)\) \* Int64\(78\) \* Int64\(48\)\)\)\)\) \* count\(\*\) \+ Int64\(39\) / Int64\(24\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(32\) \+ Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-37\)\) \+ Int64\(\-32\) \* \(\- max\(\(\- coalesce\(Int64\(\-5\), \(\- Int64\(53\)\) \* Int64\(78\) \* Int64\(48\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(39\) / Int64\(24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(32\) \+ Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 37 ) + + - 32 * - MAX ( - COALESCE ( - 5, - + 53 * + + 78 * + 48 ) ) * COUNT ( * ) + + 39 / 24 * - COUNT ( * ) AS col1, 32 + + 70 AS col1 query I rowsort @@ -20076,7 +20076,7 @@ SELECT ALL + ( + 96 ) * - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6566 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(67\) \* \(\- count\(\*\)\) \* Int64\(98\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* 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 + + COUNT ( * ) * + 67 * - + COUNT ( * ) * + 98 AS col1, - COUNT ( * ) col1 query I rowsort @@ -20501,7 +20501,7 @@ SELECT - NULLIF ( + - 23, + CASE - 92 WHEN COALESCE ( + 18, + SUM ( - 23 ) ) THE # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(\-85\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(\-85\) \+ \(\- 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, - 85 + - COUNT ( * ) AS col1 query I rowsort label-3900 @@ -21052,7 +21052,7 @@ SELECT ALL - - 85 + + 36 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8618 # Datafusion - Expected - 127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- Int64\(\-96\)\)\) AS Int32\) \* \(\- Int64\(\-89\)\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(13\) \* count\(\*\) \+ Int64\(57\) \+ Int64\(10\) \+ min\(Int64\(47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- Int64\(\-96\)\)\) AS Int32\) \* \(\- Int64\(\-89\)\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(57\) \+ Int64\(10\) \+ min\(Int64\(47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - ( - - 96 ) AS INTEGER ) * - - 89 + - + 74 AS col0, + 13 * + COUNT ( * ) + + 57 + + 10 + + MIN ( ( 47 ) ) AS col0 query I rowsort @@ -23000,7 +23000,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3588 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* count\(\*\) \* Int64\(\-39\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-39\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 92 * COUNT ( * ) * + - 39 AS col1, + 5 AS col1 query I rowsort @@ -23243,7 +23243,7 @@ SELECT + + 69, - 71 AS col2 # 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\(\*\)\) AS col0" at position 1 have the 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 ALL + 13 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -24797,7 +24797,7 @@ SELECT ALL - 45 AS col1, - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -2804 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- coalesce\(count\(\*\), Int64\(\-19\)\)\) AS col1" at position 0 and "Int64\(39\) \+ Int64\(81\) \+ Int64\(\-43\) \* 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\(92\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-19\)\)\) AS col1" at position 0 and "Int64\(39\) \+ Int64\(81\) \+ Int64\(\-43\) \* Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 * - + COALESCE ( + COUNT ( * ), - 19 ) col1, + 39 + + 81 + - 43 * 68 col1 query I rowsort label-4715 @@ -25696,7 +25696,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\(\*\) AS col2" at position 0 and "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 @@ -28550,7 +28550,7 @@ SELECT + 52 AS col1, 89 + + 47 # Datafusion - Expected - 75 # Datafusion - Expected - 1 # 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\(\*\)\) 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, COUNT ( * ) - + CAST ( - 24 AS INTEGER ) / - + 29 * - - 87 AS col0, - COUNT ( * ) AS col1 query II rowsort @@ -29064,7 +29064,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\(\*\) AS col2" at position 1 have the 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 @@ -29526,7 +29526,7 @@ SELECT NULLIF ( - 8, - CASE + 88 WHEN + SUM ( 81 ) THEN NULL WHEN - + 55 * - - 2 # Datafusion - Expected - -16 # Datafusion - Expected - -1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(max\(Int64\(\-16\)\), count\(\*\)\) AS col1" at position 0 and "Int64\(0\) \* Int64\(4\) 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\(max\(Int64\(\-16\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(0\) \* Int64\(4\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( MAX ( - 16 ), + COUNT ( * ) ) col1, + 49 / COALESCE ( - 28, 73, + 91, + 60 ) * - - CAST ( + + COUNT ( * ) AS INTEGER ), - 0 * + 4 AS col1 query I rowsort label-5618 @@ -30359,7 +30359,7 @@ SELECT 6 + + 70 + 59 / + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 3876 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "max\(Int64\(\-76\)\) \* Int64\(\-51\) \+ count\(\*\) / \(\- \(\- CAST\(Int64\(32\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "max\(Int64\(\-76\)\) \* Int64\(\-51\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(Int64\(32\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 49 AS col2, MAX ( - 76 ) * + - 51 + + COUNT ( * ) / - - CAST ( 32 AS INTEGER ) AS col2 query I rowsort label-5778 @@ -30370,7 +30370,7 @@ SELECT DISTINCT 26 / 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(43\) \+ \(\- count\(\*\)\) / Int64\(26\) AS col1" at position 0 and "Int64\(30\) \+ 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\(32\) \+ Int64\(43\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(26\) AS col1" at position 0 and "Int64\(30\) \+ Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 32 + 43 + - + COUNT ( * ) / 26 AS col1, 30 + - 87 AS col1 query I rowsort @@ -30580,7 +30580,7 @@ SELECT + MIN ( 3 ) + - - 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 429 # Datafusion - Expected - -597 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-84\)\)\) \- Int64\(27\) \* Int64\(\-19\) AS col0" at position 0 and "Int64\(15\) \* Int64\(\-41\) \- count\(\*\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-84\)\)\) \- Int64\(27\) \* Int64\(\-19\) AS col0" at position 0 and "Int64\(15\) \* Int64\(\-41\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + ( - - 84 ) ) - 27 * - 19 AS col0, 15 * - 41 - + + COUNT ( * ) * + - 18 AS col0 query I rowsort label-5819 @@ -30964,7 +30964,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\(\*\) 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 @@ -31099,7 +31099,7 @@ SELECT COALESCE ( - 96, + 28 + + 52 ) + + 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* max\(Int64\(5\)\) AS col2" at position 0 and "nullif\(\(\- Int64\(17\)\), 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 "Int64\(21\) \* max\(Int64\(5\)\) AS col2" at position 0 and "nullif\(\(\- Int64\(17\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 21 * MAX ( 5 ) AS col2, ( + + NULLIF ( + - ( 17 ), COUNT ( * ) * 21 ) ) col2 query II rowsort @@ -32025,7 +32025,7 @@ SELECT + 51 * - 5 AS col0 # 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 "count\(\*\) \* \(\- Int64\(73\)\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(30\) \* \(\- 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\(\*\) \* \(\- Int64\(73\)\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(30\) \* \(\- Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - ( 73 ) AS col1, CAST ( NULL AS FLOAT8 ) * 30 * + ( - + 71 ) col1 query I rowsort @@ -32063,7 +32063,7 @@ SELECT ALL 93 * 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 query I rowsort @@ -33996,7 +33996,7 @@ SELECT DISTINCT ( + 40 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-41\)\) WHEN \(\- count\(\*\)\) THEN Int64\(32\) ELSE NULL END / Int64\(\-8\) 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 "CASE \(\- Int64\(\-41\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(32\) ELSE NULL END / Int64\(\-8\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE - - 41 WHEN - COUNT ( * ) THEN + + 32 ELSE NULL END / - 8 AS col0, + 17 AS col0 query I rowsort @@ -34048,7 +34048,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(\-91\) / count\(\*\) \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(\-91\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 AS col2, - 91 / COUNT ( * ) + - 13 AS col2 query I rowsort @@ -36410,7 +36410,7 @@ SELECT ALL + - 29 AS col1, - 55 * - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 33 -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\(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\(58\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 58 col0, COUNT ( * ) * 33 AS col0 query I rowsort label-6939 @@ -37113,7 +37113,7 @@ SELECT ( + MIN ( DISTINCT + + 25 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -975 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- count\(DISTINCT Int64\(38\)\)\) AS col0" at position 0 and "Int64\(25\) \* \(\- count\(\*\)\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- count\(DISTINCT Int64\(38\)\)\) AS col0" at position 0 and "Int64\(25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 24 * - + COUNT ( DISTINCT 38 ) AS col0, 25 * + - COUNT ( * ) * + 39 AS col0 query I rowsort label-7074 @@ -37498,7 +37498,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\(\*\) 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 @@ -38165,7 +38165,7 @@ SELECT COUNT ( * ) * + 93 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(15\) \+ \(\- count\(\*\)\) \* \(\- nullif\(Int64\(1\), Int64\(50\)\)\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(1\), Int64\(50\)\)\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - CAST ( NULL AS INTEGER ) ) + + 15 + + - COUNT ( * ) * - NULLIF ( + + 1, 50 ) col2, - 63 AS col2 query I rowsort label-7274 @@ -39452,7 +39452,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\(\*\) AS col0" at position 1 have the 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 @@ -39619,7 +39619,7 @@ SELECT ALL + + 13 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 "\(\- CASE Int64\(41\) WHEN \(\- CASE Int64\(93\) WHEN \(\- Int64\(73\)\) THEN Int64\(88\) \* \(\- Int64\(76\)\) \+ Int64\(46\) ELSE NULL END\) THEN NULL WHEN Int64\(\-94\) THEN NULL ELSE Int64\(\-33\) END\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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\(41\) WHEN \(\- CASE Int64\(93\) WHEN \(\- Int64\(73\)\) THEN Int64\(88\) \* \(\- Int64\(76\)\) \+ Int64\(46\) ELSE NULL END\) THEN NULL WHEN Int64\(\-94\) THEN NULL ELSE Int64\(\-33\) 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 ALL + - CASE + 41 WHEN + - CASE + 93 WHEN - ( + 73 ) THEN + 88 * + + ( - + 76 ) + 46 ELSE NULL END THEN NULL WHEN - 94 THEN NULL ELSE - 33 END col0, - COUNT ( * ) AS col0 query I rowsort label-7552 @@ -39677,7 +39677,7 @@ SELECT ALL + NULLIF ( - CAST ( ( - - COUNT ( * ) ) AS INTEGER ), + 1 * - 5 + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(6\)\) AS Int32\)\) \+ Int64\(80\) AS col1" at position 0 and "count\(\*\) \+ sum\(DISTINCT Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(6\)\) AS Int32\)\) \+ Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ sum\(DISTINCT Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - + 6 AS INTEGER ) + + 80 AS col1, COUNT ( * ) + + SUM ( DISTINCT + - 24 ) col1 query I rowsort label-7563 @@ -40098,7 +40098,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\(\*\) AS col2" at position 0 and "Int64\(18\) \* \(\- CASE Int64\(\-45\) WHEN Int64\(47\) THEN count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(14\) \+ \(\- \(\- 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 @@ -40164,7 +40164,7 @@ SELECT - 99 * - 33 - + ( + NULLIF ( - 50, 16 * - CASE - 19 WHEN + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) \* count\(\*\) \+ count\(Int64\(\-78\)\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(21\) / Int64\(\-51\) \* Int64\(\-62\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(\-78\)\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(21\) / Int64\(\-51\) \* Int64\(\-62\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 32 * COUNT ( * ) + + COUNT ( + - 78 ) + + 62 AS col2, 21 / - 51 * - 62 * + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -41417,7 +41417,7 @@ SELECT ( - - 31 ) + 1 AS col2 # 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 "\(\- CASE Int64\(6\) WHEN Int64\(66\) THEN CASE avg\(Int64\(\-97\)\) WHEN count\(\*\) \* Int64\(68\) THEN Int64\(12\) 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\(\-28\) AS col2" at position 0 and "\(\- CASE Int64\(6\) WHEN Int64\(66\) THEN CASE avg\(Int64\(\-97\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(68\) THEN Int64\(12\) END ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 AS col2, - CASE 6 WHEN 66 THEN + CASE AVG ( ALL - 97 ) WHEN COUNT ( * ) * 68 THEN 12 END ELSE NULL END AS col2 query I rowsort @@ -42764,7 +42764,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\(\*\) AS col0" at position 1 have the 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 @@ -43042,7 +43042,7 @@ SELECT - 3 + - - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(10\) / \(\- CASE Int64\(4\) WHEN \(\- count\(\*\)\) THEN NULL ELSE \(\- max\(Int64\(\-34\)\)\) \* Int64\(\-7\) END\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(10\) / \(\- CASE Int64\(4\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE \(\- max\(Int64\(\-34\)\)\) \* Int64\(\-7\) END\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 81 AS col2, 10 / - + CASE + 4 WHEN + ( - COUNT ( * ) ) THEN NULL ELSE - MAX ( - 34 ) * - 7 END + + 88 AS col2 query I rowsort @@ -44030,7 +44030,7 @@ SELECT 77 + + 99 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\(23\) \+ Int64\(\-80\) AS col1" at position 0 and "count\(\*\) / 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\(23\) \+ Int64\(\-80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 + - 80 AS col1, COUNT ( * ) / + + 71 AS col1 query I rowsort @@ -45161,13 +45161,13 @@ SELECT DISTINCT - 35 / + - SUM ( ALL - 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -8190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(26\) AS col2" at position 0 and "Int64\(\-90\) \* 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\(\*\) / Int64\(26\) AS col2" at position 0 and "Int64\(\-90\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / 26 AS col2, - 90 * + 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 18 * - COUNT ( * ) AS col1, 28 AS col1 query II rowsort @@ -45865,7 +45865,7 @@ SELECT ALL + 1 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "nullif\(\(\- Int64\(14\)\), \(\- count\(\*\)\)\) AS col1" at position 1 have the 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 "nullif\(\(\- Int64\(14\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 AS col1, NULLIF ( - + 14, - + COUNT ( * ) ) AS col1 query II rowsort label-8747 @@ -47301,7 +47301,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\(\*\) AS col2" at position 1 have the 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 @@ -47663,7 +47663,7 @@ SELECT ALL 33 - + 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-10\)\) \* count\(\*\) \+ Int64\(72\) AS col1" at position 0 and "\(\- coalesce\(Int64\(43\), \(\- Int64\(98\)\) \* Int64\(\-89\) \* 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\(\-10\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) AS col1" at position 0 and "\(\- coalesce\(Int64\(43\), \(\- Int64\(98\)\) \* Int64\(\-89\) \* Int64\(27\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - 10 ) * + + COUNT ( * ) + + + 72 col1, - COALESCE ( + 43, - + 98 * - 89 * 27 ) AS col1 query I rowsort @@ -48116,7 +48116,7 @@ SELECT DISTINCT + 14 + + 89 * 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(60\)\) AS col0" at position 0 and "count\(\*\) \+ Int64\(0\) \- Int64\(\-56\) \+ Int64\(\-35\) \+ 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 "sum\(Int64\(60\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(0\) \- Int64\(\-56\) \+ Int64\(\-35\) \+ Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + SUM ( 60 ) AS col0, COUNT ( * ) + + 0 - - 56 + + - 35 + + 24 AS col0 query I rowsort @@ -48344,7 +48344,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\(\*\) 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 @@ -48636,7 +48636,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\(\*\)\) \* \(\- min\(Int64\(26\)\)\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(\-44\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -49076,7 +49076,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\(\*\) \* count\(\*\) AS col0" at position 1 have 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 @@ -50304,7 +50304,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\(\*\) AS col2" at position 1 have the 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 @@ -50476,7 +50476,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\(\*\) 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 @@ -50809,7 +50809,7 @@ SELECT DISTINCT + 0 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 "coalesce\(Int64\(8\), Int64\(\-98\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(8\), Int64\(\-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 + COALESCE ( 8, - 98 ) AS col2, - COUNT ( * ) AS col2 query I rowsort label-9694 diff --git a/data/sqlite/random/expr/slt_good_54.slt b/data/sqlite/random/expr/slt_good_54.slt index bcaa13b..1851dd7 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\(\*\) 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 @@ -718,7 +718,7 @@ SELECT ALL - + NULLIF ( 24, + - 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COALESCE ( 52, - - COUNT ( * ) * + 73 ) AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) col0 query I rowsort label-133 @@ -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\(\*\)\) AS col1" at position 0 and "count\(\*\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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\(\*\) AS col0" at position 1 have the 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 @@ -3319,7 +3319,7 @@ SELECT - COUNT ( - 87 ) # 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\(\*\)\) 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 "\(\- 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 ALL - COUNT ( * ) AS col2, - 21 AS col2 query I rowsort label-637 @@ -5099,7 +5099,7 @@ SELECT DISTINCT + COUNT ( * ) * - 4 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + COUNT ( * ) query I rowsort @@ -6950,7 +6950,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -7947,7 +7947,7 @@ SELECT - 16 * 64 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) query I rowsort label-1536 @@ -10388,7 +10388,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\(\*\) 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 @@ -10821,7 +10821,7 @@ SELECT ALL 10 * - - 80 # 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 query I rowsort label-2100 @@ -13443,7 +13443,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\(\*\) AS col1" at position 1 have the 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 @@ -15200,7 +15200,7 @@ SELECT ALL 59 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(0\) \+ \(\- Int64\(\-53\)\) 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\(\*\) \* Int64\(0\) \+ \(\- Int64\(\-53\)\) 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 ( * ) * ( + + 0 ) + - - 53 AS col1, - 32 AS col1 query I rowsort @@ -16335,7 +16335,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\(\*\) AS col1" at position 1 have 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 @@ -16618,7 +16618,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\(\*\) 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 @@ -17654,7 +17654,7 @@ SELECT ALL + MIN ( - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 query I rowsort label-3429 @@ -17715,7 +17715,7 @@ SELECT + + 54 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), COUNT ( * ) query I rowsort @@ -18588,7 +18588,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\(\*\) AS col0" at position 0 and "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 @@ -18790,7 +18790,7 @@ SELECT ALL - 58 * - + ( - 8 ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(Int64\(50\)\)\)\) AS col2" at position 0 and "count\(\*\) \* 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 "\(\- \(\- sum\(Int64\(50\)\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - SUM ( + 50 ) AS col2, + ( + COUNT ( * ) ) * - 7 AS col2 query I rowsort @@ -18811,7 +18811,7 @@ SELECT ALL - 22 * - - 94 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\(\*\)\) AS col0" at position 0 and "max\(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 "max\(Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, + MAX ( ALL - 47 ) AS col0 query I rowsort @@ -20016,7 +20016,7 @@ SELECT + 67 AS col0, 91 # 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\(\*\)\) 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 query I rowsort @@ -21024,7 +21024,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\(\*\) 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 @@ -21291,7 +21291,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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -21680,7 +21680,7 @@ SELECT 1 * 78 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, 1 AS col2 query I rowsort @@ -21906,7 +21906,7 @@ SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * - - ( + 73 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-93\) 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\(1\)\) AS count\(\*\) \+ Int64\(\-93\) 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 ( * ) + - 93 AS col1, - 89 AS col1 query I rowsort label-4252 @@ -22081,7 +22081,7 @@ SELECT + 34 + + MIN ( + 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 36 AS col1 query I rowsort @@ -23399,7 +23399,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\(\*\) AS col2" at position 1 have the 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 @@ -24244,7 +24244,7 @@ SELECT - ( - 87 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / \(\- sum\(Int64\(\-90\)\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / \(\- sum\(Int64\(\-90\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 95 ) / - SUM ( - 90 ) * - COUNT ( * ) col0, + 99 + 53 AS col0 query I rowsort @@ -24426,7 +24426,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\(\*\) AS col1" at position 1 have the 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 @@ -24437,7 +24437,7 @@ SELECT DISTINCT - 89 / + ( + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 75 AS col0, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -24557,7 +24557,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\(\*\) 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 @@ -27951,7 +27951,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -29075,7 +29075,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\(\*\) 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 @@ -29421,7 +29421,7 @@ SELECT ALL - 78 + - CAST ( - - COUNT ( * ) AS INTEGER ) - - 70 AS 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\(19\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "\(\- count\(DISTINCT 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\(19\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "\(\- count\(DISTINCT Int64\(95\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 + - - COUNT ( * ) AS col1, - COUNT ( DISTINCT + 95 ) AS col1 query I rowsort label-5707 @@ -29879,7 +29879,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -30325,7 +30325,7 @@ SELECT ALL - 57 + + + ( + 62 ) AS col2 # 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\(\*\)\) 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 query I rowsort label-5883 @@ -31852,7 +31852,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\(\*\) 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 @@ -32909,7 +32909,7 @@ SELECT 61 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / \(\- CAST\(NULL AS Float64\)\) 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\(\*\)\) / \(\- CAST\(NULL AS Float64\)\) 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 ( * ) / + - CAST ( NULL AS FLOAT8 ) AS col0, 42 AS col0 query I rowsort label-6384 @@ -33869,7 +33869,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -34589,7 +34589,7 @@ SELECT DISTINCT - - ( 43 ) # 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\(\*\)\) 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 query II rowsort @@ -36215,7 +36215,7 @@ SELECT + 20 * + + ( 23 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int32\) \+ count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( + ( - + 95 ) ) AS col0, 91 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + + 67 AS col0 query II rowsort @@ -36800,7 +36800,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\(\*\) 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 @@ -38252,7 +38252,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\(\*\) AS col1" at position 1 have the 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 @@ -38990,7 +38990,7 @@ SELECT - COUNT ( + + ( 10 ) ) AS col2 # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 - - ( + 35 ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-7560 @@ -39313,7 +39313,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -39399,7 +39399,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\(\*\) 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 @@ -41722,7 +41722,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\(\*\) AS col0" at position 1 have the 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 @@ -44367,7 +44367,7 @@ SELECT DISTINCT MAX ( 94 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-11\)\) \- CASE Int64\(5\) WHEN \(\- count\(\*\)\) THEN Int64\(\-22\) ELSE NULL END AS col0" at position 0 and "min\(\(\- Int64\(47\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-11\)\) \- CASE Int64\(5\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-22\) ELSE NULL END AS col0" at position 0 and "min\(\(\- Int64\(47\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( DISTINCT - 11 ) - + CASE 5 WHEN - + COUNT ( * ) THEN + - 22 ELSE NULL END col0, + MIN ( + - ( + 47 ) ) AS col0 query I rowsort label-8600 @@ -45255,7 +45255,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\(\*\) 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 @@ -47379,7 +47379,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\(\*\) AS col1" at position 1 have the 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 @@ -47400,7 +47400,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -47490,7 +47490,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\(\*\) AS col1" at position 1 have the 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 @@ -47843,7 +47843,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\(\*\) AS col2" at position 1 have the 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 d7e80fe..1da4761 100644 --- a/data/sqlite/random/expr/slt_good_55.slt +++ b/data/sqlite/random/expr/slt_good_55.slt @@ -919,7 +919,7 @@ SELECT 11 + - 41 # Datafusion - Expected - 6103 # Datafusion - Expected - 10 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* Int64\(\-66\) \+ Int64\(31\) AS col2" at position 0 and "Int64\(41\) \+ \(\- \(\- \(\- 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\(\-92\) \* Int64\(\-66\) \+ Int64\(31\) AS col2" at position 0 and "Int64\(41\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 * + - 66 + + 31 AS col2, ( - CASE - 28 WHEN + 3 - + COUNT ( * ) * + 92 + - 36 THEN - + 82 WHEN + 89 + - 97 THEN NULL ELSE - + 10 END ), + 41 + - ( - - COUNT ( * ) ) AS col2 query I rowsort label-168 @@ -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\(\*\) AS col2" at position 1 have the 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 @@ -2758,7 +2758,7 @@ SELECT 89 * - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-55\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-55\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 col1, - 55 + - COUNT ( * ) AS col1 query I rowsort label-519 @@ -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\(\*\) AS col2" at position 1 have the 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 @@ -3299,7 +3299,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 col0" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 col0, - ( + - COUNT ( * ) ) AS col0 query I rowsort label-623 @@ -4098,7 +4098,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\(\*\) AS col2" at position 1 have the 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 @@ -6363,7 +6363,7 @@ SELECT + + 43 - - - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(NULL AS Int32\) \* \(\- CAST\(\(\- coalesce\(Int64\(11\), \(\- CASE avg\(DISTINCT Int64\(67\)\) WHEN Int64\(54\) \* min\(Int64\(81\)\) \- Int64\(43\) THEN NULL WHEN Int64\(42\) \- Int64\(79\) THEN Int64\(67\) / avg\(Int64\(\-5\)\) ELSE NULL END\) \+ coalesce\(Int64\(44\) \+ Int64\(59\) \* \(\- sum\(Int64\(32\)\)\), count\(\*\)\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(NULL AS Int32\) \* \(\- CAST\(\(\- coalesce\(Int64\(11\), \(\- CASE avg\(DISTINCT Int64\(67\)\) WHEN Int64\(54\) \* min\(Int64\(81\)\) \- Int64\(43\) THEN NULL WHEN Int64\(42\) \- Int64\(79\) THEN Int64\(67\) / avg\(Int64\(\-5\)\) ELSE NULL END\) \+ coalesce\(Int64\(44\) \+ Int64\(59\) \* \(\- sum\(Int64\(32\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 64 AS col1, + 75 * CAST ( NULL AS INTEGER ) * - CAST ( - COALESCE ( 11, - CASE AVG ( DISTINCT 67 ) WHEN 54 * MIN ( ALL + 81 ) - 43 THEN NULL WHEN 42 - + 79 THEN 67 / + AVG ( ALL - 5 ) ELSE NULL END + + COALESCE ( 44 + 59 * - SUM ( + 32 ), + COUNT ( * ) ) ) AS INTEGER ) AS col1 query I rowsort label-1208 @@ -7268,7 +7268,7 @@ SELECT - 71 - + 22 * + 81 + 29 - + 5 + - + 54 / + 94 + + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "CASE count\(\*\) WHEN \(\- Int64\(90\)\) THEN NULL ELSE Int64\(10\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(90\)\) THEN NULL ELSE Int64\(10\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 23 AS col2, + CASE COUNT ( * ) WHEN - + 90 THEN NULL ELSE 10 END col2 query II rowsort @@ -8267,7 +8267,7 @@ SELECT + 45 col1, + 98 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(46\) \+ Int64\(52\) AS col1" at position 0 and "count\(\*\) \* \(\- max\(DISTINCT Int64\(\-23\)\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(46\) \+ Int64\(52\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(DISTINCT Int64\(\-23\)\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / 46 + 52 AS col1, + COUNT ( * ) * + - MAX ( DISTINCT - 23 ) + + 60 AS col1 query I rowsort label-1570 @@ -8316,7 +8316,7 @@ SELECT ALL - 44 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(10\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(10\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( 10 ) AS col0, COUNT ( * ) * 18 col0 query I rowsort label-1579 @@ -8764,7 +8764,7 @@ SELECT DISTINCT 72 + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* \(\- count\(\*\)\) \+ Int64\(45\) \+ Int64\(23\) \+ Int64\(31\) \+ Int64\(80\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(45\) \+ Int64\(23\) \+ Int64\(31\) \+ Int64\(80\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 77 * - + COUNT ( * ) + 45 + 23 + 31 + 80 + + CAST ( NULL AS INTEGER ) col2, 35 AS col2 query II rowsort @@ -9979,7 +9979,7 @@ SELECT ALL - + 24 / 14 # 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\(DISTINCT Int64\(11\)\)\)\) \+ \(\- 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\(DISTINCT Int64\(11\)\)\)\) \+ \(\- 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 - - COUNT ( DISTINCT 11 ) + - COUNT ( * ) AS col1, + 21 AS col1 query I rowsort @@ -10922,7 +10922,7 @@ SELECT ALL - 20 + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7764 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(84\) \+ Int64\(36\) AS col0" at position 0 and "Int64\(\-15\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(84\) \+ Int64\(36\) 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 + + 92 * + 84 + + 36 AS col0, - 15 * - COUNT ( * ) AS col0 query I rowsort label-2075 @@ -11910,7 +11910,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\(\*\) AS col1" at position 1 have the 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 @@ -13229,7 +13229,7 @@ SELECT ALL - 64 * + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(73\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "CAST\(nullif\(Int64\(15\), Int64\(\-67\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(73\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "CAST\(nullif\(Int64\(15\), Int64\(\-67\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) - 73 + - - 57 AS col1, CAST ( + NULLIF ( 15, - 67 ) AS INTEGER ) AS col1 query I rowsort @@ -13582,7 +13582,7 @@ SELECT ALL - COALESCE ( + 61, + 58 + + + 79, - + 18 + COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(91\) / \(\- Int64\(19\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ sum\(DISTINCT Int64\(22\)\) \- \(\- Int64\(\-79\)\) \+ \(\- 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\(0\) \* Int64\(91\) / \(\- Int64\(19\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(DISTINCT Int64\(22\)\) \- \(\- Int64\(\-79\)\) \+ \(\- Int64\(90\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 0 * 91 / - ( 19 ) AS col0, - COUNT ( * ) + + ( + SUM ( DISTINCT + 22 ) ) - - - 79 + - + 90 AS col0 # Datafusion - Datafusion expected results: @@ -13891,7 +13891,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\(\*\) 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: @@ -15240,7 +15240,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\(\*\) 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 @@ -16169,7 +16169,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -16317,7 +16317,7 @@ SELECT + 30 - + + 58 AS col0, 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-1\), \(\- count\(\*\)\)\)\) \* Int64\(91\) 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 "\(\- nullif\(Int64\(\-1\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(91\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( + - 1, - COUNT ( * ) ) * + 91 AS col2, ( + - 0 ) col2 query I rowsort label-3109 @@ -16599,7 +16599,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\(\*\) 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 @@ -16980,7 +16980,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\(\*\) 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 @@ -17337,7 +17337,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\(\*\) AS col0" at position 1 have the 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 @@ -19000,7 +19000,7 @@ SELECT 99 * + 1 + ( + 44 ) + + NULLIF ( - 73, ( - 59 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(NULL AS Int32\), Int64\(55\) \* Int64\(\-38\) \+ Int64\(10\) \+ avg\(Int64\(48\)\) \* Int64\(\-95\) \* \(\- Int64\(\-62\)\)\) \* nullif\(count\(\*\), \(\- Int64\(53\)\) \* \(\- Int64\(\-11\)\)\) AS col2" at position 0 and "\(\- Int64\(23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(NULL AS Int32\), Int64\(55\) \* Int64\(\-38\) \+ Int64\(10\) \+ avg\(Int64\(48\)\) \* Int64\(\-95\) \* \(\- Int64\(\-62\)\)\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(53\)\) \* \(\- Int64\(\-11\)\)\) AS col2" at position 0 and "\(\- Int64\(23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), 55 * - 38 + + 10 + AVG ( 48 ) * + - 95 * - - 62 ) * NULLIF ( + COUNT ( * ), + - ( + 53 ) * - - 11 ) AS col2, - ( + 23 ) AS col2 query II rowsort label-3620 @@ -19320,7 +19320,7 @@ SELECT DISTINCT ( - 25 ) * + 71 AS col0 # Datafusion - Expected - 89 # Datafusion - Expected - 16 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) AS col0" at position 0 and "Int64\(17\) / count\(\*\) \- \(\- Int64\(\-36\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) AS col0" at position 0 and "Int64\(17\) / count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-36\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 89 col0, - 25 + - 13 / + 22 + + 75 + CAST ( + - 34 AS INTEGER ) AS col2, + + 17 / COUNT ( * ) - - - 36 AS col0 query I rowsort label-3682 @@ -19944,7 +19944,7 @@ SELECT DISTINCT - CASE + 28 WHEN + COUNT ( * ) * + 81 THEN NULL ELSE 87 END # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ Int64\(\-41\) \+ CASE \(\- Int64\(44\)\) WHEN \(\- count\(\*\)\) \+ Int64\(4\) \* Int64\(78\) / Int64\(58\) \* Int64\(\-46\) \* nullif\(\(\- Int64\(\-51\)\), Int64\(\-24\)\) \* Int64\(89\) \+ \(\- Int64\(\-52\)\) \+ avg\(Int64\(25\)\) \* Int64\(\-59\) \- Int64\(6\) \* Int64\(67\) THEN \(\- Int64\(54\)\) END \* \(\- Int64\(59\)\) AS col2" at position 0 and "Int64\(97\) / 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 "Int64\(\-41\) \+ Int64\(\-41\) \+ CASE \(\- Int64\(44\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(4\) \* Int64\(78\) / Int64\(58\) \* Int64\(\-46\) \* nullif\(\(\- Int64\(\-51\)\), Int64\(\-24\)\) \* Int64\(89\) \+ \(\- Int64\(\-52\)\) \+ avg\(Int64\(25\)\) \* Int64\(\-59\) \- Int64\(6\) \* Int64\(67\) THEN \(\- Int64\(54\)\) END \* \(\- Int64\(59\)\) AS col2" at position 0 and "Int64\(97\) / Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 41 + - 41 + + CASE - + 44 WHEN - COUNT ( * ) + + 4 * + 78 / + 58 * - 46 * NULLIF ( - - 51, - 24 ) * + 89 + - ( - 52 ) + + + AVG ( 25 ) * - 59 - + 6 * + + 67 THEN - + 54 END * - ( 59 ) AS col2, 97 / + 1 AS col2 query I rowsort @@ -20318,7 +20318,7 @@ SELECT ALL + - 63 AS col2 # Datafusion - Expected - 30 # Datafusion - Expected - NULL # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-30\) AS col2" at position 0 and "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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\) AS col2" at position 0 and "Int64\(\-50\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - 30 AS col2, - 41 + + + CASE + 89 WHEN 38 * + - AVG ( + 22 ) THEN MAX ( ALL + 56 ) END, - 50 AS col2 query I rowsort label-3872 @@ -21390,7 +21390,7 @@ SELECT COALESCE ( + - MIN ( - 41 ), - COUNT ( * ) * - COALESCE ( - 50, 6 * + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-19\)\) \+ Int64\(\-34\) \+ Int64\(\-34\) AS col1" at position 0 and "\(\- count\(\*\)\) / Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-19\)\) \+ Int64\(\-34\) \+ Int64\(\-34\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( - 19 ) + - 34 + - 34 AS col1, - COUNT ( * ) / + 40 AS col1 query I rowsort @@ -21765,7 +21765,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\(\*\)\) \* \(\- count\(\*\)\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -22062,7 +22062,7 @@ SELECT + 2 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3813 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) \* Int64\(\-39\) \- coalesce\(Int64\(48\), \(\- Int64\(\-15\)\) \+ count\(\*\)\) AS col2" at position 0 and "max\(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\(99\)\) \* Int64\(\-39\) \- coalesce\(Int64\(48\), \(\- Int64\(\-15\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 99 ) * + - 39 - + COALESCE ( 48, - - 15 + COUNT ( * ) ) col2, MAX ( + - 89 ) AS col2 query I rowsort @@ -22586,7 +22586,7 @@ SELECT ALL + 77 * 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 302288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "count\(\*\) \+ Int64\(\-92\) \+ Int64\(70\) \* \(\- \(\- coalesce\(Int64\(45\), \(\- min\(DISTINCT Int64\(\-65\)\)\) \* \(\- CASE \(\- Int64\(87\)\) WHEN CASE Int64\(38\) WHEN count\(Int64\(\-95\)\) THEN NULL WHEN Int64\(16\) THEN Int64\(43\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL WHEN Int64\(\-36\) THEN Int64\(5\) \+ Int64\(11\) END \+ Int64\(\-67\) THEN Int64\(\-13\) WHEN Int64\(0\) THEN NULL ELSE NULL END\), Int64\(\-44\), Int64\(29\) \+ Int64\(44\) \+ Int64\(21\)\)\)\) \* Int64\(96\) \+ \(\- Int64\(21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-92\) \+ Int64\(70\) \* \(\- \(\- coalesce\(Int64\(45\), \(\- min\(DISTINCT Int64\(\-65\)\)\) \* \(\- CASE \(\- Int64\(87\)\) WHEN CASE Int64\(38\) WHEN count\(Int64\(\-95\)\) THEN NULL WHEN Int64\(16\) THEN Int64\(43\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL WHEN Int64\(\-36\) THEN Int64\(5\) \+ Int64\(11\) END \+ Int64\(\-67\) THEN Int64\(\-13\) WHEN Int64\(0\) THEN NULL ELSE NULL END\), Int64\(\-44\), Int64\(29\) \+ Int64\(44\) \+ Int64\(21\)\)\)\) \* Int64\(96\) \+ \(\- Int64\(21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 57 col2, COUNT ( * ) + - 92 + + 70 * + - ( - COALESCE ( + 45, - + MIN ( DISTINCT - 65 ) * - CASE - + 87 WHEN CASE 38 WHEN COUNT ( - 95 ) THEN NULL WHEN 16 THEN + 43 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 36 THEN + 5 + + 11 END + - 67 THEN - 13 WHEN + 0 THEN NULL ELSE NULL END, - 44, + 29 + 44 + + 21 ) ) * 96 + - + 21 AS col2 query I rowsort label-4306 @@ -25606,7 +25606,7 @@ SELECT ALL - 35 * 45 * + CAST ( - 84 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4482 # Datafusion - Expected - -143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(83\) AS col2" at position 0 and "\(\- nullif\(Int64\(85\), \(\- count\(\*\)\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(14\) \+ count\(\*\)\)\) \+ Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(83\) AS col2" at position 0 and "\(\- nullif\(Int64\(85\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(14\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 54 * + 83 AS col2, - NULLIF ( 85, - COUNT ( * ) * - - COUNT ( * ) * 14 + + COUNT ( * ) ) + - 58 AS col2 # Datafusion - Types were automatically converted from: @@ -26756,7 +26756,7 @@ SELECT ALL + - CAST ( - + 10 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "nullif\(Int64\(7\), Int64\(95\) \+ \(\- count\(\*\)\) \+ count\(Int64\(\-44\)\) / Int64\(96\) \+ 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\(9\) AS col2" at position 0 and "nullif\(Int64\(7\), Int64\(95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(\-44\)\) / Int64\(96\) \+ Int64\(25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 9 AS col2, NULLIF ( 7, + 95 + - COUNT ( * ) + + COUNT ( + - 44 ) / + + 96 + + 25 ) AS col2 query I rowsort label-5106 @@ -27713,7 +27713,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4958 # Datafusion - Expected - 412645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int32\) \+ Int64\(56\) \* Int64\(87\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- count\(\*\)\)\) \* \(\- \(\- Int64\(\-77\)\)\) \* Int64\(16\) \* Int64\(\-5\) \+ Int64\(34\) \+ Int64\(\-48\) \+ Int64\(\-18\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int32\) \+ Int64\(56\) \* Int64\(87\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- \(\- Int64\(\-77\)\)\) \* Int64\(16\) \* Int64\(\-5\) \+ Int64\(34\) \+ Int64\(\-48\) \+ Int64\(\-18\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( 86 AS INTEGER ) + + 56 * + 87 AS col0, 67 * - - COUNT ( * ) * + - ( - - 77 ) * 16 * + - 5 + 34 + - 48 + - 18 + - 43 AS col0 query I rowsort label-5289 @@ -28459,7 +28459,7 @@ SELECT 84 * - 94 * + + 32 # Datafusion - Expected - -1422 # Datafusion - Expected - 21 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- sum\(Int64\(\-1\)\)\) AS col0" at position 0 and "coalesce\(Int64\(18\), sum\(Int64\(\-72\)\) \* coalesce\(Int64\(27\), Int64\(\-44\)\)\) \* 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\(\*\)\) \* \(\- sum\(Int64\(\-1\)\)\) AS col0" at position 0 and "coalesce\(Int64\(18\), sum\(Int64\(\-72\)\) \* coalesce\(Int64\(27\), Int64\(\-44\)\)\) \* Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - + SUM ( - 1 ) AS col0, COALESCE ( 18, + SUM ( ALL + - 72 ) * + COALESCE ( + 27, - 44 ) ) * - 79 AS col0, + - COUNT ( * ) * + COALESCE ( - 8, - + 26 * - 63 + + + MAX ( - 24 ) * - + 62, - + 71 ) + + 13, + + COUNT ( * ) + - 58 AS col2 query I rowsort @@ -29114,7 +29114,7 @@ SELECT DISTINCT 18 / + ( - 59 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(88\) \- \(\- \(\- 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\(\*\) \+ Int64\(88\) \- \(\- \(\- 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 ( * ) + + 88 - - - COUNT ( * ) AS col2, 91 AS col2 query I rowsort @@ -29893,7 +29893,7 @@ SELECT SUM ( + + 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-52\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(\-3\) \+ 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\(\*\) \* Int64\(\-52\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(\-3\) \+ Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 52 AS col2, - 33 * + - 3 + - 10 AS col2 query I rowsort @@ -30423,7 +30423,7 @@ SELECT 56 + + 7, 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- \(\- count\(\(\- Int64\(68\)\)\)\) / Int64\(\-98\) \+ CAST\(NULL AS Int32\) \* Int64\(\-96\) \- coalesce\(Int64\(\-36\), count\(\*\), Int64\(39\) \- count\(Int64\(90\)\) \+ Int64\(\-72\)\) AS col0" at position 0 and "Int64\(71\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- \(\- count\(\(\- Int64\(68\)\)\)\) / Int64\(\-98\) \+ CAST\(NULL AS Int32\) \* Int64\(\-96\) \- coalesce\(Int64\(\-36\), count\(Int64\(1\)\) AS count\(\*\), Int64\(39\) \- count\(Int64\(90\)\) \+ Int64\(\-72\)\) AS col0" at position 0 and "Int64\(71\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 38 - - COUNT ( - ( 68 ) ) / - 98 + + CAST ( NULL AS INTEGER ) * - 96 - COALESCE ( - 36, COUNT ( * ), + 39 - COUNT ( ALL + + 90 ) + - 72 ) AS col0, + 71 + - 51 AS col0 query I rowsort label-5804 @@ -31473,7 +31473,7 @@ SELECT ALL + 10, + 10 / + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(42\) \* Int64\(\-14\) \+ Int64\(78\) 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\(\*\)\) / Int64\(42\) \* Int64\(\-14\) \+ Int64\(78\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - COUNT ( * ) ) / + + 42 * - 14 + 78 AS col0, 29 AS col0 query I rowsort @@ -35182,7 +35182,7 @@ SELECT ALL + 71 * + ( - 67 ) + MIN ( - 54 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(81\)\) AS col1" at position 0 and "Int64\(48\) \+ Int64\(26\) \+ Int64\(91\) \* count\(\*\) \* \(\- count\(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 "max\(Int64\(81\)\) AS col1" at position 0 and "Int64\(48\) \+ Int64\(26\) \+ Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(31\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( + 81 ) AS col1, 48 + + 26 + 91 * COUNT ( * ) * - COUNT ( + 31 ) col1 query I rowsort label-6718 @@ -35233,7 +35233,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\(\*\) AS col0" at position 1 have the 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 @@ -35540,7 +35540,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\(\*\) AS col1" at position 1 have the 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 @@ -35725,7 +35725,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\(\*\) AS col0" at position 1 have the 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 @@ -37237,7 +37237,7 @@ SELECT DISTINCT + 2, - 93 + + + 35 - 20 + - ( - SUM ( ALL 5 ) ) + + 60 * 39 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -68 -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\(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\(5\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 5 AS col2, - COUNT ( * ) * + 68 AS col2 query I rowsort @@ -37785,7 +37785,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - -1014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(84\) AS col1" at position 0 and "count\(\*\) \* Int64\(39\) \* \(\- 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\(23\) \+ Int64\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(39\) \* \(\- Int64\(26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 23 + + 84 AS col1, COUNT ( * ) * + 39 * - + 26 AS col1 query I rowsort label-7212 @@ -38288,7 +38288,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\(\*\) AS col1" at position 1 have the 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 @@ -38981,7 +38981,7 @@ SELECT ALL + 84 - COUNT ( * ) * 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(95\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 AS col2, 95 + - COUNT ( * ) AS col2 query I rowsort @@ -39119,7 +39119,7 @@ SELECT - 15 * - - COUNT ( * ) + + 12 + - 93 + + - COUNT ( * ) + - 45 * 30 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(27\) \+ count\(\*\) \+ \(\- Int64\(\-94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 84 AS col2, 27 + COUNT ( * ) + - - 94 AS col2 query I rowsort label-7469 @@ -39701,7 +39701,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -39785,7 +39785,7 @@ SELECT DISTINCT + 91 * - + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ Int64\(78\) AS col1" at position 0 and "Int64\(\-53\) \- \(\- Int64\(22\)\) \+ Int64\(\-10\) \+ Int64\(33\) \+ Int64\(\-6\) \+ count\(\*\) / \(\- Int64\(74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ Int64\(78\) AS col1" at position 0 and "Int64\(\-53\) \- \(\- Int64\(22\)\) \+ Int64\(\-10\) \+ Int64\(33\) \+ Int64\(\-6\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 1 + 78 AS col1, ( - 53 ) - - + 22 + - 10 + + + 33 + - 6 + + COUNT ( * ) / - ( + 74 ) AS col1 query II rowsort label-7596 @@ -40931,7 +40931,7 @@ SELECT ALL + 98 + - - SUM ( 45 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "Int64\(79\) \- \(\- count\(\*\)\) \* Int64\(\-77\) \+ 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\(\-86\) AS col0" at position 0 and "Int64\(79\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-77\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 86 AS col0, 79 - - + ( + COUNT ( * ) ) * - 77 + + 80 AS col0 query II rowsort @@ -43111,7 +43111,7 @@ SELECT + 50 * + + ( - + COALESCE ( + 69, - + 93, COUNT ( * ) ) ), 6 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 145 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- Int64\(84\)\) / \(\- 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 "Int64\(61\) \+ \(\- Int64\(84\)\) / \(\- 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 + 61 + - + ( + 84 ) / - + COUNT ( * ) AS col1, + 87 AS col1 query I rowsort label-8236 @@ -43255,7 +43255,7 @@ SELECT - 16 + + + NULLIF ( - MIN ( DISTINCT 71 ), + 64 + - ( 52 ) - + + 69 * + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3298 # Datafusion - Expected - 1787 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-97\) AS col2" at position 0 and "Int64\(53\) \* Int64\(33\) \+ count\(\*\) \* \(\- min\(Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-97\) AS col2" at position 0 and "Int64\(53\) \* Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 * - 97 AS col2, 53 * 33 + + COUNT ( * ) * - MIN ( - 38 ) AS col2 query I rowsort label-8264 @@ -43566,7 +43566,7 @@ SELECT 50 AS col2, - 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(48\) \* \(\- Int64\(63\)\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(48\) \* \(\- Int64\(63\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 26 AS col0, 48 * - + 63 * - COUNT ( * ) AS col0 query I rowsort label-8322 @@ -44428,7 +44428,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 @@ -44692,7 +44692,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\(\*\) AS col2" at position 1 have the 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 @@ -45218,7 +45218,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\(\*\) AS col0" at position 1 have the 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 @@ -45270,7 +45270,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\(\*\) 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 @@ -46024,7 +46024,7 @@ SELECT + 14 * + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "CASE Int64\(62\) WHEN Int64\(76\) \* Int64\(3\) \+ Int64\(\-26\) \+ Int64\(38\) \+ \(\- sum\(DISTINCT Int64\(37\)\)\) \* Int64\(\-4\) \* count\(\*\) \* Int64\(51\) \+ Int64\(74\) THEN \(\- avg\(Int64\(70\)\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "CASE Int64\(62\) WHEN Int64\(76\) \* Int64\(3\) \+ Int64\(\-26\) \+ Int64\(38\) \+ \(\- sum\(DISTINCT Int64\(37\)\)\) \* Int64\(\-4\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(51\) \+ Int64\(74\) THEN \(\- avg\(Int64\(70\)\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 AS col1, CASE 62 WHEN 76 * + 3 + - 26 + + 38 + - SUM ( DISTINCT 37 ) * - 4 * + + COUNT ( * ) * + 51 + + 74 THEN - + AVG ( 70 ) END AS col1 query I rowsort label-8793 @@ -46239,7 +46239,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 @@ -46861,7 +46861,7 @@ SELECT ALL 50 * - 77 + - - 34 col1 # 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 "\(\- count\(\*\)\) \* Int64\(28\) AS col2" at position 0 and "Int64\(50\) / 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\(\*\)\) \* Int64\(28\) AS col2" at position 0 and "Int64\(50\) / Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 28 AS col2, 50 / + 76 AS col2 query II rowsort label-8954 @@ -47857,7 +47857,7 @@ SELECT + 60 / + - 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(32\) / Int64\(59\) 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\(\*\)\) \* Int64\(32\) / Int64\(59\) 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 ( * ) * + 32 / 59 AS col0, 63 AS col0 query I rowsort label-9146 @@ -47968,7 +47968,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\(96\) WHEN Int64\(28\) \* nullif\(\(\- Int64\(76\)\), \(\- Int64\(\-20\)\)\) THEN NULL ELSE NULL END / Int64\(77\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -48552,7 +48552,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\(\*\) 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 @@ -51408,7 +51408,7 @@ SELECT 65 AS col0, 61 * + COUNT ( * ) + + - 39 - + COUNT ( * ) + 33 # 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 "coalesce\(count\(\*\), Int64\(6\)\) 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 "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(6\)\) 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 + COALESCE ( + COUNT ( * ), + + 6 ) AS col2, + 63 col2 query I rowsort label-9830 @@ -51657,7 +51657,7 @@ SELECT ALL + 63 / - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- coalesce\(Int64\(\-68\), Int64\(33\)\)\) 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\(\*\)\) \+ \(\- coalesce\(Int64\(\-68\), Int64\(33\)\)\) 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 ( * ) + - COALESCE ( + - 68, 33 ) AS col2, 52 AS col2 query II rowsort label-9878 diff --git a/data/sqlite/random/expr/slt_good_56.slt b/data/sqlite/random/expr/slt_good_56.slt index 60d45c1..ec78e60 100644 --- a/data/sqlite/random/expr/slt_good_56.slt +++ b/data/sqlite/random/expr/slt_good_56.slt @@ -778,7 +778,7 @@ SELECT DISTINCT + + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-62\) 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\(\*\)\) \+ Int64\(\-62\) 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 ( * ) ) + + - 62 AS col1, 20 col1 query I rowsort label-142 @@ -1314,7 +1314,7 @@ SELECT - ( 85 ) * MAX ( DISTINCT + - 43 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1785 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* sum\(Int64\(\-21\)\) AS col1" at position 0 and "Int64\(15\) \- nullif\(Int64\(\-6\), count\(\*\)\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* sum\(Int64\(\-21\)\) AS col1" at position 0 and "Int64\(15\) \- nullif\(Int64\(\-6\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 85 * + ( SUM ( - 21 ) ) AS col1, ( 15 ) - + NULLIF ( - 6, + COUNT ( * ) ) + 25 AS col1 query II rowsort label-243 @@ -1438,7 +1438,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\(\*\) AS col1" at position 1 have 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 @@ -1734,7 +1734,7 @@ SELECT DISTINCT COUNT ( * ) - - 38 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) query I rowsort label-324 @@ -2668,7 +2668,7 @@ SELECT 5 / AVG ( DISTINCT + 76 ) / CAST ( NULL AS INTEGER ) + - 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / \(\- Int64\(85\)\) \* Int64\(82\) \- \(\- \(\- Int64\(27\)\)\) AS col0" at position 0 and "Int64\(\-35\) \+ count\(\*\) \* \(\- Int64\(\-78\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(85\)\) \* Int64\(82\) \- \(\- \(\- Int64\(27\)\)\) AS col0" at position 0 and "Int64\(\-35\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-78\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 32 / - + 85 * + 82 - + ( - - ( + + 27 ) ) AS col0, - 35 + COUNT ( * ) * - - 78 + - + COUNT ( * ) AS col0 query I rowsort @@ -3152,7 +3152,7 @@ SELECT ALL - 71 AS col0, 87 - - 22 # 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\(\*\)\) 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 query I rowsort label-595 @@ -4036,7 +4036,7 @@ SELECT - SUM ( ALL + 79 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(8\) \+ \(\- coalesce\(count\(\*\), Int64\(\-81\) \+ count\(\*\)\)\) \- 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\(73\) AS col0" at position 0 and "Int64\(8\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \- CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 col0, + 8 + - COALESCE ( + COUNT ( * ), - 81 + COUNT ( * ) ) - + CAST ( NULL AS FLOAT8 ) AS col0 query I rowsort label-764 @@ -4575,7 +4575,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\(\*\) 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 @@ -4586,7 +4586,7 @@ SELECT - 13 - - ( + 64 ) + - 70 + - ( ( - 91 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) / CASE \(\- count\(\*\)\) WHEN min\(Int64\(41\)\) THEN Int64\(96\) \* \(\- \(\- \(\- \(\- Int64\(47\)\)\)\)\) END \+ Int64\(\-86\) \* Int64\(\-28\) \* \(\- Int64\(86\)\) \+ \(\- Int64\(80\)\) 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 "Int64\(16\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN min\(Int64\(41\)\) THEN Int64\(96\) \* \(\- \(\- \(\- \(\- Int64\(47\)\)\)\)\) END \+ Int64\(\-86\) \* Int64\(\-28\) \* \(\- Int64\(86\)\) \+ \(\- Int64\(80\)\) 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 16 / + + CASE - COUNT ( * ) WHEN + + MIN ( ALL + 41 ) THEN + 96 * - ( - - ( - + ( 47 ) ) ) END + - 86 * + + ( + - 28 ) * - + 86 + - + 80 AS col0, - 19 AS col0 query I rowsort label-870 @@ -5841,7 +5841,7 @@ SELECT + 12 + + 75 AS col1, + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 97 -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\(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\(17\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - + 17 ) AS col2, COUNT ( * ) + + 96 col2 query I rowsort label-1109 @@ -7279,7 +7279,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\(\*\) AS col2" at position 1 have the 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 @@ -7320,7 +7320,7 @@ SELECT - 93 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* count\(\*\) / Int64\(\-44\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-44\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 5 * COUNT ( * ) / - 44 AS col1, 31 AS col1 query I rowsort label-1396 @@ -7479,7 +7479,7 @@ SELECT 83 AS col2, - 68 # 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\(\*\)\) AS col1" at position 1 have the 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 - 81 AS col1, - COUNT ( * ) AS col1 query I rowsort label-1426 @@ -9120,7 +9120,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\(\*\) AS col0" at position 1 have 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: @@ -9223,7 +9223,7 @@ SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + + 76 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(50\) 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\(\*\) \+ Int64\(50\) 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 ( * ) + + 50 AS col2, 52 AS col2 query I rowsort label-1758 @@ -9534,7 +9534,7 @@ SELECT - MIN ( - 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "CASE \(\- Int64\(98\)\) WHEN Int64\(\-30\) \+ Int64\(15\) THEN count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "CASE \(\- Int64\(98\)\) WHEN Int64\(\-30\) \+ Int64\(15\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 col1, CASE - + 98 WHEN - 30 + + + 15 THEN + COUNT ( * ) END AS col1 query I rowsort @@ -10006,7 +10006,7 @@ SELECT + 17, 57 / - 66 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -47 -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\(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\(76\) 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 76 AS col0, - COUNT ( * ) * + 47 AS col0 query I rowsort label-1909 @@ -10687,7 +10687,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 @@ -11907,7 +11907,7 @@ SELECT ALL + 65 * ( + 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ Int64\(93\) \- Int64\(79\) \* CAST\(NULL AS Int32\) \* \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(65\), \(\- count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ Int64\(93\) \- Int64\(79\) \* CAST\(NULL AS Int32\) \* \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(65\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 9 + 93 - + 79 * + + CAST ( NULL AS INTEGER ) * - ( - - CAST ( NULL AS INTEGER ) ) AS col1, - NULLIF ( ( + 65 ), - + COUNT ( * ) ) AS col1 query I rowsort label-2268 @@ -13893,7 +13893,7 @@ SELECT + - 26 + + 27 * + 25 # 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 "count\(DISTINCT Int64\(\-59\)\) \+ \(\- Int64\(49\)\) \* \(\- 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 "count\(DISTINCT Int64\(\-59\)\) \+ \(\- Int64\(49\)\) \* \(\- 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 + + COUNT ( DISTINCT - 59 ) + + - ( 49 ) * - COUNT ( * ) AS col0, + 64 AS col0 query I rowsort label-2647 @@ -14427,7 +14427,7 @@ SELECT DISTINCT ( + 63 ) # 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\(69\) \+ Int64\(66\) AS col1" at position 0 and "count\(\*\) \+ \(\- Int64\(20\)\) / \(\- Int64\(54\)\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(20\)\) / \(\- Int64\(54\)\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 69 + ( + 66 ) AS col1, COUNT ( * ) + - + 20 / - + 54 * + 45 AS col1 query I rowsort label-2750 @@ -14840,7 +14840,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 115 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(77\)\) \+ Int64\(38\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(5\) \* 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 "max\(Int64\(77\)\) \+ Int64\(38\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(5\) \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( ALL + 77 ) + 38 col0, - COUNT ( * ) * 5 * + 7 AS col0 query I rowsort @@ -15700,7 +15700,7 @@ SELECT DISTINCT - COUNT ( * ) * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 40 -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\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 9 col0, + ( COUNT ( * ) ) + 39 AS col0 query I rowsort @@ -18337,7 +18337,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\(\*\) AS col1" at position 1 have the 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 @@ -18732,7 +18732,7 @@ SELECT + COUNT ( * ) AS col0, + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-41\) \+ Int64\(81\) 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\(\*\) \* Int64\(\-41\) \+ Int64\(81\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + - 41 + 81 AS col0, ( 57 ) AS col0 query I rowsort @@ -19842,7 +19842,7 @@ SELECT + 74 + - NULLIF ( - 83, 66 + - - 49 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) \+ \(\- Int64\(45\)\) \+ Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(45\)\) \+ Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 95 AS col1, COUNT ( * ) * - COUNT ( * ) + - + 45 + + + 70 AS col1 query II rowsort @@ -19861,7 +19861,7 @@ SELECT - 1, 89 AS col1 # Datafusion - Expected - 23 # Datafusion - Expected - -8774 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ Int64\(\-91\) \* Int64\(96\) AS col0" at position 1 and "\(\- coalesce\(Int64\(\-96\), Int64\(\-18\) \+ \(\- Int64\(\-16\)\), count\(\*\) \+ \(\- 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\(\-38\) \+ Int64\(\-91\) \* Int64\(96\) AS col0" at position 1 and "\(\- coalesce\(Int64\(\-96\), Int64\(\-18\) \+ \(\- Int64\(\-16\)\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 23, - 38 + - 91 * 96 AS col0, - COALESCE ( ( - 96 ), - 18 + - - 16, COUNT ( * ) + - COUNT ( * ) ) AS col0 query I rowsort @@ -20147,7 +20147,7 @@ SELECT + ( - 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "coalesce\(Int64\(15\), count\(\*\) / Int64\(\-84\) \* \(\- Int64\(10\)\) \+ \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "coalesce\(Int64\(15\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-84\) \* \(\- Int64\(10\)\) \+ \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 56 AS col1, COALESCE ( 15, + + COUNT ( * ) / + - 84 * - + 10 + - + CAST ( NULL AS INTEGER ) ) AS col1 query II rowsort label-3846 @@ -21186,7 +21186,7 @@ SELECT ALL - + 85 - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(\-85\) \* CAST\(\(\- count\(\*\)\) AS Int32\) \+ \(\- Int64\(\-77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(\-85\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ \(\- Int64\(\-77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 col0, - 85 * CAST ( - COUNT ( * ) AS INTEGER ) + - - 77 col0 query I rowsort @@ -22026,7 +22026,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\(\*\) AS col0" at position 1 have the 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 @@ -22069,7 +22069,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -1601 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-78\) \- \(\- \(\- Int64\(96\)\)\) AS col2" at position 0 and "count\(\*\) \+ \(\- Int64\(89\)\) \* nullif\(Int64\(18\), \(\- count\(\*\)\) \* Int64\(47\) \- \(\- CASE \(\- \(\- avg\(DISTINCT CAST\(Int64\(99\) AS Int32\)\)\)\) WHEN Int64\(84\) THEN Int64\(40\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-78\) \- \(\- \(\- Int64\(96\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(89\)\) \* nullif\(Int64\(18\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(47\) \- \(\- CASE \(\- \(\- avg\(DISTINCT CAST\(Int64\(99\) AS Int32\)\)\)\) WHEN Int64\(84\) THEN Int64\(40\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 75 + - 78 - - ( - + 96 ) AS col2, + COUNT ( * ) + + - ( 89 ) * + NULLIF ( + 18, - COUNT ( * ) * 47 - - CASE - - AVG ( DISTINCT CAST ( 99 AS INTEGER ) ) WHEN + 84 THEN + 40 END ) AS col2 query I rowsort label-4207 @@ -22893,7 +22893,7 @@ SELECT + SUM ( + - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(31\) \+ Int64\(43\) AS col0" at position 0 and "Int64\(35\) \+ \(\- nullif\(Int64\(0\), Int64\(73\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(31\) \+ Int64\(43\) AS col0" at position 0 and "Int64\(35\) \+ \(\- nullif\(Int64\(0\), Int64\(73\) \* Int64\(87\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + + + 31 + + 43 AS col0, + 35 + - NULLIF ( 0, 73 * 87 ) AS col0 query I rowsort @@ -23645,7 +23645,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 90 + - + COUNT ( * ) AS col0, COUNT ( * ) + - 45 AS col0 query I rowsort @@ -24027,7 +24027,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3557 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ count\(\*\) \* Int64\(\-46\) \* Int64\(77\) 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\(\-15\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-46\) \* Int64\(77\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 15 + + + COUNT ( * ) * + - 46 * + 77 AS col0, + 77 AS col0 query I rowsort label-4581 @@ -25806,7 +25806,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\(\*\) AS col1" at position 1 have the 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 @@ -25965,7 +25965,7 @@ SELECT 99 * - - 37 * - 59 * + 52 * + 55 col0 # Datafusion - Expected - -1 # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(41\) / 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\(41\) / Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col0, + 41 / + 25 AS col0, - - COUNT ( ALL + CASE - 33 WHEN + 76 - - - 41 * + 15 THEN + 18 WHEN 4 THEN NULL WHEN 42 THEN NULL END ) AS col2 query II rowsort label-4956 @@ -26033,7 +26033,7 @@ SELECT ALL + + 9 + - MAX ( ALL + + 95 ), ( - 9 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "count\(\*\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 53 col2, + COUNT ( * ) * 83 col2 query I rowsort @@ -26091,7 +26091,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-76\), count\(\*\) \* Int64\(14\) \- Int64\(1\) \+ Int64\(43\)\)\) 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 "\(\- coalesce\(Int64\(\-76\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) \- Int64\(1\) \+ Int64\(43\)\)\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - 76, + COUNT ( * ) * + 14 - + + 1 + 43 ) AS col1, + 66 AS col1 query I rowsort label-4979 @@ -26189,7 +26189,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\(\*\) 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 @@ -26382,7 +26382,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\(\*\) 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 @@ -26585,7 +26585,7 @@ SELECT ALL 55 + - MIN ( 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- CAST\(NULL AS Int32\)\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-90\)\) AS col0" at position 0 and "Int64\(67\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- CAST\(NULL AS Int32\)\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-90\)\) AS col0" at position 0 and "Int64\(67\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - 90 AS col0, + 67 * - COUNT ( * ) AS col0 query I rowsort @@ -27925,7 +27925,7 @@ SELECT ALL CAST ( + ( - 34 ) AS INTEGER ) + - 5 + 73 * - COUNT ( * ) - + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 1066 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(71\) \* max\(DISTINCT \(\- Int64\(\-15\)\)\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(71\) \* max\(DISTINCT \(\- Int64\(\-15\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 50 + - COUNT ( * ) AS col1, ( + + 71 ) * + + MAX ( DISTINCT - - 15 ) + + - ( - COUNT ( * ) ) AS col1 query II rowsort label-5325 @@ -28618,7 +28618,7 @@ SELECT COUNT ( * ) * + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 1058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(71\) AS Int32\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(54\) \+ Int64\(\-14\) \* Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(71\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(54\) \+ Int64\(\-14\) \* Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 71 AS INTEGER ) * + - COUNT ( * ) col0, 24 * + ( 54 ) + + ( + - 14 ) * 17 col0 query I rowsort label-5456 @@ -29652,7 +29652,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\(\*\)\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(36\) \* 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 @@ -30150,7 +30150,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(15\), Int64\(32\) \* \(\- 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 "coalesce\(Int64\(15\), Int64\(32\) \* \(\- 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 + + COALESCE ( + 15, + 32 * - + COUNT ( * ) ) AS col2, 35 AS col2 query I rowsort label-5747 @@ -31352,7 +31352,7 @@ SELECT ALL + 83 * + + 76 # Datafusion - Expected - 92 # Datafusion - Expected - -121 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- \(\- count\(\*\)\)\) \* max\(Int64\(\-46\)\) \- \(\- max\(Int64\(\-75\)\)\) AS col2" at position 1 and "\(\- nullif\(nullif\(\(\- count\(\*\)\), Int64\(50\)\), Int64\(\-36\) \* \(\- Int64\(\-96\)\)\)\) \+ \(\- Int64\(\-61\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* max\(Int64\(\-46\)\) \- \(\- max\(Int64\(\-75\)\)\) AS col2" at position 1 and "\(\- nullif\(nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(50\)\), Int64\(\-36\) \* \(\- Int64\(\-96\)\)\)\) \+ \(\- Int64\(\-61\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 92, + 1 * - ( - COUNT ( * ) ) * MAX ( ALL + - 46 ) - ( - + MAX ( ALL - 75 ) ) AS col2, - ( + NULLIF ( NULLIF ( - COUNT ( * ), 50 ), - 36 * - - 96 ) ) + - ( - 61 ) AS col2 query I rowsort @@ -31388,7 +31388,7 @@ SELECT - + 55 - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 54 -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\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 74 AS col2, ( - COUNT ( * ) ) + + 55 AS col2 query I rowsort label-5982 @@ -32215,7 +32215,7 @@ SELECT - COUNT ( * ) + + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -738 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(18\) AS col0" at position 0 and "count\(\*\) \* \(\- Int64\(\-4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(18\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 41 * + 18 AS col0, + ( + COUNT ( * ) ) * - - 4 AS col0 query I rowsort @@ -34362,7 +34362,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\(\*\) / 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 @@ -37506,7 +37506,7 @@ SELECT - 23 * 49 * - + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -175 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \- Int64\(0\) \* \(\- count\(\*\)\) \* \(\- count\(\*\)\) \* \(\- Int64\(56\)\) \+ \(\- min\(DISTINCT Int64\(16\)\)\) \+ Int64\(\-77\) 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\(\-82\) \- Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(56\)\) \+ \(\- min\(DISTINCT Int64\(16\)\)\) \+ Int64\(\-77\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 82 - 0 * - COUNT ( * ) * - + COUNT ( * ) * - + 56 + - MIN ( DISTINCT 16 ) + - 77 AS col0, 55 AS col0 query I rowsort label-7153 @@ -38715,7 +38715,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\(\*\) AS col2" at position 1 have the 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 @@ -40257,7 +40257,7 @@ SELECT - CAST ( - 83 AS INTEGER ) * 62 - + - 0 + + + 13 * + SUM ( + + 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(82\) WHEN \(\- \(\- count\(\*\)\)\) THEN nullif\(Int64\(\-69\), Int64\(\-2\)\) \+ \(\- Int64\(62\)\) \+ \(\- Int64\(9\)\) WHEN Int64\(\-86\) \+ Int64\(29\) \* Int64\(70\) THEN \(\- nullif\(Int64\(91\), Int64\(42\) \* Int64\(\-12\) \+ Int64\(12\)\)\) END\) 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 "\(\- CASE Int64\(82\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN nullif\(Int64\(\-69\), Int64\(\-2\)\) \+ \(\- Int64\(62\)\) \+ \(\- Int64\(9\)\) WHEN Int64\(\-86\) \+ Int64\(29\) \* Int64\(70\) THEN \(\- nullif\(Int64\(91\), Int64\(42\) \* Int64\(\-12\) \+ Int64\(12\)\)\) END\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE 82 WHEN - - COUNT ( * ) THEN NULLIF ( - 69, - 2 ) + - + 62 + - + 9 WHEN - 86 + + 29 * + 70 THEN - NULLIF ( 91, 42 * - 12 + 12 ) END AS col1, + 81 AS col1 query I rowsort @@ -40360,7 +40360,7 @@ SELECT + COUNT ( DISTINCT 45 ) * + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(39\) \+ CAST\(Int64\(90\) AS Int32\) \- Int64\(88\) \* Int64\(14\) \+ \(\- Int64\(\-69\)\) \* Int64\(49\) \- Int64\(73\) \+ CAST\(NULL AS Int32\) \+ Int64\(29\) \+ coalesce\(\(\- Int64\(99\)\), Int64\(46\), Int64\(59\) \* Int64\(61\) \+ Int64\(80\) \* count\(\*\) / \(\- Int64\(\-2\)\)\) \* Int64\(79\) AS col0" at position 0 and "\(\- Int64\(\-20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(39\) \+ CAST\(Int64\(90\) AS Int32\) \- Int64\(88\) \* Int64\(14\) \+ \(\- Int64\(\-69\)\) \* Int64\(49\) \- Int64\(73\) \+ CAST\(NULL AS Int32\) \+ Int64\(29\) \+ coalesce\(\(\- Int64\(99\)\), Int64\(46\), Int64\(59\) \* Int64\(61\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-2\)\)\) \* Int64\(79\) AS col0" at position 0 and "\(\- Int64\(\-20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 79 + + 39 + + CAST ( 90 AS INTEGER ) - + 88 * 14 + - - 69 * 49 - 73 + + + CAST ( NULL AS INTEGER ) + + 29 + COALESCE ( - + 99, + 46, 59 * 61 + 80 * COUNT ( * ) / - - 2 ) * + 79 AS col0, ( - - 20 ) AS col0 query I rowsort label-7696 @@ -41502,7 +41502,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\(\*\)\) \* 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 @@ -46851,7 +46851,7 @@ SELECT 78 * 32 * 92 # 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\(\*\)\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) + - 5 AS col1 query II rowsort label-8939 @@ -46997,13 +46997,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-74\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(74\) \+ Int64\(54\) \+ count\(\*\) / \(\- coalesce\(Int64\(39\), \(\- sum\(Int64\(\-25\)\)\) \+ Int64\(43\), Int64\(\-72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-74\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(74\) \+ Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- coalesce\(Int64\(39\), \(\- sum\(Int64\(\-25\)\)\) \+ Int64\(43\), Int64\(\-72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 3 ) * - 74 * CAST ( NULL AS INTEGER ) AS col1, + 74 + + 54 + COUNT ( * ) / - + COALESCE ( + 39, - SUM ( - 25 ) + 43, - 72 ) AS col1 # 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\(66\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -47034,7 +47034,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3289 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(94\) \+ count\(\*\) \* \(\- 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 "Int64\(35\) \* Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- 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 + 35 * 94 + COUNT ( * ) * - COUNT ( * ) AS col1, - 90 AS col1 query I rowsort @@ -47479,7 +47479,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\(\*\) 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 @@ -48046,7 +48046,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\(\*\) AS col2" at position 1 have the 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 @@ -48165,7 +48165,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\(\*\) AS col0" at position 1 have the 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 @@ -48614,7 +48614,7 @@ SELECT - 2 * 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -730 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(10\) \* 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\(10\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, 10 * - 73 AS col1 query I rowsort @@ -50252,7 +50252,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - 299939 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \- Int64\(\-76\) AS col1" at position 0 and "Int64\(82\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-59\) \* Int64\(\-62\) \+ 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 "Int64\(84\) \- Int64\(\-76\) AS col1" at position 0 and "Int64\(82\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-59\) \* Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 84 - - 76 AS col1, ( 82 ) * - + ( - COUNT ( * ) ) * - 59 * - 62 + COUNT ( * ) * - 17 AS col1 query I rowsort label-9582 @@ -51721,7 +51721,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\(\*\) 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 bdd8772..8cff59c 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\(\*\) AS col0" at position 1 have the 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 @@ -762,7 +762,7 @@ SELECT + MAX ( ALL + + 70 ) # 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 "\(\- coalesce\(count\(\*\), Int64\(74\), nullif\(Int64\(\-47\), Int64\(\-91\)\)\)\) AS col1" at position 0 and "Int64\(13\) \+ \(\- 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 "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(74\), nullif\(Int64\(\-47\), Int64\(\-91\)\)\)\) AS col1" at position 0 and "Int64\(13\) \+ \(\- Int64\(67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - COALESCE ( + COUNT ( * ), 74, + NULLIF ( - 47, + - 91 ) ) ) AS col1, + 13 + - + 67 AS col1 query I rowsort @@ -1841,7 +1841,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\(\*\) AS col2" at position 1 have the 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 @@ -2368,7 +2368,7 @@ SELECT 16 - - COUNT ( ALL - 76 ) / 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col0" at position 0 and "Int64\(77\) \+ Int64\(\-94\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(77\) \+ Int64\(\-94\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 64 col0, 77 + + - 94 * - COUNT ( * ) AS col0 query II rowsort @@ -3866,7 +3866,7 @@ SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) # 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\(\*\)\)\) AS col1" at position 0 and "Int64\(15\) \- 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\(15\) \- Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col1, 15 - + - 8 AS col1 query I rowsort label-732 @@ -4661,7 +4661,7 @@ SELECT ALL + ( - + 65 ) 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\) AS col1" at position 0 and "\(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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 ( * ) ) col1 query I rowsort label-882 @@ -4738,7 +4738,7 @@ SELECT DISTINCT 37 * ( 97 ) + + 20 + 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* min\(\(\- 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 ) * MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0 query II rowsort @@ -4940,7 +4940,7 @@ SELECT + 57 * - MIN ( DISTINCT - 97 ) + 5 - - 51 + - MAX ( ALL - 92 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 56629 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(1\) \- \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(59\) / Int64\(33\) \+ Int64\(\-66\) \* Int64\(\-78\) \* 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\(70\) \* Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(59\) / Int64\(33\) \+ Int64\(\-66\) \* Int64\(\-78\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 70 * 1 - - COUNT ( * ) AS col1, 59 / + + 33 + - 66 * + ( - 78 ) * 11 AS col1 query I rowsort @@ -5172,7 +5172,7 @@ SELECT DISTINCT + MIN ( 88 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- \(\- 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\(\*\) \+ \(\- \(\- 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 ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col2, + 86 AS col2 query I rowsort label-979 @@ -5623,7 +5623,7 @@ SELECT 82 * + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 378 # Datafusion - Expected - 1744 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(21\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-83\)\) AS Int32\) \* Int64\(21\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(21\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-83\)\) AS Int32\) \* Int64\(21\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 18 * + 21 col1, CAST ( - - 83 AS INTEGER ) * + 21 + - - COUNT ( * ) AS col1 query II rowsort @@ -5998,7 +5998,7 @@ SELECT + 4 + 78 * + 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(36\) \* Int64\(\-69\) \- Int64\(\-36\) \- Int64\(\-27\) \* Int64\(8\) \- \(\- count\(\*\)\) \+ CASE \(\- Int64\(20\)\) WHEN Int64\(78\) \+ Int64\(66\) THEN Int64\(21\) ELSE NULL END / 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\(40\) AS col2" at position 0 and "Int64\(36\) \* Int64\(\-69\) \- Int64\(\-36\) \- Int64\(\-27\) \* Int64\(8\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- Int64\(20\)\) WHEN Int64\(78\) \+ Int64\(66\) THEN Int64\(21\) ELSE NULL END / Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 40 AS col2, 36 * - 69 - + - 36 - + - 27 * + 8 - - + COUNT ( * ) + + CASE - + 20 WHEN + 78 + 66 THEN + 21 ELSE NULL END / + - 26 AS col2 query I rowsort @@ -6041,7 +6041,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -305 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(\-5\) \- Int64\(46\) \+ \(\- sum\(Int64\(68\)\)\) \+ \(\- 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 "Int64\(38\) \* Int64\(\-5\) \- Int64\(46\) \+ \(\- sum\(Int64\(68\)\)\) \+ \(\- 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 ALL + 38 * - 5 - + 46 + + - SUM ( + + 68 ) + - + COUNT ( * ) AS col1, 0 col1 query I rowsort @@ -6088,7 +6088,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\(\*\) AS col0" at position 1 have the 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 @@ -6192,7 +6192,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\(\*\) AS col0" at position 1 have the 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 @@ -8163,7 +8163,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\(\*\) 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 @@ -8660,7 +8660,7 @@ SELECT DISTINCT COUNT ( * ) * + + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5608 # Datafusion - Expected - -7304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(89\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(88\) \* 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\(\-63\) \* Int64\(89\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(88\) \* Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 63 * 89 + - COUNT ( * ) AS col0, 88 * - 83 AS col0 query I rowsort @@ -10152,7 +10152,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\(\*\) AS col1" at position 1 have the 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 @@ -10188,7 +10188,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\(\*\)\) \+ count\(\*\) AS col0" at position 1 have the 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: @@ -10928,7 +10928,7 @@ SELECT DISTINCT - 72 * ( - 15 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(56\) / max\(\(\- coalesce\(Int64\(75\), Int64\(\-95\), nullif\(Int64\(14\), Int64\(\-1\)\)\)\)\) / Int64\(\-73\) / count\(\*\) \- Int64\(65\) / CASE Int64\(50\) WHEN \(\- Int64\(\-10\)\) \+ Int64\(79\) THEN \(\- Int64\(30\)\) \* \(\- Int64\(79\)\) WHEN Int64\(64\) THEN count\(\*\) \- Int64\(21\) END \* 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\(40\) AS col0" at position 0 and "Int64\(56\) / max\(\(\- coalesce\(Int64\(75\), Int64\(\-95\), nullif\(Int64\(14\), Int64\(\-1\)\)\)\)\) / Int64\(\-73\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(65\) / CASE Int64\(50\) WHEN \(\- Int64\(\-10\)\) \+ Int64\(79\) THEN \(\- Int64\(30\)\) \* \(\- Int64\(79\)\) WHEN Int64\(64\) THEN count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) END \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 AS col0, + 56 / MAX ( - + COALESCE ( + 75, - 95, NULLIF ( + + ( + 14 ), - 1 ) ) ) / + - 73 / + COUNT ( * ) - + 65 / CASE 50 WHEN - - 10 + 79 THEN - + 30 * - + 79 WHEN + 64 THEN + COUNT ( * ) - 21 END * 24 AS col0 query I rowsort @@ -12958,7 +12958,7 @@ SELECT - - ( + - 91 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 203516 # Datafusion - Expected - -3420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \+ count\(\*\) \- Int64\(67\) \+ Int64\(\-81\) \+ Int64\(\-8\) \+ Int64\(63\) \* Int64\(77\) \* \(\- sum\(\(\- Int64\(42\)\)\)\) / count\(Int64\(5\)\) AS col2" at position 0 and "Int64\(2\) \* \(\- Int64\(45\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(67\) \+ Int64\(\-81\) \+ Int64\(\-8\) \+ Int64\(63\) \* Int64\(77\) \* \(\- sum\(\(\- Int64\(42\)\)\)\) / count\(Int64\(5\)\) AS col2" at position 0 and "Int64\(2\) \* \(\- Int64\(45\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 71 + + + COUNT ( * ) - 67 + - 81 + - 8 + + 63 * + ( + 77 ) * - SUM ( ALL - + 42 ) / COUNT ( + 5 ) AS col2, 2 * + - ( 45 ) * 38 AS col2 query I rowsort @@ -13138,7 +13138,7 @@ SELECT 31 * - 14 * - - 10 + 82 - + - 61 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 7046 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(\-87\) \* \(\- nullif\(Int64\(81\), Int64\(9\) \* Int64\(\-93\) \* Int64\(\-87\)\)\) \+ \(\- coalesce\(count\(\*\), \(\- count\(\*\)\)\)\) AS col2" at position 1 have the 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\(\-87\) \* \(\- nullif\(Int64\(81\), Int64\(9\) \* Int64\(\-93\) \* Int64\(\-87\)\)\) \+ \(\- coalesce\(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 + 73 AS col2, - 87 * - NULLIF ( + + 81, + 9 * - 93 * - 87 ) + - COALESCE ( COUNT ( * ), - + COUNT ( * ) ) AS col2 query I rowsort label-2508 @@ -15606,7 +15606,7 @@ SELECT 24 + + COUNT ( * ) * 86 * - 61 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 query I rowsort @@ -15878,7 +15878,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\(\*\) 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 @@ -17088,7 +17088,7 @@ NULL # 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\(\*\)\) 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 I rowsort label-3262 @@ -18863,7 +18863,7 @@ SELECT - NULLIF ( 49, + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 193456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-8\)\) AS col1" at position 0 and "\(\- CASE WHEN NOT Int64\(76\) = CASE \(\- \(\- Int64\(\-44\)\)\) WHEN Int64\(62\) THEN \(\- min\(Int64\(\-56\)\)\) \* count\(Int64\(\-27\)\) END THEN \(\- \(\- count\(Int64\(\-27\)\)\)\) \+ Int64\(21\) \+ Int64\(37\) WHEN NOT NULL > Int64\(\-41\) \+ avg\(Int64\(18\) \+ Int64\(53\)\) THEN Int64\(93\) / \(\- nullif\(\(\- count\(\*\)\), Int64\(\-46\) \+ nullif\(Int64\(11\), count\(\*\) / \(\- Int64\(42\)\) \- Int64\(\-84\)\)\)\) ELSE Int64\(89\) END\) \+ \(\- coalesce\(Int64\(75\) \- \(\- Int64\(57\) \- count\(\*\) \* Int64\(\-36\)\) \* Int64\(40\), Int64\(\-31\) \+ Int64\(\-81\), Int64\(6\) \+ Int64\(44\)\)\) \* Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-8\)\) AS col1" at position 0 and "\(\- CASE WHEN NOT Int64\(76\) = CASE \(\- \(\- Int64\(\-44\)\)\) WHEN Int64\(62\) THEN \(\- min\(Int64\(\-56\)\)\) \* count\(Int64\(\-27\)\) END THEN \(\- \(\- count\(Int64\(\-27\)\)\)\) \+ Int64\(21\) \+ Int64\(37\) WHEN NOT NULL > Int64\(\-41\) \+ avg\(Int64\(18\) \+ Int64\(53\)\) THEN Int64\(93\) / \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-46\) \+ nullif\(Int64\(11\), count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(42\)\) \- Int64\(\-84\)\)\)\) ELSE Int64\(89\) END\) \+ \(\- coalesce\(Int64\(75\) \- \(\- Int64\(57\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\)\) \* Int64\(40\), Int64\(\-31\) \+ Int64\(\-81\), Int64\(6\) \+ Int64\(44\)\)\) \* Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 8 AS col1, - CASE WHEN NOT + 76 = + CASE - - ( - 44 ) WHEN + 62 THEN - + MIN ( + - 56 ) * COUNT ( + - 27 ) END THEN - - COUNT ( - 27 ) + + 21 + + 37 WHEN NOT ( NULL ) > ( - 41 + AVG ( + 18 + 53 ) ) THEN + 93 / + ( - NULLIF ( - COUNT ( * ), - 46 + + NULLIF ( 11, COUNT ( * ) / - ( + 42 ) - - 84 ) ) ) ELSE 89 END + - COALESCE ( 75 - - ( + 57 - COUNT ( * ) * - 36 ) * 40, - 31 + - 81, 6 + 44 ) * - 51 AS col1 query I rowsort label-3600 @@ -20096,7 +20096,7 @@ SELECT DISTINCT - 42 + + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- CASE \(\- count\(Int64\(92\)\)\) WHEN Int64\(\-35\) \* Int64\(22\) \- count\(\*\) THEN coalesce\(Int64\(\-12\), \(\- count\(\*\)\) \+ Int64\(\-12\), Int64\(88\), Int64\(93\) \- \(\- count\(\*\)\)\) \* Int64\(\-32\) ELSE CAST\(NULL AS Int32\) \- Int64\(\-57\) END\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- count\(Int64\(92\)\)\) WHEN Int64\(\-35\) \* Int64\(22\) \- count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(Int64\(\-12\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-12\), Int64\(88\), Int64\(93\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-32\) ELSE CAST\(NULL AS Int32\) \- Int64\(\-57\) END\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + - CASE - + COUNT ( ALL + 92 ) WHEN - 35 * + + 22 - + COUNT ( * ) THEN + + COALESCE ( - 12, - + COUNT ( * ) + - 12, 88, + 93 - - COUNT ( * ) ) * - 32 ELSE + CAST ( NULL AS INTEGER ) - - 57 END AS col2, 27 AS col2 query I rowsort @@ -20820,7 +20820,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\(\*\) AS col1" at position 1 have the 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 @@ -21751,7 +21751,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\(\*\) 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 @@ -21818,7 +21818,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\(\*\)\) 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 - COUNT ( * ) AS col2, 38 AS col2 query I rowsort label-4163 @@ -22132,7 +22132,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\(\*\) 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 @@ -22833,7 +22833,7 @@ SELECT + 66 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -107 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(\-99\) \+ Int64\(\-58\) AS col1" at position 0 and "Int64\(64\) \+ count\(\*\) \+ 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\(50\) \+ Int64\(\-99\) \+ Int64\(\-58\) AS col1" at position 0 and "Int64\(64\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( ( 50 ) ) + - 99 + - 58 AS col1, 64 + COUNT ( * ) + 7 AS col1 query I rowsort label-4357 @@ -23259,7 +23259,7 @@ SELECT MIN ( DISTINCT 88 ) AS col0, - 25 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* count\(\*\) \- Int64\(71\) 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\(\-4\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(71\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 * COUNT ( * ) - + 71 AS col1, + 65 AS col1 query I rowsort @@ -24424,7 +24424,7 @@ SELECT 17 * - + 46 * + 96 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 216 # Datafusion - Expected - 5401 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(64\) \- Int64\(49\) \+ Int64\(28\) \+ count\(\*\) \* Int64\(75\) AS col2" at position 0 and "Int64\(\-11\) \* count\(\*\) \* count\(\*\) \+ Int64\(66\) \+ Int64\(54\) \* \(\- 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\(98\) \+ Int64\(64\) \- Int64\(49\) \+ Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) AS col2" at position 0 and "Int64\(\-11\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\) \+ Int64\(54\) \* \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 98 ) + + 64 - 49 + 28 + COUNT ( * ) * 75 AS col2, - 11 * COUNT ( * ) * COUNT ( * ) + 66 + + 54 * - - 99 AS col2 query I rowsort @@ -25580,7 +25580,7 @@ SELECT 44 * - + 86 + - MAX ( ALL + - 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -106570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(67\)\) AS Int32\) AS col0" at position 0 and "Int64\(\-91\) \+ count\(\*\) \- Int64\(88\) \* Int64\(55\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(67\)\) AS Int32\) AS col0" at position 0 and "Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(88\) \* Int64\(55\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + CAST ( - + 67 AS INTEGER ) ) AS col0, - 91 + COUNT ( * ) - 88 * 55 * 22 AS col0 # Datafusion - Datafusion expected results: @@ -25907,7 +25907,7 @@ SELECT - 9 + - - MAX ( + 12 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(86\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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 "Int64\(86\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 10 AS col0, 86 * + - COUNT ( * ) AS col0 query I rowsort label-4948 @@ -26867,7 +26867,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-21\) 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\(\*\)\) \* Int64\(\-21\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - 21 AS col1, 29 AS col1 query I rowsort label-5132 @@ -26879,7 +26879,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\(\*\) AS col2" at position 1 have 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 @@ -27289,7 +27289,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\(\*\) AS col1" at position 1 have the 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 @@ -28405,7 +28405,7 @@ SELECT ALL 15, + 69 * + 16 + - 96 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-74\)\) \+ Int64\(\-76\) \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(\-31\) / Int64\(65\) \* sum\(\(\- CAST\(Int64\(14\) AS Int32\)\)\) / \(\- \(\- \(\- count\(\*\)\)\)\) \+ count\(DISTINCT Int64\(91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-74\)\) \+ Int64\(\-76\) \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(\-31\) / Int64\(65\) \* sum\(\(\- CAST\(Int64\(14\) AS Int32\)\)\) / \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(DISTINCT Int64\(91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( ALL - 74 ) + + - 76 + + CAST ( NULL AS FLOAT8 ) col1, - 31 / + 65 * SUM ( - + CAST ( 14 AS INTEGER ) ) / - ( - ( + - COUNT ( * ) ) ) + COUNT ( DISTINCT 91 ) col1, - COALESCE ( + COUNT ( DISTINCT 31 ), - COUNT ( * ), - 46 * + NULLIF ( + ( - 60 ), - AVG ( + 83 ) ) ) query I rowsort @@ -29319,7 +29319,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\(\*\) AS col0" at position 1 have 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 @@ -29693,7 +29693,7 @@ SELECT ALL COUNT ( * ) / - 47 + 69 AS col0, + 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1564 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-15\), count\(\*\)\)\) AS col2" at position 0 and "sum\(DISTINCT Int64\(\-45\)\) \* Int64\(\-33\) \+ 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 "\(\- nullif\(Int64\(\-15\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "sum\(DISTINCT Int64\(\-45\)\) \* Int64\(\-33\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + NULLIF ( - 15, COUNT ( * ) ) AS col2, SUM ( DISTINCT + - 45 ) * - 33 + 79 AS col2 query I rowsort @@ -30710,7 +30710,7 @@ SELECT - COUNT ( DISTINCT - + 87 ) AS col2 # 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\(\-72\)\)\)\) AS col0" at position 0 and "Int64\(82\) \+ count\(\*\) \* Int64\(\-36\) \+ max\(DISTINCT 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\(\-72\)\)\)\) AS col0" at position 0 and "Int64\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) \+ max\(DISTINCT Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( - - 72 ) AS col0, 82 + ( + COUNT ( * ) ) * - 36 + MAX ( DISTINCT - 25 ) col0 query I rowsort label-5863 @@ -31807,7 +31807,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\(\*\) 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: @@ -32939,7 +32939,7 @@ SELECT - 78 * + 41 * 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(3\) AS col0" at position 0 and "Int64\(27\) \* Int64\(\-61\) \+ \(\- nullif\(min\(\(\- CAST\(NULL AS Int32\)\)\), \(\- Int64\(2\)\) / count\(\*\) \+ Int64\(81\) \+ Int64\(\-93\) \* Int64\(\-50\) \+ Int64\(59\)\)\) \* \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(3\) AS col0" at position 0 and "Int64\(27\) \* Int64\(\-61\) \+ \(\- nullif\(min\(\(\- CAST\(NULL AS Int32\)\)\), \(\- Int64\(2\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\) \+ Int64\(\-93\) \* Int64\(\-50\) \+ Int64\(59\)\)\) \* \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 26 - + ( + 3 ) AS col0, 27 * - 61 + - + NULLIF ( + MIN ( ALL + - CAST ( NULL AS INTEGER ) ), - ( + + 2 ) / + COUNT ( * ) + 81 + - 93 * - 50 + + + 59 ) * - + 40 AS col0 query I rowsort @@ -32987,7 +32987,7 @@ SELECT DISTINCT + 54 * - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) / \(\- 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\(\-63\) / \(\- 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 - 63 / - COUNT ( * ) AS col2, + 90 AS col2 query I rowsort @@ -33019,7 +33019,7 @@ SELECT 9 * 94 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -754 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(\-29\) AS col1" at position 0 and "\(\- coalesce\(Int64\(64\), Int64\(0\), nullif\(Int64\(\-87\), \(\- Int64\(35\)\) / Int64\(66\) \- Int64\(20\) \- Int64\(99\) \+ count\(\*\) \+ Int64\(\-28\)\) \* Int64\(12\) \* 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\(26\) \* Int64\(\-29\) AS col1" at position 0 and "\(\- coalesce\(Int64\(64\), Int64\(0\), nullif\(Int64\(\-87\), \(\- Int64\(35\)\) / Int64\(66\) \- Int64\(20\) \- Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-28\)\) \* Int64\(12\) \* Int64\(\-61\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 26 * - 29 AS col1, - COALESCE ( + 64, + 0, NULLIF ( - 87, - ( 35 ) / + 66 - + 20 - + 99 + + COUNT ( * ) + - 28 ) * + 12 * - 61 ) AS col1 query II rowsort @@ -33177,7 +33177,7 @@ SELECT DISTINCT COUNT ( * ) + + MIN ( ALL - 71 ) * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1063483174 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(\-59\) \+ Int64\(75\) \* Int64\(52\) \* Int64\(\-52\) \* Int64\(\-57\) \* \(\- Int64\(\-92\)\) \- \(\- Int64\(\-64\)\) AS col0" at position 0 and "CASE \(\- \(\- Int64\(53\)\)\) WHEN count\(\*\) \+ CAST\(Int64\(50\) AS Float64\) THEN Int64\(84\) END \+ max\(\(\- Int64\(78\)\)\) \+ Int64\(70\) \* \(\- Int64\(20\)\) \+ Int64\(21\) \* 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\(97\) \+ Int64\(\-59\) \+ Int64\(75\) \* Int64\(52\) \* Int64\(\-52\) \* Int64\(\-57\) \* \(\- Int64\(\-92\)\) \- \(\- Int64\(\-64\)\) AS col0" at position 0 and "CASE \(\- \(\- Int64\(53\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(50\) AS Float64\) THEN Int64\(84\) END \+ max\(\(\- Int64\(78\)\)\) \+ Int64\(70\) \* \(\- Int64\(20\)\) \+ Int64\(21\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 97 + - 59 + 75 * 52 * - 52 * - 57 * - - 92 - - - 64 AS col0, CASE - ( - + 53 ) WHEN + COUNT ( * ) + + CAST ( + 50 AS FLOAT8 ) THEN 84 END + MAX ( - + 78 ) + 70 * - + 20 + + + 21 * 70 AS col0 query I rowsort label-6330 @@ -34529,7 +34529,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 0 -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\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 AS col2, - ( + COUNT ( * ) ) / + 30 AS col2 query I rowsort label-6593 @@ -35572,7 +35572,7 @@ SELECT 29 * - 36 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(\-6\) 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\(\*\) \- Int64\(\-6\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) - - 6 AS col0, + 79 AS col0 query I rowsort label-6791 @@ -36136,7 +36136,7 @@ SELECT 3 * 29 * + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \- nullif\(\(\- Int64\(\-82\)\), \(\- \(\- count\(\*\)\)\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(53\) AS Int32\)\) \+ Int64\(\-52\) \+ Int64\(65\) / Int64\(58\) \+ Int64\(\-70\) \+ Int64\(29\) \- Int64\(89\) / nullif\(Int64\(39\), Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \- nullif\(\(\- Int64\(\-82\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(53\) AS Int32\)\) \+ Int64\(\-52\) \+ Int64\(65\) / Int64\(58\) \+ Int64\(\-70\) \+ Int64\(29\) \- Int64\(89\) / nullif\(Int64\(39\), Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 14 - + NULLIF ( - - 82, + ( - - COUNT ( * ) ) ) AS col1, - CAST ( 53 AS INTEGER ) + - 52 + + + 65 / + 58 + - 70 + 29 - + + 89 / + NULLIF ( + 39, 2 ) col1 query I rowsort label-6898 @@ -36239,7 +36239,7 @@ SELECT - 52 + - + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 2536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(56\) \+ \(\- Int64\(\-36\)\) \* Int64\(70\) \+ nullif\(Int64\(\-40\), count\(\*\)\) AS col1" at position 1 have the 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\(56\) \+ \(\- Int64\(\-36\)\) \* Int64\(70\) \+ nullif\(Int64\(\-40\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 AS col1, + 56 + - - 36 * + 70 + + NULLIF ( - 40, + COUNT ( * ) ) AS col1 query I rowsort @@ -36516,7 +36516,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\(\*\) 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 @@ -37885,7 +37885,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\(\*\) AS col1" at position 1 have the 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 @@ -37968,7 +37968,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\(\*\) 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 @@ -38333,7 +38333,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ count\(\*\) \- Int64\(\-69\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-69\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 68 + COUNT ( * ) - - 69 col1, 44 AS col1 query I rowsort label-7316 @@ -38496,7 +38496,7 @@ SELECT ALL 61 * + - 61 AS col0, 64 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\(\-2\) 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\(\*\) \+ Int64\(\-2\) 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 ( * ) + - 2 AS col0, 48 AS col0 query I rowsort label-7347 @@ -38873,7 +38873,7 @@ SELECT ALL - 17, 83 - + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) \+ Int64\(37\) \- Int64\(94\) \+ \(\- Int64\(95\)\) AS col2" at position 0 and "Int64\(96\) \+ nullif\(count\(\*\), count\(\*\) \* count\(\*\) \+ CAST\(Int64\(\-70\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) \+ Int64\(37\) \- Int64\(94\) \+ \(\- Int64\(95\)\) AS col2" at position 0 and "Int64\(96\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-70\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 74 + + 37 - + 94 + - + 95 AS col2, 96 + + NULLIF ( + COUNT ( * ), + + COUNT ( * ) * + + COUNT ( * ) + CAST ( - 70 AS INTEGER ) ) AS col2 query II rowsort @@ -39274,7 +39274,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\(\*\)\) \+ count\(\*\) \- Int64\(82\) \+ 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 @@ -40211,7 +40211,7 @@ SELECT DISTINCT 37 * + - 55 * 57 AS col1 # 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\(\*\)\) AS col0" at position 1 have the 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 ( * ) AS col0 query I rowsort label-7673 @@ -40475,7 +40475,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -40909,7 +40909,7 @@ SELECT ALL 13 * + - 42 # 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 "Int64\(\-69\) / coalesce\(Int64\(59\), \(\- \(\- 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\(\-69\) / coalesce\(Int64\(59\), \(\- \(\- 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 + - 69 / + COALESCE ( + 59, - - COUNT ( * ) ) AS col0, - 24 AS col0 query I rowsort label-7806 @@ -41051,7 +41051,7 @@ SELECT ALL - 3 - + 17 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(32\) \* Int64\(35\) AS col0" at position 0 and "coalesce\(Int64\(52\), \(\- nullif\(Int64\(78\), Int64\(74\) \+ count\(\*\) \+ \(\- \(\- Int64\(67\)\)\) \* Int64\(7\) \+ coalesce\(Int64\(13\), \(\- Int64\(75\)\) \* count\(Int64\(\-20\)\) \+ \(\- Int64\(\-33\)\) \- \(\- Int64\(45\)\)\) \+ Int64\(34\) / Int64\(53\)\)\) / nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(35\) / CAST\(Int64\(15\) AS Float64\) \* Int64\(\-43\)\) / Int64\(76\), Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(32\) \* Int64\(35\) AS col0" at position 0 and "coalesce\(Int64\(52\), \(\- nullif\(Int64\(78\), Int64\(74\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(67\)\)\) \* Int64\(7\) \+ coalesce\(Int64\(13\), \(\- Int64\(75\)\) \* count\(Int64\(\-20\)\) \+ \(\- Int64\(\-33\)\) \- \(\- Int64\(45\)\)\) \+ Int64\(34\) / Int64\(53\)\)\) / nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(35\) / CAST\(Int64\(15\) AS Float64\) \* Int64\(\-43\)\) / Int64\(76\), Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 + - CAST ( NULL AS INTEGER ) + 32 * ( 35 ) AS col0, COALESCE ( 52, - ( + NULLIF ( 78, + 74 + + + COUNT ( * ) + - + ( - + 67 ) * 7 + COALESCE ( + 13, ( - + 75 ) * COUNT ( - 20 ) + - - 33 - - ( + 45 ) ) + + + 34 / 53 ) ) / NULLIF ( - CAST ( NULL AS INTEGER ), + 35 / + + CAST ( + 15 AS FLOAT8 ) * - 43 ) / + 76, + ( + 89 ) ) col0 query II rowsort @@ -43702,7 +43702,7 @@ SELECT + SUM ( DISTINCT 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "coalesce\(\(\- CASE \(\- Int64\(6\)\) WHEN Int64\(8\) \* Int64\(\-4\) \+ \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) THEN NULL WHEN \(\- count\(\*\)\) THEN Int64\(\-64\) END\), Int64\(46\) \* CASE Int64\(21\) WHEN \(\- Int64\(70\)\) \+ Int64\(13\) THEN NULL WHEN Int64\(35\) THEN Int64\(26\) \+ Int64\(56\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "coalesce\(\(\- CASE \(\- Int64\(6\)\) WHEN Int64\(8\) \* Int64\(\-4\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-64\) END\), Int64\(46\) \* CASE Int64\(21\) WHEN \(\- Int64\(70\)\) \+ Int64\(13\) THEN NULL WHEN Int64\(35\) THEN Int64\(26\) \+ Int64\(56\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 AS col0, + COALESCE ( - CASE - + 6 WHEN + 8 * - 4 + - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN + - 64 END, 46 * + CASE 21 WHEN - ( 70 ) + 13 THEN NULL WHEN + 35 THEN 26 + 56 ELSE NULL END ) AS col0 query I rowsort @@ -45307,7 +45307,7 @@ SELECT - COUNT ( DISTINCT COALESCE ( + 91, + 15 ) ), 51 * 11 * + 26 * - - 13 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 14555 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \+ count\(\*\) \+ Int64\(15\) \+ Int64\(25\) AS col0" at position 0 and "Int64\(\-71\) \* Int64\(\-41\) \* 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\(\-95\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) \+ Int64\(25\) AS col0" at position 0 and "Int64\(\-71\) \* Int64\(\-41\) \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 + COUNT ( * ) + + 15 + 25 AS col0, - 71 * + - 41 * + 5 col0 query I rowsort label-8653 @@ -45345,7 +45345,7 @@ SELECT DISTINCT + 18 / + CAST ( 47 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19711230 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* Int64\(\-98\) \* \(\- count\(\*\)\) \* Int64\(69\) \* Int64\(55\) AS col0" at position 0 and "coalesce\(Int64\(24\), Int64\(63\), 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\(\-53\) \* Int64\(\-98\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(69\) \* Int64\(55\) AS col0" at position 0 and "coalesce\(Int64\(24\), Int64\(63\), Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 * - 98 * - COUNT ( * ) * 69 * 55 AS col0, COALESCE ( 24, 63, - 79 ) AS col0 query I rowsort @@ -45695,7 +45695,7 @@ SELECT DISTINCT - NULLIF ( - 12, + CAST ( - 14 AS INTEGER ) + - CAST ( + 26 AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(41\) 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\(\*\) \* Int64\(41\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * 41 AS col2, 20 AS col2 query I rowsort label-8726 @@ -46107,7 +46107,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\), Int64\(51\)\) \* count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(\-99\) \+ Int64\(\-71\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\), Int64\(51\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(\-99\) \+ Int64\(\-71\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( + + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ), 51 ) * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) / - 99 + + - 71 AS col0, + ( 83 ) AS col0 query I rowsort @@ -46647,7 +46647,7 @@ SELECT ALL + - 24 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(77\) / Int64\(14\) \+ \(\- CASE Int64\(60\) WHEN Int64\(16\) \+ Int64\(18\) THEN NULL WHEN \(\- Int64\(23\)\) THEN \(\- CASE Int64\(31\) WHEN Int64\(\-39\) \- Int64\(45\) THEN count\(\*\) \+ Int64\(96\) END\) \+ 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 "Int64\(71\) AS col2" at position 0 and "Int64\(77\) / Int64\(14\) \+ \(\- CASE Int64\(60\) WHEN Int64\(16\) \+ Int64\(18\) THEN NULL WHEN \(\- Int64\(23\)\) THEN \(\- CASE Int64\(31\) WHEN Int64\(\-39\) \- Int64\(45\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) END\) \+ Int64\(23\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 71 AS col2, 77 / 14 + - CASE 60 WHEN + 16 + 18 THEN NULL WHEN + - ( 23 ) THEN + - CASE 31 WHEN - 39 - 45 THEN + + COUNT ( * ) + + 96 END + + 23 END AS col2 query I rowsort label-8905 @@ -46863,7 +46863,7 @@ SELECT - ( + - ( - 47 ) ) # 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\(\*\)\) AS col1" at position 1 have the 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 query I rowsort label-8946 @@ -47758,7 +47758,7 @@ SELECT + ( COUNT ( + - 88 ) ) * - + NULLIF ( + COUNT ( * ), + 26 ) - 44 * 36 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 39 -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\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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 24 col1, COUNT ( * ) * 39 AS col1 query I rowsort label-9115 @@ -48352,7 +48352,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\(\*\) AS col1" at position 1 have the 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 @@ -48639,7 +48639,7 @@ SELECT ALL + 55 / 5 + - 58 - + - 0 + + 30 # Datafusion - Expected - -1 # Datafusion - Expected - 169 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 ALL + - COUNT ( * ) AS col2, 3 + - - ( CASE CASE - + 14 WHEN - + COALESCE ( + 30, COUNT ( * ) ) THEN - 9 + + - 64 END WHEN - NULLIF ( - AVG ( + 47 ), + COUNT ( * ) ) THEN NULL ELSE + - 80 + COUNT ( * ) + + 56 - - 52 END ) + + 99 + + 38, 97 AS col2 query II rowsort label-9281 @@ -48780,7 +48780,7 @@ SELECT ALL 27 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-36\)\) WHEN Int64\(\-58\) \* Int64\(\-3\) \- avg\(DISTINCT CASE Int64\(\-69\) WHEN Int64\(82\) \+ Int64\(\-78\) THEN NULL WHEN Int64\(64\) THEN Int64\(\-63\) \+ Int64\(97\) END\) THEN NULL WHEN Int64\(16\) \- \(\- coalesce\(Int64\(43\), Int64\(70\)\)\) \* Int64\(67\) THEN \(\- count\(\*\)\) ELSE \(\- count\(\*\)\) END AS col1" at position 0 and "CASE \(\- Int64\(42\)\) WHEN \(\- Int64\(\-12\)\) THEN CAST\(Int64\(29\) AS Int32\) \+ Int64\(\-52\) ELSE count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-36\)\) WHEN Int64\(\-58\) \* Int64\(\-3\) \- avg\(DISTINCT CASE Int64\(\-69\) WHEN Int64\(82\) \+ Int64\(\-78\) THEN NULL WHEN Int64\(64\) THEN Int64\(\-63\) \+ Int64\(97\) END\) THEN NULL WHEN Int64\(16\) \- \(\- coalesce\(Int64\(43\), Int64\(70\)\)\) \* Int64\(67\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "CASE \(\- Int64\(42\)\) WHEN \(\- Int64\(\-12\)\) THEN CAST\(Int64\(29\) AS Int32\) \+ Int64\(\-52\) ELSE count\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - - 36 WHEN - 58 * - 3 - + AVG ( DISTINCT CASE - 69 WHEN 82 + - 78 THEN NULL WHEN 64 THEN - 63 + + + 97 END ) THEN NULL WHEN 16 - - COALESCE ( 43, 70 ) * 67 THEN - COUNT ( * ) ELSE + - COUNT ( * ) END AS col1, CASE - + 42 WHEN - - 12 THEN + CAST ( 29 AS INTEGER ) + - 52 ELSE + + COUNT ( * ) END AS col1 query I rowsort label-9308 @@ -49394,7 +49394,7 @@ SELECT 50 * + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(12\) \+ count\(\*\) \* Int64\(43\) AS col1" at position 0 and "Int64\(82\) \- CAST\(\(\- Int64\(\-81\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(12\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) AS col1" at position 0 and "Int64\(82\) \- CAST\(\(\- Int64\(\-81\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 * 12 + + COUNT ( * ) * 43 AS col1, 82 - + + CAST ( - - 81 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: @@ -50053,7 +50053,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\(\*\) 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 @@ -51708,7 +51708,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 "coalesce\(count\(\*\), Int64\(64\), Int64\(10\)\) AS col0" at position 0 and "Int64\(18\) \+ \(\- 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 "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(64\), Int64\(10\)\) AS col0" at position 0 and "Int64\(18\) \+ \(\- Int64\(\-52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( COUNT ( * ), + + 64, 10 ) AS col0, + 18 + - - 52 col0 query II rowsort label-9875 diff --git a/data/sqlite/random/expr/slt_good_58.slt b/data/sqlite/random/expr/slt_good_58.slt index c428822..2d414d2 100644 --- a/data/sqlite/random/expr/slt_good_58.slt +++ b/data/sqlite/random/expr/slt_good_58.slt @@ -2980,7 +2980,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(48\)\) \+ nullif\(\(\- count\(\*\)\), Int64\(\-97\) \* Int64\(49\) \* Int64\(48\)\) \- Int64\(63\) AS col2" at position 0 and "Int64\(\-85\) \* 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\(48\)\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-97\) \* Int64\(49\) \* Int64\(48\)\) \- Int64\(63\) AS col2" at position 0 and "Int64\(\-85\) \* Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( + 48 ) + NULLIF ( + - COUNT ( * ), - 97 * + 49 * + 48 ) - 63 AS col2, - 85 * - 6 AS col2 query I rowsort label-561 @@ -3598,7 +3598,7 @@ SELECT ALL - 87 + + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 370816 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(74\) \- count\(\*\) \+ \(\- Int64\(\-22\)\) \+ Int64\(\-22\) \+ Int64\(\-74\) \- Int64\(\-58\) \* nullif\(Int64\(98\), Int64\(60\)\) \* Int64\(65\) \+ Int64\(\-18\) / \(\- Int64\(\-39\)\) \+ Int64\(61\) \+ CAST\(Int64\(27\) AS Int32\) \* Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(74\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-22\)\) \+ Int64\(\-22\) \+ Int64\(\-74\) \- Int64\(\-58\) \* nullif\(Int64\(98\), Int64\(60\)\) \* Int64\(65\) \+ Int64\(\-18\) / \(\- Int64\(\-39\)\) \+ Int64\(61\) \+ CAST\(Int64\(27\) AS Int32\) \* Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 AS col1, 74 - COUNT ( * ) + - - 22 + + - 22 + - 74 - - 58 * NULLIF ( + ( + 98 ), + 60 ) * + 65 + + - 18 / - - 39 + + 61 + + CAST ( ( 27 ) AS INTEGER ) * + 48 col1 query I rowsort label-679 @@ -4112,7 +4112,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8645 # Datafusion - Expected - -184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(91\) AS col1" at position 0 and "Int64\(4\) \* \(\- count\(\*\)\) \* 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\(95\) \* Int64\(91\) AS col1" at position 0 and "Int64\(4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 * 91 AS col1, 4 * - COUNT ( * ) * + 46 col1 query I rowsort @@ -4481,7 +4481,7 @@ SELECT - - 96 AS col2, + 97 AS col1 # Datafusion - Expected - 27 # Datafusion - Expected - 17 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-66\), \(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-66\), \(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 AS col1, 17 AS col2, - COALESCE ( - 66, - ( + CAST ( NULL AS INTEGER ) ) ) * - - COUNT ( * ) AS col1 query II rowsort @@ -4571,7 +4571,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\(\*\) AS col2" at position 1 have the 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 @@ -5810,7 +5810,7 @@ SELECT ALL 77 * + 57 - + 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 16381 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(54\) AS col1" at position 0 and "count\(\*\) \+ Int64\(91\) \* Int64\(20\) \* 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\(\*\) / Int64\(54\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) \* Int64\(20\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / + + 54 AS col1, COUNT ( * ) + ( + + 91 ) * + 20 * 9 AS col1 query I rowsort @@ -6377,7 +6377,7 @@ SELECT DISTINCT - COUNT ( + 79 ) / 22 * - 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(3\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-3\) \- Int64\(81\) \- \(\- CASE Int64\(\-31\) WHEN \(\- \(\- min\(Int64\(54\)\)\)\) \+ Int64\(15\) THEN NULL ELSE Int64\(11\) / coalesce\(CASE Int64\(\-32\) WHEN Int64\(56\) THEN Int64\(\-21\) END, Int64\(37\) \- \(\- Int64\(23\)\), Int64\(0\)\) END\) \* CAST\(Int64\(64\) AS Int32\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-3\) \- Int64\(81\) \- \(\- CASE Int64\(\-31\) WHEN \(\- \(\- min\(Int64\(54\)\)\)\) \+ Int64\(15\) THEN NULL ELSE Int64\(11\) / coalesce\(CASE Int64\(\-32\) WHEN Int64\(56\) THEN Int64\(\-21\) END, Int64\(37\) \- \(\- Int64\(23\)\), Int64\(0\)\) END\) \* CAST\(Int64\(64\) AS Int32\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * 3 + + ( + - CAST ( NULL AS INTEGER ) ) + + - 3 - 81 - ( - CASE - 31 WHEN - - MIN ( 54 ) + + + 15 THEN NULL ELSE 11 / COALESCE ( + CASE - 32 WHEN 56 THEN - 21 END, + + 37 - - + 23, - 0 ) END ) * + CAST ( + 64 AS INTEGER ) AS col2, 14 AS col2 query I rowsort label-1208 @@ -6594,7 +6594,7 @@ SELECT + NULLIF ( + 65, + 28 ) AS col2, 21 # 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\(\*\)\) AS col2" at position 1 have the 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 query I rowsort label-1250 @@ -7870,7 +7870,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\(\*\) 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 - Datafusion expected results: @@ -8287,7 +8287,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\(\*\) 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 @@ -10242,7 +10242,7 @@ SELECT ALL 49 * + 9 * + - 57 # 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\(\-61\) / Int64\(57\) AS col1" at position 0 and "Int64\(12\) \- Int64\(79\) \+ nullif\(\(\- count\(\*\)\), Int64\(39\) \* Int64\(15\) \+ \(\- sum\(Int64\(\-7\)\)\) \* count\(\*\) \+ Int64\(\-80\)\) \+ Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) / Int64\(57\) AS col1" at position 0 and "Int64\(12\) \- Int64\(79\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(39\) \* Int64\(15\) \+ \(\- sum\(Int64\(\-7\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-80\)\) \+ Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 61 / + 57 AS col1, + 12 - + 79 + NULLIF ( - COUNT ( * ), + 39 * 15 + - SUM ( ALL - 7 ) * COUNT ( * ) + - 80 ) + + 71 AS col1 query I rowsort label-1951 @@ -10827,7 +10827,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -11365,7 +11365,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\(\*\) AS col1" at position 1 have the 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 @@ -11625,7 +11625,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2184 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(9\) \- Int64\(85\) \+ Int64\(31\) \* \(\- CAST\(Int64\(86\) AS Int32\)\) AS col1" at position 0 and "count\(\*\) / CAST\(Int64\(57\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(9\) \- Int64\(85\) \+ Int64\(31\) \* \(\- CAST\(Int64\(86\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(57\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 63 * 9 - 85 + ( 31 ) * + - CAST ( + 86 AS INTEGER ) AS col1, COUNT ( * ) / + CAST ( 57 AS INTEGER ) AS col1 query I rowsort label-2214 @@ -12870,7 +12870,7 @@ SELECT ALL 74 - - + 73 * 71, - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-39\), coalesce\(Int64\(\-41\), \(\- count\(\*\)\)\) \* Int64\(\-63\)\)\) \+ nullif\(Int64\(15\), \(\- count\(\*\)\) \* count\(\*\) \* Int64\(\-43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-39\), coalesce\(Int64\(\-41\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-63\)\)\) \+ nullif\(Int64\(15\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 47 AS col1, - NULLIF ( + - 39, + COALESCE ( - 41, - COUNT ( * ) ) * + - 63 ) + NULLIF ( 15, + - COUNT ( * ) * COUNT ( * ) * - 43 ) AS col1 query I rowsort label-2451 @@ -13776,7 +13776,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\(\*\)\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -14891,7 +14891,7 @@ SELECT ALL - COUNT ( - 51 ) / + 5 * - 36 - COUNT ( * ) + + MAX ( DISTINCT + + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(13\) \+ CASE Int64\(77\) WHEN Int64\(67\) THEN Int64\(64\) END \- \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- count\(\*\)\)\) \* Int64\(\-72\) \* coalesce\(Int64\(\-33\), Int64\(29\) \* Int64\(99\) \+ CAST\(Int64\(97\) AS Int32\), \(\- min\(Int64\(\-92\)\)\) \* Int64\(\-39\) \* Int64\(\-99\) \+ Int64\(\-2\) / Int64\(\-88\) \* Int64\(\-1\) / Int64\(74\) \* Int64\(34\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(13\) \+ CASE Int64\(77\) WHEN Int64\(67\) THEN Int64\(64\) END \- \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-72\) \* coalesce\(Int64\(\-33\), Int64\(29\) \* Int64\(99\) \+ CAST\(Int64\(97\) AS Int32\), \(\- min\(Int64\(\-92\)\)\) \* Int64\(\-39\) \* Int64\(\-99\) \+ Int64\(\-2\) / Int64\(\-88\) \* Int64\(\-1\) / Int64\(74\) \* Int64\(34\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 col0, 13 + + CASE + 77 WHEN + 67 THEN 64 END - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + - 72 * + COALESCE ( - 33, + 29 * ( + 99 ) + + CAST ( 97 AS INTEGER ), + - MIN ( + - 92 ) * + - 39 * - 99 + - 2 / - 88 * - 1 / 74 * + 34 ) + + - COUNT ( * ) AS col0 query I rowsort label-2836 @@ -16656,7 +16656,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\(23\) \* Int64\(17\) \* \(\- CAST\(\(\- nullif\(Int64\(73\), Int64\(11\) \* \(\- Int64\(\-10\) \* Int64\(83\)\)\)\) \+ 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 @@ -17088,7 +17088,7 @@ SELECT - 98 + - - ( + + 15 ) col2, - ( + 54 ) * 78 - - + 35 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\(\*\)\) 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 I rowsort @@ -17812,7 +17812,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\(\*\) 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 @@ -18792,7 +18792,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\(\*\) AS col1" at position 1 have the 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 @@ -19000,7 +19000,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\(\*\) 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 @@ -19959,7 +19959,7 @@ SELECT DISTINCT - 38 * + + 90 * - + ( + + 41 ) 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\(27\) \+ Int64\(65\) \* CASE Int64\(99\) WHEN count\(\*\) \* Int64\(5\) \+ Int64\(51\) THEN CASE Int64\(\-24\) WHEN Int64\(89\) \+ \(\- Int64\(0\)\) THEN Int64\(98\) END ELSE NULL END \+ \(\- sum\(DISTINCT Int64\(14\)\)\) AS col0" at position 0 and "Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(65\) \* CASE Int64\(99\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(5\) \+ Int64\(51\) THEN CASE Int64\(\-24\) WHEN Int64\(89\) \+ \(\- Int64\(0\)\) THEN Int64\(98\) END ELSE NULL END \+ \(\- sum\(DISTINCT Int64\(14\)\)\) 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 + 27 + + 65 * CASE 99 WHEN + COUNT ( * ) * 5 + + 51 THEN + CASE - 24 WHEN 89 + - + 0 THEN 98 END ELSE NULL END + - + SUM ( DISTINCT + 14 ) AS col0, - 61 AS col0 query I rowsort @@ -21259,7 +21259,7 @@ SELECT ALL NULLIF ( - 56, + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-88\)\)\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(58\) AS col0" at position 0 and "\(\- CASE Int64\(54\) WHEN Int64\(8\) \* Int64\(71\) \+ sum\(Int64\(\-86\)\) THEN \(\- Int64\(\-94\)\) / Int64\(75\) \* \(\- Int64\(\-33\)\) / Int64\(1\) / Int64\(\-33\) \+ \(\- count\(\*\)\) \+ Int64\(\-61\) \+ Int64\(\-85\) WHEN Int64\(38\) THEN Int64\(\-50\) WHEN coalesce\(Int64\(62\), Int64\(57\) \* Int64\(41\), Int64\(55\)\) \+ Int64\(33\) THEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-21\) \+ Int64\(94\) \* CAST\(Int64\(70\) AS Int32\) \* count\(Int64\(\-29\)\) END\) \+ \(\- CASE \(\- min\(Int64\(58\)\)\) WHEN Int64\(36\) THEN Int64\(10\) WHEN Int64\(71\) \* count\(\*\) THEN NULL ELSE NULL END\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-88\)\)\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(58\) AS col0" at position 0 and "\(\- CASE Int64\(54\) WHEN Int64\(8\) \* Int64\(71\) \+ sum\(Int64\(\-86\)\) THEN \(\- Int64\(\-94\)\) / Int64\(75\) \* \(\- Int64\(\-33\)\) / Int64\(1\) / Int64\(\-33\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-61\) \+ Int64\(\-85\) WHEN Int64\(38\) THEN Int64\(\-50\) WHEN coalesce\(Int64\(62\), Int64\(57\) \* Int64\(41\), Int64\(55\)\) \+ Int64\(33\) THEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-21\) \+ Int64\(94\) \* CAST\(Int64\(70\) AS Int32\) \* count\(Int64\(\-29\)\) END\) \+ \(\- CASE \(\- min\(Int64\(58\)\)\) WHEN Int64\(36\) THEN Int64\(10\) WHEN Int64\(71\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE NULL END\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - MIN ( - 88 ) / - ( + + CAST ( NULL AS INTEGER ) ) * 58 AS col0, - CASE + 54 WHEN 8 * 71 + SUM ( ALL - 86 ) THEN - - 94 / ( + 75 ) * - - 33 / 1 / + ( - 33 ) + - COUNT ( * ) + - 61 + - 85 WHEN 38 THEN - 50 WHEN + COALESCE ( + + 62, 57 * 41, 55 ) + + 33 THEN - CAST ( NULL AS INTEGER ) + + - 21 + + 94 * CAST ( 70 AS INTEGER ) * COUNT ( ALL - 29 ) END + - CASE - MIN ( 58 ) WHEN 36 THEN 10 WHEN ( 71 ) * + COUNT ( * ) THEN NULL ELSE NULL END * + 55 AS col0 query I rowsort label-4061 @@ -22236,7 +22236,7 @@ SELECT - 58 + + + 86 + - ( - 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- \(\- Int64\(\-99\)\) / \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ Int64\(\-52\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(51\) \* Int64\(73\) \+ Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- \(\- Int64\(\-99\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ Int64\(\-52\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(51\) \* Int64\(73\) \+ Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 42 - - - 99 / - + COUNT ( * ) AS col2, 51 + - 52 + - CAST ( NULL AS INTEGER ) * + 51 * + ( 73 ) + + 12 AS col2 # Datafusion - Datafusion expected results: @@ -22789,7 +22789,7 @@ SELECT DISTINCT ( + - 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -4069 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(2\) \* Int64\(45\) \* \(\- CAST\(\(\- nullif\(Int64\(\-46\), Int64\(4\) \+ min\(\(\- Int64\(10\)\)\) \* Int64\(2\) \* \(\- CASE Int64\(88\) WHEN Int64\(64\) THEN max\(DISTINCT Int64\(95\)\) \+ \(\- count\(\*\)\) \+ Int64\(83\) \+ Int64\(29\) WHEN Int64\(\-89\) THEN NULL WHEN Int64\(61\) / \(\- count\(\*\)\) THEN Int64\(27\) \* Int64\(6\) ELSE Int64\(7\) \* \(\- Int64\(40\)\) \* Int64\(\-58\) \* count\(\*\) END\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(2\) \* Int64\(45\) \* \(\- CAST\(\(\- nullif\(Int64\(\-46\), Int64\(4\) \+ min\(\(\- Int64\(10\)\)\) \* Int64\(2\) \* \(\- CASE Int64\(88\) WHEN Int64\(64\) THEN max\(DISTINCT Int64\(95\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(83\) \+ Int64\(29\) WHEN Int64\(\-89\) THEN NULL WHEN Int64\(61\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(27\) \* Int64\(6\) ELSE Int64\(7\) \* \(\- Int64\(40\)\) \* Int64\(\-58\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 55 AS col1, 71 + + ( + 2 ) * 45 * + - CAST ( - NULLIF ( + - 46, + ( + 4 ) + + + MIN ( - + 10 ) * + ( + 2 ) * - CASE + 88 WHEN 64 THEN + MAX ( DISTINCT 95 ) + + - COUNT ( * ) + 83 + 29 WHEN - 89 THEN NULL WHEN 61 / - COUNT ( * ) THEN 27 * 6 ELSE 7 * - + 40 * - 58 * + COUNT ( * ) END ) AS INTEGER ) AS col1 query I rowsort label-4348 @@ -24165,7 +24165,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\(\*\) AS col0" at position 1 have the 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 @@ -24248,7 +24248,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\(\*\) AS Int32\)\) AS col0" at position 1 have the 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 @@ -26165,7 +26165,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\(\*\) 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 @@ -26567,7 +26567,7 @@ SELECT - + 80 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(24\)\) / Int64\(48\) \* Int64\(\-24\) \+ count\(\*\) \+ Int64\(29\) \+ Int64\(58\) 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 "sum\(DISTINCT Int64\(24\)\) / Int64\(48\) \* Int64\(\-24\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(29\) \+ Int64\(58\) 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 + SUM ( DISTINCT 24 ) / + + 48 * + - 24 + COUNT ( * ) + + 29 + 58 AS col0, - 72 col0 query I rowsort label-5072 @@ -27070,7 +27070,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(53\) \+ Int64\(52\) AS col2" at position 0 and "Int64\(5\) \+ \(\- Int64\(\-56\)\) \+ CASE Int64\(\-21\) WHEN Int64\(\-66\) THEN NULL WHEN Int64\(72\) \+ Int64\(96\) \+ Int64\(57\) THEN \(\- count\(\*\)\) ELSE NULL END \+ 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\(\*\)\) \+ Int64\(53\) \+ Int64\(52\) AS col2" at position 0 and "Int64\(5\) \+ \(\- Int64\(\-56\)\) \+ CASE Int64\(\-21\) WHEN Int64\(\-66\) THEN NULL WHEN Int64\(72\) \+ Int64\(96\) \+ Int64\(57\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END \+ Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) + + 53 + 52 col2, 5 + - - 56 + + CASE - 21 WHEN - 66 THEN NULL WHEN 72 + 96 + + 57 THEN - COUNT ( * ) ELSE NULL END + - 92 col2 # Datafusion - Types were automatically converted from: @@ -28335,7 +28335,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\(\*\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -28893,7 +28893,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -681308 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "Int64\(89\) \* Int64\(89\) \* \(\- Int64\(86\)\) \+ Int64\(26\) / Int64\(98\) \+ count\(\*\) \+ Int64\(29\) \+ \(\- count\(\*\)\) \* sum\(DISTINCT Int64\(47\)\) \+ 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\(\-7\) AS col1" at position 0 and "Int64\(89\) \* Int64\(89\) \* \(\- Int64\(86\)\) \+ Int64\(26\) / Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT Int64\(47\)\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 7 col1, 89 * + + 89 * - + 86 + + 26 / + 98 + + + COUNT ( * ) + 29 + - COUNT ( * ) * + SUM ( DISTINCT + 47 ) + - 85 AS col1 # Datafusion - Datafusion expected results: @@ -28979,7 +28979,7 @@ SELECT ALL + COUNT ( * ) * + 4, 93 + 92 - - 23 + + 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-36\) 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\(\*\) \* Int64\(\-36\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 36 AS col0, - 5 AS col0 query II rowsort @@ -30730,7 +30730,7 @@ SELECT DISTINCT - ( - + 42 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(14\)\) \+ Int64\(89\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN \(\- CAST\(Int64\(\-80\) AS Int32\)\) THEN Int64\(6\) ELSE NULL END \* Int64\(31\) / \(\- Int64\(97\)\) \* \(\- count\(\*\)\) \* max\(Int64\(\-39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(14\)\) \+ Int64\(89\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN \(\- CAST\(Int64\(\-80\) AS Int32\)\) THEN Int64\(6\) ELSE NULL END \* Int64\(31\) / \(\- Int64\(97\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(\-39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 14 + + 89 AS col0, CASE - 98 WHEN - CAST ( - 80 AS INTEGER ) THEN + 6 ELSE NULL END * + 31 / - + 97 * - COUNT ( * ) * + MAX ( ALL - 39 ) AS col0 query I rowsort @@ -31307,7 +31307,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\(\*\) 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: @@ -31714,7 +31714,7 @@ SELECT 41 / - MAX ( - 54 ) + + 99 + 78 + - + 65 + + 37 AS col2, 93 # Datafusion - Expected - 3906 # Datafusion - Expected - -1279 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* Int64\(\-31\) \* count\(\*\) \* count\(\*\) \* Int64\(42\) \* Int64\(1\) AS col1" at position 0 and "Int64\(33\) \+ Int64\(\-16\) \* 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\) \* Int64\(\-31\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(42\) \* Int64\(1\) AS col1" at position 0 and "Int64\(33\) \+ Int64\(\-16\) \* Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 * + - 31 * + COUNT ( * ) * COUNT ( * ) * 42 * + ( 1 ) AS col1, + 33 + - 16 * + 82 AS col1, - 98 * + CAST ( NULL AS INTEGER ) / - + 51 query I rowsort label-6048 @@ -32304,7 +32304,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -724 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- Int64\(87\)\) \+ \(\- coalesce\(count\(\*\), Int64\(49\)\)\) \+ Int64\(\-27\) AS col0" at position 0 and "max\(\(\- Int64\(\-86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- Int64\(87\)\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(49\)\)\) \+ Int64\(\-27\) AS col0" at position 0 and "max\(\(\- Int64\(\-86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 8 * - ( + 87 ) + - COALESCE ( COUNT ( * ), 49 ) + - 27 AS col0, MAX ( ALL - - 86 ) AS col0 query I rowsort label-6162 @@ -34360,7 +34360,7 @@ SELECT + ( - MAX ( DISTINCT - + 42 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "nullif\(Int64\(53\), \(\- Int64\(\-17\)\) \+ Int64\(34\) \* \(\- count\(\*\)\)\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "nullif\(Int64\(53\), \(\- Int64\(\-17\)\) \+ Int64\(34\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( DISTINCT 16 ) AS col2, ( + NULLIF ( + 53, - - 17 + 34 * - COUNT ( * ) ) ) + 94 AS col2 query II rowsort label-6558 @@ -35129,7 +35129,7 @@ SELECT - 60, COUNT ( * ) AS col1 # Datafusion - Expected - 71 # Datafusion - Expected - 4363 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(46\) \* Int64\(98\) \+ \(\- Int64\(74\)\) \+ count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(46\) \* Int64\(98\) \+ \(\- Int64\(74\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 71 AS col2, 46 * + 98 + + - ( + 74 ) + COUNT ( * ) + - 72 AS col2, - CAST ( - - MIN ( + 79 ) AS INTEGER ) + - COUNT ( * ) AS col1 query I rowsort label-6705 @@ -36794,7 +36794,7 @@ SELECT ( - ( + + 16 ) ) * - + MIN ( ALL + 92 ) - + 57 + + 37 # 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\(11\) \* Int64\(95\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "CASE Int64\(\-59\) WHEN Int64\(45\) \* \(\- Int64\(\-6\)\) \* \(\- Int64\(\-96\)\) \* \(\- count\(\*\)\) THEN count\(\*\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CASE Int64\(\-59\) WHEN Int64\(45\) \* \(\- Int64\(\-6\)\) \* \(\- Int64\(\-96\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 * + + 95 + + - COUNT ( * ) AS col1, CASE - 59 WHEN 45 * - - 6 * - - 96 * - + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END AS col1 query II rowsort label-7022 @@ -36963,7 +36963,7 @@ SELECT - COUNT ( * ) AS col2, + 9 AS col1 # 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\(\*\)\) 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 ALL + - COUNT ( * ) AS col1, ( - ( - 23 ) ) AS col1 query II rowsort label-7054 @@ -37356,7 +37356,7 @@ SELECT 60 * - - 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(\*\), Int64\(8\) \+ \(\- avg\(Int64\(79\)\)\) \- \(\- Int64\(\-1\)\) \- Int64\(0\)\)\) \- Int64\(32\) 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 "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(8\) \+ \(\- avg\(Int64\(79\)\)\) \- \(\- Int64\(\-1\)\) \- Int64\(0\)\)\) \- Int64\(32\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( COUNT ( * ), + ( 8 ) + - AVG ( 79 ) - - ( - 1 ) - 0 ) - 32 AS col0, + 99 col0 query II rowsort @@ -39406,7 +39406,7 @@ SELECT - 32 / 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - COUNT ( * ) ), - COUNT ( * ) query II rowsort @@ -40163,7 +40163,7 @@ SELECT DISTINCT - 19 * - + 47, 63 AS col1 # Datafusion - Expected - -1 # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\)" at position 0 and "\(\- count\(\*\)\)" at position 2 have the same name\. Consider aliasing \("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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ), + COALESCE ( + 1, + COUNT ( * ) ) AS col0, - COUNT ( * ) query I rowsort @@ -40992,7 +40992,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\(\*\) AS col1" at position 1 have the 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 @@ -41071,7 +41071,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\(\*\) AS col0" at position 0 and "Int64\(83\) \+ count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -41154,7 +41154,7 @@ SELECT DISTINCT + COUNT ( * ) * - 64 * - - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ CASE Int64\(\-75\) WHEN Int64\(\-60\) THEN coalesce\(Int64\(51\), Int64\(66\)\) \+ \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- coalesce\(Int64\(\-85\), Int64\(19\) / count\(\*\) \+ Int64\(\-67\) \* Int64\(\-74\)\)\) \* Int64\(\-66\) \* \(\- Int64\(42\)\) \+ \(\- \(\- count\(\*\)\)\) \- avg\(Int64\(68\)\) \+ CAST\(NULL AS Int32\) \+ \(\- nullif\(\(\- min\(Int64\(49\)\)\), Int64\(95\) \+ count\(\*\)\)\) \* Int64\(\-40\) \* Int64\(\-98\) \- \(\- Int64\(\-20\)\) END AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ CASE Int64\(\-75\) WHEN Int64\(\-60\) THEN coalesce\(Int64\(51\), Int64\(66\)\) \+ \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- coalesce\(Int64\(\-85\), Int64\(19\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-67\) \* Int64\(\-74\)\)\) \* Int64\(\-66\) \* \(\- Int64\(42\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- avg\(Int64\(68\)\) \+ CAST\(NULL AS Int32\) \+ \(\- nullif\(\(\- min\(Int64\(49\)\)\), Int64\(95\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-40\) \* Int64\(\-98\) \- \(\- Int64\(\-20\)\) END AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 48 + CASE - 75 WHEN - 60 THEN COALESCE ( 51, 66 ) + - ( + CAST ( NULL AS INTEGER ) ) WHEN - 28 THEN NULL ELSE - COALESCE ( - 85, + 19 / + COUNT ( * ) + - 67 * - 74 ) * - 66 * - + 42 + - - COUNT ( * ) - + AVG ( 68 ) + + CAST ( NULL AS INTEGER ) + - NULLIF ( - + MIN ( + 49 ), + 95 + COUNT ( * ) ) * - 40 * + - 98 - - - 20 END AS col1, 85 col1 query I rowsort @@ -42204,7 +42204,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\(\*\) AS col0" at position 1 have the 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 @@ -43337,7 +43337,7 @@ SELECT - NULLIF ( + + 56, 12 * - AVG ( DISTINCT - - 23 ) * - 4 + - + 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 580 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(29\) \* \(\- \(\- 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\(20\) \* Int64\(29\) \* \(\- \(\- 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 20 * + 29 * - - COUNT ( * ) AS col2, + 11 AS col2 query II rowsort @@ -43471,7 +43471,7 @@ SELECT ALL 65 + + 3 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 124 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(31\) \+ Int64\(93\) 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\(\*\) \* Int64\(31\) \+ Int64\(93\) 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 ( * ) * 31 + + + 93 AS col2, + 22 AS col2 query I rowsort label-8300 @@ -43559,7 +43559,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\(\*\) AS col1" at position 1 have the 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 @@ -44703,7 +44703,7 @@ SELECT DISTINCT - 87 * - 29 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -5429 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- nullif\(Int64\(44\), Int64\(47\) \+ Int64\(94\) \+ Int64\(30\)\)\) \* Int64\(25\) / Int64\(\-99\) \* \(\- \(\- count\(\*\)\)\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-61\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- nullif\(Int64\(44\), Int64\(47\) \+ Int64\(94\) \+ Int64\(30\)\)\) \* Int64\(25\) / Int64\(\-99\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-61\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 65 * - NULLIF ( 44, + 47 + 94 + 30 ) * + 25 / - 99 * + ( - - COUNT ( * ) ) + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, ( - 61 ) * + + 89 AS col1, + - 15 + + SUM ( DISTINCT 59 ) * COUNT ( * ) AS col0 query I rowsort label-8534 @@ -45053,7 +45053,7 @@ SELECT DISTINCT MIN ( - CAST ( - ( 46 ) AS INTEGER ) ) AS col0 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col1, - 54 col1 query I rowsort @@ -47480,7 +47480,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\(\*\) AS col2" at position 1 have the 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 @@ -48371,7 +48371,7 @@ SELECT DISTINCT - - 31 * - 11 * 52 + COUNT ( + 6 ) - - COUNT ( * ) / 55 AS col1 # Datafusion - Expected - -24 # Datafusion - Expected - -1034 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(11\) AS col1" at position 1 and "Int64\(3\) / Int64\(64\) \+ Int64\(15\) \* count\(\*\) \+ CAST\(Int64\(\-95\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(11\) AS col1" at position 1 and "Int64\(3\) / Int64\(64\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-95\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( COUNT ( - - 36 ) ) + - 23, - 94 * + 11 AS col1, 3 / 64 + + 15 * COUNT ( * ) + + CAST ( + - 95 AS INTEGER ) AS col1 query I rowsort @@ -48382,7 +48382,7 @@ SELECT ALL + 89 - + - 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -26 -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\(\-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\(49\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 49 AS col2, COUNT ( * ) * - 26 col2 query I rowsort label-9236 @@ -50400,7 +50400,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\(\*\) 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 @@ -51229,7 +51229,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\(\*\) AS col1" at position 1 have the 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 d82eff3..e9c28fd 100644 --- a/data/sqlite/random/expr/slt_good_59.slt +++ b/data/sqlite/random/expr/slt_good_59.slt @@ -321,7 +321,7 @@ SELECT DISTINCT 50 * 59 * - 99 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\(\-74\) \+ Int64\(51\) AS col1" at position 0 and "Int64\(1\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(51\) 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 - 74 + 51 AS col1, 1 * - COUNT ( * ) AS col1 query I rowsort label-55 @@ -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\(\*\) 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 @@ -2788,7 +2788,7 @@ SELECT - SUM ( - ( + 22 ) ) + - 32 # Datafusion - Expected - -2165 # Datafusion - Expected - -84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* count\(\*\) \+ Int64\(35\) \* Int64\(\-60\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\) \* Int64\(\-60\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 * ( COUNT ( * ) ) + + 35 * - 60 AS col2, - 84 AS col2, COUNT ( * ) query I rowsort @@ -3326,7 +3326,7 @@ SELECT 47 * - CAST ( + - COUNT ( - - ( - 6 ) ) AS INTEGER ) * - - CASE 17 WHEN + # 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\(\*\)\) 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 query II rowsort label-629 @@ -5546,7 +5546,7 @@ SELECT 92 * - + 26 + + + 20 # 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\(16\) \+ Int64\(32\) AS col2" at position 0 and "CASE Int64\(81\) WHEN Int64\(38\) \+ Int64\(0\) \* Int64\(\-51\) THEN Int64\(86\) WHEN sum\(Int64\(\-47\)\) \* nullif\(Int64\(46\), Int64\(\-1\) \* Int64\(76\)\) \* Int64\(\-18\) \* count\(\*\) 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\(16\) \+ Int64\(32\) AS col2" at position 0 and "CASE Int64\(81\) WHEN Int64\(38\) \+ Int64\(0\) \* Int64\(\-51\) THEN Int64\(86\) WHEN sum\(Int64\(\-47\)\) \* nullif\(Int64\(46\), Int64\(\-1\) \* Int64\(76\)\) \* Int64\(\-18\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 + + + 32 col2, + CASE 81 WHEN 38 + + 0 * + - 51 THEN + + 86 WHEN + SUM ( + - 47 ) * + NULLIF ( 46, + - 1 * + 76 ) * - 18 * COUNT ( * ) THEN NULL END AS col2 query I rowsort label-1056 @@ -6457,7 +6457,7 @@ SELECT - MAX ( ALL 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1944 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(8\) \* \(\- Int64\(9\)\) AS col0" at position 0 and "coalesce\(count\(\*\), \(\- count\(\*\)\) \* sum\(DISTINCT Int64\(48\)\), 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\(27\) \* Int64\(8\) \* \(\- Int64\(9\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT Int64\(48\)\), Int64\(\-17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 * 8 * - + 9 col0, + COALESCE ( + + COUNT ( * ), - COUNT ( * ) * + SUM ( DISTINCT 48 ), - 17 ) AS col0 query I rowsort label-1231 @@ -9537,7 +9537,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\(\*\) 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 @@ -9846,7 +9846,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\(\*\) 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 @@ -10655,7 +10655,7 @@ SELECT - 68 AS col2, - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(67\) WHEN Int64\(\-34\) / Int64\(\-95\) THEN CAST\(NULL AS Int32\) \* Int64\(\-48\) \+ Int64\(\-29\) ELSE Int64\(\-68\) END \* \(\- \(\- count\(\*\)\)\) \+ Int64\(2\) \+ \(\- Int64\(88\)\) \- Int64\(38\) / Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(67\) WHEN Int64\(\-34\) / Int64\(\-95\) THEN CAST\(NULL AS Int32\) \* Int64\(\-48\) \+ Int64\(\-29\) ELSE Int64\(\-68\) END \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(2\) \+ \(\- Int64\(88\)\) \- Int64\(38\) / Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 AS col0, CASE + 67 WHEN + - 34 / + - 95 THEN + CAST ( NULL AS INTEGER ) * - 48 + + - 29 ELSE + - 68 END * - - COUNT ( * ) + + 2 + - + 88 - 38 / 3 AS col0 query II rowsort label-2037 @@ -10857,7 +10857,7 @@ SELECT + - 31 * - 66 + - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3419 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-97\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(\-38\) \* \(\- 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 "\(\- min\(Int64\(\-97\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - MIN ( - 97 ) AS col2, - COUNT ( * ) + - 38 * + - COUNT ( * ) * 90 AS col2 query I rowsort label-2076 @@ -11814,7 +11814,7 @@ SELECT ALL + 7 AS col1, + 77 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-45\) \* \(\- Int64\(\-70\)\) \+ count\(Int64\(66\)\) \* Int64\(58\) \+ \(\- nullif\(count\(\*\), Int64\(\-3\) / Int64\(76\) \* Int64\(\-94\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-45\) \* \(\- Int64\(\-70\)\) \+ count\(Int64\(66\)\) \* Int64\(58\) \+ \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-3\) / Int64\(76\) \* Int64\(\-94\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 78 col2, COUNT ( * ) * - 45 * - - 70 + COUNT ( + + ( + + 66 ) ) * + 58 + - NULLIF ( + COUNT ( * ), - 3 / 76 * + - 94 ) + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2258 @@ -12081,7 +12081,7 @@ SELECT DISTINCT COALESCE ( - 76, + - 9 ) + + 62 * - 76 + - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(70\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(70\) \* \(\- 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, 70 * - COUNT ( * ) AS col1 query I rowsort @@ -12426,7 +12426,7 @@ SELECT 31 * + CAST ( 79 AS INTEGER ) * 99 - + 50 # 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\(\-41\) AS col1" at position 0 and "Int64\(27\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 41 AS col1, 27 * + - COUNT ( * ) AS col1 query II rowsort @@ -13714,7 +13714,7 @@ SELECT DISTINCT - SUM ( DISTINCT - + 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -784392 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(98\) \* Int64\(\-92\) AS col2" at position 0 and "Int64\(\-58\) \* count\(\*\) \+ 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\(87\) \* Int64\(98\) \* Int64\(\-92\) AS col2" at position 0 and "Int64\(\-58\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 87 * + 98 * + - 92 AS col2, - 58 * + COUNT ( * ) + 33 AS col2 # Datafusion - Types were automatically converted from: @@ -14971,7 +14971,7 @@ SELECT 68 / 4 * - - MIN ( - 2 ) + + - 95 # Datafusion - Expected - -1 # Datafusion - Expected - 65 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(99\)\) \- coalesce\(\(\- Int64\(\-34\)\), Int64\(\-14\) \+ count\(\*\), Int64\(0\)\) AS col2" at position 1 and "Int64\(\-42\) \+ Int64\(21\) 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\(99\)\) \- coalesce\(\(\- Int64\(\-34\)\), Int64\(\-14\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(0\)\) AS col2" at position 1 and "Int64\(\-42\) \+ Int64\(21\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - COUNT ( * ) ) AS col1, MIN ( 99 ) - COALESCE ( - - 34, - 14 + COUNT ( * ), 0 ) col2, - 42 + 21 AS col2 query I rowsort @@ -15048,7 +15048,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\(\*\) 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 @@ -15267,7 +15267,7 @@ SELECT + 0 + 45 + + NULLIF ( + 62, - 78 ) * + - 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -942 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(39\)\) AS col0" at position 0 and "CASE Int64\(35\) WHEN \(\- Int64\(\-95\)\) \* Int64\(39\) THEN Int64\(13\) \+ \(\- nullif\(coalesce\(Int64\(88\), Int64\(41\)\), \(\- count\(\*\)\)\)\) / Int64\(27\) \+ Int64\(66\) ELSE count\(\*\) END \- Int64\(41\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(39\)\) AS col0" at position 0 and "CASE Int64\(35\) WHEN \(\- Int64\(\-95\)\) \* Int64\(39\) THEN Int64\(13\) \+ \(\- nullif\(coalesce\(Int64\(88\), Int64\(41\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(27\) \+ Int64\(66\) ELSE count\(Int64\(1\)\) AS count\(\*\) END \- Int64\(41\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT + 39 ) AS col0, + CASE + 35 WHEN - - 95 * + + 39 THEN + 13 + - NULLIF ( COALESCE ( + 88, + 41 ), - COUNT ( * ) ) / + 27 + + 66 ELSE COUNT ( * ) END - 41 * + 23 col0 query I rowsort label-2912 @@ -15381,7 +15381,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\(\*\) AS col2" at position 1 have the 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 @@ -15566,7 +15566,7 @@ SELECT - 82 / 42 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 693 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* \(\- Int64\(63\)\) AS col0" at position 0 and "count\(\*\) \+ \(\- min\(\(\- 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\(\-11\) \* \(\- Int64\(63\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(\(\- Int64\(79\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 11 * - + 63 AS col0, COUNT ( * ) + - MIN ( - + 79 ) col0 query I rowsort label-2969 @@ -17554,7 +17554,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\(\*\) 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 @@ -17723,7 +17723,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -18103,7 +18103,7 @@ SELECT 87 + + 56 * 54 + COUNT ( * ) 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 "\(\- \(\- 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 ( * ) AS col1, - 62 AS col1 query I rowsort @@ -18554,7 +18554,7 @@ SELECT ALL + 16, - 43 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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) / 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\(1\)\) AS count\(\*\)\) / Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, - COUNT ( * ) / + + 1 AS col2 query I rowsort label-3543 @@ -19694,7 +19694,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\(\*\) \+ 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 @@ -20293,7 +20293,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\(\*\) AS col0" at position 1 have the 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: @@ -22375,7 +22375,7 @@ SELECT + 51 AS col1, 19 + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(\-57\) \* \(\- 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 "Int64\(35\) \+ Int64\(\-57\) \* \(\- 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 35 + - 57 * - COUNT ( * ) col1, 80 AS col1 query II rowsort label-4272 @@ -23773,7 +23773,7 @@ SELECT ALL - 89 + + 65 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\(\*\) \* \(\- 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\(61\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(\(\- Int64\(62\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 AS col1, COUNT ( * ) * - COUNT ( - ( 62 ) ) AS col1 query I rowsort label-4538 @@ -23985,7 +23985,7 @@ SELECT DISTINCT - 14 / + COUNT ( - 84 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 74077 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int32\) AS col1" at position 0 and "Int64\(20\) \* Int64\(\-57\) \* \(\- max\(\(\- Int64\(\-65\)\)\)\) \* count\(DISTINCT Int64\(9\)\) \+ \(\- count\(\*\)\) \+ CASE Int64\(\-84\) WHEN Int64\(\-66\) THEN \(\- Int64\(0\)\) ELSE Int64\(\-22\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int32\) AS col1" at position 0 and "Int64\(20\) \* Int64\(\-57\) \* \(\- max\(\(\- Int64\(\-65\)\)\)\) \* count\(DISTINCT Int64\(9\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE Int64\(\-84\) WHEN Int64\(\-66\) THEN \(\- Int64\(0\)\) ELSE Int64\(\-22\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 16 AS INTEGER ) AS col1, 20 * - 57 * - + MAX ( - - 65 ) * + ( COUNT ( DISTINCT 9 ) ) + - + COUNT ( * ) + + CASE - 84 WHEN - 66 THEN - + 0 ELSE - 22 END AS col1 query I rowsort label-4578 @@ -24234,7 +24234,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\(\*\) 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 @@ -25784,7 +25784,7 @@ SELECT 36 * - 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(\-11\) \* CASE Int64\(75\) WHEN Int64\(16\) \* \(\- nullif\(Int64\(\-42\) \+ Int64\(18\), Int64\(39\) \* count\(\*\)\)\) \+ Int64\(79\) \* count\(\*\) THEN Int64\(45\) WHEN Int64\(62\) THEN Int64\(98\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(\-11\) \* CASE Int64\(75\) WHEN Int64\(16\) \* \(\- nullif\(Int64\(\-42\) \+ Int64\(18\), Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(79\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(45\) WHEN Int64\(62\) THEN Int64\(98\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - + 64 col1, - 11 * CASE + + 75 WHEN 16 * - NULLIF ( - 42 + 18, 39 * + COUNT ( * ) ) + 79 * + COUNT ( * ) THEN + 45 WHEN 62 THEN 98 ELSE NULL END AS col1 query I rowsort label-4928 @@ -26300,7 +26300,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\(\*\) AS col0" at position 1 have the 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 @@ -26691,7 +26691,7 @@ SELECT 14 * - 81 * + NULLIF ( + - 61, + - 56 * + COALESCE ( - + COUNT ( * ), - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -464 -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\(\-66\) \- coalesce\(\(\- Int64\(\-74\)\), Int64\(\-71\) \* Int64\(94\) \+ Int64\(74\) \+ CASE Int64\(2\) WHEN Int64\(35\) THEN \(\- max\(DISTINCT Int64\(84\)\)\) ELSE Int64\(\-94\) \- Int64\(58\) \* \(\- CASE Int64\(\-86\) / Int64\(49\) WHEN Int64\(26\) \- Int64\(29\) THEN NULL WHEN Int64\(25\) THEN Int64\(75\) ELSE min\(DISTINCT Int64\(27\)\) \* CASE Int64\(2\) WHEN Int64\(\-91\) / Int64\(47\) THEN Int64\(13\) WHEN \(\- count\(\*\)\) THEN NULL ELSE NULL END END\) END\) \+ Int64\(54\) \* \(\- coalesce\(Int64\(6\), 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 "Int64\(\-85\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-66\) \- coalesce\(\(\- Int64\(\-74\)\), Int64\(\-71\) \* Int64\(94\) \+ Int64\(74\) \+ CASE Int64\(2\) WHEN Int64\(35\) THEN \(\- max\(DISTINCT Int64\(84\)\)\) ELSE Int64\(\-94\) \- Int64\(58\) \* \(\- CASE Int64\(\-86\) / Int64\(49\) WHEN Int64\(26\) \- Int64\(29\) THEN NULL WHEN Int64\(25\) THEN Int64\(75\) ELSE min\(DISTINCT Int64\(27\)\) \* CASE Int64\(2\) WHEN Int64\(\-91\) / Int64\(47\) THEN Int64\(13\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE NULL END END\) END\) \+ Int64\(54\) \* \(\- coalesce\(Int64\(6\), Int64\(75\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 85 AS col0, + COUNT ( * ) * + - 66 - + COALESCE ( - - 74, + - 71 * + 94 + 74 + + + CASE 2 WHEN 35 THEN - MAX ( DISTINCT 84 ) ELSE + ( - 94 ) - + 58 * - CASE - 86 / + 49 WHEN 26 - 29 THEN NULL WHEN + 25 THEN 75 ELSE MIN ( DISTINCT + 27 ) * CASE + 2 WHEN - 91 / 47 THEN + 13 WHEN - COUNT ( * ) THEN NULL ELSE NULL END END END ) + + 54 * - COALESCE ( + 6, 75 ) AS col0 query I rowsort label-5100 @@ -27246,7 +27246,7 @@ SELECT MIN ( DISTINCT - 60 ) + - 27 # 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\(83\) 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\(\*\) / Int64\(83\) 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 ( * ) / + 83 AS col2, 61 AS col2 query II rowsort label-5207 @@ -27320,7 +27320,7 @@ SELECT + MAX ( DISTINCT + 96 ) AS col1 # 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\) \+ count\(\*\) \* Int64\(23\) / Int64\(70\) AS col1" at position 0 and "\(\- count\(\*\)\) \* \(\- \(\- nullif\(\(\- nullif\(Int64\(73\), Int64\(\-19\) / \(\- count\(\*\)\) \- Int64\(\-20\)\)\), 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\(\-55\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) / Int64\(70\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- nullif\(\(\- nullif\(Int64\(73\), Int64\(\-19\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-20\)\)\), Int64\(\-17\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 55 + COUNT ( * ) * + 23 / 70 AS col1, - COUNT ( * ) * - - NULLIF ( - + NULLIF ( + 73, + - 19 / + - COUNT ( * ) - - 20 ), + - 17 ) AS col1 query I rowsort label-5221 @@ -31019,7 +31019,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\(\*\) 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 @@ -31031,7 +31031,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\(76\) AS col2" at position 0 and "count\(\*\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -31158,7 +31158,7 @@ SELECT 46 AS col1, + 9 # 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\(\*\)\) 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 ( * ) col2, 89 AS col2 query II rowsort @@ -32931,7 +32931,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\(\*\) 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 @@ -34720,7 +34720,7 @@ SELECT - + 1 + - 98 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 3641 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \- \(\- sum\(DISTINCT \(\- \(\- Int64\(7\)\)\)\)\) AS col1" at position 0 and "count\(\*\) \- Int64\(52\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \- \(\- sum\(DISTINCT \(\- \(\- Int64\(7\)\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(52\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 96 - - SUM ( DISTINCT - - ( 7 ) ) AS col1, + COUNT ( * ) - + + 52 * - 70 AS col1 query I rowsort label-6626 @@ -35023,7 +35023,7 @@ SELECT ALL + 57 + MAX ( ALL + 99 ) col1, - 27 # Datafusion - Expected - 81 # Datafusion - Expected - 71808 # Datafusion - Expected - 94 -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\(39\) \- \(\- Int64\(56\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(39\) \- \(\- Int64\(56\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col1, 11 * - - 96 * 68 AS col2, + - COUNT ( * ) + + 39 - - + 56 AS col1 query I rowsort label-6683 @@ -35387,7 +35387,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have 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 @@ -35962,7 +35962,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\(\*\) AS col2" at position 1 have the 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 @@ -36190,7 +36190,7 @@ SELECT - ( + 90 ) + - COUNT ( * ) # 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 "\(\- coalesce\(\(\- count\(\*\)\), coalesce\(Int64\(43\), Int64\(54\) \+ count\(\*\)\)\)\) \- Int64\(\-26\) \+ Int64\(39\) AS col1" at position 0 and "Int64\(\-43\) / 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 "\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), coalesce\(Int64\(43\), Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-26\) \+ Int64\(39\) AS col1" at position 0 and "Int64\(\-43\) / Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COALESCE ( - COUNT ( * ), COALESCE ( + + 43, + 54 + ( + COUNT ( * ) ) ) ) - - 26 + 39 col1, - 43 / - 37 col1 query I rowsort @@ -36441,7 +36441,7 @@ SELECT COUNT ( * ) * - 25 * CASE + + 40 WHEN + ( - 30 ) THEN + 1 / + 17 ELSE + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(9\) \+ Int64\(\-8\) \+ Int64\(\-84\) \- Int64\(\-67\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(9\) \+ Int64\(\-8\) \+ Int64\(\-84\) \- Int64\(\-67\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 69 col2, 9 + + - 8 + - 84 - - 67 * + - COUNT ( * ) col2 query II rowsort label-6951 @@ -36495,7 +36495,7 @@ SELECT ( - 82 ) * + - 21 + + 42 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(59\) \* Int64\(65\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(\*\) \+ Int64\(8\) \- Int64\(\-86\) / Int64\(\-63\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(59\) \* Int64\(65\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) \- Int64\(\-86\) / Int64\(\-63\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 AS col0, 59 * + 65 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + + 8 - - 86 / - 63 + + + 25 col0 query II rowsort label-6961 @@ -37302,7 +37302,7 @@ SELECT ALL + COALESCE ( + 61, 35, + 82 - 53 ) + - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \- coalesce\(count\(Int64\(42\)\), \(\- \(\- 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 "Int64\(\-25\) \- coalesce\(count\(Int64\(42\)\), \(\- \(\- 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 - 25 - + COALESCE ( + COUNT ( 42 ), - - COUNT ( * ) ) AS col0, - 16 AS col0 query I rowsort label-7114 @@ -38066,7 +38066,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\(\*\) 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 @@ -38092,7 +38092,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\(\*\) 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 @@ -39202,7 +39202,7 @@ SELECT DISTINCT ( - 73 ) + - 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + 53 AS col0, + 65 AS col0 query II rowsort label-7475 @@ -39266,7 +39266,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\(\*\) AS col2" at position 1 have the 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 @@ -39815,7 +39815,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\(\*\) 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 @@ -40094,7 +40094,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\(\*\) 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 @@ -40439,7 +40439,7 @@ SELECT SUM ( ALL - CAST ( - 98 AS INTEGER ) ) * 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- nullif\(count\(\*\), \(\- min\(\(\- Int64\(\-75\)\)\)\)\)\) \* min\(DISTINCT CASE Int64\(\-47\) WHEN Int64\(22\) \* Int64\(\-86\) \* Int64\(98\) \* Int64\(\-98\) \- Int64\(72\) THEN \(\- CASE Int64\(\-5\) WHEN Int64\(\-1\) THEN Int64\(75\) ELSE NULL END\) WHEN Int64\(\-46\) THEN NULL ELSE Int64\(86\) \+ Int64\(74\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-26\) \+ Int64\(52\) \* Int64\(\-56\) \+ Int64\(42\) END\) \* Int64\(25\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- min\(\(\- Int64\(\-75\)\)\)\)\)\) \* min\(DISTINCT CASE Int64\(\-47\) WHEN Int64\(22\) \* Int64\(\-86\) \* Int64\(98\) \* Int64\(\-98\) \- Int64\(72\) THEN \(\- CASE Int64\(\-5\) WHEN Int64\(\-1\) THEN Int64\(75\) ELSE NULL END\) WHEN Int64\(\-46\) THEN NULL ELSE Int64\(86\) \+ Int64\(74\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-26\) \+ Int64\(52\) \* Int64\(\-56\) \+ Int64\(42\) END\) \* Int64\(25\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 * - NULLIF ( + COUNT ( * ), + ( - MIN ( - - 75 ) ) ) * MIN ( DISTINCT + CASE - 47 WHEN 22 * - 86 * + + 98 * + - 98 - 72 THEN + - CASE + - 5 WHEN - 1 THEN + 75 ELSE NULL END WHEN + - 46 THEN NULL ELSE 86 + 74 + CAST ( NULL AS INTEGER ) + - 26 + 52 * - 56 + + 42 END ) * + 25 + + ( - COUNT ( * ) ) AS col0, 75 + 96 AS col0 query I rowsort label-7709 @@ -40485,7 +40485,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(\-51\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(45\)\) \- \(\- Int64\(61\)\) \* \(\- count\(\*\)\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-51\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(45\)\) \- \(\- Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - - 51 + CAST ( NULL AS INTEGER ) + - + 45 - - + 61 * - COUNT ( * ) + + 88 col1, 59 AS col1 query I rowsort label-7718 @@ -41321,7 +41321,7 @@ SELECT CASE + + 80 WHEN + 57 * 31 * 2 THEN NULL ELSE + + 94 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(64\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + 64 AS col1, 31 AS col1 query I rowsort label-7877 @@ -41714,7 +41714,7 @@ SELECT 72 * - - 52, + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "\(\- \(\- CAST\(NULL AS Float64\)\)\) / max\(DISTINCT Int64\(\-22\)\) / count\(\*\) \* avg\(Int64\(\-48\)\) \+ Int64\(5\) \* Int64\(\-86\) \- 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\(\-43\) AS col0" at position 0 and "\(\- \(\- CAST\(NULL AS Float64\)\)\) / max\(DISTINCT Int64\(\-22\)\) / count\(Int64\(1\)\) AS count\(\*\) \* avg\(Int64\(\-48\)\) \+ Int64\(5\) \* Int64\(\-86\) \- Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 43 AS col0, + ( - - CAST ( NULL AS FLOAT8 ) ) / MAX ( DISTINCT - 22 ) / ( + + COUNT ( * ) ) * AVG ( - 48 ) + 5 * - 86 - - 48 col0 query I rowsort label-7953 @@ -43063,7 +43063,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\(\*\) AS col1" at position 1 have the 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 @@ -45663,7 +45663,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -45734,7 +45734,7 @@ SELECT 33 * 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* coalesce\(Int64\(\-51\), \(\- count\(\*\)\) \* Int64\(50\)\) \* Int64\(72\) \* Int64\(95\) \+ CASE \(\- Int64\(\-82\)\) WHEN Int64\(\-7\) THEN Int64\(88\) END AS col2" at position 0 and "Int64\(\-50\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* coalesce\(Int64\(\-51\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(50\)\) \* Int64\(72\) \* Int64\(95\) \+ CASE \(\- Int64\(\-82\)\) WHEN Int64\(\-7\) THEN Int64\(88\) END AS col2" at position 0 and "Int64\(\-50\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 34 * + COALESCE ( - 51, - + COUNT ( * ) * 50 ) * + + 72 * 95 + + CASE - ( - 82 ) WHEN - 7 THEN 88 END AS col2, - 50 * + 27 col2 query II rowsort label-8730 @@ -47040,7 +47040,7 @@ SELECT - + COUNT ( * ) AS col1, + 81 + - + MAX ( DISTINCT - + 89 ) * + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 2484 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(69\) \* \(\- Int64\(\-36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(69\) \* \(\- Int64\(\-36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 + - + COUNT ( * ) AS col2, 69 * - - 36 AS col2 query I rowsort @@ -47365,7 +47365,7 @@ SELECT ALL - 8 / 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "CASE Int64\(\-72\) WHEN count\(\*\) / Int64\(\-77\) THEN \(\- Int64\(18\)\) \* count\(Int64\(\-82\)\) \- Int64\(83\) \* \(\- nullif\(count\(Int64\(\-84\)\), Int64\(57\)\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "CASE Int64\(\-72\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-77\) THEN \(\- Int64\(18\)\) \* count\(Int64\(\-82\)\) \- Int64\(83\) \* \(\- nullif\(count\(Int64\(\-84\)\), Int64\(57\)\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 25 AS col2, + CASE - 72 WHEN + COUNT ( * ) / ( - 77 ) THEN - + 18 * COUNT ( - 82 ) - + 83 * - NULLIF ( COUNT ( ALL - 84 ), 57 ) END AS col2 query I rowsort label-9041 @@ -49624,7 +49624,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\(\*\) AS col0" at position 1 have the 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 @@ -50406,7 +50406,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\(\*\) 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 @@ -51210,7 +51210,7 @@ SELECT + ( + - ( + 74 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(93\), \(\- count\(\*\)\) \+ Int64\(13\)\) 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 "coalesce\(Int64\(93\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(13\)\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COALESCE ( + 93, - + COUNT ( * ) + + + 13 ) ) AS col2, 6 AS col2 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/expr/slt_good_6.slt b/data/sqlite/random/expr/slt_good_6.slt index 48584fd..959071d 100644 --- a/data/sqlite/random/expr/slt_good_6.slt +++ b/data/sqlite/random/expr/slt_good_6.slt @@ -1994,7 +1994,7 @@ SELECT + 29 * - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -348 # Datafusion - Expected - -3425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(87\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(63\)\) \+ Int64\(47\) \* \(\- Int64\(73\)\) \+ 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\(\-4\) \* Int64\(87\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(63\)\) \+ Int64\(47\) \* \(\- Int64\(73\)\) \+ Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 4 * 87 AS col2, COUNT ( * ) * - + 63 + + 47 * - + 73 + + + 69 AS col2 query I rowsort @@ -4637,7 +4637,7 @@ SELECT ALL - MIN ( DISTINCT - - CASE - 95 WHEN 74 THEN NULL ELSE 70 / - 51 END ) # Datafusion - Expected - NULL # Datafusion - Expected - 66 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-77\)\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-77\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 * ( - CAST ( NULL AS INTEGER ) ) * - - 77 + - COUNT ( * ) col1, 66, 2 AS col1 query I rowsort label-883 @@ -6196,7 +6196,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\(\*\) AS Int32\)\)\)\) AS col2" at position 1 have 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 @@ -6683,13 +6683,13 @@ SELECT - + ( - - 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \- \(\- count\(\*\)\) \+ \(\- Int64\(\-51\)\) AS col2" at position 0 and "Int64\(27\) \+ 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\(\-27\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-51\)\) AS col2" at position 0 and "Int64\(27\) \+ Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 27 - - + COUNT ( * ) + - - 51 AS col2, + ( + + 27 ) + 2 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CASE Int64\(\-45\) WHEN Int64\(29\) THEN \(\- count\(\*\)\) WHEN Int64\(74\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CASE Int64\(\-45\) WHEN Int64\(29\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(74\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT ( * ) WHEN + 74 THEN NULL END AS col1 query I rowsort @@ -8141,7 +8141,7 @@ SELECT ALL + 58 + - - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -3201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(24\) / CAST\(Int64\(98\) AS Int32\) \* \(\- count\(\*\)\) \- Int64\(6\) \+ Int64\(\-41\) \* Int64\(79\) \+ \(\- Int64\(\-44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(24\) / CAST\(Int64\(98\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(6\) \+ Int64\(\-41\) \* Int64\(79\) \+ \(\- Int64\(\-44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 AS col1, 24 / + CAST ( 98 AS INTEGER ) * - ( + COUNT ( * ) ) - + 6 + - 41 * + 79 + - - 44 AS col1 query I rowsort label-1544 @@ -8617,7 +8617,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -354816 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(Int64\(81\) AS Int32\) WHEN count\(\*\) THEN Int64\(62\) ELSE Int64\(\-99\) \* Int64\(64\) \* \(\- Int64\(56\)\) END\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(Int64\(81\) AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(62\) ELSE Int64\(\-99\) \* Int64\(64\) \* \(\- Int64\(56\)\) END\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE CAST ( + 81 AS INTEGER ) WHEN + COUNT ( * ) THEN 62 ELSE ( - 99 ) * 64 * - + 56 END AS col1, + 9 AS col1 query I rowsort @@ -10063,7 +10063,7 @@ SELECT DISTINCT + 62 + + + 9 / 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1050 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(25\) \* Int64\(42\) 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\(\*\)\) \* Int64\(25\) \* Int64\(42\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * + 25 * + + 42 AS col0, 13 col0 query I rowsort label-1908 @@ -10506,7 +10506,7 @@ SELECT 79 + NULLIF ( 23, - + COUNT ( * ) ) - + 47 + - 2 # 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 "\(\- coalesce\(count\(\*\), \(\- CASE WHEN NOT Int64\(16\) IS NULL THEN Int64\(\-92\) \* Int64\(70\) \* \(\- nullif\(\(\- Int64\(\-75\)\), \(\- \(\- Int64\(\-36\)\)\) \+ \(\- Int64\(\-40\)\)\)\) \- Int64\(4\) ELSE NULL END\)\)\) 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 "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- CASE WHEN NOT Int64\(16\) IS NULL THEN Int64\(\-92\) \* Int64\(70\) \* \(\- nullif\(\(\- Int64\(\-75\)\), \(\- \(\- Int64\(\-36\)\)\) \+ \(\- Int64\(\-40\)\)\)\) \- Int64\(4\) ELSE NULL END\)\)\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( COUNT ( * ), - + CASE WHEN NOT 16 IS NULL THEN + ( - 92 ) * + 70 * - NULLIF ( - - 75, - - ( - 36 ) + - - 40 ) - + 4 ELSE NULL END ) col2, - 83 AS col2 query II rowsort @@ -11238,7 +11238,7 @@ SELECT 7 * - 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 "\(\- coalesce\(\(\- count\(\*\)\), Int64\(99\) \* Int64\(45\) \+ \(\- coalesce\(\(\- max\(Int64\(22\)\)\), Int64\(\-98\), \(\- count\(\*\)\) \* \(\- Int64\(\-11\)\)\)\)\)\) AS col2" at position 0 and "\(\- CASE Int64\(22\) WHEN \(\- count\(\*\)\) THEN NULL ELSE 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 "\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(99\) \* Int64\(45\) \+ \(\- coalesce\(\(\- max\(Int64\(22\)\)\), Int64\(\-98\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-11\)\)\)\)\)\) AS col2" at position 0 and "\(\- CASE Int64\(22\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( - + COUNT ( * ), 99 * + 45 + - COALESCE ( + - MAX ( 22 ), + ( - 98 ), - COUNT ( * ) * - - 11 ) ) AS col2, + ( - CASE + 22 WHEN - + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) col2 query I rowsort label-2130 @@ -13763,7 +13763,7 @@ SELECT ALL 20 / + - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "nullif\(Int64\(5\), Int64\(\-60\) \* nullif\(\(\- count\(\*\)\), Int64\(4\) / Int64\(42\)\) / Int64\(\-94\) \+ Int64\(\-96\) / Int64\(\-58\) \* Int64\(95\) \- Int64\(49\)\) \+ Int64\(25\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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 "nullif\(Int64\(5\), Int64\(\-60\) \* nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(4\) / Int64\(42\)\) / Int64\(\-94\) \+ Int64\(\-96\) / Int64\(\-58\) \* Int64\(95\) \- Int64\(49\)\) \+ Int64\(25\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 2 col1, NULLIF ( 5, + - 60 * + ( NULLIF ( - COUNT ( * ), + + 4 / 42 ) ) / - 94 + + - 96 / - 58 * + 95 - + 49 ) + + 25 + - COUNT ( * ) col1 query I rowsort @@ -13780,7 +13780,7 @@ SELECT DISTINCT 14 * 88 # Datafusion - Expected - 1 # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\)" at position 0 and "count\(\*\)" at position 2 have the same name\. Consider aliasing \("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 "count\(Int64\(1\)\) AS count\(\*\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), 20 / - - 70 AS col1, + + COUNT ( * ) query I rowsort label-2619 @@ -14783,7 +14783,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\(\*\) AS Int32\) AS col0" at position 1 have the 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 @@ -14959,7 +14959,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\(\*\) AS col1" at position 1 have the 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 @@ -15078,7 +15078,7 @@ SELECT DISTINCT ( - + 36 ) * + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(\*\) \+ CASE Int64\(\-55\) WHEN \(\- count\(\*\)\) THEN Int64\(\-46\) WHEN \(\- \(\- count\(Int64\(45\)\)\)\) \* Int64\(\-64\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CASE Int64\(\-55\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-46\) WHEN \(\- \(\- count\(Int64\(45\)\)\)\) \* Int64\(\-64\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 29 AS col1, + COUNT ( * ) + CASE - 55 WHEN - COUNT ( * ) THEN + - 46 WHEN + - ( ( - COUNT ( + 45 ) ) ) * - 64 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) END AS col1 query I rowsort label-2865 @@ -15296,7 +15296,7 @@ SELECT AVG ( DISTINCT + 62 ) * - + 60 + CAST ( COUNT ( * ) AS FLOAT8 ) + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE sum\(Int64\(60\)\) WHEN coalesce\(\(\- count\(DISTINCT Int64\(\-47\)\)\), Int64\(55\)\) \+ \(\- sum\(Int64\(13\)\)\) \+ \(\- CAST\(coalesce\(Int64\(12\), avg\(Int64\(\-54\)\), \(\- \(\- Int64\(21\)\)\)\) AS Int32\)\) \* Int64\(\-80\) THEN Int64\(60\) \+ Int64\(27\) ELSE Int64\(76\) END\) AS col2" at position 0 and "Int64\(\-92\) \* \(\- Int64\(\-90\)\) \* \(\- Int64\(\-94\)\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE sum\(Int64\(60\)\) WHEN coalesce\(\(\- count\(DISTINCT Int64\(\-47\)\)\), Int64\(55\)\) \+ \(\- sum\(Int64\(13\)\)\) \+ \(\- CAST\(coalesce\(Int64\(12\), avg\(Int64\(\-54\)\), \(\- \(\- Int64\(21\)\)\)\) AS Int32\)\) \* Int64\(\-80\) THEN Int64\(60\) \+ Int64\(27\) ELSE Int64\(76\) END\) AS col2" at position 0 and "Int64\(\-92\) \* \(\- Int64\(\-90\)\) \* \(\- Int64\(\-94\)\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE + SUM ( ALL + + 60 ) WHEN + COALESCE ( + - COUNT ( DISTINCT - 47 ), 55 ) + - SUM ( + 13 ) + - CAST ( + COALESCE ( 12, AVG ( ALL + - 54 ), - - ( + 21 ) ) AS INTEGER ) * - 80 THEN + + 60 + + 27 ELSE + 76 END AS col2, - 92 * - - 90 * - - 94 + - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) col2 query I rowsort @@ -15567,7 +15567,7 @@ SELECT ALL CAST ( + 53 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2989 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(49\)\) \* Int64\(\-61\) AS col2" at position 0 and "nullif\(coalesce\(Int64\(\-27\), count\(\*\)\), Int64\(67\) \* Int64\(63\) \+ \(\- avg\(Int64\(67\)\)\)\) \+ 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\(49\)\) \* Int64\(\-61\) AS col2" at position 0 and "nullif\(coalesce\(Int64\(\-27\), count\(Int64\(1\)\) AS count\(\*\)\), Int64\(67\) \* Int64\(63\) \+ \(\- avg\(Int64\(67\)\)\)\) \+ Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 49 * - 61 AS col2, NULLIF ( COALESCE ( - 27, + COUNT ( * ) ), + 67 * + 63 + - + AVG ( 67 ) ) + - 42 AS col2 query I rowsort label-2957 @@ -17206,7 +17206,7 @@ SELECT ALL - 96 / + ( MAX ( ALL - 32 ) ) + - 32 * - - 79 + ( + ( + 7 ) ) - - COU # 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\(20\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(20\) AS col2" at position 0 and "coalesce\(\(\- count\(\*\)\), Int64\(57\) \* Int64\(\-76\) \* 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\(20\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(20\) AS col2" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(57\) \* Int64\(\-76\) \* Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 * - + ( - COUNT ( * ) ) + + 20 AS col2, + COALESCE ( - COUNT ( * ), 57 * + - 76 * + 57 ) AS col2 query I rowsort @@ -17473,7 +17473,7 @@ SELECT 8 / + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2679 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(\-77\) \+ Int64\(93\) AS col1" at position 0 and "Int64\(\-12\) \* \(\- Int64\(\-8\)\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-77\) \+ Int64\(93\) AS col1" at position 0 and "Int64\(\-12\) \* \(\- Int64\(\-8\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 36 * - 77 + + 93 col1, + ( + - 12 ) * - - 8 * - COUNT ( * ) AS col1 query I rowsort label-3321 @@ -17610,7 +17610,7 @@ SELECT - 49 * + 5 AS col2, + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3888 # Datafusion - Expected - 272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-72\) AS col2" at position 0 and "Int64\(\-17\) \* \(\- count\(\*\)\) \* 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\(54\) \* Int64\(\-72\) AS col2" at position 0 and "Int64\(\-17\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 54 * - 72 AS col2, - 17 * - COUNT ( * ) * 16 AS col2 query I rowsort label-3347 @@ -17880,7 +17880,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(32\) \- CASE Int64\(\-64\) WHEN Int64\(5\) \* Int64\(10\) \* \(\- CASE Int64\(21\) WHEN Int64\(71\) THEN count\(\*\) \+ \(\- Int64\(92\)\) WHEN count\(\*\) \* count\(\*\) \* \(\- max\(\(\- Int64\(81\)\)\)\) \* Int64\(37\) \* \(\- Int64\(90\)\) \- avg\(Int64\(71\)\) \+ Int64\(\-66\) THEN Int64\(\-20\) / sum\(Int64\(30\)\) END\) \- Int64\(31\) \+ Int64\(\-2\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(4\) \* avg\(DISTINCT Int64\(\-26\)\) \* \(\- Int64\(\-16\)\) \+ Int64\(\-69\) \* Int64\(33\) \* Int64\(12\) THEN count\(\*\) END \+ Int64\(50\) \* \(\- Int64\(\-13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(32\) \- CASE Int64\(\-64\) WHEN Int64\(5\) \* Int64\(10\) \* \(\- CASE Int64\(21\) WHEN Int64\(71\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(92\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(\(\- Int64\(81\)\)\)\) \* Int64\(37\) \* \(\- Int64\(90\)\) \- avg\(Int64\(71\)\) \+ Int64\(\-66\) THEN Int64\(\-20\) / sum\(Int64\(30\)\) END\) \- Int64\(31\) \+ Int64\(\-2\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(4\) \* avg\(DISTINCT Int64\(\-26\)\) \* \(\- Int64\(\-16\)\) \+ Int64\(\-69\) \* Int64\(33\) \* Int64\(12\) THEN count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(50\) \* \(\- Int64\(\-13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 AS col0, 32 - CASE - 64 WHEN + + 5 * + + 10 * - CASE 21 WHEN + 71 THEN COUNT ( * ) + - + 92 WHEN + COUNT ( * ) * COUNT ( * ) * - + MAX ( ALL - + 81 ) * 37 * - + 90 - AVG ( ALL 71 ) + - 66 THEN + - 20 / SUM ( + 30 ) END - + 31 + - 2 - + - CAST ( NULL AS INTEGER ) * 4 * AVG ( DISTINCT - 26 ) * - - 16 + - 69 * + 33 * + 12 THEN + COUNT ( * ) END + + + 50 * - - 13 AS col0 query I rowsort label-3397 @@ -18240,7 +18240,7 @@ SELECT DISTINCT + 7 * + + 84 * - 75 * - SUM ( DISTINCT - - 31 ) + - - 72 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-12\) \* \(\- \(\- CASE CAST\(\(\- count\(\*\)\) AS Int32\) WHEN Int64\(4\) \* Int64\(\-4\) THEN Int64\(\-74\) \* Int64\(\-95\) \+ count\(\*\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-12\) \* \(\- \(\- CASE CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) WHEN Int64\(4\) \* Int64\(\-4\) THEN Int64\(\-74\) \* Int64\(\-95\) \+ count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( COUNT ( * ) ) * CAST ( NULL AS INTEGER ) col2, - 12 * - - CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 4 * - 4 THEN + - 74 * - 95 + + + COUNT ( * ) END AS col2 query I rowsort label-3464 @@ -20073,7 +20073,7 @@ SELECT DISTINCT 49 * - ( + 90 ) * - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 3703 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(63\) \* Int64\(49\) \+ Int64\(\-77\) \* \(\- nullif\(count\(\*\) \* Int64\(8\), Int64\(62\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(63\) \* Int64\(49\) \+ Int64\(\-77\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\) \* Int64\(8\), Int64\(62\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 50 AS col2, 63 * + 49 + - 77 * - NULLIF ( COUNT ( * ) * + 8, ( 62 ) ) AS col2 query I rowsort @@ -20227,7 +20227,7 @@ SELECT 2 * + COUNT ( * ) + 68 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1200 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(40\) AS col1" at position 0 and "CASE Int64\(\-72\) WHEN Int64\(90\) THEN NULL WHEN Int64\(26\) THEN CASE Int64\(88\) WHEN count\(\*\) \+ Int64\(58\) THEN Int64\(19\) WHEN Int64\(\-28\) THEN NULL END WHEN Int64\(\-41\) THEN NULL ELSE NULL END \* coalesce\(Int64\(82\), Int64\(35\) \- Int64\(6\) \* 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\(30\) \* Int64\(40\) AS col1" at position 0 and "CASE Int64\(\-72\) WHEN Int64\(90\) THEN NULL WHEN Int64\(26\) THEN CASE Int64\(88\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) THEN Int64\(19\) WHEN Int64\(\-28\) THEN NULL END WHEN Int64\(\-41\) THEN NULL ELSE NULL END \* coalesce\(Int64\(82\), Int64\(35\) \- Int64\(6\) \* Int64\(77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 * 40 col1, + CASE - 72 WHEN 90 THEN NULL WHEN + 26 THEN + CASE + 88 WHEN COUNT ( * ) + 58 THEN 19 WHEN - 28 THEN NULL END WHEN - 41 THEN NULL ELSE NULL END * COALESCE ( 82, 35 - + 6 * 77 ) AS col1 query I rowsort @@ -20597,7 +20597,7 @@ SELECT DISTINCT + MAX ( 58 ) + + 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "nullif\(count\(\*\), \(\- Int64\(\-40\)\)\) \+ 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\(58\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(\-40\)\)\) \+ Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 58 AS col1, NULLIF ( + COUNT ( * ), - - 40 ) + + 97 AS col1 query I rowsort label-3920 @@ -22423,7 +22423,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\(\*\) AS col2" at position 0 and "Int64\(\-85\) \* \(\- min\(DISTINCT Int64\(\-30\)\)\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -23059,7 +23059,7 @@ SELECT - 70 / + 72 - + 95 + - - 22 / 55 * - + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "CASE count\(\*\) WHEN Int64\(\-29\) THEN Int64\(52\) WHEN Int64\(50\) THEN \(\- CAST\(\(\- Int64\(\-24\)\) AS Int32\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-29\) THEN Int64\(52\) WHEN Int64\(50\) THEN \(\- CAST\(\(\- Int64\(\-24\)\) AS Int32\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 54 AS col2, CASE + COUNT ( * ) WHEN - 29 THEN + + 52 WHEN 50 THEN - CAST ( - - 24 AS INTEGER ) END AS col2 query I rowsort label-4384 @@ -24053,7 +24053,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\(\*\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -24192,7 +24192,7 @@ SELECT DISTINCT - 40 * + 84 AS col1, - 96 col2 # 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 "Int64\(5\) / \(\- Int64\(7\)\) \* \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(80\)\) \+ \(\- count\(\*\)\) \+ Int64\(0\) \* \(\- Int64\(15\)\) AS col0" at position 0 and "\(\- sum\(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\(5\) / \(\- Int64\(7\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(80\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(0\) \* \(\- Int64\(15\)\) AS col0" at position 0 and "\(\- sum\(Int64\(66\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( 5 ) / - ( + 7 ) * - - COUNT ( * ) * - + 80 + - COUNT ( * ) + 0 * - ( 15 ) AS col0, - SUM ( 66 ) AS col0 query I rowsort @@ -28423,7 +28423,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\(\*\) AS col0" at position 1 have the 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 @@ -30158,7 +30158,7 @@ SELECT ALL - 6 + - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(\-77\)\) \+ Int64\(\-50\) \+ nullif\(count\(\*\), Int64\(29\) \* Int64\(71\) \* Int64\(\-85\)\) \+ Int64\(\-4\) / Int64\(31\) \+ Int64\(\-4\) 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 "Int64\(32\) \+ \(\- Int64\(\-77\)\) \+ Int64\(\-50\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(29\) \* Int64\(71\) \* Int64\(\-85\)\) \+ Int64\(\-4\) / Int64\(31\) \+ Int64\(\-4\) 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 + 32 + - - 77 + - 50 + + NULLIF ( COUNT ( * ), + + 29 * + 71 * + - 85 ) + - 4 / + 31 + - 4 AS col1, 74 AS col1 query I rowsort label-5735 @@ -30602,7 +30602,7 @@ SELECT - + CAST ( 45 AS INTEGER ) # 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\(28\) / Int64\(74\) \* Int64\(66\) \* count\(\*\) \* Int64\(\-71\) \+ \(\- \(\- Int64\(\-78\)\)\) \- Int64\(18\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) / Int64\(74\) \* Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-71\) \+ \(\- \(\- Int64\(\-78\)\)\) \- Int64\(18\) 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 + 28 / 74 * + 66 * COUNT ( * ) * - 71 + - ( - - 78 ) - + 18 AS col0, 72 AS col0 query I rowsort label-5821 @@ -30955,7 +30955,7 @@ SELECT DISTINCT + 9 * + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 997 # Datafusion - Expected - 22958688 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* Int64\(\-67\) \+ Int64\(59\) AS col2" at position 0 and "count\(\*\) \+ Int64\(9\) \* \(\- Int64\(\-31\)\) \* count\(\*\) \* Int64\(19\) \* Int64\(\-71\) \* \(\- Int64\(61\)\) \+ \(\- 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 "Int64\(\-14\) \* Int64\(\-67\) \+ Int64\(59\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(9\) \* \(\- Int64\(\-31\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) \* Int64\(\-71\) \* \(\- Int64\(61\)\) \+ \(\- Int64\(\-56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 14 * - 67 + 59 AS col2, COUNT ( * ) + + 9 * - - 31 * COUNT ( * ) * + 19 * + - 71 * - + ( + + 61 ) + - - 56 AS col2 query I rowsort @@ -32370,7 +32370,7 @@ SELECT ALL - COUNT ( * ) + 10 - - MAX ( ALL 12 ) / - + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(82\) / Int64\(45\) \+ Int64\(71\) \* \(\- \(\- CASE Int64\(4\) WHEN Int64\(28\) \* count\(\*\) \+ Int64\(9\) \- Int64\(94\) THEN Int64\(48\) \+ Int64\(37\) \+ Int64\(\-32\) \+ coalesce\(Int64\(17\), \(\- count\(\*\)\) \* \(\- CAST\(avg\(Int64\(\-51\)\) AS Float64\)\)\) ELSE NULL END\)\) AS col1" at position 0 and "Int64\(\-26\) \- CASE Int64\(\-67\) WHEN Int64\(81\) THEN Int64\(\-11\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(82\) / Int64\(45\) \+ Int64\(71\) \* \(\- \(\- CASE Int64\(4\) WHEN Int64\(28\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(9\) \- Int64\(94\) THEN Int64\(48\) \+ Int64\(37\) \+ Int64\(\-32\) \+ coalesce\(Int64\(17\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(avg\(Int64\(\-51\)\) AS Float64\)\)\) ELSE NULL END\)\) AS col1" at position 0 and "Int64\(\-26\) \- CASE Int64\(\-67\) WHEN Int64\(81\) THEN Int64\(\-11\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 + 82 / + 45 + + 71 * - - CASE + 4 WHEN + + 28 * + COUNT ( * ) + 9 - 94 THEN + 48 + + + 37 + - 32 + COALESCE ( + 17, - COUNT ( * ) * + - CAST ( + AVG ( ALL - 51 ) AS FLOAT8 ) ) ELSE NULL END AS col1, - 26 - CASE - 67 WHEN + 81 THEN ( - 11 ) ELSE NULL END AS col1 query I rowsort label-6154 @@ -32381,7 +32381,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\(\*\) AS col0" at position 1 have the 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 @@ -32518,7 +32518,7 @@ SELECT ALL 38 + 52 + + + ( + + ( + 99 ) ) * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(30\) \+ \(\- Int64\(\-10\)\) \- Int64\(63\) 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\(\*\)\) \* Int64\(30\) \+ \(\- Int64\(\-10\)\) \- Int64\(63\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 30 + - - 10 - + 63 AS col1, + 21 AS col1 query II rowsort @@ -32699,7 +32699,7 @@ SELECT ALL + 19 - + 7 + + 2 * 35 * - 55 * + SUM ( - 76 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(82\) \+ \(\- nullif\(Int64\(64\), CASE Int64\(98\) WHEN Int64\(94\) \+ \(\- nullif\(\(\- CAST\(\(\- Int64\(\-49\)\) AS Int32\)\), Int64\(\-25\) \+ \(\- Int64\(69\)\)\)\) \+ Int64\(70\) \* Int64\(\-14\) \* Int64\(15\) THEN coalesce\(Int64\(\-60\), \(\- Int64\(62\)\) \* Int64\(\-4\) \* count\(Int64\(\-42\)\) \+ \(\- max\(DISTINCT Int64\(\-28\)\)\) \- Int64\(89\) \* \(\- Int64\(77\)\) \* \(\- \(\- Int64\(84\)\)\)\) WHEN Int64\(75\) THEN NULL ELSE Int64\(96\) \* Int64\(43\) \* count\(\*\) END\)\) / Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(82\) \+ \(\- nullif\(Int64\(64\), CASE Int64\(98\) WHEN Int64\(94\) \+ \(\- nullif\(\(\- CAST\(\(\- Int64\(\-49\)\) AS Int32\)\), Int64\(\-25\) \+ \(\- Int64\(69\)\)\)\) \+ Int64\(70\) \* Int64\(\-14\) \* Int64\(15\) THEN coalesce\(Int64\(\-60\), \(\- Int64\(62\)\) \* Int64\(\-4\) \* count\(Int64\(\-42\)\) \+ \(\- max\(DISTINCT Int64\(\-28\)\)\) \- Int64\(89\) \* \(\- Int64\(77\)\) \* \(\- \(\- Int64\(84\)\)\)\) WHEN Int64\(75\) THEN NULL ELSE Int64\(96\) \* Int64\(43\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\) / Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 88 AS col0, 82 + - NULLIF ( + 64, CASE + 98 WHEN + 94 + - NULLIF ( - CAST ( - - 49 AS INTEGER ), - 25 + - + 69 ) + 70 * + - 14 * + 15 THEN + COALESCE ( - 60, - + 62 * ( - 4 ) * COUNT ( - 42 ) + - MAX ( DISTINCT + - 28 ) - 89 * - + 77 * - - ( 84 ) ) WHEN + ( + 75 ) THEN NULL ELSE 96 * + ( 43 * COUNT ( * ) ) END ) / - 16 col0 query I rowsort label-6216 @@ -33406,7 +33406,7 @@ SELECT DISTINCT - 54 * - 38 * + 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- \(\- 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 "Int64\(8\) \* \(\- \(\- 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 8 * - - COUNT ( * ) AS col1, 97 AS col1 query I rowsort label-6348 @@ -34045,7 +34045,7 @@ SELECT + 11 AS col1, - 25 AS col2 # Datafusion - Expected - 92 # Datafusion - Expected - 0 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(59\) WHEN Int64\(65\) \* Int64\(15\) \- Int64\(14\) THEN NULL WHEN \(\- Int64\(14\)\) THEN NULL ELSE \(\- count\(\*\)\) \+ count\(\*\) END\) AS col1" at position 1 and "Int64\(\-93\) 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\(59\) WHEN Int64\(65\) \* Int64\(15\) \- Int64\(14\) THEN NULL WHEN \(\- Int64\(14\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) END\) AS col1" at position 1 and "Int64\(\-93\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - 41 WHEN + 47 - - - 91 THEN NULL WHEN MIN ( + 91 ) + + + COUNT ( * ) THEN NULL ELSE 15 + 77 END, - CASE + 59 WHEN + 65 * 15 - + 14 THEN NULL WHEN - + 14 THEN NULL ELSE - COUNT ( * ) + + COUNT ( * ) END AS col1, - 93 AS col1 query I rowsort @@ -34993,7 +34993,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\(\*\) 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 @@ -35336,7 +35336,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\(\*\) 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: @@ -35348,7 +35348,7 @@ SELECT - - 32 AS col0, - 21 + 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ CAST\(NULL AS Int32\) \* Int64\(36\) AS col0" at position 0 and "coalesce\(Int64\(\-17\), Int64\(\-53\), \(\- Int64\(51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \* Int64\(36\) AS col0" at position 0 and "coalesce\(Int64\(\-17\), Int64\(\-53\), \(\- Int64\(51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 36 AS col0, + COALESCE ( + - 17, - 53, - + 51 ) AS col0 query I rowsort label-6717 @@ -38239,7 +38239,7 @@ SELECT NULLIF ( + 12, + COUNT ( * ) ) - - SUM ( DISTINCT - - 81 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 98 -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\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) 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 35 AS col0, COUNT ( * ) + 97 AS col0 query I rowsort label-7273 @@ -38349,7 +38349,7 @@ SELECT ALL + COALESCE ( + 65, + 92 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* count\(\*\) \+ Int64\(81\) \+ \(\- coalesce\(\(\- Int64\(20\)\), Int64\(63\)\)\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\) \+ \(\- coalesce\(\(\- Int64\(20\)\), Int64\(63\)\)\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 * COUNT ( * ) + 81 + - + COALESCE ( - + 20, + 63 ) AS col1, 80 AS col1 query I rowsort @@ -38650,7 +38650,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\(\*\) AS col1" at position 1 have the 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 @@ -41503,7 +41503,7 @@ SELECT ALL - COUNT ( * ) - + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6168899 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(68\)\), \(\- Int64\(94\)\)\)\) \* max\(Int64\(24\)\) \* \(\- Int64\(\-90\)\) \* Int64\(42\) \+ Int64\(\-61\) AS col1" at position 0 and "count\(Int64\(53\)\) / Int64\(96\) / Int64\(76\) \* \(\- count\(\*\)\) \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(68\)\), \(\- Int64\(94\)\)\)\) \* max\(Int64\(24\)\) \* \(\- Int64\(\-90\)\) \* Int64\(42\) \+ Int64\(\-61\) AS col1" at position 0 and "count\(Int64\(53\)\) / Int64\(96\) / Int64\(76\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - NULLIF ( - + 68, - + 94 ) * MAX ( ALL + ( + ( + 24 ) ) ) * - - 90 * 42 + - 61 AS col1, + COUNT ( ALL 53 ) / 96 / + + 76 * - COUNT ( * ) * - 76 AS col1 # Datafusion - Types were automatically converted from: @@ -41542,7 +41542,7 @@ SELECT ALL 51 - - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -81 -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\(\-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\(71\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 71 ) col1, COUNT ( * ) + + - 82 AS col1 query I rowsort label-7904 @@ -41972,7 +41972,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\(\*\) AS col0" at position 1 have 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 @@ -42792,7 +42792,7 @@ SELECT - CASE 9 WHEN - 30 THEN + 34 ELSE 28 + + - 60 - - 3 END * - 67 + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -2154600 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-35\) \* Int64\(15\) \* \(\- coalesce\(\(\- CASE \(\- Int64\(\-54\)\) WHEN Int64\(\-80\) \* count\(\*\) \* \(\- count\(DISTINCT Int64\(15\)\)\) \+ Int64\(\-97\) \* Int64\(81\) \- Int64\(78\) THEN Int64\(70\) ELSE Int64\(57\) END\), Int64\(32\) \* Int64\(91\) / Int64\(\-99\), \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(4\)\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-35\) \* Int64\(15\) \* \(\- coalesce\(\(\- CASE \(\- Int64\(\-54\)\) WHEN Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(DISTINCT Int64\(15\)\)\) \+ Int64\(\-97\) \* Int64\(81\) \- Int64\(78\) THEN Int64\(70\) ELSE Int64\(57\) END\), Int64\(32\) \* Int64\(91\) / Int64\(\-99\), \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(4\)\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 * - 35 * + + 15 * - COALESCE ( - CASE - - 54 WHEN ( - 80 ) * + COUNT ( * ) * - COUNT ( DISTINCT + 15 ) + - 97 * 81 - + + 78 THEN 70 ELSE 57 END, 32 * 91 / - 99, - COALESCE ( - - CAST ( NULL AS INTEGER ), + ( 4 ) ) ) AS col0, CAST ( NULL AS INTEGER ) + 37 AS col0 query I rowsort @@ -43330,13 +43330,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\(\*\) AS col1" at position 1 have the 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\(\*\)\) WHEN Int64\(4\) \* \(\- CASE Int64\(7\) WHEN Int64\(75\) THEN Int64\(17\) END\) THEN Int64\(\-75\) / CAST\(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 @@ -43383,7 +43383,7 @@ SELECT ALL + + 15, 31 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\(\-58\)\) / Int64\(8\) AS col2" at position 0 and "coalesce\(\(\- CASE Int64\(\-20\) WHEN Int64\(\-85\) / Int64\(\-72\) THEN \(\- \(\- nullif\(\(\- count\(\*\)\), CAST\(Int64\(\-78\) AS Float64\) \+ \(\- count\(\*\)\) \+ Int64\(88\)\)\)\) \* \(\- Int64\(32\)\) END\), \(\- count\(\*\)\) \- Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) / Int64\(8\) AS col2" at position 0 and "coalesce\(\(\- CASE Int64\(\-20\) WHEN Int64\(\-85\) / Int64\(\-72\) THEN \(\- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), CAST\(Int64\(\-78\) AS Float64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(88\)\)\)\) \* \(\- Int64\(32\)\) END\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 58 / + 8 AS col2, COALESCE ( + - CASE + - 20 WHEN - 85 / - 72 THEN - - NULLIF ( - COUNT ( * ), + ( + CAST ( ( - 78 ) AS FLOAT8 ) ) + - COUNT ( * ) + 88 ) * - + 32 END, - COUNT ( * ) - + + 0 ) col2 query I rowsort label-8252 @@ -43471,7 +43471,7 @@ SELECT DISTINCT NULLIF ( + 83, - 60 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(2\) AS col1" at position 0 and "\(\- CASE \(\- CASE \(\- Int64\(89\)\) WHEN \(\- CAST\(NULL AS Float64\)\) THEN \(\- Int64\(\-33\)\) WHEN Int64\(60\) THEN \(\- Int64\(17\)\) \+ coalesce\(Int64\(27\), Int64\(23\) \* CASE Int64\(59\) WHEN Int64\(45\) THEN Int64\(\-22\) END\) END\) WHEN Int64\(\-95\) \* Int64\(62\) \+ Int64\(88\) THEN \(\- count\(\*\)\) WHEN \(\- Int64\(\-91\)\) / Int64\(\-50\) \+ \(\- CAST\(Int64\(\-4\) AS Float64\)\) \+ Int64\(\-67\) THEN NULL WHEN Int64\(83\) \+ Int64\(94\) \- Int64\(82\) \* Int64\(\-32\) \* Int64\(69\) \* Int64\(8\) \* count\(\*\) \* Int64\(\-51\) THEN \(\- Int64\(96\)\) ELSE NULL END\) \* Int64\(\-65\) \+ 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\(\*\) \* Int64\(2\) AS col1" at position 0 and "\(\- CASE \(\- CASE \(\- Int64\(89\)\) WHEN \(\- CAST\(NULL AS Float64\)\) THEN \(\- Int64\(\-33\)\) WHEN Int64\(60\) THEN \(\- Int64\(17\)\) \+ coalesce\(Int64\(27\), Int64\(23\) \* CASE Int64\(59\) WHEN Int64\(45\) THEN Int64\(\-22\) END\) END\) WHEN Int64\(\-95\) \* Int64\(62\) \+ Int64\(88\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(\-91\)\) / Int64\(\-50\) \+ \(\- CAST\(Int64\(\-4\) AS Float64\)\) \+ Int64\(\-67\) THEN NULL WHEN Int64\(83\) \+ Int64\(94\) \- Int64\(82\) \* Int64\(\-32\) \* Int64\(69\) \* Int64\(8\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-51\) THEN \(\- Int64\(96\)\) ELSE NULL END\) \* Int64\(\-65\) \+ Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * 2 AS col1, - CASE - CASE - + 89 WHEN - + ( CAST ( NULL AS FLOAT8 ) ) THEN - - 33 WHEN 60 THEN - ( + 17 ) + ( + COALESCE ( + 27, + + 23 * CASE + 59 WHEN + + 45 THEN - 22 END ) ) END WHEN - 95 * + 62 + 88 THEN + - COUNT ( * ) WHEN - - 91 / - 50 + - CAST ( - 4 AS FLOAT8 ) + - 67 THEN NULL WHEN 83 + + 94 - 82 * + ( - 32 ) * 69 * 8 * COUNT ( * ) * - 51 THEN - + 96 ELSE NULL END * + - 65 + + 76 AS col1 query I rowsort @@ -44521,7 +44521,7 @@ SELECT + 11 * - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- Int64\(\-59\)\) WHEN count\(\*\) THEN NULL ELSE Int64\(\-12\) \+ \(\- Int64\(\-50\)\) END\) \+ Int64\(0\) 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 "\(\- CASE \(\- Int64\(\-59\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(\-12\) \+ \(\- Int64\(\-50\)\) END\) \+ Int64\(0\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE - - 59 WHEN COUNT ( * ) THEN NULL ELSE - 12 + - - 50 END + - 0 AS col0, + 9 AS col0 query I rowsort @@ -44711,7 +44711,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ min\(DISTINCT \(\- Int64\(\-33\)\)\) AS col2" at position 0 and "Int64\(\-33\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(87\) \+ Int64\(81\) THEN \(\- Int64\(67\)\) / Int64\(\-64\) WHEN Int64\(34\) / Int64\(34\) / Int64\(75\) THEN Int64\(78\) \* Int64\(53\) \+ count\(\*\) \+ Int64\(46\) \+ \(\- Int64\(87\)\) \* Int64\(\-98\) END \+ nullif\(Int64\(52\), CASE Int64\(1\) WHEN Int64\(68\) \- \(\- avg\(Int64\(59\)\)\) THEN NULL WHEN Int64\(\-43\) THEN Int64\(58\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ min\(DISTINCT \(\- Int64\(\-33\)\)\) AS col2" at position 0 and "Int64\(\-33\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(87\) \+ Int64\(81\) THEN \(\- Int64\(67\)\) / Int64\(\-64\) WHEN Int64\(34\) / Int64\(34\) / Int64\(75\) THEN Int64\(78\) \* Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(46\) \+ \(\- Int64\(87\)\) \* Int64\(\-98\) END \+ nullif\(Int64\(52\), CASE Int64\(1\) WHEN Int64\(68\) \- \(\- avg\(Int64\(59\)\)\) THEN NULL WHEN Int64\(\-43\) THEN Int64\(58\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 + + MIN ( DISTINCT - - 33 ) AS col2, - 33 + ( + CASE - CAST ( NULL AS INTEGER ) WHEN 87 + 81 THEN + - ( + 67 ) / - 64 WHEN 34 / 34 / 75 THEN 78 * + 53 + + COUNT ( * ) + + 46 + - + 87 * - 98 END ) + + NULLIF ( + 52, + CASE + 1 WHEN + 68 - - AVG ( 59 ) THEN NULL WHEN - 43 THEN 58 ELSE NULL END ) AS col2 query I rowsort label-8504 @@ -45171,7 +45171,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\(\*\) 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 @@ -46425,7 +46425,7 @@ SELECT NULLIF ( + - 84, + 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3170 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-65\) \+ max\(Int64\(80\)\) \* Int64\(\-12\) AS col2" at position 0 and "Int64\(71\) / \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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\(\-65\) \+ max\(Int64\(80\)\) \* Int64\(\-12\) AS col2" at position 0 and "Int64\(71\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 * - 65 + MAX ( + 80 ) * - 12 AS col2, + 71 / - - COUNT ( * ) AS col2 query I rowsort label-8836 @@ -47900,7 +47900,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -49040,7 +49040,7 @@ SELECT ALL MAX ( - 75 ) * - COUNT ( * ) * - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3157 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- CASE Int64\(14\) WHEN Int64\(56\) THEN NULL WHEN Int64\(39\) THEN NULL WHEN Int64\(12\) THEN NULL ELSE \(\- Int64\(0\)\) \+ Int64\(77\) END\) AS col0" at position 0 and "min\(Int64\(50\)\) / Int64\(7\) \+ count\(\*\) \+ \(\- Int64\(\-30\)\) / 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\(41\) \* \(\- CASE Int64\(14\) WHEN Int64\(56\) THEN NULL WHEN Int64\(39\) THEN NULL WHEN Int64\(12\) THEN NULL ELSE \(\- Int64\(0\)\) \+ Int64\(77\) END\) AS col0" at position 0 and "min\(Int64\(50\)\) / Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-30\)\) / Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 41 * + - CASE + + 14 WHEN 56 THEN NULL WHEN 39 THEN NULL WHEN 12 THEN NULL ELSE - + 0 + + 77 END col0, + MIN ( ( + 50 ) ) / + + 7 + + + COUNT ( * ) + - - 30 / + 91 col0 query I rowsort @@ -49438,7 +49438,7 @@ SELECT 15 / 93 AS col0, 10 AS col1, - + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ Int64\(\-72\) AS col2" at position 0 and "count\(\*\) \+ min\(Int64\(62\)\) \+ Int64\(\-26\) \+ count\(\*\) / Int64\(\-54\) \+ \(\- Int64\(\-16\)\) \+ 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\(21\) \+ Int64\(\-72\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ min\(Int64\(62\)\) \+ Int64\(\-26\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-54\) \+ \(\- Int64\(\-16\)\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 21 + - 72 AS col2, COUNT ( * ) + + MIN ( ALL 62 ) + - 26 + + COUNT ( * ) / - 54 + - - 16 + + + 71 AS col2 query I rowsort @@ -49657,7 +49657,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\(\*\) 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 @@ -49837,7 +49837,7 @@ SELECT + - MIN ( DISTINCT 60 ) + - ( - 92 ) + 5 * - 41 col2 # 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 "\(\- \(\- count\(\*\)\)\) \* \(\- Int64\(76\)\) AS col1" at position 0 and "nullif\(Int64\(64\), \(\- Int64\(\-33\)\) / Int64\(75\) \+ Int64\(17\)\) \+ 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\(\*\)\)\) \* \(\- Int64\(76\)\) AS col1" at position 0 and "nullif\(Int64\(64\), \(\- Int64\(\-33\)\) / Int64\(75\) \+ Int64\(17\)\) \+ Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) * - + 76 col1, ( + NULLIF ( 64, - - 33 / 75 + + 17 ) ) + - 61 AS col1 query I rowsort @@ -50002,13 +50002,13 @@ SELECT ( + + 35 ) - - + 53 * + + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3221 # Datafusion - Expected - -1036 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(\*\) \+ Int64\(85\) \+ Int64\(95\) \* Int64\(33\) AS col0" at position 0 and "Int64\(14\) \* 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(85\) \+ Int64\(95\) \* Int64\(33\) AS col0" at position 0 and "Int64\(14\) \* Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * COUNT ( * ) + + + 85 + + 95 * + 33 AS col0, + 14 * - 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -33088 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ Int64\(0\) \* Int64\(42\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-22\) \* Int64\(47\) \* Int64\(2\) \* 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\(\-56\) \+ Int64\(0\) \* Int64\(42\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-22\) \* Int64\(47\) \* Int64\(2\) \* Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 56 + 0 * + + 42 AS col2, COUNT ( * ) * - 22 * + 47 * 2 * + 16 AS col2 query I rowsort label-9519 @@ -51227,7 +51227,7 @@ SELECT + 88 + - 55 + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* \(\- 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\(44\) \* \(\- 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 44 * - COUNT ( * ) col0, - 46 AS col0 query I rowsort label-9749 @@ -51677,7 +51677,7 @@ SELECT 73 * - 2 + - ( - 57 ) + + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(32\) \- Int64\(25\) AS col0" at position 0 and "Int64\(74\) \+ 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(32\) \- Int64\(25\) AS col0" at position 0 and "Int64\(74\) \+ Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 32 - + + 25 AS col0, 74 + + + 87 AS col0 query I rowsort @@ -51910,7 +51910,7 @@ SELECT ( - NULLIF ( + - 52, - + 59 / MAX ( + CAST ( NULL AS INTEGER ) ) * + SUM # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "Int64\(60\) \+ count\(\*\) \- Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "Int64\(60\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6 AS col1, 60 + + + COUNT ( * ) - + 44 AS col1 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_60.slt b/data/sqlite/random/expr/slt_good_60.slt index d421fbd..cc221d5 100644 --- a/data/sqlite/random/expr/slt_good_60.slt +++ b/data/sqlite/random/expr/slt_good_60.slt @@ -531,7 +531,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\(\*\) AS col0" at position 1 have the 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 @@ -811,7 +811,7 @@ SELECT DISTINCT ( - - 80 ) AS col1 # Datafusion - Expected - 23 # Datafusion - Expected - 42 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(27\) AS col0" at position 1 and "\(\- 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\(15\) \+ Int64\(27\) 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 - - 23, 15 + + + ( 27 ) AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -1372,7 +1372,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\(\*\) 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 @@ -1432,7 +1432,7 @@ SELECT ALL + COUNT ( * ) * - + COUNT ( * ) * - COUNT ( * ) * + - 92 * + + 52 AS # 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 "coalesce\(Int64\(93\), Int64\(1\)\) AS col1" at position 0 and "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 "coalesce\(Int64\(93\), Int64\(1\)\) 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 ALL COALESCE ( + 93, + 1 ) AS col1, COUNT ( * ) * - 1 AS col1 query I rowsort @@ -1448,7 +1448,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\(\*\) 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 @@ -1715,7 +1715,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\(\*\) 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 @@ -1757,7 +1757,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\(\*\) AS col2" at position 1 have the 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 @@ -1768,7 +1768,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\(\*\) 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 @@ -3073,7 +3073,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\(\*\) 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 @@ -3326,7 +3326,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\(\*\) \+ count\(\*\) THEN \(\- Int64\(4\)\) END \+ Int64\(20\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-28\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -3883,7 +3883,7 @@ SELECT - 83 * CAST ( - + 30 AS INTEGER ) + 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -183 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* \(\- Int64\(\-61\)\) \* \(\- 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 "Int64\(3\) \* \(\- Int64\(\-61\)\) \* \(\- 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 3 * - - 61 * - COUNT ( * ) AS col1, ( 76 ) AS col1 query I rowsort label-735 @@ -4954,7 +4954,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\(\*\) AS col1" at position 1 have the 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 @@ -5453,7 +5453,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\(\*\) 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 @@ -6834,7 +6834,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* CASE Int64\(79\) WHEN Int64\(34\) \+ \(\- min\(Int64\(\-33\)\)\) \+ count\(\*\) \+ Int64\(45\) \* Int64\(\-68\) THEN NULL WHEN Int64\(\-99\) \* Int64\(\-60\) \* \(\- \(\- CASE \(\- nullif\(Int64\(27\), Int64\(91\) \* Int64\(17\) \* Int64\(\-85\) \* Int64\(\-41\)\)\) WHEN \(\- Int64\(63\)\) \* Int64\(85\) / count\(\*\) THEN Int64\(40\) WHEN \(\- Int64\(\-81\)\) THEN NULL WHEN \(\- Int64\(\-6\)\) THEN Int64\(27\) ELSE NULL END\)\) THEN Int64\(15\) END \* \(\- Int64\(42\)\) \* Int64\(\-64\) \+ Int64\(87\) AS col0" at position 0 and "Int64\(34\) \+ coalesce\(Int64\(3\), 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\(57\) \* CASE Int64\(79\) WHEN Int64\(34\) \+ \(\- min\(Int64\(\-33\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) \* Int64\(\-68\) THEN NULL WHEN Int64\(\-99\) \* Int64\(\-60\) \* \(\- \(\- CASE \(\- nullif\(Int64\(27\), Int64\(91\) \* Int64\(17\) \* Int64\(\-85\) \* Int64\(\-41\)\)\) WHEN \(\- Int64\(63\)\) \* Int64\(85\) / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(40\) WHEN \(\- Int64\(\-81\)\) THEN NULL WHEN \(\- Int64\(\-6\)\) THEN Int64\(27\) ELSE NULL END\)\) THEN Int64\(15\) END \* \(\- Int64\(42\)\) \* Int64\(\-64\) \+ Int64\(87\) AS col0" at position 0 and "Int64\(34\) \+ coalesce\(Int64\(3\), Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 * + CASE 79 WHEN + 34 + - MIN ( ALL + - 33 ) + COUNT ( * ) + + 45 * - 68 THEN NULL WHEN - 99 * - 60 * - - CASE + - NULLIF ( 27, + 91 * 17 * - 85 * - 41 ) WHEN - + 63 * + 85 / + + COUNT ( * ) THEN 40 WHEN - - 81 THEN NULL WHEN - - 6 THEN + 27 ELSE NULL END THEN 15 END * + - ( 42 ) * - 64 + 87 AS col0, 34 + COALESCE ( 3, 57 ) col0 query I rowsort label-1296 @@ -8902,7 +8902,7 @@ SELECT + 44 + - CAST ( COUNT ( * ) AS INTEGER ) - + + 89 + + 60 * - 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 2109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(83\)\)\)\) AS col2" at position 0 and "Int64\(\-31\) \* \(\- coalesce\(\(\- count\(\*\)\), \(\- Int64\(\-21\)\) \+ Int64\(39\) \* \(\- coalesce\(Int64\(55\), CASE nullif\(Int64\(21\), Int64\(44\)\) WHEN Int64\(56\) THEN Int64\(34\) \* Int64\(71\) END, Int64\(81\)\)\)\)\) \* Int64\(\-66\) \+ 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 "\(\- \(\- max\(Int64\(83\)\)\)\) AS col2" at position 0 and "Int64\(\-31\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-21\)\) \+ Int64\(39\) \* \(\- coalesce\(Int64\(55\), CASE nullif\(Int64\(21\), Int64\(44\)\) WHEN Int64\(56\) THEN Int64\(34\) \* Int64\(71\) END, Int64\(81\)\)\)\)\) \* Int64\(\-66\) \+ Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - ( - MAX ( + 83 ) ) AS col2, - 31 * - + COALESCE ( - COUNT ( * ), - + ( - 21 ) + 39 * - COALESCE ( + 55, CASE NULLIF ( 21, 44 ) WHEN 56 THEN + 34 * 71 END, 81 ) ) * - 66 + + 63 AS col2 query I rowsort label-1692 @@ -10003,7 +10003,7 @@ SELECT ALL + 28 + + MAX ( 31 ) - 74 + - 67 + 22 + + - 91 + - + 43 + + ( - 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\(\-11\) / Int64\(15\) / Int64\(57\) \- \(\- Int64\(71\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(15\) / Int64\(57\) \- \(\- 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 DISTINCT - 11 / 15 / 57 - - + 71 AS col0, ( - COUNT ( * ) ) col0 query I rowsort label-1900 @@ -10667,7 +10667,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\(\*\) AS col1" at position 0 and "Int64\(38\) \* \(\- 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 @@ -10733,7 +10733,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\(\*\) AS col2" at position 1 have the 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 @@ -11116,7 +11116,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 4372280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "min\(Int64\(83\)\) \* Int64\(26\) \+ Int64\(\-29\) \* Int64\(\-23\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(39\) \* Int64\(\-3\) \* \(\- Int64\(56\)\) \+ Int64\(\-20\) \+ Int64\(\-44\) \+ \(\- 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\(22\) AS col2" at position 0 and "min\(Int64\(83\)\) \* Int64\(26\) \+ Int64\(\-29\) \* Int64\(\-23\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(39\) \* Int64\(\-3\) \* \(\- Int64\(56\)\) \+ Int64\(\-20\) \+ Int64\(\-44\) \+ \(\- Int64\(\-2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 22 col2, + MIN ( 83 ) * + 26 + - 29 * + - 23 * - - COUNT ( * ) * 39 * - 3 * - + 56 + + - 20 + - 44 + - - 2 AS col2 query I rowsort @@ -11879,7 +11879,7 @@ SELECT + + COALESCE ( + 66, + 64 * - 52 * 92 + + 16 - - COUNT ( * ), 45 ) AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -153 # Datafusion - Expected - 87791 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(min\(Int64\(81\)\), Int64\(\-93\)\)\) \+ \(\- Int64\(72\)\) AS col2" at position 0 and "\(\- Int64\(\-5\)\) \* Int64\(\-13\) \* \(\- Int64\(\-59\)\) \- Int64\(26\) \* \(\- Int64\(80\)\) \* Int64\(44\) \+ Int64\(8\) \+ Int64\(53\) \+ Int64\(46\) \+ \(\- count\(\*\)\) AS col2" at position 1 have 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\(min\(Int64\(81\)\), Int64\(\-93\)\)\) \+ \(\- Int64\(72\)\) AS col2" at position 0 and "\(\- Int64\(\-5\)\) \* Int64\(\-13\) \* \(\- Int64\(\-59\)\) \- Int64\(26\) \* \(\- Int64\(80\)\) \* Int64\(44\) \+ Int64\(8\) \+ Int64\(53\) \+ Int64\(46\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( + + MIN ( + 81 ), - 93 ) + - + 72 AS col2, - ( - 5 ) * - 13 * - - 59 - + 26 * - + 80 * + 44 + + 8 + 53 + 46 + - COUNT ( * ) AS col2 query I rowsort @@ -12895,7 +12895,7 @@ SELECT ALL - - 90 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1497 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col0" at position 0 and "Int64\(87\) / \(\- Int64\(\-71\)\) \* Int64\(40\) / Int64\(5\) \- Int64\(17\) \+ count\(\*\) \+ Int64\(56\) \+ Int64\(63\) \* 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\(21\)\) AS col0" at position 0 and "Int64\(87\) / \(\- Int64\(\-71\)\) \* Int64\(40\) / Int64\(5\) \- Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(56\) \+ Int64\(63\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 21 AS col0, 87 / ( - - 71 ) * + 40 / + + 5 - 17 + COUNT ( * ) + + 56 + 63 * + 23 col0 query I rowsort label-2452 @@ -12996,7 +12996,7 @@ SELECT ALL 86 * - 21 * + 18 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -1334 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col0" at position 0 and "count\(\*\) \+ Int64\(85\) \+ Int64\(71\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(85\) \+ Int64\(71\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 70 ) AS col0, + COUNT ( * ) + 85 + + 71 * ( - 20 ) AS col0 query I rowsort label-2471 @@ -13962,7 +13962,7 @@ SELECT ALL + 83 / - COUNT ( * ) AS col1 # 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 "Int64\(74\) \* count\(\*\) \* Int64\(0\) 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\(74\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(0\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 74 * + COUNT ( * ) * + 0 AS col0, 90 AS col0 query I rowsort label-2656 @@ -14773,7 +14773,7 @@ SELECT ALL + 61 * - - 79 # 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\(61\)\) / Int64\(11\) \+ coalesce\(count\(\*\), Int64\(33\)\) 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\(61\)\) / Int64\(11\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(33\)\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( ALL + 61 ) / 11 + COALESCE ( COUNT ( * ), + 33 ) AS col0, 1 col0 query II rowsort @@ -14919,7 +14919,7 @@ SELECT ALL + - 57 + CAST ( - COUNT ( ALL + - 7 ) AS INTEGER ) + - - 45 col0 # Datafusion - Expected - -161 # Datafusion - Expected - 84 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / \(\- min\(Int64\(51\)\)\) \+ \(\- coalesce\(CAST\(\(\- Int64\(\-80\)\) AS Int32\), nullif\(Int64\(\-75\), Int64\(\-98\)\), \(\- coalesce\(count\(\*\), Int64\(78\) \* Int64\(10\) \+ Int64\(48\) \+ nullif\(Int64\(\-2\), \(\- \(\- CAST\(min\(Int64\(\-31\)\) AS Int32\)\)\)\) \* \(\- max\(Int64\(80\)\)\)\)\)\)\) \+ \(\- Int64\(80\)\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(\-70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / \(\- min\(Int64\(51\)\)\) \+ \(\- coalesce\(CAST\(\(\- Int64\(\-80\)\) AS Int32\), nullif\(Int64\(\-75\), Int64\(\-98\)\), \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(78\) \* Int64\(10\) \+ Int64\(48\) \+ nullif\(Int64\(\-2\), \(\- \(\- CAST\(min\(Int64\(\-31\)\) AS Int32\)\)\)\) \* \(\- max\(Int64\(80\)\)\)\)\)\)\) \+ \(\- Int64\(80\)\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(\-70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 67 / + - MIN ( ALL + 51 ) + - COALESCE ( + CAST ( - - 80 AS INTEGER ), NULLIF ( - 75, - 98 ), - COALESCE ( COUNT ( * ), + 78 * 10 + 48 + NULLIF ( - 2, - + ( - + CAST ( + MIN ( ALL - 31 ) AS INTEGER ) ) ) * - + MAX ( ALL + 80 ) ) ) + - + 80 AS col0, 84, + 58 + + - 70 col0 query I rowsort label-2839 @@ -18112,7 +18112,7 @@ SELECT ALL ( + COUNT ( * ) ) * + COUNT ( * ) * - 53 / + 29 + + - COALESCE ( 72, # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ Int64\(12\) AS col2" at position 0 and "count\(\*\) \* avg\(CAST\(NULL AS Int32\)\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ Int64\(12\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* avg\(CAST\(NULL AS Int32\)\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 27 + + 12 AS col2, COUNT ( * ) * AVG ( + + CAST ( NULL AS INTEGER ) ) + - 12 AS col2 query II rowsort label-3452 @@ -19596,7 +19596,7 @@ SELECT DISTINCT + 18, - ( + 33 ) * 83 + - 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 7338 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / Int64\(15\) \+ Int64\(78\) \+ \(\- count\(\*\)\) \* count\(\*\) \* max\(DISTINCT Int64\(50\)\) \+ Int64\(1\) / Int64\(\-12\) AS col2" at position 0 and "Int64\(\-54\) \+ max\(Int64\(77\)\) \* 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\(41\) / Int64\(15\) \+ Int64\(78\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* max\(DISTINCT Int64\(50\)\) \+ Int64\(1\) / Int64\(\-12\) AS col2" at position 0 and "Int64\(\-54\) \+ max\(Int64\(77\)\) \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 / + 15 + 78 + + - COUNT ( * ) * COUNT ( * ) * MAX ( DISTINCT + 50 ) + 1 / + - 12 AS col2, - 54 + + MAX ( 77 ) * 96 AS col2 query II rowsort @@ -21081,7 +21081,7 @@ SELECT ALL 31 AS col1, NULLIF ( - - ( + 47 ), 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -30 -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\(\-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\(83\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 83 AS col0, - COUNT ( * ) + + - 29 col0 query I rowsort @@ -22122,7 +22122,7 @@ SELECT DISTINCT COUNT ( * ) / 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(\*\) WHEN Int64\(66\) \* Int64\(7\) \* Int64\(\-73\) THEN NULL ELSE Int64\(9\) END AS col0" at position 0 and "Int64\(72\) \+ \(\- \(\- Int64\(36\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(66\) \* Int64\(7\) \* Int64\(\-73\) THEN NULL ELSE Int64\(9\) END AS col0" at position 0 and "Int64\(72\) \+ \(\- \(\- Int64\(36\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + COUNT ( * ) WHEN 66 * 7 * - 73 THEN NULL ELSE 9 END AS col0, + 72 + - - ( + 36 ) AS col0 query I rowsort label-4211 @@ -23325,7 +23325,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\(96\) AS col2" at position 0 and "Int64\(\-97\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -23528,7 +23528,7 @@ SELECT - 53 * + + COUNT ( * ) + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-11\)\) \+ \(\- CASE count\(\*\) WHEN Int64\(\-48\) \+ Int64\(1\) THEN NULL ELSE Int64\(33\) END\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-11\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-48\) \+ Int64\(1\) THEN NULL ELSE Int64\(33\) END\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 11 + - CASE + COUNT ( * ) WHEN - 48 + ( 1 ) THEN NULL ELSE + + 33 END AS col2, 6 AS col2 query I rowsort label-4480 @@ -24231,7 +24231,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -1818 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \* \(\- Int64\(68\)\) \* coalesce\(Int64\(28\), \(\- CASE Int64\(65\) WHEN coalesce\(\(\- min\(\(\- \(\- Int64\(84\)\)\)\)\), Int64\(\-72\) \* Int64\(83\) \* \(\- Int64\(\-98\)\)\) THEN \(\- CAST\(Int64\(77\) AS Int32\)\) WHEN \(\- CASE count\(\*\) WHEN Int64\(40\) THEN Int64\(69\) / \(\- Int64\(\-20\)\) WHEN \(\- Int64\(23\)\) \* Int64\(52\) THEN NULL ELSE Int64\(\-86\) \- Int64\(\-31\) END\) / \(\- Int64\(14\)\) \+ \(\- Int64\(\-39\)\) \+ Int64\(11\) \+ \(\- Int64\(\-65\)\) THEN NULL END\) \+ \(\- count\(\*\)\), \(\- Int64\(95\)\)\) \* \(\- count\(\*\)\) \- \(\- sum\(DISTINCT Int64\(86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(68\)\) \* coalesce\(Int64\(28\), \(\- CASE Int64\(65\) WHEN coalesce\(\(\- min\(\(\- \(\- Int64\(84\)\)\)\)\), Int64\(\-72\) \* Int64\(83\) \* \(\- Int64\(\-98\)\)\) THEN \(\- CAST\(Int64\(77\) AS Int32\)\) WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(40\) THEN Int64\(69\) / \(\- Int64\(\-20\)\) WHEN \(\- Int64\(23\)\) \* Int64\(52\) THEN NULL ELSE Int64\(\-86\) \- Int64\(\-31\) END\) / \(\- Int64\(14\)\) \+ \(\- Int64\(\-39\)\) \+ Int64\(11\) \+ \(\- Int64\(\-65\)\) THEN NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(95\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- sum\(DISTINCT Int64\(86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 56 col0, - COUNT ( * ) * - + 68 * + COALESCE ( + 28, - + CASE + + 65 WHEN COALESCE ( - MIN ( ALL - - ( 84 ) ), - 72 * + 83 * - - 98 ) THEN - + CAST ( 77 AS INTEGER ) WHEN - CASE COUNT ( * ) WHEN + 40 THEN 69 / - - 20 WHEN - + 23 * + 52 THEN NULL ELSE + - 86 - - 31 END / - + 14 + - - 39 + + 11 + - - 65 THEN NULL END + - + COUNT ( * ), + ( - + 95 ) ) * + - COUNT ( * ) - - SUM ( DISTINCT + 86 ) AS col0 query II rowsort @@ -25065,7 +25065,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\(25\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -26608,7 +26608,7 @@ SELECT 89 * - ( - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -5976 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(27\) AS col0" at position 0 and "Int64\(83\) \* 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\(27\) AS col0" at position 0 and "Int64\(83\) \* Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * + + ( 27 ) AS col0, 83 * - 72 AS col0 query I rowsort label-5069 @@ -27035,7 +27035,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\(\*\) AS col2" at position 1 have 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 @@ -27764,7 +27764,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\(\*\) END \+ Int64\(\-12\) \+ Int64\(\-66\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -29787,7 +29787,7 @@ SELECT + - 76 * 49 + - NULLIF ( 63, + - NULLIF ( - 45, 82 + 18 + + + 96 ) * - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 5894 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(71\) \* Int64\(84\) AS col1" at position 0 and "CASE nullif\(Int64\(28\), count\(Int64\(87\)\) \+ Int64\(46\)\) WHEN Int64\(\-91\) THEN Int64\(\-4\) \+ Int64\(71\) \+ Int64\(33\) ELSE NULL END \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(71\) \* Int64\(84\) AS col1" at position 0 and "CASE nullif\(Int64\(28\), count\(Int64\(87\)\) \+ Int64\(46\)\) WHEN Int64\(\-91\) THEN Int64\(\-4\) \+ Int64\(71\) \+ Int64\(33\) ELSE NULL END \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 70 + 71 * 84 AS col1, CASE NULLIF ( 28, COUNT ( 87 ) + + + 46 ) WHEN - 91 THEN + - 4 + 71 + + + 33 ELSE NULL END + + - COUNT ( * ) AS col1 query I rowsort label-5677 @@ -30395,7 +30395,7 @@ SELECT COUNT ( * ) + COUNT ( * ) + ( - + 7 ) AS col2, ( NULLIF ( + ( + 3 ), - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 992 # Datafusion - Expected - -6923 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- Int64\(77\)\) / Int64\(\-7\) \+ \(\- Int64\(\-47\)\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(71\) \* Int64\(\-98\) \+ \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- Int64\(77\)\) / Int64\(\-7\) \+ \(\- Int64\(\-47\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(71\) \* Int64\(\-98\) \+ \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 86 * - + 77 / - 7 + - - 47 + - COUNT ( * ) AS col2, + 71 * - 98 + - - 35 AS col2 query II rowsort @@ -30857,7 +30857,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\(\*\) AS col2" at position 1 have the 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: @@ -31698,7 +31698,7 @@ SELECT - + 85, - MIN ( DISTINCT 16 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "CAST\(Int64\(80\) AS Int32\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CAST\(Int64\(80\) AS Int32\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col2, + CAST ( 80 AS INTEGER ) * + 4 AS col2 query I rowsort label-6036 @@ -31812,7 +31812,7 @@ SELECT + COUNT ( DISTINCT 78 ) AS col0, - 32 * - 27 + - + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 158 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(83\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(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 + 75 + + + 83 AS col2, - COUNT ( * ) AS col2 query I rowsort label-6058 @@ -32434,7 +32434,7 @@ SELECT ALL NULLIF ( 22, COUNT ( * ) ) * - 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 4460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) / \(\- count\(\(\- Int64\(57\)\)\)\) AS col0" at position 0 and "Int64\(65\) \* nullif\(Int64\(69\), Int64\(13\)\) \+ 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\(\*\)\)\) / \(\- count\(\(\- Int64\(57\)\)\)\) AS col0" at position 0 and "Int64\(65\) \* nullif\(Int64\(69\), Int64\(13\)\) \+ Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) / - COUNT ( ALL - + 57 ) AS col0, 65 * + NULLIF ( 69, 13 ) + + - 25 AS col0 query I rowsort label-6177 @@ -32571,7 +32571,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\(\*\) 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 @@ -33058,7 +33058,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\(\*\) AS col0" at position 1 have the same 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 @@ -33119,7 +33119,7 @@ SELECT + NULLIF ( 35, - - 99 ) + + 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 179 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(\*\) WHEN \(\- Int64\(64\)\) \* Int64\(29\) \* \(\- max\(Int64\(96\)\)\) \* \(\- \(\- Int64\(\-70\)\)\) \+ \(\- Int64\(\-19\)\) THEN nullif\(Int64\(\-38\), Int64\(88\) \* min\(Int64\(\-37\)\)\) \* \(\- Int64\(17\)\) \+ nullif\(count\(\*\), Int64\(\-83\)\) ELSE Int64\(95\) END \+ \(\- \(\- \(\- count\(\*\)\)\)\) \- \(\- Int64\(85\)\) 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 "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(64\)\) \* Int64\(29\) \* \(\- max\(Int64\(96\)\)\) \* \(\- \(\- Int64\(\-70\)\)\) \+ \(\- Int64\(\-19\)\) THEN nullif\(Int64\(\-38\), Int64\(88\) \* min\(Int64\(\-37\)\)\) \* \(\- Int64\(17\)\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-83\)\) ELSE Int64\(95\) END \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- \(\- Int64\(85\)\) 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 + CASE + + COUNT ( * ) WHEN - + 64 * 29 * - + MAX ( + ( 96 ) ) * + - ( - - 70 ) + - - 19 THEN NULLIF ( - 38, + 88 * + MIN ( ALL + - 37 ) ) * - + 17 + + NULLIF ( COUNT ( * ), - 83 ) ELSE 95 END + - - ( - COUNT ( * ) ) - ( - + 85 ) AS col1, - ( - 62 ) * + CAST ( NULL AS FLOAT8 ) AS col1 query I rowsort label-6307 @@ -35201,7 +35201,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\(\*\) 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: @@ -35493,7 +35493,7 @@ SELECT - 11 + - 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-25\) \+ Int64\(\-13\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(42\) \+ \(\- CASE Int64\(67\) WHEN Int64\(48\) THEN \(\- Int64\(\-60\)\) \* count\(\*\) ELSE NULL END\) \* Int64\(59\) \+ Int64\(\-37\) \* max\(DISTINCT Int64\(56\) \* 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\(\*\)\) \+ Int64\(\-25\) \+ Int64\(\-13\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(42\) \+ \(\- CASE Int64\(67\) WHEN Int64\(48\) THEN \(\- Int64\(\-60\)\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) \* Int64\(59\) \+ Int64\(\-37\) \* max\(DISTINCT Int64\(56\) \* Int64\(62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + - 25 + - 13 * - - COUNT ( * ) AS col0, 42 + - CASE 67 WHEN 48 THEN - - 60 * + COUNT ( * ) ELSE NULL END * 59 + - 37 * MAX ( DISTINCT 56 * + 62 ) AS col0 query II rowsort @@ -36607,7 +36607,7 @@ SELECT - 59 + + 55 - 81, + 47 AS col0, + 46 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(91\) \* \(\- Int64\(\-83\)\) \+ Int64\(26\) \+ \(\- CASE \(\- Int64\(\-79\)\) WHEN Int64\(19\) \* Int64\(35\) \- Int64\(91\) \+ Int64\(9\) \* \(\- Int64\(7\)\) \+ \(\- Int64\(\-87\)\) \* \(\- CASE \(\- count\(\*\)\) WHEN Int64\(17\) THEN NULL WHEN Int64\(23\) THEN Int64\(96\) END\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(56\) THEN Int64\(\-60\) ELSE NULL END\) \* Int64\(\-33\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(91\) \* \(\- Int64\(\-83\)\) \+ Int64\(26\) \+ \(\- CASE \(\- Int64\(\-79\)\) WHEN Int64\(19\) \* Int64\(35\) \- Int64\(91\) \+ Int64\(9\) \* \(\- Int64\(7\)\) \+ \(\- Int64\(\-87\)\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(17\) THEN NULL WHEN Int64\(23\) THEN Int64\(96\) END\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(56\) THEN Int64\(\-60\) ELSE NULL END\) \* Int64\(\-33\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 53 col0, 91 * - - 83 + + ( 26 ) + - CASE - - 79 WHEN + 19 * + 35 - + 91 + + 9 * - + 7 + - + ( - 87 ) * - CASE - COUNT ( * ) WHEN 17 THEN NULL WHEN + + 23 THEN + ( 96 ) END + - CAST ( NULL AS INTEGER ) * + 56 THEN - 60 ELSE NULL END * - 33 * + 97 AS col0 query I rowsort @@ -36834,7 +36834,7 @@ SELECT DISTINCT - 29 + + CAST ( - - 50 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \- \(\- \(\- 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 "\(\- Int64\(\-18\)\) \- \(\- \(\- 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 - - 18 - + - ( - + ( + COUNT ( * ) ) ) AS col2, - 23 AS col2 query I rowsort label-7023 @@ -37108,7 +37108,7 @@ SELECT ALL - 47 + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(89\) \* Int64\(\-40\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(89\) \* Int64\(\-40\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + - - 85 AS col1, CAST ( NULL AS INTEGER ) + + + 89 * - 40 * - 70 AS col1 query I rowsort label-7075 @@ -38167,7 +38167,7 @@ SELECT CASE ( - + 85 ) WHEN + 19 THEN NULL ELSE - COUNT ( * ) END * + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14804856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(88\) \* \(\- count\(\*\)\) \* CASE Int64\(89\) WHEN \(\- count\(\*\)\) THEN NULL ELSE Int64\(75\) \+ Int64\(\-95\) \- \(\- Int64\(\-7\)\) END \* Int64\(\-67\) \* min\(Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(89\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(75\) \+ Int64\(\-95\) \- \(\- Int64\(\-7\)\) END \* Int64\(\-67\) \* min\(Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - + 16 col2, 88 * - COUNT ( * ) * + CASE 89 WHEN - COUNT ( * ) THEN NULL ELSE + 75 + - 95 - - - 7 END * - 67 * + MIN ( 93 ) AS col2 query I rowsort @@ -38278,7 +38278,7 @@ SELECT + 88 * + NULLIF ( - 48, - 21 + + + 49 * + 36 * - 59 * - AVG ( ALL - + 63 # 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 "\(\- count\(\*\)\) \+ \(\- Int64\(\-22\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\(\-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 DISTINCT - + COUNT ( * ) + - - 22 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -38330,7 +38330,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\(\*\) AS col2" at position 1 have the 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 @@ -38495,7 +38495,7 @@ SELECT + ( 27 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 734 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(46\) \+ count\(\*\) \+ Int64\(89\) AS col0" at position 0 and "Int64\(84\) \- \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- \(\- sum\(CAST\(\(\- Int64\(0\)\) AS Float64\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(46\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(89\) AS col0" at position 0 and "Int64\(84\) \- \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- \(\- sum\(CAST\(\(\- Int64\(0\)\) AS Float64\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 14 * + 46 + COUNT ( * ) + 89 AS col0, + 84 - - CAST ( NULL AS INTEGER ) + - - ( ( - SUM ( ALL + CAST ( - + 0 AS FLOAT8 ) ) ) ) AS col0 query I rowsort @@ -39862,7 +39862,7 @@ SELECT COUNT ( * ) AS col2, + 45 * + COUNT ( * ) + 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -115 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-58\) \- Int64\(\-13\) \* Int64\(\-7\) \* \(\- count\(\*\)\) \* \(\- count\(\*\)\) \* Int64\(1\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(31\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-58\) \- Int64\(\-13\) \* Int64\(\-7\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(1\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 30 + - 58 - - 13 * - 7 * ( - COUNT ( * ) ) * - COUNT ( * ) * + 1 + 4 col0, 31 * - COUNT ( * ) AS col0 query I rowsort label-7599 @@ -40820,7 +40820,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\(\*\) 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 @@ -41284,7 +41284,7 @@ SELECT DISTINCT - + 47 * - 9 + + + MIN ( - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(43\)\) / \(\- coalesce\(\(\- count\(\*\)\), \(\- Int64\(24\)\)\)\) AS col2" at position 0 and "Int64\(96\) \+ 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 "min\(DISTINCT Int64\(43\)\) / \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(24\)\)\)\) AS col2" at position 0 and "Int64\(96\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( DISTINCT 43 ) / - COALESCE ( - COUNT ( * ), - + 24 ) col2, 96 + 49 AS col2 query I rowsort label-7868 @@ -44242,7 +44242,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\(\*\) AS col2" at position 1 have the 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 @@ -44278,7 +44278,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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: @@ -44312,7 +44312,7 @@ SELECT - - 56 + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(32\)\)\) \+ \(\- \(\- coalesce\(\(\- count\(\*\)\), Int64\(\-27\) \* count\(\*\)\)\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(34\) \- \(\- Int64\(77\)\)\) / Int64\(\-43\) \* Int64\(22\) \+ Int64\(\-25\) \* Int64\(\-45\) \+ Int64\(\-64\) \* min\(Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(32\)\)\) \+ \(\- \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-27\) \* count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(34\) \- \(\- Int64\(77\)\)\) / Int64\(\-43\) \* Int64\(22\) \+ Int64\(\-25\) \* Int64\(\-45\) \+ Int64\(\-64\) \* min\(Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - MAX ( ALL 32 ) + - - COALESCE ( - + COUNT ( * ), + - 27 * COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) AS col1, NULLIF ( CAST ( NULL AS INTEGER ), + 34 - - + 77 ) / - 43 * 22 + - 25 * - 45 + - 64 * MIN ( + 65 ) AS col1 query I rowsort @@ -47262,7 +47262,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -31 -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\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 87 AS col1, + COUNT ( * ) * + - 31 AS col1 query I rowsort label-9011 @@ -48532,7 +48532,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\(\*\) 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 @@ -48596,7 +48596,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\(\*\) 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 @@ -48839,7 +48839,7 @@ SELECT + - NULLIF ( + - 47, - 42 * + 3 + + NULLIF ( + 44, + - 26 ) ) * - 3 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 39208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-40\)\), count\(\*\)\) AS col1" at position 0 and "Int64\(\-4\) \* \(\- nullif\(count\(\*\), \(\- Int64\(73\)\) \- Int64\(2\)\)\) \+ Int64\(\-22\) \* CAST\(Int64\(\-81\) AS Int32\) \* \(\- nullif\(Int64\(\-22\), \(\- count\(Int64\(76\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-40\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-4\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(73\)\) \- Int64\(2\)\)\) \+ Int64\(\-22\) \* CAST\(Int64\(\-81\) AS Int32\) \* \(\- nullif\(Int64\(\-22\), \(\- count\(Int64\(76\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + NULLIF ( - - 40, + COUNT ( * ) ) AS col1, - 4 * - + NULLIF ( + + COUNT ( * ), - + 73 - + ( + 2 ) ) + - 22 * CAST ( - 81 AS INTEGER ) * - + NULLIF ( - 22, - COUNT ( + 76 ) ) AS col1 query I rowsort label-9310 @@ -49653,7 +49653,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\(19\) / Int64\(23\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -50331,7 +50331,7 @@ SELECT + 16 * + 70 * + 38 * - 43 - + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6734 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(37\) \* \(\- count\(\*\)\) \+ Int64\(\-14\) \+ \(\- \(\- Int64\(41\)\)\) \* CAST\(NULL AS Int32\) \* \(\- min\(Int64\(\-85\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-14\) \+ \(\- \(\- Int64\(41\)\)\) \* CAST\(NULL AS Int32\) \* \(\- min\(Int64\(\-85\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 74 * + - 91 AS col2, 37 * - COUNT ( * ) + - 14 + + - ( - + 41 ) * CAST ( NULL AS INTEGER ) * - MIN ( - 85 ) AS col2 query II rowsort @@ -51880,7 +51880,7 @@ SELECT - 75 - + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(6\)\) \* Int64\(21\) AS col2" at position 0 and "Int64\(\-43\) \* CASE Int64\(\-4\) WHEN Int64\(\-21\) THEN count\(\*\) \* Int64\(31\) WHEN Int64\(87\) \+ coalesce\(Int64\(21\), CAST\(Int64\(8\) AS Int32\) / Int64\(64\)\) \* Int64\(9\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(6\)\) \* Int64\(21\) AS col2" at position 0 and "Int64\(\-43\) \* CASE Int64\(\-4\) WHEN Int64\(\-21\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) WHEN Int64\(87\) \+ coalesce\(Int64\(21\), CAST\(Int64\(8\) AS Int32\) / Int64\(64\)\) \* Int64\(9\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL 6 ) * ( 21 ) col2, - 43 * ( CASE - 4 WHEN - 21 THEN + COUNT ( * ) * + ( 31 ) WHEN 87 + COALESCE ( 21, CAST ( ( 8 ) AS INTEGER ) / + 64 ) * 9 THEN NULL END ) AS col2 query I rowsort @@ -52298,7 +52298,7 @@ SELECT ALL 53 + - - 11 * + + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(56\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(56\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, - CAST ( + 56 AS INTEGER ) AS col0 query I rowsort label-9974 diff --git a/data/sqlite/random/expr/slt_good_61.slt b/data/sqlite/random/expr/slt_good_61.slt index c385af5..2e34540 100644 --- a/data/sqlite/random/expr/slt_good_61.slt +++ b/data/sqlite/random/expr/slt_good_61.slt @@ -203,7 +203,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\(\*\) AS col0" at position 1 have the 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 @@ -393,7 +393,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 10 # Datafusion - Expected - 5164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 1 and "Int64\(82\) \+ Int64\(16\) / sum\(DISTINCT Int64\(38\)\) \* \(\- count\(\*\)\) \- \(\- count\(\*\)\) \* \(\- Int64\(\-77\)\) \* \(\- Int64\(\-66\)\) 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\(10\) AS col2" at position 1 and "Int64\(82\) \+ Int64\(16\) / sum\(DISTINCT Int64\(38\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-77\)\) \* \(\- Int64\(\-66\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ), 10 AS col2, + 82 + + 16 / + SUM ( DISTINCT + 38 ) * - + COUNT ( * ) - - COUNT ( * ) * - - 77 * ( - - 66 ) AS col2 query I rowsort label-66 @@ -465,7 +465,7 @@ SELECT ALL MAX ( - - ( + 81 ) ) # Datafusion - Expected - -1 # Datafusion - Expected - 135 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \+ coalesce\(Int64\(60\), Int64\(5\) \* \(\- Int64\(10\)\) \+ \(\- Int64\(43\)\) \* Int64\(50\) \* 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\(\*\)\) AS col0" at position 0 and "Int64\(75\) \+ coalesce\(Int64\(60\), Int64\(5\) \* \(\- Int64\(10\)\) \+ \(\- Int64\(43\)\) \* Int64\(50\) \* Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( COUNT ( * ) ) col0, 75 + + COALESCE ( 60, 5 * - + 10 + - + 43 * 50 * 17 ) AS col0, + CASE + MAX ( ALL + CAST ( NULL AS INTEGER ) ) WHEN - 19 + - 9 * + 21 THEN NULL ELSE + COUNT ( * ) END * 1 AS col1 query I rowsort label-80 @@ -1153,14 +1153,14 @@ 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\(\*\) AS col2" at position 1 have the 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: # Datafusion - Expected - 72 # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 1 and "coalesce\(Int64\(35\), CAST\(NULL AS Float64\) \* \(\- count\(\*\)\) \+ avg\(Int64\(66\)\), Int64\(\-28\) \* Int64\(30\) \+ \(\- count\(\*\)\)\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "coalesce\(Int64\(35\), CAST\(NULL AS Float64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(66\)\), Int64\(\-28\) \* Int64\(30\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72, - COUNT ( * ) AS col1, + COALESCE ( 35, + CAST ( NULL AS FLOAT8 ) * - COUNT ( * ) + AVG ( 66 ), - 28 * 30 + - + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -1484,7 +1484,7 @@ SELECT NULLIF ( + 0, - - 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(\-31\)\) \+ Int64\(86\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) \* Int64\(\-32\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "count\(\(\- Int64\(\-14\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(\-31\)\) \+ Int64\(86\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) \* Int64\(\-32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(\(\- Int64\(\-14\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 65 ) * - - 31 + 86 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 32 + - - COUNT ( * ) AS col0, + COUNT ( - - 14 ) AS col0 query II rowsort @@ -3244,7 +3244,7 @@ SELECT 50 * - 64 * + NULLIF ( + COUNT ( * ), 29 + - MAX ( + NULLIF ( + 49, + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 75265 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(29\) \+ CASE Int64\(57\) WHEN Int64\(\-62\) / count\(\*\) \+ Int64\(\-82\) THEN NULL ELSE Int64\(1\) \* Int64\(43\) \* Int64\(98\) \+ Int64\(19\) \* Int64\(\-89\) \* \(\- min\(Int64\(42\)\)\) END \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(29\) \+ CASE Int64\(57\) WHEN Int64\(\-62\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-82\) THEN NULL ELSE Int64\(1\) \* Int64\(43\) \* Int64\(98\) \+ Int64\(19\) \* Int64\(\-89\) \* \(\- min\(Int64\(42\)\)\) END \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col1, 29 + CASE + 57 WHEN - 62 / + COUNT ( * ) + - 82 THEN NULL ELSE 1 * + 43 * 98 + + 19 * - 89 * - MIN ( + 42 ) END * - - COUNT ( * ) AS col1 query II rowsort @@ -3979,7 +3979,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\(\*\) AS col0" at position 0 and "CAST\(Int64\(87\) AS Int32\) \+ \(\- nullif\(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 @@ -5535,7 +5535,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\(\*\) 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 @@ -6304,7 +6304,7 @@ SELECT - - COUNT ( * ) * + - 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 639 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(count\(\*\), \(\- Int64\(81\)\) \* CAST\(\(\- Int64\(1\)\) AS Int32\) \+ \(\- Int64\(51\)\) \* Int64\(18\)\)\), Int64\(\-24\), \(\- count\(\*\)\)\)\) \* count\(\*\) \- Int64\(22\) \* Int64\(\-29\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(81\)\) \* CAST\(\(\- Int64\(1\)\) AS Int32\) \+ \(\- Int64\(51\)\) \* Int64\(18\)\)\), Int64\(\-24\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(22\) \* Int64\(\-29\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - NULLIF ( + COUNT ( * ), - + 81 * + CAST ( - + 1 AS INTEGER ) + - + 51 * + 18 ), - 24, - COUNT ( * ) ) * + COUNT ( * ) - 22 * - 29 AS col1, ( 74 ) AS col1 query I rowsort @@ -6607,7 +6607,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\(\*\) AS col1" at position 1 have the 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 @@ -6807,7 +6807,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\(\*\) AS col0" at position 1 have the 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 @@ -7629,7 +7629,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\(\*\) 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 @@ -9124,7 +9124,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\(\*\) 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 @@ -10097,7 +10097,7 @@ SELECT DISTINCT 46 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 23994 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-53\) AS col2" at position 0 and "Int64\(93\) \* Int64\(\-3\) \* Int64\(86\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-53\) AS col2" at position 0 and "Int64\(93\) \* Int64\(\-3\) \* Int64\(86\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 + + - 53 AS col2, 93 * - 3 * 86 * + - COUNT ( * ) AS col2 query I rowsort label-1924 @@ -10188,7 +10188,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\(\*\) AS col0" at position 1 have the 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 @@ -12068,7 +12068,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\(\*\) 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 @@ -13557,7 +13557,7 @@ SELECT DISTINCT + 19 * - COUNT ( * ) - - 37 - 67 + - 68 - + 64 / - - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1123 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-71\) \* Int64\(16\) \+ Int64\(13\) 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\(\*\) \* Int64\(\-71\) \* Int64\(16\) \+ Int64\(13\) 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 ( * ) * - 71 * 16 + + + 13 col1, 26 AS col1 query I rowsort label-2587 @@ -13793,7 +13793,7 @@ SELECT + 83 AS col0, ( 83 ) + + + 80 + - + 8 / - 44 * SUM ( - - CAST ( + + 96 AS # 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\(\*\)\) AS col1" at position 1 have the 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 @@ -14247,7 +14247,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ count\(DISTINCT \(\- Int64\(33\)\)\) AS col1" at position 0 and "Int64\(78\) \* coalesce\(\(\- \(\- count\(\*\)\)\), Int64\(\-32\), Int64\(19\) \+ Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ count\(DISTINCT \(\- Int64\(33\)\)\) AS col1" at position 0 and "Int64\(78\) \* coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-32\), Int64\(19\) \+ Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 + COUNT ( DISTINCT - + 33 ) AS col1, + 78 * + COALESCE ( - - COUNT ( * ), - 32, + 19 + - 18 ) AS col1 query I rowsort label-2719 @@ -16942,7 +16942,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\(\*\) AS col1" at position 1 have the 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 @@ -17391,7 +17391,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\(\*\) 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 @@ -17978,7 +17978,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\(\*\) AS col1" at position 1 have the 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 @@ -18213,7 +18213,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\(\*\) \+ 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 @@ -19069,7 +19069,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\(\*\) / \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(82\) \+ count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -19988,7 +19988,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6909 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(\-86\) \+ Int64\(29\) AS col1" at position 0 and "Int64\(\-22\) \* count\(\*\) \+ 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\(\-80\) \* Int64\(\-86\) \+ Int64\(29\) AS col1" at position 0 and "Int64\(\-22\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 80 * + - 86 + + 29 AS col1, - 22 * COUNT ( * ) + + 95 AS col1 query I rowsort label-3811 @@ -20281,7 +20281,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\(\*\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -20656,7 +20656,7 @@ SELECT COUNT ( * ) / 54 + + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -2790 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(93\) AS col2" at position 0 and "Int64\(\-30\) \* 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\(\*\) \* Int64\(93\) AS col2" at position 0 and "Int64\(\-30\) \* Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 93 AS col2, - 30 * 93 AS col2 query I rowsort @@ -22066,7 +22066,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\(\*\) AS col2" at position 1 have the 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 @@ -22742,7 +22742,7 @@ SELECT ALL - 67 * + 19 AS col0 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col1, + 64 col1 query I rowsort label-4337 @@ -22789,7 +22789,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\(\*\) 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 @@ -23304,7 +23304,7 @@ SELECT 42 + 48 - 35 + + - ( - - CAST ( NULL AS INTEGER ) ) * - + 70 / + 53 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - -12984972 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-23\), Int64\(\-47\), \(\- count\(\*\)\) \* Int64\(\-51\), Int64\(76\) \* Int64\(59\) / Int64\(40\) \* Int64\(\-49\)\) \* Int64\(\-77\) \* Int64\(\-78\) \* Int64\(94\) 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 "coalesce\(Int64\(\-23\), Int64\(\-47\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-51\), Int64\(76\) \* Int64\(59\) / Int64\(40\) \* Int64\(\-49\)\) \* Int64\(\-77\) \* Int64\(\-78\) \* Int64\(94\) 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 ( + COALESCE ( - 23, - 47, - COUNT ( * ) * - 51, + 76 * 59 / + 40 * + - 49 ) ) * - 77 * + - 78 * + 94 AS col1, + 71 AS col1 query I rowsort @@ -24198,7 +24198,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\(\*\) 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 @@ -26270,7 +26270,7 @@ SELECT DISTINCT + - 88 / - COUNT ( * ) AS col2, 12 + - 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 925 # Datafusion - Expected - 300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(36\), \(\- count\(\*\)\)\) \* \(\- \(\- Int64\(25\)\)\) \- \(\- Int64\(25\)\) AS col2" at position 0 and "Int64\(54\) \* Int64\(78\) / Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(36\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- \(\- Int64\(25\)\)\) \- \(\- Int64\(25\)\) AS col2" at position 0 and "Int64\(54\) \* Int64\(78\) / Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + 36, + - COUNT ( * ) ) * + ( - - ( + + 25 ) ) - - + 25 AS col2, 54 * 78 / 14 AS col2 query II rowsort label-5014 @@ -26701,7 +26701,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -27032,7 +27032,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(78\) / \(\- sum\(Int64\(\-84\)\)\) \+ \(\- Int64\(\-41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(78\) / \(\- sum\(Int64\(\-84\)\)\) \+ \(\- Int64\(\-41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 50 * - COUNT ( * ) AS col2, + 78 / - ( + SUM ( ALL - 84 ) ) + - - 41 AS col2 query I rowsort @@ -27199,7 +27199,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\(\*\) AS col0" at position 1 and "Int64\(96\) \* Int64\(\-19\) \* CAST\(\(\- \(\- Int64\(\-15\)\)\) AS Int32\) \* \(\- Int64\(87\)\) \+ \(\- 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 @@ -27247,7 +27247,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\(\*\) AS col0" at position 1 have the 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 @@ -27295,7 +27295,7 @@ SELECT - 81, 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 72 -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\(\-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\(\-23\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 23 AS col0, + COUNT ( * ) - + - 71 AS col0 query I rowsort label-5208 @@ -28092,7 +28092,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\(\*\) 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 @@ -28761,7 +28761,7 @@ SELECT ALL CASE COALESCE ( + 25, - - 47 ) WHEN + 60 + + + 12 / - ( + 86 ) THEN N # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-8\), Int64\(79\), count\(\*\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-8\), Int64\(79\), count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( - 8, 79, COUNT ( * ) ) AS col0, + 26 AS col0 query II rowsort label-5488 @@ -29067,7 +29067,7 @@ SELECT 50, 97 * - - 23 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ), - COUNT ( * ) query I rowsort label-5545 @@ -29981,7 +29981,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\(\*\) AS col1" at position 0 and "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 @@ -29992,7 +29992,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\(\*\) 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 @@ -30336,7 +30336,7 @@ SELECT 36 + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(12\) / Int64\(\-81\) 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\(\*\) \* Int64\(12\) / Int64\(\-81\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * 12 / - 81 AS col0, + 73 AS col0 query II rowsort @@ -30876,7 +30876,7 @@ SELECT ALL - 57 * + + 9 + + + 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-22\) WHEN \(\- count\(\*\)\) THEN count\(\*\) ELSE NULL END AS col2" at position 0 and "sum\(Int64\(\-53\)\) \+ \(\- nullif\(Int64\(49\), Int64\(\-59\) \* count\(\*\)\)\) AS col2" at position 1 have 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\(\-22\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END AS col2" at position 0 and "sum\(Int64\(\-53\)\) \+ \(\- nullif\(Int64\(49\), Int64\(\-59\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - 22 WHEN - COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END AS col2, + SUM ( + - 53 ) + - NULLIF ( + 49, - 59 * + COUNT ( * ) ) AS col2 query I rowsort label-5886 @@ -31383,7 +31383,7 @@ SELECT + - 54 + - + 39 # 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\(\*\)\) 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 - + COUNT ( * ) AS col0, - 83 AS col0 # Datafusion - Datafusion expected results: @@ -31815,7 +31815,7 @@ SELECT ALL + 21 + + 2 + 92 * - 91 AS col0, 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 179 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(\-60\) \* Int64\(\-3\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-60\) \* Int64\(\-3\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 50 AS col0, - 60 * - 3 + ( - COUNT ( * ) ) col0 query II rowsort @@ -32007,7 +32007,7 @@ SELECT ALL + 65 * - 10 - 79 * - 10 + - + NULLIF ( + 69, - + 2 ) * NULLIF ( + COU # Datafusion - Datafusion expected results: # Datafusion - Expected - 30096 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* Int64\(73\) \- CAST\(Int64\(\-38\) AS Int32\) \* Int64\(44\) \* \(\- count\(\*\)\) \* Int64\(\-18\) AS col0" at position 0 and "\(\- Int64\(55\)\) / Int64\(95\) \+ count\(DISTINCT \(\- Int64\(\-21\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* Int64\(73\) \- CAST\(Int64\(\-38\) AS Int32\) \* Int64\(44\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-18\) AS col0" at position 0 and "\(\- Int64\(55\)\) / Int64\(95\) \+ count\(DISTINCT \(\- Int64\(\-21\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 0 * + 73 - + CAST ( - 38 AS INTEGER ) * 44 * - COUNT ( * ) * - 18 col0, - ( + + 55 ) / + 95 + ( + COUNT ( DISTINCT - - 21 ) ) AS col0 query I rowsort @@ -32478,7 +32478,7 @@ SELECT ALL - CAST ( + 84 AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2859 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \+ Int64\(34\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(40\)\) \* count\(\*\) \* Int64\(\-72\) AS col1" at position 0 and "Int64\(\-27\) \+ CAST\(\(\- count\(\*\)\) AS Int32\) \- \(\- Int64\(\-26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \+ Int64\(34\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(40\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-72\) AS col1" at position 0 and "Int64\(\-27\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- \(\- Int64\(\-26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 54 + + 34 + - COUNT ( * ) + - + 40 * + COUNT ( * ) * - 72 AS col1, - 27 + CAST ( - COUNT ( * ) AS INTEGER ) - - - 26 col1 query II rowsort label-6189 @@ -32615,7 +32615,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\(\*\) 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 @@ -33166,7 +33166,7 @@ SELECT DISTINCT - MAX ( DISTINCT - - 63 ), 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(44\)\) AS col0" at position 0 and "coalesce\(\(\- Int64\(35\)\), coalesce\(Int64\(\-65\), min\(Int64\(2\)\)\) \+ Int64\(\-37\) \* Int64\(29\), 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\(\*\) \+ \(\- Int64\(44\)\) AS col0" at position 0 and "coalesce\(\(\- Int64\(35\)\), coalesce\(Int64\(\-65\), min\(Int64\(2\)\)\) \+ Int64\(\-37\) \* Int64\(29\), Int64\(\-51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - + 44 col0, COALESCE ( - + 35, + + COALESCE ( - 65, + MIN ( 2 ) ) + + - 37 * 29, - 51 ) AS col0 query I rowsort label-6319 @@ -33356,7 +33356,7 @@ SELECT ALL COUNT ( * ) * + 55 * 43 + 70 # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), + COUNT ( * ) query I rowsort @@ -34033,7 +34033,7 @@ SELECT ALL - 74 * - + 45 + + NULLIF ( 86, + 67 + 64 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 44 -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\(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\(74\) 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 74 AS col1, + COUNT ( * ) - - + 43 AS col1 query I rowsort @@ -36004,7 +36004,7 @@ SELECT 12 + + 70 / - 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - -6612 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ nullif\(Int64\(99\), Int64\(3\)\) AS col2" at position 0 and "Int64\(\-87\) \* 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\(\*\) \+ nullif\(Int64\(99\), Int64\(3\)\) AS col2" at position 0 and "Int64\(\-87\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + NULLIF ( 99, + 3 ) AS col2, - 87 * + 76 col2 query I rowsort label-6864 @@ -36336,7 +36336,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "sum\(Int64\(0\)\) \+ Int64\(78\) \- \(\- Int64\(30\)\) \* Int64\(65\) \+ CAST\(Int64\(\-62\) AS Int32\) \+ count\(\*\) \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "sum\(Int64\(0\)\) \+ Int64\(78\) \- \(\- Int64\(30\)\) \* Int64\(65\) \+ CAST\(Int64\(\-62\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 49 AS col1, SUM ( + 0 ) + 78 - - + 30 * 65 + + CAST ( - 62 AS INTEGER ) + + + ( COUNT ( * ) ) + - 77 AS col1 query I rowsort @@ -36764,7 +36764,7 @@ SELECT - NULLIF ( - - ( - COUNT ( * ) ), + ( + 15 ) * 6 + 33 + - 73 + - 92 + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -128762 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- \(\- min\(Int64\(41\)\)\)\) \* Int64\(\-54\) \+ \(\- \(\- Int64\(58\)\)\) \+ count\(\*\) \* nullif\(Int64\(13\), count\(\*\)\) \* Int64\(\-37\) \+ Int64\(73\) AS col0" at position 0 and "Int64\(31\) \- 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\(58\) \* \(\- \(\- min\(Int64\(41\)\)\)\) \* Int64\(\-54\) \+ \(\- \(\- Int64\(58\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(13\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-37\) \+ Int64\(73\) AS col0" at position 0 and "Int64\(31\) \- Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 58 * - ( + ( - MIN ( 41 ) ) ) * - 54 + - ( - + 58 ) + COUNT ( * ) * NULLIF ( + 13, + + COUNT ( * ) ) * - 37 + + + 73 AS col0, 31 - - 9 AS col0 query I rowsort label-7011 @@ -36954,7 +36954,7 @@ SELECT 50 - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 140 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) / Int64\(\-14\) \+ count\(\*\) \+ Int64\(77\) \+ Int64\(63\) \+ \(\- 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\(\-6\) / Int64\(\-14\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(77\) \+ Int64\(63\) \+ \(\- 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 - 6 / - 14 + COUNT ( * ) + + 77 + + 63 + - COUNT ( * ) AS col2, 16 AS col2 query I rowsort label-7046 @@ -37455,7 +37455,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\(\*\) AS col0" at position 1 have the 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 @@ -37718,7 +37718,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\(\*\) AS col0" at position 1 have the 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 @@ -39228,7 +39228,7 @@ SELECT - 30 * 54 # 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 "\(\- CASE count\(\*\) WHEN \(\- Int64\(\-23\)\) THEN NULL WHEN Int64\(78\) \* Int64\(\-96\) \+ Int64\(\-82\) THEN Int64\(\-19\) ELSE NULL END\) 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 "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-23\)\) THEN NULL WHEN Int64\(78\) \* Int64\(\-96\) \+ Int64\(\-82\) THEN Int64\(\-19\) ELSE NULL END\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE + COUNT ( * ) WHEN - ( - 23 ) THEN NULL WHEN 78 * - 96 + - 82 THEN + - 19 ELSE NULL END AS col0, 2 col0 query II rowsort label-7480 @@ -40076,7 +40076,7 @@ SELECT + ( - - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(60\)\) \* Int64\(\-97\) \- Int64\(\-82\) AS col1" at position 0 and "coalesce\(Int64\(71\), \(\- \(\- \(\- count\(\*\)\)\)\)\) AS col1" at position 1 have the 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\(60\)\) \* Int64\(\-97\) \- Int64\(\-82\) AS col1" at position 0 and "coalesce\(Int64\(71\), \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( DISTINCT + 60 ) * - 97 - - 82 AS col1, COALESCE ( + 71, - ( - - COUNT ( * ) ) ) AS col1 query I rowsort @@ -40162,7 +40162,7 @@ SELECT 60 col1, + SUM ( DISTINCT - + 13 ) * + - 15 AS 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\) / count\(\*\) \+ 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\(\-8\) AS col0" at position 0 and "Int64\(49\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 8 AS col0, 49 / COUNT ( * ) + + ( + 70 ) AS col0 query II rowsort @@ -41409,7 +41409,7 @@ SELECT DISTINCT 83 * 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col0" at position 0 and "Int64\(70\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(70\) \* \(\- 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, + 70 * - COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -43564,7 +43564,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\(\*\) / count\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -44031,7 +44031,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\(\*\) AS col0" at position 1 have 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 @@ -44223,7 +44223,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(\*\) \* CAST\(NULL AS Int32\) \+ count\(\*\) \* Int64\(20\) \+ Int64\(41\) \+ Int64\(\-18\) \+ CAST\(NULL AS Int32\) \* Int64\(90\) \+ Int64\(22\) \* min\(DISTINCT Int64\(88\)\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) \+ Int64\(41\) \+ Int64\(\-18\) \+ CAST\(NULL AS Int32\) \* Int64\(90\) \+ Int64\(22\) \* min\(DISTINCT Int64\(88\)\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 col1, COUNT ( * ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) * 20 + 41 + - 18 + CAST ( NULL AS INTEGER ) * + 90 + 22 * MIN ( DISTINCT 88 ) * + ( + 40 ) AS col1 query II rowsort label-8433 @@ -44279,7 +44279,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\(\*\) AS col1" at position 1 have the 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 @@ -45661,7 +45661,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(0\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 * + - 0 AS col1, COUNT ( * ) * - 15 AS col1 query I rowsort @@ -45975,7 +45975,7 @@ SELECT + COALESCE ( - 31, - - 18 * 26 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -193 # Datafusion - Expected - 2646 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-4\) \* Int64\(68\) \+ Int64\(41\) \- Int64\(\-38\) AS col2" at position 0 and "Int64\(98\) \* 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\(\*\) \* Int64\(\-4\) \* Int64\(68\) \+ Int64\(41\) \- Int64\(\-38\) AS col2" at position 0 and "Int64\(98\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 4 * 68 + + 41 - - 38 AS col2, 98 * + 27 AS col2 query I rowsort @@ -46126,13 +46126,13 @@ SELECT DISTINCT + + 79 / - + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(13\) \* Int64\(80\) \* CASE Int64\(72\) WHEN \(\- count\(Int64\(69\)\)\) \+ Int64\(\-63\) THEN NULL WHEN Int64\(29\) \* \(\- nullif\(Int64\(96\), Int64\(78\)\)\) \+ Int64\(53\) \* \(\- count\(\*\)\) THEN Int64\(81\) \* avg\(Int64\(\-88\)\) ELSE NULL END \+ Int64\(61\) \+ 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\(36\) AS col1" at position 0 and "Int64\(13\) \* Int64\(80\) \* CASE Int64\(72\) WHEN \(\- count\(Int64\(69\)\)\) \+ Int64\(\-63\) THEN NULL WHEN Int64\(29\) \* \(\- nullif\(Int64\(96\), Int64\(78\)\)\) \+ Int64\(53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(81\) \* avg\(Int64\(\-88\)\) ELSE NULL END \+ Int64\(61\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 36 col1, 13 * 80 * + + CASE + 72 WHEN - COUNT ( ALL + 69 ) + - 63 THEN NULL WHEN + 29 * - NULLIF ( + 96, 78 ) + + 53 * - COUNT ( * ) THEN + 81 * + AVG ( ALL - 88 ) ELSE NULL END + + 61 + + 68 AS col1 # 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 "Int64\(3\) AS col2" at position 0 and "Int64\(86\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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\(86\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 AS col2, 86 * - - COUNT ( * ) AS col2 query I rowsort @@ -48490,7 +48490,7 @@ SELECT + - ( + 73 ) * - 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44460 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(65\) \* Int64\(38\) AS col1" at position 0 and "count\(\*\) \- Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(65\) \* Int64\(38\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 18 * + 65 * + + 38 AS col1, COUNT ( * ) - + 12 AS col1 query I rowsort label-9246 @@ -49747,7 +49747,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\(\*\) AS col0" at position 1 have the 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 63d1839..90e8d5f 100644 --- a/data/sqlite/random/expr/slt_good_62.slt +++ b/data/sqlite/random/expr/slt_good_62.slt @@ -1222,7 +1222,7 @@ SELECT ALL - 1 * ( 78 ) / - NULLIF ( - 8, - 10 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19011762 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(43\) \* Int64\(99\) \* Int64\(58\) AS col2" at position 0 and "Int64\(46\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(43\) \* Int64\(99\) \* Int64\(58\) 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 77 * 43 * + 99 * + 58 AS col2, 46 * - COUNT ( * ) AS col2 query I rowsort label-226 @@ -1651,7 +1651,7 @@ SELECT 87 + - + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1428 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* nullif\(count\(\*\), Int64\(12\)\) AS col2" at position 0 and "Int64\(91\) \* \(\- Int64\(\-15\)\) \+ 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\(9\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(12\)\) AS col2" at position 0 and "Int64\(91\) \* \(\- Int64\(\-15\)\) \+ Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 9 ) * + + NULLIF ( + COUNT ( * ), + 12 ) AS col2, + 91 * + - ( + - 15 ) + + 63 col2 query I rowsort label-308 @@ -1976,7 +1976,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\(\*\) \+ count\(\*\) AS col1" at position 1 have the 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: @@ -2859,7 +2859,7 @@ SELECT ALL + ( 96 ) + - 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- sum\(DISTINCT Int64\(11\)\)\) \+ count\(\*\) / Int64\(61\) 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\(\*\)\) \+ \(\- sum\(DISTINCT Int64\(11\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(61\) 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 + - COUNT ( * ) + ( - SUM ( DISTINCT 11 ) ) + + + COUNT ( * ) / + 61 AS col1, - 83 col1 query I rowsort @@ -2889,7 +2889,7 @@ SELECT ALL - 11, - 99 + + - 2 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 3048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- nullif\(Int64\(\-45\), Int64\(39\)\)\)\)\)\) AS col0" at position 0 and "Int64\(\-13\) \+ Int64\(36\) \- nullif\(\(\- count\(\*\)\), Int64\(17\)\) \+ Int64\(27\) \* \(\- count\(\*\)\) \* CASE Int64\(\-19\) WHEN Int64\(11\) \- count\(\*\) THEN NULL WHEN Int64\(\-2\) THEN Int64\(40\) \* CAST\(Int64\(\-55\) AS Int32\) WHEN \(\- \(\- CAST\(NULL AS Float64\)\)\) THEN NULL ELSE Int64\(\-99\) \+ Int64\(\-52\) \+ \(\- Int64\(\-39\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- nullif\(Int64\(\-45\), Int64\(39\)\)\)\)\)\) AS col0" at position 0 and "Int64\(\-13\) \+ Int64\(36\) \- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(17\)\) \+ Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(\-19\) WHEN Int64\(11\) \- count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-2\) THEN Int64\(40\) \* CAST\(Int64\(\-55\) AS Int32\) WHEN \(\- \(\- CAST\(NULL AS Float64\)\)\) THEN NULL ELSE Int64\(\-99\) \+ Int64\(\-52\) \+ \(\- Int64\(\-39\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( - - NULLIF ( + - 45, + 39 ) ) AS col0, - 13 + + 36 - + NULLIF ( - + COUNT ( * ), + 17 ) + + + 27 * - COUNT ( * ) * CASE - 19 WHEN + 11 - + COUNT ( * ) THEN NULL WHEN - 2 THEN + + 40 * CAST ( - 55 AS INTEGER ) WHEN - - CAST ( NULL AS FLOAT8 ) THEN NULL ELSE + - 99 + - 52 + - - 39 END col0 query II rowsort label-543 @@ -3669,7 +3669,7 @@ SELECT COUNT ( * ) + ( - 13 ) / - + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-3\) WHEN Int64\(2\) THEN Int64\(\-36\) WHEN count\(\*\) THEN NULL WHEN Int64\(76\) THEN Int64\(60\) END\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-3\) WHEN Int64\(2\) THEN Int64\(\-36\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(76\) THEN Int64\(60\) END\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE - 3 WHEN + 2 THEN - 36 WHEN COUNT ( * ) THEN NULL WHEN 76 THEN + 60 END AS col2, - 27 AS col2 query I rowsort @@ -3822,7 +3822,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\(\*\) AS col1" at position 1 have the 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 @@ -4383,7 +4383,7 @@ SELECT ALL 95 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -142 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) / count\(\*\) \- Int64\(64\) 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 "Int64\(\-78\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(64\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 / + COUNT ( * ) - + 64 col0, + 2 AS col0 query II rowsort label-829 @@ -4968,7 +4968,7 @@ SELECT 11 AS col2, 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 10200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(\-51\) \* \(\- Int64\(\-25\)\) \* Int64\(8\) / \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-51\) \* \(\- Int64\(\-25\)\) \* Int64\(8\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 35 AS col0, - 51 * - - 25 * + + 8 / - COUNT ( * ) AS col0 query I rowsort @@ -5971,7 +5971,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(34\), \(\- count\(\*\)\) \* Int64\(41\)\)\) \* Int64\(16\) / \(\- min\(Int64\(50\)\)\) 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 "\(\- nullif\(Int64\(34\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(41\)\)\) \* Int64\(16\) / \(\- min\(Int64\(50\)\)\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( 34, + - COUNT ( * ) * 41 ) * 16 / - + MIN ( ALL 50 ) AS col1, - 79 AS col1 query I rowsort label-1133 @@ -6171,7 +6171,7 @@ SELECT + - COUNT ( * ) * + 4 + + COALESCE ( - + 95, 74, - 33, 31 * + 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(18\) 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\(\*\)\) \- Int64\(18\) 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 - + COUNT ( * ) - 18 AS col2, - 77 AS col2 query I rowsort @@ -6219,7 +6219,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\(18\) \+ Int64\(41\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -6340,7 +6340,7 @@ SELECT - 20 AS col0, + 69 * + 80 * COUNT ( * ) + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* \(\- 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 "Int64\(11\) \* \(\- 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 ( 11 ) * - COUNT ( * ) AS col2, 39 col2 query II rowsort label-1202 @@ -6719,7 +6719,7 @@ SELECT ALL - ( + 43 ) + + 50 + + NULLIF ( + COUNT ( * ), 87 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 196417 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ count\(\*\) \+ Int64\(\-21\) \+ Int64\(\-66\) \* Int64\(\-62\) \* Int64\(48\) \+ CASE WHEN NOT CASE Int64\(67\) WHEN Int64\(94\) THEN Int64\(43\) WHEN Int64\(74\) \* Int64\(85\) THEN \(\- count\(Int64\(7\)\)\) ELSE NULL END != Int64\(\-7\) \* \(\- Int64\(92\)\) / Int64\(53\) \+ Int64\(90\) THEN Int64\(71\) \* \(\- count\(Int64\(\-10\)\)\) / \(\- max\(DISTINCT Int64\(\-8\)\)\) ELSE count\(Int64\(\-83\)\) END \+ Int64\(60\) 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\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-21\) \+ Int64\(\-66\) \* Int64\(\-62\) \* Int64\(48\) \+ CASE WHEN NOT CASE Int64\(67\) WHEN Int64\(94\) THEN Int64\(43\) WHEN Int64\(74\) \* Int64\(85\) THEN \(\- count\(Int64\(7\)\)\) ELSE NULL END != Int64\(\-7\) \* \(\- Int64\(92\)\) / Int64\(53\) \+ Int64\(90\) THEN Int64\(71\) \* \(\- count\(Int64\(\-10\)\)\) / \(\- max\(DISTINCT Int64\(\-8\)\)\) ELSE count\(Int64\(\-83\)\) END \+ Int64\(60\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 + + + COUNT ( * ) + - 21 + - 66 * - 62 * 48 + CASE WHEN NOT CASE 67 WHEN 94 THEN 43 WHEN + 74 * 85 THEN - COUNT ( 7 ) ELSE NULL END <> + - 7 * - ( 92 ) / 53 + + 90 THEN + + 71 * - COUNT ( ALL + - 10 ) / - MAX ( DISTINCT + - 8 ) ELSE ( + COUNT ( - 83 ) ) END + 60 AS col2, - 76 AS col2 query I rowsort label-1274 @@ -9749,7 +9749,7 @@ SELECT - MIN ( DISTINCT - - NULLIF ( + 94, - 62 ) ) + 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(35\) / Int64\(\-71\) \* Int64\(49\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(94\) \+ Int64\(\-70\) THEN NULL WHEN Int64\(\-39\) \* Int64\(76\) THEN CAST\(NULL AS Int32\) \+ count\(\*\) \- Int64\(4\) ELSE Int64\(64\) \* Int64\(34\) END\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(35\) / Int64\(\-71\) \* Int64\(49\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(94\) \+ Int64\(\-70\) THEN NULL WHEN Int64\(\-39\) \* Int64\(76\) THEN CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(4\) ELSE Int64\(64\) \* Int64\(34\) END\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 col0, 35 / - 71 * 49 * - CASE - 84 WHEN + 94 + - 70 THEN NULL WHEN - 39 * + 76 THEN CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + 4 ELSE + 64 * + 34 END + - 10 AS col0 query I rowsort @@ -9883,7 +9883,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\(\-83\) / count\(\*\) AS col0" at position 1 have the 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 @@ -10290,7 +10290,7 @@ SELECT DISTINCT 64 + + COUNT ( DISTINCT 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(45\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(88\) / \(\- max\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(45\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(88\) / \(\- max\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45 AS col1, 45 * - - COUNT ( * ) * 88 / - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort @@ -12237,7 +12237,7 @@ SELECT ALL - CAST ( - 44 AS INTEGER ) # Datafusion - Expected - 0 # Datafusion - Expected - 2800 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) / Int64\(80\) AS col2" at position 0 and "count\(\*\) \+ Int64\(\-25\) 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\(26\) / Int64\(80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-25\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 / + 80 AS col2, - 83 * - 33 + 61, COUNT ( * ) + - 25 AS col2 query II rowsort label-2329 @@ -12774,7 +12774,7 @@ SELECT 68 * 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -158 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) \+ \(\- nullif\(Int64\(79\), Int64\(38\) \* Int64\(28\) \+ count\(\*\) / Int64\(97\)\)\) 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\(79\)\) \+ \(\- nullif\(Int64\(79\), Int64\(38\) \* Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(97\)\)\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 79 ) + + - NULLIF ( + + 79, + 38 * 28 + + COUNT ( * ) / 97 ) AS col1, - 12 AS col1 query I rowsort @@ -13486,7 +13486,7 @@ SELECT ALL + - 17 - - - ( - 0 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -2926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(79\), Int64\(10\)\) AS col1" at position 0 and "Int64\(77\) \* count\(\*\) \* Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(79\), Int64\(10\)\) AS col1" at position 0 and "Int64\(77\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + 79, 10 ) AS col1, + 77 * + COUNT ( * ) * - 38 AS col1 query I rowsort label-2566 @@ -13740,7 +13740,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\(\*\) 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 @@ -13776,7 +13776,7 @@ SELECT ALL ( + - 58 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(72\)\) AS col1" at position 0 and "coalesce\(Int64\(84\), \(\- count\(\*\)\) \- Int64\(\-35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(72\)\) AS col1" at position 0 and "coalesce\(Int64\(84\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MIN ( + 72 ) AS col1, COALESCE ( + + 84, - COUNT ( * ) - - 35 ) col1 query I rowsort @@ -13787,7 +13787,7 @@ SELECT ALL 91 + ( - 18 ) + + + 6 + + 95 - + 88 * 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 25 -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\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 AS col0, COUNT ( * ) * 25 AS col0 query II rowsort @@ -15179,7 +15179,7 @@ SELECT ALL NULLIF ( + 47, - ( - 91 ) ) + 66 * + - 32 + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(\-80\) AS col0" at position 0 and "Int64\(\-35\) \* CASE Int64\(\-75\) WHEN avg\(Int64\(\-61\)\) THEN \(\- count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(\-80\) AS col0" at position 0 and "Int64\(\-35\) \* CASE Int64\(\-75\) WHEN avg\(Int64\(\-61\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 98 + + - 80 AS col0, - 35 * CASE - 75 WHEN + AVG ( - 61 ) THEN - COUNT ( * ) END AS col0 query I rowsort @@ -17073,7 +17073,7 @@ SELECT DISTINCT 10 - + 84 + ( + - 99 ) * - + CAST ( - 21 AS INTEGER ) + + 97 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 6258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- min\(Int64\(50\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(\-60\) \+ Int64\(81\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- min\(Int64\(50\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-60\) \+ Int64\(81\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 - MIN ( + + 50 ) col2, COUNT ( * ) * - 60 + 81 * + 78 col2 query I rowsort @@ -17200,7 +17200,7 @@ SELECT ALL - - ( 86 ) + + - 11 - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(32\) \+ count\(\*\) \- \(\- CAST\(Int64\(\-39\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(Int64\(\-39\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 74 AS col1, 32 + COUNT ( * ) - - CAST ( - 39 AS INTEGER ) AS col1 query I rowsort label-3281 @@ -17587,7 +17587,7 @@ SELECT DISTINCT ( 5 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(29\) \+ Int64\(\-42\) AS col1" at position 0 and "Int64\(88\) \- count\(\*\) \- count\(\*\) \+ \(\- Int64\(48\)\) \- Int64\(9\) / 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\(29\) \+ Int64\(\-42\) AS col1" at position 0 and "Int64\(88\) \- count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(48\)\) \- Int64\(9\) / Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * 29 + - 42 AS col1, + 88 - COUNT ( * ) - + COUNT ( * ) + - ( 48 ) - + 9 / + 42 AS col1 query I rowsort @@ -18442,7 +18442,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -5487885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(53\) \* \(\- Int64\(\-65\)\) \* Int64\(\-27\) \* 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\(53\) \* \(\- Int64\(\-65\)\) \* Int64\(\-27\) \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - COUNT ( * ) ) col2, 53 * - ( - 65 ) * - 27 * + 59 AS col2 query I rowsort label-3518 @@ -20709,7 +20709,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\(\*\) 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 @@ -21795,7 +21795,7 @@ SELECT ALL - - 15 + + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(46\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-11\) 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 DISTINCT 68 + - 11 AS col2, 46 - + - COUNT ( * ) AS col2 query I rowsort label-4156 @@ -22107,7 +22107,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\(\*\) AS col2" at position 1 have the 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 @@ -23668,7 +23668,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3688 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-36\)\), \(\- Int64\(94\)\), Int64\(42\) \* Int64\(46\) / Int64\(59\) \+ \(\- Int64\(\-47\)\)\) \* Int64\(98\) \+ Int64\(92\) / count\(\*\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-36\)\), \(\- Int64\(94\)\), Int64\(42\) \* Int64\(46\) / Int64\(59\) \+ \(\- Int64\(\-47\)\)\) \* Int64\(98\) \+ Int64\(92\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - - 36, - + 94, + 42 * + 46 / + + 59 + - - 47 ) * + + 98 + 92 / + COUNT ( * ) + 68 col2, - 84 AS col2 query I rowsort label-4513 @@ -23981,7 +23981,7 @@ SELECT DISTINCT SUM ( + - 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ count\(\*\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 + + COUNT ( * ) + 88 col1, 2 AS col1 query II rowsort @@ -25972,7 +25972,7 @@ SELECT + 37 - + COUNT ( * ) AS col1, - 60 AS col0 # 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\(2\) / \(\- Int64\(\-10\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) / \(\- Int64\(\-10\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 2 / - - 10 AS col1, + COUNT ( * ) * 28 AS col1 query I rowsort @@ -26313,7 +26313,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(97\) 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\(\*\) \+ Int64\(97\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 97 AS col1, 21 col1 query I rowsort @@ -27844,7 +27844,7 @@ SELECT + - ( + 46 ) + + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CAST\(NULL AS Int32\) WHEN \(\- \(\- count\(\*\)\)\) THEN Int64\(\-85\) \+ Int64\(91\) END AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CAST\(NULL AS Int32\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(\-85\) \+ Int64\(91\) END AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN - 85 + 91 END AS col2, 37 AS col2 query I rowsort label-5312 @@ -28626,7 +28626,7 @@ SELECT ALL - 33 - 39 / - + COUNT ( * ) AS col1, 85 + + 80 + - 16 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 2883 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "Int64\(72\) \* Int64\(40\) \+ count\(\*\) \* 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\(\-35\) AS col2" at position 0 and "Int64\(72\) \* Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 35 AS col2, 72 * + + 40 + COUNT ( * ) * + + 3 AS col2 query II rowsort @@ -29765,7 +29765,7 @@ SELECT + 66 + + - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -646 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- count\(\*\)\)\), Int64\(67\)\) / Int64\(\-84\) AS col1" at position 0 and "Int64\(\-17\) \* \(\- Int64\(\-38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(67\)\) / Int64\(\-84\) AS col1" at position 0 and "Int64\(\-17\) \* \(\- Int64\(\-38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - - COUNT ( * ), + 67 ) / + - 84 AS col1, - 17 * - ( - 38 ) col1 query I rowsort @@ -31860,7 +31860,7 @@ SELECT ALL 13 + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -132 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(\-76\) \- Int64\(26\) \+ Int64\(\-23\) \* \(\- count\(\*\)\) \+ \(\- Int64\(81\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-76\) \- Int64\(26\) \+ Int64\(\-23\) \* \(\- 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 DISTINCT + 28 + - 76 - + 26 + - 23 * + - COUNT ( * ) + - + 81 AS col1, - COUNT ( * ) AS col1 query I rowsort label-6081 @@ -31933,7 +31933,7 @@ SELECT ( MIN ( - - 61 ) ) + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 37 col2, - COUNT ( * ) + 29 AS col2 query I rowsort label-6095 @@ -32275,7 +32275,7 @@ SELECT - + COUNT ( * ) AS col2, + 42 # 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col0, - COUNT ( * ) + - + 48 AS col0 query I rowsort label-6160 @@ -32445,7 +32445,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\(\*\)\) AS col2" at position 0 and "Int64\(6\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -36438,7 +36438,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\(\*\) AS col0" at position 1 have 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 @@ -36538,7 +36538,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 0 -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\(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\(8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 col1, + COUNT ( * ) / 63 AS col1 query I rowsort @@ -37563,7 +37563,7 @@ SELECT 10 + + + 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4116 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(49\) / CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(49\) / CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 * 49 / + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 39 AS col0 query I rowsort @@ -37606,7 +37606,7 @@ SELECT - COUNT ( * ) / - 46, + 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(49\) AS col1" at position 0 and "Int64\(\-39\) / 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\(\*\) \* Int64\(49\) AS col1" at position 0 and "Int64\(\-39\) / Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 49 AS col1, + ( - 39 ) / + 48 AS col1 query I rowsort label-7180 @@ -37943,7 +37943,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\(\*\) 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 @@ -38000,7 +38000,7 @@ SELECT DISTINCT ( - 65 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4661 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \* Int64\(66\) \+ \(\- count\(\*\)\) \- Int64\(\-26\) AS col1" at position 0 and "count\(\*\) / Int64\(\-82\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \* Int64\(66\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-26\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-82\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 71 * + 66 + - COUNT ( * ) - - 26 AS col1, COUNT ( * ) / - 82 * + + 59 AS col1 query I rowsort @@ -38829,7 +38829,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\(\*\) AS col0" at position 0 and "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 @@ -39827,7 +39827,7 @@ SELECT ALL 85 - - 87 + 91 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 "count\(\*\) \* Int64\(\-57\) AS col0" at position 0 and "Int64\(15\) / 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\(\*\) \* Int64\(\-57\) AS col0" at position 0 and "Int64\(15\) / Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 57 AS col0, 15 / 41 AS col0 query I rowsort label-7599 @@ -40403,7 +40403,7 @@ SELECT DISTINCT - COUNT ( * ) + - 62, + 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7167 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(coalesce\(Int64\(\-45\), \(\- Int64\(\-39\)\), Int64\(38\)\)\) \* \(\- count\(\*\)\) \- count\(\*\) \- \(\- Int64\(41\)\) \+ Int64\(\-74\) \* Int64\(98\) AS col1" at position 0 and "\(\- count\(\*\)\) \* 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 "min\(coalesce\(Int64\(\-45\), \(\- Int64\(\-39\)\), Int64\(38\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(41\)\) \+ Int64\(\-74\) \* Int64\(98\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + MIN ( COALESCE ( - 45, - - 39, 38 ) ) * - COUNT ( * ) - COUNT ( * ) - - + 41 + - 74 * + 98 AS col1, + ( + + ( - COUNT ( * ) ) ) * - 95 AS col1 query I rowsort @@ -40790,7 +40790,7 @@ SELECT + + COUNT ( ALL + + 47 ) * - 41 # 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\(\*\)\) 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 AS col2 query I rowsort @@ -40902,7 +40902,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\(\*\) AS col2" at position 1 have the 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 @@ -41675,7 +41675,7 @@ SELECT + 1 / + CAST ( + 66 AS INTEGER ) # 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\(\*\)\) AS col0" at position 1 have 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 @@ -43220,7 +43220,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col0, - COUNT ( * ) + + 11 AS col0 query I rowsort label-8247 @@ -45406,7 +45406,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\(\*\) AS col0" at position 1 have the 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 @@ -45902,7 +45902,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\(\*\) 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 @@ -46276,7 +46276,7 @@ SELECT DISTINCT + 36 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), \(\- \(\- \(\- Int64\(\-7\)\)\)\) \+ Int64\(\-95\), \(\- Int64\(63\)\)\) / Int64\(\-90\) AS col1" at position 0 and "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 "coalesce\(Int64\(82\), \(\- \(\- \(\- Int64\(\-7\)\)\)\) \+ Int64\(\-95\), \(\- Int64\(63\)\)\) / Int64\(\-90\) 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 ALL COALESCE ( 82, - ( - - ( - 7 ) ) + - 95, + ( - + 63 ) ) / - 90 AS col1, COUNT ( * ) * 54 AS col1 query I rowsort @@ -46347,7 +46347,7 @@ SELECT + - ( - + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -164 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(80\) \+ \(\- \(\- Int64\(\-84\)\)\) 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\(\*\)\) \* Int64\(80\) \+ \(\- \(\- Int64\(\-84\)\)\) 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 ( * ) * 80 + - - ( - 84 ) AS col0, 50 AS col0 # Datafusion - Datafusion expected results: @@ -49172,7 +49172,7 @@ SELECT DISTINCT - 70 + - 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \- Int64\(11\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(4\) \* 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\(\-11\) \- Int64\(11\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(4\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 11 ) - ( + 11 ) + - COUNT ( * ) AS col2, + 4 * 72 AS col2 query I rowsort @@ -49535,7 +49535,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\(\*\) 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 @@ -50282,7 +50282,7 @@ SELECT - - 18 * 33 - 28 + + 79 * NULLIF ( + 35, - - 15 ) + - - 33 / + - COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - -216 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(4\) \* \(\- count\(\*\)\) \+ \(\- Int64\(\-31\)\) \+ nullif\(Int64\(45\), Int64\(63\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-31\)\) \+ nullif\(Int64\(45\), Int64\(63\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 73 * 4 * - COUNT ( * ) + - - 31 + NULLIF ( 45, + 63 ) AS col2, 78 col2 query I rowsort label-9588 @@ -51865,7 +51865,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\(\*\) AS col0" at position 1 have the 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 @@ -51908,7 +51908,7 @@ SELECT MAX ( - 73 ) * + + 37 + MIN ( DISTINCT - COALESCE ( + CAST ( NULL AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-95\) \+ sum\(Int64\(42\)\) \+ CASE count\(\*\) WHEN Int64\(98\) THEN Int64\(\-40\) \+ count\(\*\) WHEN coalesce\(Int64\(\-14\), Int64\(\-66\)\) THEN coalesce\(Int64\(\-16\), Int64\(\-14\) \* Int64\(18\) \+ Int64\(\-97\), Int64\(52\), Int64\(92\) \+ Int64\(\-80\) \* coalesce\(Int64\(92\) \* CASE Int64\(87\) \* CAST\(NULL AS Int32\) WHEN Int64\(99\) THEN Int64\(\-62\) \* \(\- coalesce\(Int64\(64\) \* count\(\*\), Int64\(\-64\), Int64\(\-28\), CAST\(min\(DISTINCT CAST\(Int64\(10\) AS Int32\)\) AS Float64\)\)\) ELSE NULL END, count\(\*\)\)\) END \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-95\) \+ sum\(Int64\(42\)\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(98\) THEN Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(Int64\(\-14\), Int64\(\-66\)\) THEN coalesce\(Int64\(\-16\), Int64\(\-14\) \* Int64\(18\) \+ Int64\(\-97\), Int64\(52\), Int64\(92\) \+ Int64\(\-80\) \* coalesce\(Int64\(92\) \* CASE Int64\(87\) \* CAST\(NULL AS Int32\) WHEN Int64\(99\) THEN Int64\(\-62\) \* \(\- coalesce\(Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-64\), Int64\(\-28\), CAST\(min\(DISTINCT CAST\(Int64\(10\) AS Int32\)\) AS Float64\)\)\) ELSE NULL END, count\(Int64\(1\)\) AS count\(\*\)\)\) END \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 AS col2, 97 * ( - 95 ) + SUM ( + 42 ) + CASE + COUNT ( * ) WHEN 98 THEN - 40 + + COUNT ( * ) WHEN COALESCE ( - 14, - 66 ) THEN + COALESCE ( - 16, - 14 * + 18 + - 97, + 52, 92 + - 80 * COALESCE ( + ( + ( + 92 ) ) * CASE + 87 * CAST ( NULL AS INTEGER ) WHEN 99 THEN - 62 * - COALESCE ( + 64 * COUNT ( * ), - 64, - 28, + CAST ( + MIN ( DISTINCT CAST ( + 10 AS INTEGER ) ) AS FLOAT8 ) ) ELSE NULL END, COUNT ( * ) ) ) END * 24 AS col2 query I rowsort label-9905 diff --git a/data/sqlite/random/expr/slt_good_63.slt b/data/sqlite/random/expr/slt_good_63.slt index 5fadc87..7e1b0d6 100644 --- a/data/sqlite/random/expr/slt_good_63.slt +++ b/data/sqlite/random/expr/slt_good_63.slt @@ -2476,7 +2476,7 @@ SELECT + 42 * + 14 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 "nullif\(\(\- nullif\(Int64\(\-92\), Int64\(63\)\)\), \(\- count\(\*\)\) \* \(\- max\(DISTINCT Int64\(71\)\)\) \+ CASE Int64\(\-85\) WHEN Int64\(54\) THEN NULL ELSE Int64\(11\) \* \(\- count\(\*\)\) \- count\(\*\) / Int64\(3\) \+ Int64\(14\) / Int64\(\-65\) END \+ \(\- \(\- count\(\*\)\)\) \+ Int64\(37\) \* Int64\(4\) \* \(\- Int64\(73\)\) \- count\(Int64\(\-19\)\)\) / Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "nullif\(\(\- nullif\(Int64\(\-92\), Int64\(63\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- max\(DISTINCT Int64\(71\)\)\) \+ CASE Int64\(\-85\) WHEN Int64\(54\) THEN NULL ELSE Int64\(11\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(3\) \+ Int64\(14\) / Int64\(\-65\) END \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(37\) \* Int64\(4\) \* \(\- Int64\(73\)\) \- count\(Int64\(\-19\)\)\) / Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 66 AS col1, ( + + NULLIF ( - NULLIF ( - 92, 63 ), + - COUNT ( * ) * - MAX ( DISTINCT + 71 ) + + CASE - 85 WHEN 54 THEN NULL ELSE + + 11 * - + COUNT ( * ) - + COUNT ( * ) / + 3 + 14 / - 65 END + - - COUNT ( * ) + 37 * + 4 * - + 73 - COUNT ( ALL - 19 ) ) ) / 70 AS col1 query I rowsort @@ -4210,7 +4210,7 @@ SELECT - 31 col0, + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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-795 @@ -4772,7 +4772,7 @@ SELECT - 87 + - CASE WHEN 77 IS NOT NULL THEN + COUNT ( * ) END AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3654 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(9\) \+ Int64\(93\) \+ Int64\(48\) \* \(\- CAST\(\(\- Int64\(74\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(31\) \+ \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(9\) \+ Int64\(93\) \+ Int64\(48\) \* \(\- CAST\(\(\- Int64\(74\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(31\) \+ \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 0 + + 9 + + 93 + + + 48 * - + CAST ( + ( - + 74 ) AS INTEGER ) AS col0, 31 + - CAST ( NULL AS FLOAT8 ) + - COUNT ( * ) AS col0 query I rowsort label-901 @@ -5004,7 +5004,7 @@ SELECT - COUNT ( + 25 ) / + 16 + - 24 + 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / \(\- count\(\*\)\) \+ Int64\(9\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(38\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\*\)\) \+ Int64\(9\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(38\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 82 / - COUNT ( * ) + 9 AS col0, 92 + 38 + - + COUNT ( * ) AS col0 query I rowsort label-947 @@ -5267,7 +5267,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\(\*\) 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 @@ -5764,7 +5764,7 @@ SELECT + 40 + - 57 + 28 * + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -1377 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(86\) AS col1" at position 0 and "Int64\(35\) \+ Int64\(\-20\) \+ \(\- Int64\(\-48\)\) \* \(\- nullif\(\(\- \(\- count\(\*\)\)\), Int64\(0\)\)\) \* 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\(9\) \+ Int64\(86\) AS col1" at position 0 and "Int64\(35\) \+ Int64\(\-20\) \+ \(\- Int64\(\-48\)\) \* \(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(0\)\)\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 9 + + 86 AS col1, 35 + + - 20 + - - 48 * - NULLIF ( - - COUNT ( * ), - 0 ) * 29 AS col1 query I rowsort label-1091 @@ -6859,7 +6859,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\(\*\) AS col1" at position 1 have the 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 @@ -7731,7 +7731,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\(\*\) 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 @@ -8313,7 +8313,7 @@ SELECT - COUNT ( DISTINCT - - 68 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(\-94\) / \(\- avg\(Int64\(80\)\)\) / \(\- count\(\*\)\) \+ Int64\(\-94\) \+ CASE Int64\(\-91\) WHEN avg\(DISTINCT Int64\(61\)\) THEN NULL WHEN count\(\*\) \* Int64\(\-47\) THEN Int64\(53\) \+ count\(\*\) END \+ 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\(97\) AS col1" at position 0 and "Int64\(\-94\) / \(\- avg\(Int64\(80\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-94\) \+ CASE Int64\(\-91\) WHEN avg\(DISTINCT Int64\(61\)\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-47\) THEN Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 97 AS col1, - 94 / - AVG ( ALL 80 ) / - + COUNT ( * ) + - 94 + ( CASE - 91 WHEN AVG ( DISTINCT 61 ) THEN NULL WHEN COUNT ( * ) * - 47 THEN 53 + COUNT ( * ) END + - 23 ) AS col1 query II rowsort label-1579 @@ -9479,7 +9479,7 @@ SELECT - - 69 + 11 + 82 + + 75 + 49 / - + 94 * + 6 + COUNT ( CAST ( NULL AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 2539 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- count\(\*\)\) \* Int64\(27\) \* Int64\(94\) 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\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(27\) \* Int64\(94\) 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 ( * ) - + - COUNT ( * ) * 27 * 94 AS col2, + ( 16 ) col2 query II rowsort @@ -10028,7 +10028,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -4340 -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\(62\)\) \* 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\(\-68\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(62\)\) \* Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 68 col2, COUNT ( * ) * - + 62 * 70 AS col2 query I rowsort label-1907 @@ -10778,7 +10778,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\(\*\) AS col0" at position 1 have 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 @@ -11626,7 +11626,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\(\*\) 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 @@ -11975,7 +11975,7 @@ SELECT + - 73 * - + 93 AS col2, + 53 * - + 71 # Datafusion - Expected - NULL # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) \+ max\(Int64\(49\)\) \- \(\- CASE Int64\(19\) WHEN \(\- Int64\(5\)\) \- Int64\(9\) \+ Int64\(22\) \- \(\- Int64\(\-72\)\) THEN NULL ELSE Int64\(\-1\) \* Int64\(\-57\) \- Int64\(\-84\) \- \(\- Int64\(24\)\) \* \(\- Int64\(\-86\)\) END\) \+ Int64\(\-37\) / Int64\(\-75\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ Int64\(\-43\) \* CASE \(\- count\(\*\)\) WHEN \(\- coalesce\(Int64\(\-97\), Int64\(\-11\), \(\- coalesce\(Int64\(95\), min\(Int64\(18\)\), Int64\(65\)\)\)\)\) \* Int64\(\-1\) THEN nullif\(\(\- Int64\(11\)\), Int64\(\-4\)\) \* count\(\*\) \+ Int64\(47\) WHEN Int64\(28\) THEN Int64\(48\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ max\(Int64\(49\)\) \- \(\- CASE Int64\(19\) WHEN \(\- Int64\(5\)\) \- Int64\(9\) \+ Int64\(22\) \- \(\- Int64\(\-72\)\) THEN NULL ELSE Int64\(\-1\) \* Int64\(\-57\) \- Int64\(\-84\) \- \(\- Int64\(24\)\) \* \(\- Int64\(\-86\)\) END\) \+ Int64\(\-37\) / Int64\(\-75\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-43\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- coalesce\(Int64\(\-97\), Int64\(\-11\), \(\- coalesce\(Int64\(95\), min\(Int64\(18\)\), Int64\(65\)\)\)\)\) \* Int64\(\-1\) THEN nullif\(\(\- Int64\(11\)\), Int64\(\-4\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(47\) WHEN Int64\(28\) THEN Int64\(48\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MAX ( ALL + 49 ) - - CASE + 19 WHEN - + 5 - 9 + + 22 - - - 72 THEN NULL ELSE - 1 * - 57 - + - 84 - - + 24 * - - 86 END + - 37 / + - 75 AS col0, 7 AS col2, - + COUNT ( * ) + - 43 * CASE - COUNT ( * ) WHEN - COALESCE ( - 97, - 11, + - COALESCE ( 95, + MIN ( ( 18 ) ), 65 ) ) * - 1 THEN NULLIF ( - ( + 11 ), - 4 ) * COUNT ( * ) + 47 WHEN 28 THEN + 48 END AS col0 query I rowsort @@ -12017,7 +12017,7 @@ SELECT 22 AS col2, 27 - - - 72 + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3300 # Datafusion - Expected - -29336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-33\) \* Int64\(10\) AS col2" at position 0 and "Int64\(48\) \* \(\- coalesce\(Int64\(5\), count\(DISTINCT \(\- Int64\(\-45\)\)\), Int64\(\-13\)\)\) \* Int64\(96\) \+ \(\- sum\(\(\- Int64\(\-53\)\)\)\) \* Int64\(93\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(32\)\) \+ sum\(nullif\(Int64\(89\), \(\- Int64\(\-55\)\)\)\) \+ \(\- Int64\(\-65\)\) \+ count\(DISTINCT CAST\(Int64\(86\) AS Int32\)\) \* \(\- min\(DISTINCT Int64\(\-93\)\)\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-33\) \* Int64\(10\) AS col2" at position 0 and "Int64\(48\) \* \(\- coalesce\(Int64\(5\), count\(DISTINCT \(\- Int64\(\-45\)\)\), Int64\(\-13\)\)\) \* Int64\(96\) \+ \(\- sum\(\(\- Int64\(\-53\)\)\)\) \* Int64\(93\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(32\)\) \+ sum\(nullif\(Int64\(89\), \(\- Int64\(\-55\)\)\)\) \+ \(\- Int64\(\-65\)\) \+ count\(DISTINCT CAST\(Int64\(86\) AS Int32\)\) \* \(\- min\(DISTINCT Int64\(\-93\)\)\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 * - 33 * + 10 col2, 48 * - + COALESCE ( + 5, + COUNT ( DISTINCT - - 45 ), - 13 ) * + 96 + - SUM ( - - 53 ) * + 93 + + - COUNT ( * ) + - + 32 + + SUM ( ALL + NULLIF ( 89, - - 55 ) ) + ( - - 65 ) + + COUNT ( DISTINCT CAST ( + 86 AS INTEGER ) ) * - MIN ( DISTINCT - 93 ) * - 16 AS col2 query I rowsort label-2283 @@ -12175,7 +12175,7 @@ SELECT + 98 * 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -759 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-15\) \* Int64\(53\) \- \(\- 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 "Int64\(\-15\) \* Int64\(53\) \- \(\- Int64\(36\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + COUNT ( * ) ) AS col1, - 15 * 53 - + - ( + 36 ) AS col1 query I rowsort label-2313 @@ -12258,7 +12258,7 @@ SELECT COUNT ( * ) + - - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 50 -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\(\-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\(99\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + + 99 ) AS col2, - COUNT ( * ) * - 50 AS col2 query II rowsort label-2329 @@ -12412,7 +12412,7 @@ SELECT - - COUNT ( * ), 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(\-32\) \+ count\(\*\) \+ \(\- CASE \(\- \(\- CASE Int64\(\-65\) WHEN Int64\(\-77\) \+ Int64\(\-98\) \+ Int64\(60\) \* Int64\(87\) THEN \(\- \(\- Int64\(\-13\)\)\) END\)\) WHEN Int64\(17\) THEN sum\(Int64\(\-97\)\) \- Int64\(\-21\) \+ nullif\(Int64\(91\), Int64\(\-75\) \* CAST\(NULL AS Int32\)\) END\) / Int64\(35\) \- Int64\(\-40\) \+ Int64\(\-99\) \* Int64\(98\) \* count\(\*\) / Int64\(\-70\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(\-32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- \(\- CASE Int64\(\-65\) WHEN Int64\(\-77\) \+ Int64\(\-98\) \+ Int64\(60\) \* Int64\(87\) THEN \(\- \(\- Int64\(\-13\)\)\) END\)\) WHEN Int64\(17\) THEN sum\(Int64\(\-97\)\) \- Int64\(\-21\) \+ nullif\(Int64\(91\), Int64\(\-75\) \* CAST\(NULL AS Int32\)\) END\) / Int64\(35\) \- Int64\(\-40\) \+ Int64\(\-99\) \* Int64\(98\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-70\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 82 AS col1, - 32 + COUNT ( * ) + - + CASE + ( - ( - ( + CASE - 65 WHEN + - 77 + - 98 + 60 * 87 THEN - ( - - 13 ) END ) ) ) WHEN + 17 THEN SUM ( - 97 ) - - 21 + NULLIF ( 91, - 75 * + + CAST ( NULL AS INTEGER ) ) END / + 35 - - 40 + - 99 * + 98 * + + COUNT ( * ) / + - 70 + 12 AS col1 query I rowsort label-2358 @@ -12477,7 +12477,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\(\*\) AS col2" at position 1 have the 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 @@ -14194,7 +14194,7 @@ SELECT ( 64 ) + + + 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -68 -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\(\-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 "Int64\(47\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-25\)\) \- Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 47 AS col1, - COUNT ( * ) - - - 25 - 42 AS col1 query I rowsort label-2695 @@ -15060,7 +15060,7 @@ SELECT DISTINCT + CAST ( 15 AS INTEGER ) * - + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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 query I rowsort label-2859 @@ -15358,7 +15358,7 @@ SELECT ALL - CASE - + 7 WHEN + AVG ( DISTINCT 20 ) * + + 38 THEN - 60 + + 16 * 9 # Datafusion - Expected - 76 # 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 1 and "\(\- 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\(32\) 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 - - 74 + 2 AS col2, + 32 AS col1, - COUNT ( * ) col1 query II rowsort label-2916 @@ -17727,7 +17727,7 @@ SELECT + 99 + - - ( + 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1409 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \- Int64\(64\) \* Int64\(\-22\) AS col1" at position 0 and "max\(\(\- 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\(\*\)\)\) \- Int64\(64\) \* Int64\(\-22\) AS col1" at position 0 and "max\(\(\- Int64\(\-21\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - ( COUNT ( * ) ) ) - 64 * - 22 AS col1, MAX ( ALL - - 21 ) AS col1 query I rowsort label-3374 @@ -18151,7 +18151,7 @@ SELECT DISTINCT 73 * - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7147 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-72\) \* \(\- \(\- nullif\(\(\- Int64\(99\)\), Int64\(\-74\) \* Int64\(\-75\)\)\)\) \+ count\(\*\) \+ Int64\(\-57\) AS col1" at position 0 and "\(\- nullif\(Int64\(7\), \(\- Int64\(13\)\) \- \(\- Int64\(17\)\) \+ CAST\(Int64\(\-85\) AS Int32\) \* Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-72\) \* \(\- \(\- nullif\(\(\- Int64\(99\)\), Int64\(\-74\) \* Int64\(\-75\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-57\) AS col1" at position 0 and "\(\- nullif\(Int64\(7\), \(\- Int64\(13\)\) \- \(\- Int64\(17\)\) \+ CAST\(Int64\(\-85\) AS Int32\) \* Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 + - 72 * - - NULLIF ( - + 99, - 74 * - 75 ) + + COUNT ( * ) + - 57 col1, - NULLIF ( + 7, - + 13 - - + 17 + + CAST ( - 85 AS INTEGER ) * 15 ) AS col1 query I rowsort label-3455 @@ -18921,7 +18921,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\(\*\)\) \+ count\(Int64\(29\)\) / 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 @@ -19189,7 +19189,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\(\*\)\) \* sum\(Int64\(38\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -19350,7 +19350,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -1273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(62\) / sum\(Int64\(\-40\)\) AS col1" at position 0 and "Int64\(75\) \+ \(\- nullif\(Int64\(73\), Int64\(94\) \+ \(\- nullif\(\(\- Int64\(\-28\)\), Int64\(55\)\)\) \* nullif\(\(\- Int64\(60\)\), Int64\(\-54\)\) \+ \(\- count\(\*\)\)\)\) \+ Int64\(15\) \* 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\(73\) \+ Int64\(62\) / sum\(Int64\(\-40\)\) AS col1" at position 0 and "Int64\(75\) \+ \(\- nullif\(Int64\(73\), Int64\(94\) \+ \(\- nullif\(\(\- Int64\(\-28\)\), Int64\(55\)\)\) \* nullif\(\(\- Int64\(60\)\), Int64\(\-54\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(15\) \* Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 73 + + 62 / + SUM ( - 40 ) AS col1, + ( + + 75 ) + - + NULLIF ( 73, 94 + - NULLIF ( - - 28, 55 ) * + + NULLIF ( - + 60, - 54 ) + - COUNT ( * ) ) + + 15 * - 85 AS col1 query I rowsort label-3684 @@ -20450,7 +20450,7 @@ SELECT DISTINCT ( 44 ) # 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\(\*\)\) AS col2" at position 0 and "count\(\*\) / Int64\(48\) \- 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(48\) \- Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, COUNT ( * ) / + 48 - - 8 col2 query I rowsort label-3892 @@ -21369,7 +21369,7 @@ SELECT DISTINCT - 76 * + COALESCE ( - 65, + 96 + - - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2407 # Datafusion - Expected - -2765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-23\) \+ \(\- CAST\(Int64\(99\) AS Int32\)\) \- \(\- Int64\(93\)\) \* \(\- count\(\*\)\) \* Int64\(\-46\) \+ Int64\(45\) AS col2" at position 0 and "Int64\(79\) \* \(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-23\) \+ \(\- CAST\(Int64\(99\) AS Int32\)\) \- \(\- Int64\(93\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-46\) \+ Int64\(45\) AS col2" at position 0 and "Int64\(79\) \* \(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 79 * + + ( - 23 ) + - CAST ( 99 AS INTEGER ) - - + 93 * - COUNT ( * ) * + - 46 + + 45 AS col2, + 79 * - CAST ( 35 AS INTEGER ) AS col2 # Datafusion - Types were automatically converted from: @@ -21535,7 +21535,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\(\*\) 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 @@ -23014,7 +23014,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\(\*\) AS col0" at position 1 have the 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 @@ -23605,7 +23605,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\(\*\) 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 @@ -23847,7 +23847,7 @@ SELECT DISTINCT - 11 * + 9 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 43 AS col1, - COUNT ( * ) AS col1 query I rowsort label-4533 @@ -25391,7 +25391,7 @@ SELECT ALL + - 74 - - MAX ( DISTINCT + 55 ) # 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\(\*\)\) AS col1" at position 1 have the 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 col1, - COUNT ( * ) AS col1 query I rowsort @@ -25456,7 +25456,7 @@ SELECT DISTINCT + 97 * - + COUNT ( * ) AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 1 and "\(\- CASE \(\- count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-29\) \* CASE Int64\(58\) WHEN Int64\(43\) THEN count\(\*\) END WHEN Int64\(35\) THEN Int64\(\-58\) ELSE NULL END\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 1 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-29\) \* CASE Int64\(58\) WHEN Int64\(43\) THEN count\(Int64\(1\)\) AS count\(\*\) END WHEN Int64\(35\) THEN Int64\(\-58\) ELSE NULL END\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0, - CASE - + COUNT ( * ) WHEN + ( + 88 ) THEN - 29 * CASE 58 WHEN ( + 43 ) THEN + COUNT ( * ) END WHEN 35 THEN - 58 ELSE NULL END AS col0 query I rowsort label-4841 @@ -25774,7 +25774,7 @@ SELECT - 87 / + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(71\) \+ Int64\(73\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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\(71\) \+ Int64\(73\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 42 AS col2, + 71 + 73 - - + COUNT ( * ) AS col2 query I rowsort @@ -26165,7 +26165,7 @@ SELECT ALL - COUNT ( * ) * - - 36 + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -387528 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(15\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-18\) \+ Int64\(0\) AS col0" at position 0 and "max\(Int64\(72\)\) \+ Int64\(\-85\) \* Int64\(48\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(15\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-18\) \+ Int64\(0\) AS col0" at position 0 and "max\(Int64\(72\)\) \+ Int64\(\-85\) \* Int64\(48\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - + 15 * CAST ( NULL AS INTEGER ) + - 18 + + 0 AS col0, MAX ( 72 ) + - 85 * 48 * 95 AS col0 query I rowsort @@ -26239,7 +26239,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\(\*\) AS col1" at position 0 and "Int64\(11\) \+ coalesce\(CAST\(NULL AS Int32\), Int64\(14\) \* Int64\(94\), max\(\(\- Int64\(22\)\)\)\) \* \(\- Int64\(32\)\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -26660,7 +26660,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\(\*\) 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 @@ -27630,7 +27630,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\(\*\) 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 @@ -28246,7 +28246,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\(\*\) AS col0" at position 1 have the 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 @@ -29619,7 +29619,7 @@ SELECT - SUM ( ALL - 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ Int64\(\-38\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(\-58\) \+ \(\- CASE count\(DISTINCT Int64\(27\)\) WHEN Int64\(68\) / Int64\(\-79\) \* Int64\(3\) / Int64\(79\) \- Int64\(44\) \+ Int64\(8\) THEN NULL ELSE Int64\(\-70\) \+ \(\- count\(\*\)\) END\) \* \(\- count\(\*\)\) \+ Int64\(53\) \- \(\- Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ Int64\(\-38\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(\-58\) \+ \(\- CASE count\(DISTINCT Int64\(27\)\) WHEN Int64\(68\) / Int64\(\-79\) \* Int64\(3\) / Int64\(79\) \- Int64\(44\) \+ Int64\(8\) THEN NULL ELSE Int64\(\-70\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(53\) \- \(\- Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 3 + - 38 col2, 90 + - 58 + - CASE COUNT ( DISTINCT + 27 ) WHEN 68 / - 79 * 3 / 79 - + + 44 + 8 THEN NULL ELSE - 70 + + - COUNT ( * ) END * + - COUNT ( * ) + 53 - - ( - 55 ) AS col2 query I rowsort @@ -31010,7 +31010,7 @@ SELECT DISTINCT - - 74 / - 67 AS col1, 93 # 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 "Int64\(\-9\) \+ \(\- CASE \(\- Int64\(\-16\)\) WHEN Int64\(31\) \* count\(\*\) \* count\(\*\) \- \(\- Int64\(38\)\) THEN Int64\(36\) END\) \+ Int64\(92\) 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 "Int64\(\-9\) \+ \(\- CASE \(\- Int64\(\-16\)\) WHEN Int64\(31\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(38\)\) THEN Int64\(36\) END\) \+ Int64\(92\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 9 + - CASE ( - - 16 ) WHEN 31 * + COUNT ( * ) * COUNT ( * ) - - + 38 THEN + + 36 END + 92 AS col1, + 87 col1 query I rowsort @@ -32512,7 +32512,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\(\*\) AS col1" at position 1 have the 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 @@ -34215,7 +34215,7 @@ SELECT DISTINCT 98 + 50 - + CAST ( 60 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-99\) \+ Int64\(37\) \+ Int64\(\-62\) \+ count\(\*\) \* \(\- 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\(\-78\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-99\) \+ Int64\(37\) \+ Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 col0, + 60 * + - 99 + 37 + + - 62 + COUNT ( * ) * - CAST ( NULL AS FLOAT8 ) AS col0 query I rowsort @@ -34719,7 +34719,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\(\*\) 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 @@ -35291,7 +35291,7 @@ SELECT - 87 + - COUNT ( * ) AS col1 # 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\(52\)\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(\-17\)\) / \(\- count\(\*\)\) \- \(\- 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\(52\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-17\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( 52 ) col2, COUNT ( * ) * - - 17 / - COUNT ( * ) - - - 22 AS col2 query I rowsort @@ -35347,7 +35347,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\(\*\) AS col1" at position 1 have the 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 @@ -35722,7 +35722,7 @@ SELECT 98 * - 43 * - MIN ( - 36 ) * - COUNT ( * ) + - 94 + 12 + + - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 128520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \- Int64\(47\) \+ Int64\(54\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(21\) \* \(\- \(\- Int64\(\-90\)\)\) \* \(\- min\(DISTINCT \(\- nullif\(\(\- Int64\(68\)\), Int64\(33\) \+ 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\(75\) \- Int64\(47\) \+ Int64\(54\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(21\) \* \(\- \(\- Int64\(\-90\)\)\) \* \(\- min\(DISTINCT \(\- nullif\(\(\- Int64\(68\)\), Int64\(33\) \+ Int64\(\-8\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 - + 47 + + 54 + - COUNT ( * ) AS col0, 21 * ( - - ( ( + - 90 ) ) ) * - MIN ( DISTINCT - NULLIF ( - + 68, + 33 + - 8 ) ) AS col0 query I rowsort label-6805 @@ -36553,7 +36553,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\(\*\) 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 @@ -36979,7 +36979,7 @@ SELECT COALESCE ( - + 76, - COUNT ( * ) / - - 68 * + + 90 + + + CAST ( + 2 AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- coalesce\(count\(\*\), Int64\(89\) \+ \(\- \(\- count\(Int64\(79\)\)\)\)\)\) \* \(\- Int64\(\-16\)\) \- Int64\(\-94\) \* Int64\(\-6\) \- Int64\(2\) \* Int64\(7\) AS col1" at position 0 and "Int64\(\-38\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(89\) \+ \(\- \(\- count\(Int64\(79\)\)\)\)\)\) \* \(\- Int64\(\-16\)\) \- Int64\(\-94\) \* Int64\(\-6\) \- Int64\(2\) \* Int64\(7\) AS col1" at position 0 and "Int64\(\-38\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COALESCE ( + COUNT ( * ), + 89 + - - COUNT ( + 79 ) ) * - - 16 - - 94 * + - 6 - + 2 * 7 AS col1, - 38 + + - 90 AS col1 query II rowsort @@ -38227,7 +38227,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\(\*\) \- count\(\*\) AS col0" at position 1 have the 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 @@ -40117,7 +40117,7 @@ SELECT 86 AS col0, 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2437 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(78\), count\(\*\)\) \* Int64\(\-30\) \+ \(\- Int64\(97\)\) 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 "nullif\(Int64\(78\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\) \+ \(\- Int64\(97\)\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + + 78, + COUNT ( * ) ) * - 30 + - + 97 AS col1, 68 AS col1 query I rowsort @@ -40608,7 +40608,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\(\*\) 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 @@ -40869,7 +40869,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\(\*\) AS col2" at position 1 have the 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 @@ -41815,7 +41815,7 @@ SELECT DISTINCT - 66 * + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(22\), Int64\(79\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(22\), 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 DISTINCT - NULLIF ( + + 22, + 79 ) AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -43147,7 +43147,7 @@ SELECT ALL - 44 * + 56 AS col2 # 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 "\(\- sum\(Int64\(72\)\)\) AS col2" at position 0 and "nullif\(CASE Int64\(\-65\) WHEN \(\- Int64\(53\)\) THEN Int64\(9\) \+ Int64\(\-41\) ELSE NULL END, \(\- nullif\(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 "\(\- sum\(Int64\(72\)\)\) AS col2" at position 0 and "nullif\(CASE Int64\(\-65\) WHEN \(\- Int64\(53\)\) THEN Int64\(9\) \+ Int64\(\-41\) ELSE NULL END, \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(21\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + - SUM ( ALL + 72 ) ) AS col2, NULLIF ( + CASE + - 65 WHEN - + 53 THEN 9 + - 41 ELSE NULL END, - NULLIF ( COUNT ( * ), + 21 ) ) AS col2 query I rowsort label-8219 @@ -45575,7 +45575,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\(\*\) AS col1" at position 0 and "Int64\(7\) \+ Int64\(1\) \+ count\(Int64\(74\)\) \* 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 @@ -46624,7 +46624,7 @@ SELECT 57 * + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 0 -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\(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\(87\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + 87 ) AS col2, COUNT ( * ) / + 89 AS col2 query I rowsort @@ -46861,7 +46861,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\(\*\) AS col2" at position 1 have the 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 @@ -46877,7 +46877,7 @@ SELECT + - 37 * + 77 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "\(\- coalesce\(Int64\(61\), Int64\(\-24\) \* Int64\(\-75\) \+ Int64\(84\), \(\- count\(\*\)\)\)\) AS col0" at position 1 have the 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 "\(\- coalesce\(Int64\(61\), Int64\(\-24\) \* Int64\(\-75\) \+ Int64\(84\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 col0, - COALESCE ( 61, - 24 * + - 75 + 84, - COUNT ( * ) ) AS col0 query I rowsort label-8926 @@ -47404,7 +47404,7 @@ SELECT DISTINCT - + 60 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- Int64\(87\)\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- Int64\(87\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 12 + - ( 87 ) + + - COUNT ( * ) AS col0, + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -50043,7 +50043,7 @@ SELECT ALL - COUNT ( * ) * - 49 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 234 # Datafusion - Expected - -41487 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(5\) \* Int64\(2\) / \(\- Int64\(\-98\)\) \- Int64\(78\) \* \(\- Int64\(3\)\) AS col2" at position 0 and "Int64\(56\) \* Int64\(10\) \* Int64\(\-74\) \- 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\(\*\) \* Int64\(5\) \* Int64\(2\) / \(\- Int64\(\-98\)\) \- Int64\(78\) \* \(\- Int64\(3\)\) AS col2" at position 0 and "Int64\(56\) \* Int64\(10\) \* Int64\(\-74\) \- Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + 5 * + 2 / - - 98 - 78 * - ( + 3 ) AS col2, + 56 * + + 10 * + - 74 - + 47 AS col2 query II rowsort label-9530 @@ -51340,7 +51340,7 @@ SELECT DISTINCT + - 76 + + 65 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- 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\(\-22\) \* \(\- 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 DISTINCT - 22 * - COUNT ( * ) AS col0, - 11 AS col0 query I rowsort label-9780 @@ -51433,7 +51433,7 @@ SELECT + ( + 68 ) / - COUNT ( - + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-97\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - 97 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-9798 @@ -52349,7 +52349,7 @@ SELECT - 70 * + 21 + - 13 / - + COALESCE ( - COALESCE ( + 54, + 13 + + 93 / 33 / # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 1104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(47\), Int64\(\-1\)\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(92\) \* count\(\*\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(47\), Int64\(\-1\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(92\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COALESCE ( 47, - 1 ) * - COUNT ( * ) AS col2, 92 * + COUNT ( * ) * + 12 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 87b4ebc..c3545b3 100644 --- a/data/sqlite/random/expr/slt_good_64.slt +++ b/data/sqlite/random/expr/slt_good_64.slt @@ -1761,7 +1761,7 @@ SELECT ALL + 5, 76 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\(\-17\) \* Int64\(92\) / \(\- Int64\(34\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(92\) / \(\- 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 - 17 * 92 / - + 34 AS col2, - COUNT ( * ) AS col2 query I rowsort label-330 @@ -1919,7 +1919,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\(60\) \+ Int64\(\-53\) \* \(\- count\(\*\)\) / Int64\(79\) \+ Int64\(1\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have 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 @@ -2024,7 +2024,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\(\-80\) AS col1" at position 0 and "Int64\(44\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -2266,7 +2266,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\(\*\) AS col2" at position 1 have the 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 @@ -2783,7 +2783,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\(\*\) 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 @@ -3965,7 +3965,7 @@ SELECT - 73 * - + 18 * - 22 - + 78 # 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\(\*\)\)\) 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 label-751 @@ -4153,7 +4153,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\(\*\) 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 @@ -4391,7 +4391,7 @@ SELECT 3 * COUNT ( * ) AS col0 # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ALL 49 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -5708,7 +5708,7 @@ SELECT DISTINCT - 24 AS col1, - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 63 -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\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 39 col0, - COUNT ( * ) + + 64 AS col0 query I rowsort label-1083 @@ -5772,7 +5772,7 @@ SELECT ALL 16 / - MAX ( ( 73 ) ) * - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-13\)\) \+ Int64\(75\) \* CASE \(\- \(\- count\(\*\)\)\) WHEN Int64\(2\) \* \(\- \(\- CAST\(\(\- Int64\(\-39\)\) AS Float64\)\)\) \* Int64\(37\) THEN Int64\(23\) WHEN CAST\(NULL AS Int32\) \* Int64\(32\) \+ \(\- nullif\(Int64\(\-69\), Int64\(40\) / Int64\(\-78\) \* Int64\(8\) \* Int64\(17\)\)\) THEN NULL WHEN Int64\(81\) \* Int64\(\-46\) THEN Int64\(64\) \+ \(\- Int64\(\-1\)\) END \* Int64\(\-79\) \+ Int64\(1\) \- Int64\(0\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-31\) \- \(\- \(\- Int64\(55\)\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-13\)\) \+ Int64\(75\) \* CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(2\) \* \(\- \(\- CAST\(\(\- Int64\(\-39\)\) AS Float64\)\)\) \* Int64\(37\) THEN Int64\(23\) WHEN CAST\(NULL AS Int32\) \* Int64\(32\) \+ \(\- nullif\(Int64\(\-69\), Int64\(40\) / Int64\(\-78\) \* Int64\(8\) \* Int64\(17\)\)\) THEN NULL WHEN Int64\(81\) \* Int64\(\-46\) THEN Int64\(64\) \+ \(\- Int64\(\-1\)\) END \* Int64\(\-79\) \+ Int64\(1\) \- Int64\(0\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-31\) \- \(\- \(\- Int64\(55\)\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( ALL + - 13 ) + + 75 * + CASE - - COUNT ( * ) WHEN 2 * - ( - CAST ( - - 39 AS FLOAT8 ) ) * 37 THEN + 23 WHEN + CAST ( NULL AS INTEGER ) * 32 + + ( - + NULLIF ( - 69, 40 / - 78 * + + 8 * 17 ) ) THEN NULL WHEN 81 * - 46 THEN + 64 + - - 1 END * - 79 + + 1 - + - 0 AS col0, + 81 + - 31 - - ( - + 55 ) * + 44 AS col0 query I rowsort label-1095 @@ -6289,7 +6289,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\(\*\) AS col1" at position 1 have the 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 @@ -6392,7 +6392,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\(\*\) AS Int32\)\) \+ Int64\(76\) \+ Int64\(11\) \* Int64\(36\) AS col0" at position 0 and "Int64\(39\) \- Int64\(\-37\) \- CASE Int64\(13\) WHEN count\(\*\) \+ Int64\(\-2\) \* Int64\(2\) THEN Int64\(60\) \* \(\- CASE Int64\(\-47\) WHEN Int64\(57\) \+ \(\- Int64\(\-21\)\) THEN \(\- 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 @@ -8790,7 +8790,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\(\*\) 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 @@ -8983,7 +8983,7 @@ SELECT DISTINCT - COUNT ( * ) * 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4896 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(68\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-56\) \* count\(DISTINCT Int64\(\-41\)\) \* Int64\(14\) \+ \(\- \(\- count\(\*\)\)\) / Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(68\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-56\) \* count\(DISTINCT Int64\(\-41\)\) \* Int64\(14\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 72 * + 68 AS col2, - CAST ( NULL AS INTEGER ) * - 56 * COUNT ( DISTINCT - 41 ) * + + 14 + - ( + - ( + COUNT ( * ) ) ) / + + 32 AS col2 query I rowsort label-1708 @@ -9014,7 +9014,7 @@ SELECT - 96 * - + 13 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1433 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- \(\- Int64\(\-57\)\)\) \* Int64\(26\) \- Int64\(\-49\) 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\(\*\) \* \(\- \(\- Int64\(\-57\)\)\) \* Int64\(26\) \- Int64\(\-49\) 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 ( * ) * - - ( - 57 ) * 26 - - 49 AS col1, + 32 AS col1 query II rowsort @@ -9611,7 +9611,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\(\*\)\) AS col0" at position 1 have the 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 ALL 45 AS col0, - COUNT ( * ) AS col0 query I rowsort label-1828 @@ -12469,7 +12469,7 @@ SELECT - COUNT ( * ) + + - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \- count\(Int64\(49\)\) \+ Int64\(19\) / Int64\(\-73\) AS col1" at position 0 and "\(\- coalesce\(Int64\(14\), coalesce\(max\(\(\- Int64\(63\)\)\), Int64\(\-45\) \* count\(\*\) \+ Int64\(39\) \- Int64\(53\) \- \(\- count\(\*\)\) \* Int64\(\-24\), min\(DISTINCT Int64\(\-33\)\) \* 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\(91\) \- count\(Int64\(49\)\) \+ Int64\(19\) / Int64\(\-73\) AS col1" at position 0 and "\(\- coalesce\(Int64\(14\), coalesce\(max\(\(\- Int64\(63\)\)\), Int64\(\-45\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(39\) \- Int64\(53\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-24\), min\(DISTINCT Int64\(\-33\)\) \* Int64\(68\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 91 - COUNT ( ALL 49 ) + + ( 19 ) / + - 73 AS col1, - COALESCE ( + 14, + COALESCE ( + MAX ( ALL - ( + 63 ) ), - 45 * COUNT ( * ) + + 39 - 53 - - + COUNT ( * ) * - 24, + MIN ( DISTINCT - 33 ) * 68 ) ) AS col1 query I rowsort label-2370 @@ -16445,7 +16445,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\(\*\) AS col1" at position 1 have the 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 @@ -16870,7 +16870,7 @@ SELECT + + 32, - 51 + - ( + 42 ) + + 66 * - + COALESCE ( - SUM ( DISTINCT + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-80\) \- Int64\(51\) 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\(\*\)\) \* Int64\(\-80\) \- Int64\(51\) 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 ( * ) * - 80 - + 51 AS col1, 70 AS col1 query II rowsort @@ -16995,7 +16995,7 @@ SELECT DISTINCT 32 / 11 * 89 + - COUNT ( * ) + MIN ( DISTINCT 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) / Int64\(73\) \* \(\- count\(\*\)\) \- Int64\(98\) AS col1" at position 0 and "Int64\(63\) \+ Int64\(0\) / \(\- \(\- Int64\(\-43\)\)\) \+ 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\(\-22\) / Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(98\) AS col1" at position 0 and "Int64\(63\) \+ Int64\(0\) / \(\- \(\- Int64\(\-43\)\)\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 22 / + 73 * - COUNT ( * ) - + 98 AS col1, 63 + 0 / - ( - + ( ( - 43 ) ) ) + 61 AS col1 query II rowsort label-3236 @@ -17322,7 +17322,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\(\*\) AS col0" at position 1 have the 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 @@ -17406,7 +17406,7 @@ SELECT DISTINCT + NULLIF ( 24, + + 41 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(\-31\) \+ \(\- count\(\*\)\) \* Int64\(23\) \- Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(\-31\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(23\) \- Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 64 AS col0, - 31 + - + COUNT ( * ) * 23 - - 2 AS col0 query I rowsort label-3314 @@ -18185,7 +18185,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\(\*\) AS col1" at position 1 have the 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 @@ -19126,7 +19126,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\(\*\) 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: @@ -20052,7 +20052,7 @@ SELECT + ( + 78 ) AS col0, - COALESCE ( ( 22 ), + SUM ( - COALESCE ( - 75, + + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ Int64\(53\) AS col1" at position 0 and "count\(\*\) \* Int64\(70\) \+ Int64\(26\) / Int64\(17\) \+ Int64\(31\) \+ 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\(\-72\) \+ Int64\(53\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(70\) \+ Int64\(26\) / Int64\(17\) \+ Int64\(31\) \+ Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 72 + 53 col1, COUNT ( * ) * 70 + + 26 / ( + 17 ) + 31 + - 76 AS col1 query I rowsort label-3812 @@ -20751,7 +20751,7 @@ SELECT ALL + 50 / - 98 + - 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 169 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) / Int64\(76\) \* Int64\(\-29\) \+ Int64\(81\) \* count\(\*\) \- min\(Int64\(\-88\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) / Int64\(76\) \* Int64\(\-29\) \+ Int64\(81\) \* count\(Int64\(1\)\) AS count\(\*\) \- min\(Int64\(\-88\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 14 / 76 * - 29 + + 81 * + COUNT ( * ) - + MIN ( ALL - 88 ) AS col1, 78 AS col1 query II rowsort label-3946 @@ -20923,7 +20923,7 @@ SELECT - 93 * ( + 60 ) + - CASE WHEN NULL NOT BETWEEN ( NULL ) AND ( - 71 ) THEN # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(99\) AS col0" at position 0 and "Int64\(87\) \+ CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. 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\(99\) AS col0" at position 0 and "Int64\(87\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 99 col0, 87 + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort @@ -21039,7 +21039,7 @@ SELECT 22 + - COALESCE ( + - 24, - 46 + - 83, - 99 / 30 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 208623 -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\(30\) \* Int64\(88\) \* Int64\(79\) \+ 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\(\-23\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(30\) \* Int64\(88\) \* Int64\(79\) \+ Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 AS col0, COUNT ( * ) * + 30 * + 88 * 79 + + 63 AS col0 query II rowsort @@ -22375,7 +22375,7 @@ SELECT ALL 83 AS col1, 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 337 -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\(42\) \* \(\- 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\(34\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(42\) \* \(\- Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 34 AS col0, COUNT ( * ) + + 42 * - - 8 AS col0 query II rowsort label-4253 @@ -22615,7 +22615,7 @@ SELECT - 41 + - 71 * + 49 * + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) / Int64\(\-85\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) / Int64\(\-85\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 88 / - 85 AS col2, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 query I rowsort label-4298 @@ -22652,7 +22652,7 @@ SELECT ALL + CASE - 42 WHEN 9 THEN NULL ELSE + 81 * 95 + - CASE - 4 WHEN MAX ( A # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(85\) AS col0" at position 0 and "CASE \(\- Int64\(\-54\)\) WHEN \(\- Int64\(8\)\) / \(\- count\(\*\)\) \+ \(\- count\(DISTINCT Int64\(17\)\)\) \* Int64\(\-51\) THEN Int64\(57\) ELSE count\(\*\) END / Int64\(\-29\) \+ \(\- Int64\(12\)\) \- \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(85\) AS col0" at position 0 and "CASE \(\- Int64\(\-54\)\) WHEN \(\- Int64\(8\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(DISTINCT Int64\(17\)\)\) \* Int64\(\-51\) THEN Int64\(57\) ELSE count\(Int64\(1\)\) AS count\(\*\) END / Int64\(\-29\) \+ \(\- Int64\(12\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + 85 AS col0, CASE + - ( + - 54 ) WHEN - + 8 / - + COUNT ( * ) + - + COUNT ( DISTINCT + 17 ) * - 51 THEN + 57 ELSE + + COUNT ( * ) END / - 29 + - + 12 - - COUNT ( * ) AS col0 query I rowsort label-4305 @@ -22860,7 +22860,7 @@ SELECT DISTINCT 70 AS col1, 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 4060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "\(\- \(\- Int64\(51\)\)\) \- Int64\(63\) \+ count\(\*\) \+ Int64\(\-83\) \+ CAST\(Int64\(\-7\) AS Int32\) \* Int64\(\-99\) \* min\(Int64\(6\)\) \- Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- \(\- Int64\(51\)\)\) \- Int64\(63\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-83\) \+ CAST\(Int64\(\-7\) AS Int32\) \* Int64\(\-99\) \* min\(Int64\(6\)\) \- Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, - ( - + 51 ) - 63 + + COUNT ( * ) + - 83 + + CAST ( + - 7 AS INTEGER ) * - 99 * + + MIN ( ALL 6 ) - 4 AS col1 query I rowsort label-4345 @@ -23623,7 +23623,7 @@ SELECT DISTINCT - 68 * + NULLIF ( + 49, COUNT ( * ) ) AS col2 # 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\(45\) \+ Int64\(\-40\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-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 45 + - 40 AS col0, ( - COUNT ( * ) ) AS col0 query I rowsort label-4490 @@ -23910,7 +23910,7 @@ SELECT ( - ( 51 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / \(\- Int64\(85\)\) 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\(\*\) / \(\- Int64\(85\)\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / - + 85 AS col2, 60 AS col2 # Datafusion - Types were automatically converted from: @@ -24062,7 +24062,7 @@ SELECT ALL NULLIF ( - 85, - 6 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- coalesce\(count\(\*\), Int64\(59\), \(\- Int64\(\-80\)\) / Int64\(26\)\)\) WHEN Int64\(11\) \* Int64\(85\) THEN Int64\(46\) / Int64\(\-94\) \+ \(\- sum\(Int64\(15\)\)\) \+ Int64\(10\) ELSE \(\- Int64\(46\)\) \* Int64\(6\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(\-41\)\) END AS col0" at position 0 and "\(\- CASE \(\- CASE \(\- count\(\*\)\) WHEN \(\- Int64\(60\)\) \+ Int64\(61\) \* \(\- \(\- count\(Int64\(\-66\)\)\)\) \* Int64\(54\) \* \(\- Int64\(\-71\)\) / Int64\(74\) THEN NULL WHEN \(\- sum\(DISTINCT Int64\(69\)\)\) \* Int64\(32\) THEN Int64\(38\) ELSE Int64\(19\) END\) WHEN Int64\(55\) \+ Int64\(98\) \+ Int64\(92\) \* \(\- Int64\(\-1\)\) THEN NULL ELSE \(\- count\(\*\)\) END\) \* min\(Int64\(\-14\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(59\), \(\- Int64\(\-80\)\) / Int64\(26\)\)\) WHEN Int64\(11\) \* Int64\(85\) THEN Int64\(46\) / Int64\(\-94\) \+ \(\- sum\(Int64\(15\)\)\) \+ Int64\(10\) ELSE \(\- Int64\(46\)\) \* Int64\(6\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(\-41\)\) END AS col0" at position 0 and "\(\- CASE \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(60\)\) \+ Int64\(61\) \* \(\- \(\- count\(Int64\(\-66\)\)\)\) \* Int64\(54\) \* \(\- Int64\(\-71\)\) / Int64\(74\) THEN NULL WHEN \(\- sum\(DISTINCT Int64\(69\)\)\) \* Int64\(32\) THEN Int64\(38\) ELSE Int64\(19\) END\) WHEN Int64\(55\) \+ Int64\(98\) \+ Int64\(92\) \* \(\- Int64\(\-1\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* min\(Int64\(\-14\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE + ( + - COALESCE ( COUNT ( * ), + + ( + 59 ), - - 80 / + 26 ) ) WHEN ( 11 ) * 85 THEN 46 / - 94 + + - SUM ( ALL 15 ) + 10 ELSE - ( + 46 ) * + + 6 + + CAST ( NULL AS INTEGER ) + - - 41 END AS col0, - CASE - CASE + - COUNT ( * ) WHEN - ( 60 ) + ( 61 ) * - - ( COUNT ( + - 66 ) ) * + 54 * - ( - 71 ) / + + 74 THEN NULL WHEN - SUM ( DISTINCT + 69 ) * 32 THEN 38 ELSE + 19 END WHEN 55 + 98 + + + 92 * - - 1 THEN NULL ELSE - COUNT ( * ) END * + MIN ( ALL - 14 ) * 13 AS col0 # Datafusion - Types were automatically converted from: @@ -24082,7 +24082,7 @@ SELECT ALL + 94 + - 38 * + - CASE + COUNT ( ALL + 36 ) WHEN 37 * 35 THEN + + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE coalesce\(Int64\(41\), \(\- Int64\(76\)\) \* Int64\(\-31\) \* Int64\(62\) \+ Int64\(\-83\) \+ Int64\(4\) \+ Int64\(84\) / count\(\*\) \+ \(\- Int64\(28\)\) \* Int64\(52\), Int64\(46\)\) WHEN min\(Int64\(86\)\) THEN \(\- Int64\(\-49\)\) \* Int64\(65\) \* Int64\(\-64\) \- \(\- Int64\(19\)\) \+ Int64\(97\) WHEN nullif\(Int64\(\-18\), Int64\(87\)\) \* max\(Int64\(68\)\) \- Int64\(\-49\) THEN CASE Int64\(\-93\) WHEN Int64\(22\) \- Int64\(\-53\) \+ \(\- Int64\(\-87\)\) THEN NULL ELSE Int64\(85\) END \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-62\) / Int64\(50\) \* Int64\(94\) WHEN Int64\(\-44\) \+ \(\- \(\- Int64\(\-24\)\)\) THEN Int64\(77\) ELSE NULL END\) \+ Int64\(44\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE coalesce\(Int64\(41\), \(\- Int64\(76\)\) \* Int64\(\-31\) \* Int64\(62\) \+ Int64\(\-83\) \+ Int64\(4\) \+ Int64\(84\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(28\)\) \* Int64\(52\), Int64\(46\)\) WHEN min\(Int64\(86\)\) THEN \(\- Int64\(\-49\)\) \* Int64\(65\) \* Int64\(\-64\) \- \(\- Int64\(19\)\) \+ Int64\(97\) WHEN nullif\(Int64\(\-18\), Int64\(87\)\) \* max\(Int64\(68\)\) \- Int64\(\-49\) THEN CASE Int64\(\-93\) WHEN Int64\(22\) \- Int64\(\-53\) \+ \(\- Int64\(\-87\)\) THEN NULL ELSE Int64\(85\) END \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-62\) / Int64\(50\) \* Int64\(94\) WHEN Int64\(\-44\) \+ \(\- \(\- Int64\(\-24\)\)\) THEN Int64\(77\) ELSE NULL END\) \+ Int64\(44\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE + COALESCE ( + ( 41 ), - ( 76 ) * - 31 * + + 62 + + - 83 + 4 + + 84 / + COUNT ( * ) + - ( + + 28 ) * 52, + 46 ) WHEN + MIN ( ALL + 86 ) THEN - - 49 * 65 * + - 64 - - + 19 + + + 97 WHEN NULLIF ( - 18, + + 87 ) * MAX ( + 68 ) - + - 49 THEN CASE - 93 WHEN 22 - - 53 + - - 87 THEN NULL ELSE + 85 END * - + CAST ( NULL AS INTEGER ) * + - 62 / 50 * + 94 WHEN - 44 + - + ( - ( - 24 ) ) THEN 77 ELSE NULL END + 44 AS col1, 74 AS col1 query I rowsort @@ -24683,7 +24683,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\(\*\) AS col2" at position 1 have the 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 @@ -25232,7 +25232,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -25437,7 +25437,7 @@ SELECT - 7 * - 10 + - + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-35\) AS col0" at position 0 and "\(\- coalesce\(\(\- CASE Int64\(\-70\) WHEN Int64\(48\) THEN Int64\(83\) WHEN Int64\(15\) \+ \(\- count\(Int64\(68\)\)\) THEN NULL END\), max\(Int64\(\-69\)\) \* \(\- count\(\*\)\), \(\- 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\(\*\)\) \* Int64\(\-35\) AS col0" at position 0 and "\(\- coalesce\(\(\- CASE Int64\(\-70\) WHEN Int64\(48\) THEN Int64\(83\) WHEN Int64\(15\) \+ \(\- count\(Int64\(68\)\)\) THEN NULL END\), max\(Int64\(\-69\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-5\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - 35 AS col0, - ( COALESCE ( - CASE + - 70 WHEN 48 THEN 83 WHEN 15 + - COUNT ( ALL 68 ) THEN NULL END, + MAX ( - 69 ) * - COUNT ( * ), - ( - 5 ) ) ) AS col0 query II rowsort @@ -25634,7 +25634,7 @@ SELECT 94 + - 19 - 21 / 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "Int64\(51\) \+ count\(DISTINCT Int64\(\-78\)\) \+ count\(\*\) \+ 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\(\-65\) AS col2" at position 0 and "Int64\(51\) \+ count\(DISTINCT Int64\(\-78\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 AS col2, + 51 + + COUNT ( DISTINCT - 78 ) + COUNT ( * ) + - 70 AS col2 query II rowsort label-4875 @@ -26394,7 +26394,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\(\*\) AS col1" at position 1 have the 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 @@ -27196,7 +27196,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\(\*\) AS col1" at position 0 and "coalesce\(Int64\(61\), 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 @@ -28345,7 +28345,7 @@ SELECT + 2 * 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 0 and "\(\- nullif\(\(\- Int64\(99\)\), Int64\(7\) \* Int64\(\-74\) \- \(\- Int64\(34\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "\(\- nullif\(\(\- Int64\(99\)\), Int64\(7\) \* Int64\(\-74\) \- \(\- Int64\(34\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 * CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - NULLIF ( - + 99, + + 7 * - 74 - - + 34 ) AS col1 query I rowsort label-5393 @@ -28728,7 +28728,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\(\*\) AS col0" at position 0 and "Int64\(\-89\) \* CASE Int64\(\-86\) WHEN 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 @@ -28901,13 +28901,13 @@ SELECT ALL - + 13 + + 69 + + SUM ( + - 71 ) + + + ( - 29 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 109 # Datafusion - Expected - 174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(83\) \+ \(\- Int64\(\-71\)\) \- Int64\(68\) / \(\- count\(\*\)\) \+ \(\- 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\(23\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(83\) \+ \(\- Int64\(\-71\)\) \- Int64\(68\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 + + 86 AS col0, + 83 + - ( - 71 ) - + 68 / - COUNT ( * ) + + ( - + 48 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 233864 # Datafusion - Expected - -6005 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(62\) \* Int64\(46\) AS col1" at position 0 and "Int64\(76\) \* Int64\(\-79\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(62\) \* Int64\(46\) AS col1" at position 0 and "Int64\(76\) \* Int64\(\-79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 * 62 * 46 AS col1, 76 * - 79 + - COUNT ( * ) AS col1 query II rowsort @@ -29214,7 +29214,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\(\*\) 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 @@ -29986,7 +29986,7 @@ SELECT + 37 AS col1, 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 3496 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(72\), \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-76\) \* sum\(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 "coalesce\(Int64\(72\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-76\) \* sum\(Int64\(\-46\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + 72, + - COUNT ( * ) ) col2, - 76 * SUM ( - 46 ) AS col2 query II rowsort label-5701 @@ -32263,7 +32263,7 @@ SELECT 52 + - + ( + ( COUNT ( * ) ) ) col0, + 47 / 10 # 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\(\*\)\) AS col0" at position 0 and "count\(Int64\(2\)\) \* \(\- nullif\(\(\- Int64\(70\)\), \(\- CASE Int64\(\-11\) WHEN \(\- Int64\(85\)\) THEN Int64\(98\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(2\)\) \* \(\- nullif\(\(\- Int64\(70\)\), \(\- CASE Int64\(\-11\) WHEN \(\- Int64\(85\)\) THEN Int64\(98\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, COUNT ( ALL + + 2 ) * - NULLIF ( - + 70, - ( + CASE - 11 WHEN - + 85 THEN 98 END ) ) AS col0 query I rowsort label-6130 @@ -32314,7 +32314,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\(\*\) AS col1" at position 1 have the 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 @@ -33780,7 +33780,7 @@ SELECT - + ( + MIN ( - 14 ) ) * 52 + - 11 - SUM ( ALL - ( 8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / Int64\(\-87\) AS col1" at position 0 and "CASE Int64\(74\) WHEN Int64\(0\) THEN coalesce\(count\(\*\), Int64\(22\), \(\- CAST\(Int64\(\-55\) AS Int32\)\)\) \+ Int64\(70\) END \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / Int64\(\-87\) AS col1" at position 0 and "CASE Int64\(74\) WHEN Int64\(0\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(22\), \(\- CAST\(Int64\(\-55\) AS Int32\)\)\) \+ Int64\(70\) END \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 62 / - 87 AS col1, CASE + 74 WHEN 0 THEN COALESCE ( COUNT ( * ), 22, - CAST ( - 55 AS INTEGER ) ) + + 70 END * 75 AS col1 query I rowsort label-6426 @@ -34782,7 +34782,7 @@ SELECT DISTINCT - COUNT ( + + 46 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- nullif\(Int64\(48\), Int64\(12\)\)\) AS col0" at position 0 and "Int64\(\-58\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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\(48\), Int64\(12\)\)\) AS col0" at position 0 and "Int64\(\-58\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) / + - NULLIF ( + 48, + 12 ) col0, - 58 * - COUNT ( * ) AS col0 query I rowsort @@ -35004,7 +35004,7 @@ SELECT - 66 * + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(\-24\) \- \(\- count\(\*\)\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(\-24\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 6 AS col2, - 24 - + - ( COUNT ( * ) ) + + + 55 AS col2 query I rowsort @@ -35493,7 +35493,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1899 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-58\) \* CAST\(Int64\(\-80\) AS Int32\) \* count\(\*\) \+ Int64\(68\) \* \(\- CAST\(\(\- Int64\(\-76\)\) AS Int32\)\) \- Int64\(88\) \+ Int64\(77\) \+ Int64\(\-16\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-58\) \* CAST\(Int64\(\-80\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(68\) \* \(\- CAST\(\(\- Int64\(\-76\)\) AS Int32\)\) \- Int64\(88\) \+ Int64\(77\) \+ Int64\(\-16\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 AS col1, - 58 * + CAST ( - 80 AS INTEGER ) * + COUNT ( * ) + 68 * - CAST ( - - 76 AS INTEGER ) - + 88 + 77 + + - 16 * + 85 AS col1 query I rowsort label-6750 @@ -35652,7 +35652,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\(\*\) AS col1" at position 1 have the 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 @@ -35748,7 +35748,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\(\*\) 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 @@ -36468,7 +36468,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1334 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(30\) WHEN Int64\(88\) \* Int64\(46\) THEN CAST\(NULL AS Int32\) \* \(\- Int64\(10\)\) ELSE NULL END\) \* avg\(Int64\(\-41\)\) \- Int64\(83\) AS col0" at position 0 and "count\(\*\) \* Int64\(57\) \* Int64\(24\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(30\) WHEN Int64\(88\) \* Int64\(46\) THEN CAST\(NULL AS Int32\) \* \(\- Int64\(10\)\) ELSE NULL END\) \* avg\(Int64\(\-41\)\) \- Int64\(83\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) \* Int64\(24\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CASE 30 WHEN 88 * + 46 THEN + CAST ( NULL AS INTEGER ) * - + 10 ELSE NULL END * + AVG ( - 41 ) - 83 AS col0, + COUNT ( * ) * + 57 * + 24 + - 34 AS col0 query I rowsort label-6937 @@ -36820,7 +36820,7 @@ SELECT DISTINCT - + 93 + + 4 + + ( + + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 6799 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(\-85\) \* \(\- count\(\*\)\) \* \(\- Int64\(\-80\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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 "Int64\(\-85\) \* \(\- 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 + 29 AS col0, - 85 * - COUNT ( * ) * - + ( - 80 ) + + - COUNT ( * ) AS col0 query I rowsort label-7003 @@ -38004,7 +38004,7 @@ SELECT 18 + + COALESCE ( + 11, - 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(16\) \+ Int64\(\-22\) AS col1" at position 0 and "max\(Int64\(90\)\) \+ coalesce\(\(\- CASE Int64\(\-98\) WHEN Int64\(54\) THEN Int64\(94\) \+ Int64\(14\) ELSE NULL END\), Int64\(24\) / Int64\(\-18\) \+ Int64\(\-36\)\) \+ count\(\*\) \* count\(\(\- 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\(27\) \+ Int64\(16\) \+ Int64\(\-22\) AS col1" at position 0 and "max\(Int64\(90\)\) \+ coalesce\(\(\- CASE Int64\(\-98\) WHEN Int64\(54\) THEN Int64\(94\) \+ Int64\(14\) ELSE NULL END\), Int64\(24\) / Int64\(\-18\) \+ Int64\(\-36\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(\(\- Int64\(42\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 + + 16 + ( - 22 ) AS col1, + MAX ( ALL 90 ) + + COALESCE ( - CASE - 98 WHEN 54 THEN 94 + 14 ELSE NULL END, 24 / + - 18 + - 36 ) + COUNT ( * ) * COUNT ( ALL - + 42 ) AS col1 query I rowsort @@ -38219,7 +38219,7 @@ SELECT 78 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 280077 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(\-88\) \- Int64\(51\) \* \(\- nullif\(Int64\(\-61\), Int64\(46\) \* Int64\(17\) \* Int64\(\-59\)\)\) \* Int64\(\-10\) \* Int64\(9\) 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\(\*\)\) \- Int64\(\-88\) \- Int64\(51\) \* \(\- nullif\(Int64\(\-61\), Int64\(46\) \* Int64\(17\) \* Int64\(\-59\)\)\) \* Int64\(\-10\) \* Int64\(9\) 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 ( * ) - ( - 88 ) - 51 * ( - NULLIF ( + - 61, + 46 * + + 17 * - 59 ) ) * + - 10 * 9 AS col2, + 54 AS col2 query I rowsort label-7270 @@ -38277,7 +38277,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\(\*\) 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 @@ -39687,7 +39687,7 @@ SELECT + - 84 + - - ( 47 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL IS NULL THEN CASE \(\- Int64\(17\)\) WHEN \(\- CASE \(\- Int64\(41\)\) WHEN Int64\(67\) \+ Int64\(55\) THEN \(\- Int64\(\-49\)\) END\) THEN \(\- Int64\(0\)\) WHEN \(\- nullif\(Int64\(44\), Int64\(42\)\)\) \- sum\(Int64\(55\)\) \* \(\- count\(\*\)\) \- Int64\(\-75\) THEN NULL END WHEN Int64\(80\) NOT BETWEEN NULL AND Int64\(94\) THEN Int64\(\-9\) \+ Int64\(\-95\) END \+ Int64\(\-66\) 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 "CASE WHEN NOT NULL IS NULL THEN CASE \(\- Int64\(17\)\) WHEN \(\- CASE \(\- Int64\(41\)\) WHEN Int64\(67\) \+ Int64\(55\) THEN \(\- Int64\(\-49\)\) END\) THEN \(\- Int64\(0\)\) WHEN \(\- nullif\(Int64\(44\), Int64\(42\)\)\) \- sum\(Int64\(55\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-75\) THEN NULL END WHEN Int64\(80\) NOT BETWEEN NULL AND Int64\(94\) THEN Int64\(\-9\) \+ Int64\(\-95\) END \+ Int64\(\-66\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CASE WHEN NOT NULL IS NULL THEN CASE - + ( + 17 ) WHEN - + CASE - + 41 WHEN + + 67 + 55 THEN - ( ( + - 49 ) ) END THEN - + 0 WHEN - + NULLIF ( 44, 42 ) - + + SUM ( ALL 55 ) * - + COUNT ( * ) - ( + - 75 ) THEN NULL END WHEN 80 NOT BETWEEN NULL AND + 94 THEN + - 9 + - 95 END + - 66 AS col1, ( 64 ) col1 query I rowsort @@ -39801,7 +39801,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\(\*\) 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 @@ -40538,7 +40538,7 @@ SELECT CAST ( - + CAST ( 38 AS INTEGER ) AS INTEGER ) * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(68\) WHEN \(\- Int64\(78\)\) THEN count\(\*\) WHEN Int64\(92\) \+ \(\- Int64\(\-12\)\) THEN NULL END\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(68\) WHEN \(\- Int64\(78\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(92\) \+ \(\- Int64\(\-12\)\) THEN NULL END\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - CASE 68 WHEN - + 78 THEN + COUNT ( * ) WHEN 92 + + + ( - - 12 ) THEN NULL END ) AS col2, + 37 AS col2 # Datafusion - Datafusion expected results: @@ -41072,7 +41072,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 ( * ) AS col0 query I rowsort label-7813 @@ -41099,7 +41099,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\(\*\) 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 @@ -41181,7 +41181,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\(\*\) 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 @@ -42645,7 +42645,7 @@ SELECT 75 + + MAX ( ALL 42 ) + + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "Int64\(84\) \* 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\(\-94\) AS col1" at position 0 and "Int64\(84\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 94 ) AS col1, + 84 * COUNT ( * ) + + 98 AS col1 query I rowsort label-8118 @@ -42686,7 +42686,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\(\*\) AS col0" at position 1 have the 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 @@ -43674,7 +43674,7 @@ SELECT ALL - 85 + 81 + + 79 * + - 51 + + + 23 AS col1 # Datafusion - Expected - 99 # Datafusion - Expected - -266154 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "\(\- nullif\(Int64\(63\), \(\- count\(\*\)\)\)\) \* Int64\(96\) \* Int64\(44\) \+ Int64\(42\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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 "\(\- nullif\(Int64\(63\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(96\) \* Int64\(44\) \+ Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 99 col2, - NULLIF ( 63, + - COUNT ( * ) ) * 96 * + 44 + + + 42 * - + COUNT ( * ) AS col2, + 43 query I rowsort @@ -44885,7 +44885,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\(\*\) 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 @@ -45498,7 +45498,7 @@ SELECT - + 0, + COUNT ( * ) 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col0, ( 88 ) AS col0 query II rowsort label-8664 @@ -46536,7 +46536,7 @@ SELECT DISTINCT 87 AS col1, + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27189 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(\-40\) \* Int64\(10\) \+ Int64\(11\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-40\) \* Int64\(10\) \+ 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 ( + + 68 ) * - 40 * + 10 + + + 11 AS col2, - COUNT ( * ) AS col2 query I rowsort label-8862 @@ -46740,7 +46740,7 @@ SELECT ALL + 33 + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -118 # Datafusion - Expected - 2728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-63\) \- Int64\(56\) AS col2" at position 0 and "\(\- \(\- nullif\(\(\- Int64\(\-31\)\), Int64\(37\) \* \(\- Int64\(86\)\)\)\)\) \* 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\(\*\) \+ Int64\(\-63\) \- Int64\(56\) AS col2" at position 0 and "\(\- \(\- nullif\(\(\- Int64\(\-31\)\), Int64\(37\) \* \(\- Int64\(86\)\)\)\)\) \* Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + - 63 - + 56 AS col2, ( - - NULLIF ( - - 31, + 37 * - + 86 ) ) * 88 AS col2 query I rowsort label-8901 @@ -48646,7 +48646,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\(\*\) 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 @@ -49041,7 +49041,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\(\*\) AS col2" at position 1 have the 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 @@ -49364,7 +49364,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\(\-40\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 ( * ) col0 query I rowsort label-9402 @@ -49772,7 +49772,7 @@ SELECT DISTINCT CAST ( - - 54 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(71\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. 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\(71\) \+ \(\- 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 ) AS col0, + 71 + - COUNT ( * ) col0 query I rowsort label-9482 @@ -49798,7 +49798,7 @@ SELECT 12 * + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ count\(\*\) \* Int64\(25\) \+ Int64\(\-52\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\) \+ Int64\(\-52\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 + COUNT ( * ) * + + 25 + - 52 AS col1, ( + - 57 ) AS col1 query I rowsort label-9487 diff --git a/data/sqlite/random/expr/slt_good_65.slt b/data/sqlite/random/expr/slt_good_65.slt index fc39b3e..5353a45 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\(\*\) AS col1" at position 1 have the 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 @@ -1256,7 +1256,7 @@ SELECT ALL 75 / - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col2, COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -1933,7 +1933,7 @@ SELECT ALL - ( 14 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 94 -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\(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\(55\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 AS col2, COUNT ( * ) + 93 col2 query I rowsort label-368 @@ -1954,7 +1954,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 "count\(\*\) / Int64\(93\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\) AS col1" at 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 ( * ) / + 93 AS col1, - COUNT ( * ) col1 query I rowsort @@ -2808,7 +2808,7 @@ SELECT + + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 57 AS col0 query I rowsort label-538 @@ -6050,7 +6050,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\(\*\) AS col0" at position 1 have the 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 @@ -6570,7 +6570,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\(\*\) AS col1" at position 1 have the 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 @@ -7033,7 +7033,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\(\*\) AS Int32\)" at position 0 and "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 @@ -7844,7 +7844,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\(\*\) 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 @@ -8267,7 +8267,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\(\*\) AS col0" at position 1 have the 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 @@ -8758,7 +8758,7 @@ SELECT COUNT ( * ) AS col1, - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3588 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* count\(\*\) \* Int64\(\-39\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-39\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 92 * COUNT ( * ) * + - 39 AS col1, + 5 AS col1 query I rowsort @@ -8790,7 +8790,7 @@ SELECT - 48 AS col1, 96 AS col2 # 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\(\*\)\) AS col0" at position 1 have the 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 ALL + 13 AS col0, - COUNT ( * ) AS col0 query I rowsort label-1699 @@ -9113,7 +9113,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\(\*\) AS col2" at position 0 and "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 @@ -9661,7 +9661,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\(\*\) 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 @@ -9818,7 +9818,7 @@ SELECT DISTINCT + + ( + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 query I rowsort label-1899 @@ -12662,7 +12662,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\(\*\) AS col2" at position 1 have the 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 @@ -12815,7 +12815,7 @@ SELECT + 7 / - 14 * 11 # 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\(\*\)\)\) AS col0" at position 1 have the 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 col0, - ( + - COUNT ( * ) ) AS col0 query I rowsort @@ -14379,7 +14379,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\(\*\) 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 @@ -14496,7 +14496,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -17688,7 +17688,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -18807,7 +18807,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\(\*\) 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 @@ -19528,7 +19528,7 @@ SELECT MAX ( ALL + 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) query I rowsort @@ -20260,7 +20260,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\(\*\) AS col2" at position 1 have the 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 @@ -21258,7 +21258,7 @@ SELECT 56 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 115 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(77\)\) \+ Int64\(38\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(5\) \* 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 "max\(Int64\(77\)\) \+ Int64\(38\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(5\) \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( ALL + 77 ) + 38 col0, - COUNT ( * ) * 5 * + 7 AS col0 query I rowsort label-4109 @@ -22555,7 +22555,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\(\*\) AS col1" at position 1 have the 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 @@ -23591,7 +23591,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\(\*\) / 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 @@ -25106,7 +25106,7 @@ SELECT ALL - 97 + + - 70 * + 98 AS col0 # 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\(\*\)\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) + - 5 AS col1 query I rowsort @@ -25285,7 +25285,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\(\*\) AS col2" at position 1 have the 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 @@ -26443,7 +26443,7 @@ SELECT + + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* min\(\(\- 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 ) * MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort label-5114 @@ -26509,7 +26509,7 @@ SELECT ALL + COALESCE ( + - 54, 24 ) * - 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- \(\- 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\(\*\) \+ \(\- \(\- 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 ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col2, + 86 AS col2 query I rowsort @@ -26888,7 +26888,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\(\*\) 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 @@ -27125,7 +27125,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\(\*\) AS col1" at position 1 have the 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 @@ -27930,7 +27930,7 @@ SELECT - SUM ( DISTINCT - 99 ) 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\(\*\)\) 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 I rowsort label-5404 @@ -28548,7 +28548,7 @@ SELECT + COUNT ( * ) * 74 AS col0 # 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\(\*\)\) 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 - COUNT ( * ) AS col2, 38 AS col2 query I rowsort label-5525 @@ -29317,7 +29317,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\(\*\) AS col1" at position 1 have the 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 @@ -30782,7 +30782,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\(\*\)\) \+ count\(\*\) \- Int64\(82\) \+ 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 @@ -30895,7 +30895,7 @@ SELECT ( NULLIF ( ( - 21 ), - COUNT ( * ) ) ) # 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\(\*\)\) AS col0" at position 1 have the 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 ( * ) AS col0 query I rowsort label-5981 @@ -30937,7 +30937,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -33995,7 +33995,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -34086,7 +34086,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\(\*\) AS col1" at position 1 have the 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 @@ -34389,7 +34389,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\(\*\)\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -35763,7 +35763,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\(\*\) AS Int32\)\) AS col0" at position 1 have the 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 @@ -37645,7 +37645,7 @@ SELECT - - COUNT ( * ) + - - 99, 98 + 11 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - COUNT ( * ) ), - COUNT ( * ) query I rowsort @@ -37753,7 +37753,7 @@ SELECT - MAX ( + 0 ) AS col1, + 18 AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\)" at position 0 and "\(\- count\(\*\)\)" at position 2 have the same name\. Consider aliasing \("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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ), + COALESCE ( + 1, + COUNT ( * ) ) AS col0, - COUNT ( * ) query I rowsort label-7316 @@ -38502,7 +38502,7 @@ SELECT COUNT ( - 21 ) col2 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col1, - 54 col1 query I rowsort label-7462 @@ -40894,7 +40894,7 @@ SELECT - 92 * - 20 # 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\(\-41\) AS col1" at position 0 and "Int64\(27\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 41 AS col1, 27 * + - COUNT ( * ) AS col1 query I rowsort label-7924 @@ -41300,7 +41300,7 @@ SELECT + 29 + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 693 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* \(\- Int64\(63\)\) AS col0" at position 0 and "count\(\*\) \+ \(\- min\(\(\- 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\(\-11\) \* \(\- Int64\(63\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(\(\- Int64\(79\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 11 * - + 63 AS col0, COUNT ( * ) + - MIN ( - + 79 ) col0 query I rowsort label-8003 @@ -41606,7 +41606,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\(\*\) 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 @@ -41636,7 +41636,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -41792,7 +41792,7 @@ SELECT 50 + 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\(\*\)\) AS col2" at position 0 and "\(\- count\(\*\)\) / 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\(1\)\) AS count\(\*\)\) / Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, - COUNT ( * ) / + + 1 AS col2 query I rowsort @@ -42036,7 +42036,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\(\*\) AS col0" at position 1 have the 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 @@ -42494,7 +42494,7 @@ SELECT 92 - COUNT ( * ) * - MIN ( DISTINCT 17 ) # 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\(\*\) \* \(\- 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\(61\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(\(\- Int64\(62\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 AS col1, COUNT ( * ) * - COUNT ( - ( 62 ) ) AS col1 query I rowsort @@ -44853,7 +44853,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(64\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + 64 AS col1, 31 AS col1 query I rowsort @@ -45406,7 +45406,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -46482,7 +46482,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\(\*\) AS col2" at position 1 have the 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 @@ -49164,7 +49164,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- \(\- Int64\(86\)\)\) AS col0" at position 0 and "count\(\*\) \* 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\(\*\)\) \+ \(\- \(\- Int64\(86\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - ( - + ( ( 86 ) ) ) AS col0, COUNT ( * ) * - 86 AS col0 query I rowsort label-9518 @@ -50484,7 +50484,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\(\*\) AS col1" at position 1 have the 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 @@ -50960,7 +50960,7 @@ SELECT 71 + + COUNT ( * ) * + + COUNT ( * ) # Datafusion - Expected - -4 # Datafusion - Expected - 32 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ \(\- count\(\*\)\) AS col2" at position 1 and "Int64\(\-91\) 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\(33\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 and "Int64\(\-91\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 13 + - - 9, + 33 + - COUNT ( * ) AS col2, - 91 AS col2 query II rowsort @@ -51509,7 +51509,7 @@ SELECT ALL NULLIF ( CAST ( - - 54 AS INTEGER ), - - SUM ( ALL + 46 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(45\) AS col2" at position 0 and "\(\- count\(\*\)\) \* \(\- count\(\*\)\) \+ Int64\(75\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(45\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(75\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + 45 AS col2, - COUNT ( * ) * - COUNT ( * ) + 75 + - 73 AS col2 query I rowsort label-9965 diff --git a/data/sqlite/random/expr/slt_good_66.slt b/data/sqlite/random/expr/slt_good_66.slt index 34da0a4..7acec9d 100644 --- a/data/sqlite/random/expr/slt_good_66.slt +++ b/data/sqlite/random/expr/slt_good_66.slt @@ -836,7 +836,7 @@ SELECT ( + 22 ), 52 + - - 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 865 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* \(\- Int64\(\-21\)\) \+ count\(\*\) \- Int64\(\-24\) 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\(40\) \* \(\- Int64\(\-21\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-24\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 40 * - - 21 + + COUNT ( * ) - - 24 AS col2, 15 AS col2 query I rowsort @@ -1822,7 +1822,7 @@ SELECT - 79 + - NULLIF ( + + COUNT ( * ), - 40 - 97 ) * + + 17 * - - 7 + + 7 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) / Int64\(\-6\) \* Int64\(36\) \- Int64\(12\) AS col2" at position 0 and "Int64\(52\) \+ 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\(\*\)\)\) / Int64\(\-6\) \* Int64\(36\) \- Int64\(12\) AS col2" at position 0 and "Int64\(52\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - COUNT ( * ) ) / + - 6 * 36 - 12 AS col2, 52 + + 54 col2 query I rowsort label-339 @@ -2380,7 +2380,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -2604,7 +2604,7 @@ SELECT 19 + 62 * 95 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 "\(\- max\(DISTINCT Int64\(43\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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\(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 DISTINCT - MAX ( DISTINCT 43 ) AS col2, - COUNT ( * ) col2 query II rowsort label-488 @@ -4352,7 +4352,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\(\*\) 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 @@ -4603,7 +4603,7 @@ SELECT - 1 AS col0, 83 * - 85 # Datafusion - Expected - -6 # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-38\), Int64\(51\) \+ Int64\(10\) \+ Int64\(99\)\) \+ CASE Int64\(38\) WHEN \(\- count\(\*\)\) THEN \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), \(\- count\(\*\)\) / Int64\(92\)\)\) WHEN min\(DISTINCT coalesce\(Int64\(21\), Int64\(\-61\), Int64\(43\)\)\) THEN Int64\(99\) END \* count\(\*\) \+ \(\- Int64\(33\)\) / Int64\(16\) AS col0" at position 1 and "Int64\(28\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-38\), Int64\(51\) \+ Int64\(10\) \+ Int64\(99\)\) \+ CASE Int64\(38\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(92\)\)\) WHEN min\(DISTINCT coalesce\(Int64\(21\), Int64\(\-61\), Int64\(43\)\)\) THEN Int64\(99\) END \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(33\)\) / Int64\(16\) AS col0" at position 1 and "Int64\(28\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6, NULLIF ( - 38, ( 51 ) + ( 10 ) + 99 ) + CASE + + 38 WHEN - + COUNT ( * ) THEN - NULLIF ( - CAST ( NULL AS INTEGER ), + - COUNT ( * ) / 92 ) WHEN MIN ( DISTINCT + COALESCE ( + 21, - 61, 43 ) ) THEN + 99 END * COUNT ( * ) + - + 33 / + 16 col0, + 28 AS col0 query I rowsort label-871 @@ -5405,7 +5405,7 @@ NULL # 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\(\*\)\) AS col0" at position 0 and "Int64\(84\) / 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\(84\) / Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) AS col0, 84 / + 10 col0 query I rowsort label-1022 @@ -6634,7 +6634,7 @@ SELECT ALL + ( - + 93 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(77\) 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\(\*\)\) \* Int64\(77\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * 77 AS col2, 47 AS col2 query II rowsort label-1255 @@ -7601,7 +7601,7 @@ SELECT + - COUNT ( * ) + + 69 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -375 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(5\) AS col0" at position 0 and "count\(\*\) \+ Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(5\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 75 * + 5 col0, COUNT ( * ) + 26 AS col0 query I rowsort @@ -8457,7 +8457,7 @@ SELECT - + COUNT ( * ), COUNT ( DISTINCT - + 63 ) * - COUNT ( * ) + + - 71 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 56 -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\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 94 AS col2, + COUNT ( * ) + 55 AS col2 query I rowsort @@ -9085,7 +9085,7 @@ SELECT - COUNT ( * ) - - + 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) AS col0" at position 0 and "CASE Int64\(86\) WHEN \(\- count\(\*\)\) THEN NULL WHEN Int64\(3\) THEN Int64\(62\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) AS col0" at position 0 and "CASE Int64\(86\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(3\) THEN Int64\(62\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - 35 ) AS col0, + CASE + + 86 WHEN - COUNT ( * ) THEN NULL WHEN 3 THEN 62 END AS col0 query I rowsort @@ -9713,7 +9713,7 @@ SELECT ALL 29 AS col0, 18 - 75 AS col1 # Datafusion - Expected - -85 # Datafusion - Expected - -62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(62\)\)\) AS col0" at position 1 and "Int64\(6\) / \(\- Int64\(58\)\) \+ \(\- \(\- 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 "\(\- max\(Int64\(62\)\)\) AS col0" at position 1 and "Int64\(6\) / \(\- Int64\(58\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 85, - MAX ( + + ( 62 ) ) AS col0, + 6 / - + 58 + - - COUNT ( * ) AS col0 query I rowsort label-1845 @@ -10302,7 +10302,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\(\*\) AS col2" at position 1 have the 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 @@ -10539,7 +10539,7 @@ SELECT ALL 52 + - 6 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\(\*\)\) AS col2" at position 0 and "CASE Int64\(\-16\) WHEN Int64\(96\) / Int64\(\-28\) THEN Int64\(\-11\) ELSE NULL END \* Int64\(35\) \* 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 "CASE Int64\(\-16\) WHEN Int64\(96\) / Int64\(\-28\) THEN Int64\(\-11\) ELSE NULL END \* Int64\(35\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, CASE - 16 WHEN 96 / - 28 THEN + - 11 ELSE NULL END * + 35 * + 69 col2 query II rowsort @@ -10588,7 +10588,7 @@ SELECT + + 78 + + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- count\(\*\)\) AS col1" at position 0 and "min\(CAST\(NULL AS Int32\)\) \+ Int64\(\-80\) \* count\(\*\) / \(\- Int64\(27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(CAST\(NULL AS Int32\)\) \+ Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 41 * + - COUNT ( * ) AS col1, MIN ( CAST ( NULL AS INTEGER ) ) + + - 80 * COUNT ( * ) / - + 27 AS col1 query I rowsort @@ -10938,7 +10938,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\(\*\) AS col1" at position 1 have the 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 @@ -13199,7 +13199,7 @@ SELECT DISTINCT 60 * - + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the 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 Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -14010,7 +14010,7 @@ SELECT - COALESCE ( + 74, - NULLIF ( - - 5, - COUNT ( * ) + - 38 ) ) AS col2, 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -56 -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\(\-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\(\-21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 21 AS col0, + COUNT ( * ) + - 57 AS col0 query I rowsort label-2662 @@ -14238,7 +14238,7 @@ SELECT 68, - 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 924 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(\-29\) \+ \(\- count\(\*\)\) \- Int64\(18\) \* Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(\-29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(18\) \* Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 AS col0, - 29 + - + COUNT ( * ) - 18 * - 53 AS col0 query I rowsort @@ -14352,7 +14352,7 @@ SELECT + 18 * - COUNT ( * ) + + 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 6885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) / \(\- Int64\(\-95\)\) AS col0" at position 0 and "CASE Int64\(\-67\) WHEN Int64\(19\) \+ Int64\(71\) THEN NULL WHEN \(\- nullif\(Int64\(44\), Int64\(\-53\) \* Int64\(2\)\)\) THEN Int64\(46\) \* \(\- Int64\(11\)\) / \(\- count\(\*\)\) WHEN Int64\(\-1\) \+ Int64\(53\) THEN Int64\(\-65\) \* \(\- Int64\(35\)\) \- CAST\(NULL AS Int32\) ELSE Int64\(85\) \* Int64\(81\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) / \(\- Int64\(\-95\)\) AS col0" at position 0 and "CASE Int64\(\-67\) WHEN Int64\(19\) \+ Int64\(71\) THEN NULL WHEN \(\- nullif\(Int64\(44\), Int64\(\-53\) \* Int64\(2\)\)\) THEN Int64\(46\) \* \(\- Int64\(11\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-1\) \+ Int64\(53\) THEN Int64\(\-65\) \* \(\- Int64\(35\)\) \- CAST\(NULL AS Int32\) ELSE Int64\(85\) \* Int64\(81\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( ALL + 54 ) / - - 95 AS col0, CASE - 67 WHEN 19 + 71 THEN NULL WHEN - NULLIF ( 44, - 53 * + ( + 2 ) ) THEN 46 * + ( - + 11 ) / - COUNT ( * ) WHEN + - 1 + + + 53 THEN + - 65 * - + 35 - + CAST ( NULL AS INTEGER ) ELSE + 85 * + 81 END AS col0 query I rowsort @@ -14394,7 +14394,7 @@ SELECT ALL COUNT ( - - 21 ) # Datafusion - Expected - 40 # Datafusion - Expected - -260 # Datafusion - Expected - 32336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) AS col2" at position 0 and "Int64\(20\) \* \(\- count\(\*\)\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) AS col2" at position 0 and "Int64\(20\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 40 AS col2, 20 * - + COUNT ( * ) * + 13 col2, - + 4 * - + 94 * ( + 86 ) AS col2 query II rowsort @@ -15016,7 +15016,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\(\*\) 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 @@ -15579,7 +15579,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\(\*\) AS col1" at position 1 have the 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 @@ -16669,7 +16669,7 @@ NULL # 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\(\*\)\)\) 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 AS col0 query I rowsort label-3174 @@ -17421,7 +17421,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\(\*\) AS col2" at position 1 have the 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 @@ -17640,7 +17640,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\(\*\) AS col0" at position 1 have the 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 @@ -18261,7 +18261,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\(\*\) AS col1" at position 0 and "Int64\(\-46\) \* coalesce\(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 @@ -18809,7 +18809,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -52 -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\(52\) \* \(\- coalesce\(count\(\*\), \(\- Int64\(\-44\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(52\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(\-44\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 85 AS col1, COUNT ( * ) * 52 * - + COALESCE ( + COUNT ( * ), - - 44 ) AS col1 query II rowsort label-3579 @@ -18878,7 +18878,7 @@ SELECT + 43 * - - NULLIF ( - 19, + 50 + + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 485 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(88\) \- Int64\(5\) \* Int64\(69\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(88\) \- Int64\(5\) \* Int64\(69\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 52 + + 88 - + 5 * 69 * - ( + COUNT ( * ) ) AS col1, + 91 AS col1 query II rowsort label-3592 @@ -19134,7 +19134,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\(\*\) 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 @@ -19297,7 +19297,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\(\*\) AS col0" at position 1 have the 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 @@ -19959,7 +19959,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\(\*\) 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 @@ -20385,7 +20385,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5461 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(70\), \(\- CASE Int64\(84\) WHEN Int64\(\-86\) \* Int64\(90\) THEN Int64\(\-88\) END\)\)\) \* Int64\(\-79\) \+ Int64\(\-48\) / Int64\(\-46\) \* \(\- count\(\*\)\) \+ Int64\(\-68\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(70\), \(\- CASE Int64\(84\) WHEN Int64\(\-86\) \* Int64\(90\) THEN Int64\(\-88\) END\)\)\) \* Int64\(\-79\) \+ Int64\(\-48\) / Int64\(\-46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-68\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( 70, - + CASE + 84 WHEN - 86 * 90 THEN - 88 END ) * - 79 + - 48 / - 46 * - COUNT ( * ) + - 68 AS col2, - 13 AS col2 query I rowsort label-3881 @@ -20734,7 +20734,7 @@ SELECT 19 + - ( - 0 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- nullif\(Int64\(\-90\), count\(\*\) \+ Int64\(\-15\)\)\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- nullif\(Int64\(\-90\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-15\)\)\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - NULLIF ( - 90, + COUNT ( * ) + - 15 ) AS col1, - 5 AS col1 query I rowsort label-3948 @@ -20984,7 +20984,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\(\*\) 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 @@ -21290,7 +21290,7 @@ SELECT + 64 AS col1, 88 * - - 80 # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, - 46 AS col2 query I rowsort @@ -21868,7 +21868,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 595 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) AS col0" at position 0 and "CASE \(\- max\(CAST\(NULL AS Float64\)\)\) WHEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) / Int64\(40\) THEN count\(\*\) WHEN Int64\(\-58\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(44\)\) \+ Int64\(16\) \* \(\- Int64\(\-42\)\) \* Int64\(8\) \* Int64\(58\) THEN Int64\(24\) \+ Int64\(\-22\) \* \(\- Int64\(31\)\) WHEN Int64\(\-88\) \* Int64\(\-92\) \* Int64\(18\) THEN NULL ELSE \(\- nullif\(\(\- Int64\(\-96\)\), Int64\(93\) \+ CASE \(\- Int64\(\-76\)\) WHEN Int64\(18\) THEN Int64\(\-58\) \* Int64\(31\) WHEN Int64\(35\) THEN NULL END \+ \(\- Int64\(0\)\) \* \(\- count\(\*\)\)\)\) / Int64\(53\) \+ Int64\(8\) END \* Int64\(85\) \+ Int64\(\-21\) / nullif\(Int64\(46\) \* \(\- count\(\*\)\), Int64\(50\) \+ Int64\(\-18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) AS col0" at position 0 and "CASE \(\- max\(CAST\(NULL AS Float64\)\)\) WHEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) / Int64\(40\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-58\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(44\)\) \+ Int64\(16\) \* \(\- Int64\(\-42\)\) \* Int64\(8\) \* Int64\(58\) THEN Int64\(24\) \+ Int64\(\-22\) \* \(\- Int64\(31\)\) WHEN Int64\(\-88\) \* Int64\(\-92\) \* Int64\(18\) THEN NULL ELSE \(\- nullif\(\(\- Int64\(\-96\)\), Int64\(93\) \+ CASE \(\- Int64\(\-76\)\) WHEN Int64\(18\) THEN Int64\(\-58\) \* Int64\(31\) WHEN Int64\(35\) THEN NULL END \+ \(\- Int64\(0\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(53\) \+ Int64\(8\) END \* Int64\(85\) \+ Int64\(\-21\) / nullif\(Int64\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(50\) \+ Int64\(\-18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( ALL 54 ) AS col0, CASE - + MAX ( CAST ( NULL AS FLOAT8 ) ) WHEN - CAST ( NULL AS INTEGER ) * - 74 / 40 THEN + COUNT ( * ) WHEN - 58 * CAST ( NULL AS INTEGER ) + + COUNT ( + 44 ) + + 16 * + ( - - 42 ) * + ( + 8 ) * 58 THEN + 24 + - 22 * - + 31 WHEN - 88 * - 92 * 18 THEN NULL ELSE - NULLIF ( ( - - 96 ), + 93 + + CASE - - 76 WHEN + + 18 THEN - 58 * + 31 WHEN + 35 THEN NULL END + + - ( 0 ) * - COUNT ( * ) ) / 53 + ( 8 ) END * + 85 + - 21 / + NULLIF ( 46 * - COUNT ( * ), + 50 + - 18 ) col0 query I rowsort label-4164 @@ -23972,7 +23972,7 @@ SELECT COUNT ( * ) + 61 * - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -975 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-13\) AS col2" at position 0 and "\(\- Int64\(52\)\) \- \(\- \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-13\) AS col2" at position 0 and "\(\- Int64\(52\)\) \- \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 * - 13 AS col2, ( - + 52 ) - + - ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2 query I rowsort label-4561 @@ -24195,7 +24195,7 @@ SELECT + ( + CASE + 55 WHEN 93 - + + NULLIF ( - + CASE + ( - 78 ) WHEN + AVG ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - -1435 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col1" at position 0 and "\(\- coalesce\(\(\- Int64\(98\)\), \(\- coalesce\(Int64\(2\), Int64\(\-44\) \+ count\(\*\), \(\- count\(Int64\(\-13\)\)\) \+ Int64\(82\) \+ Int64\(11\)\)\)\)\) \- Int64\(73\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col1" at position 0 and "\(\- coalesce\(\(\- Int64\(98\)\), \(\- coalesce\(Int64\(2\), Int64\(\-44\) \+ count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(\-13\)\)\) \+ Int64\(82\) \+ Int64\(11\)\)\)\)\) \- Int64\(73\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 79 AS col1, - COALESCE ( - + 98, + - COALESCE ( 2, - 44 + + COUNT ( * ), - + COUNT ( - 13 ) + 82 + + + 11 ) ) - 73 * + 21 AS col1 query I rowsort label-4604 @@ -24375,7 +24375,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\(\*\) 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 @@ -24452,7 +24452,7 @@ SELECT 10, - COUNT ( * ) * - + 17 / - 28 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), ( + - COUNT ( * ) ) query I rowsort @@ -27172,7 +27172,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\(\*\) AS col0" at position 1 have the 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 @@ -27470,7 +27470,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 940 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(68\) AS col2" at position 0 and "Int64\(20\) \* 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\(\*\) \* Int64\(68\) AS col2" at position 0 and "Int64\(20\) \* Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * 68 AS col2, 20 * + 47 AS col2 query I rowsort label-5233 @@ -28422,7 +28422,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\(\*\) AS col2" at position 1 have the 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 @@ -28540,7 +28540,7 @@ SELECT ALL 79 + + + CAST ( 39 AS INTEGER ) AS col1 # Datafusion - Expected - 5699 # Datafusion - Expected - -28 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(0\) \+ \(\- nullif\(\(\- \(\- max\(DISTINCT Int64\(\-63\)\)\)\), \(\- Int64\(\-9\)\)\)\) \* Int64\(89\) AS col2" at position 0 and "\(\- CASE CAST\(NULL AS Float64\) WHEN Int64\(\-91\) \* Int64\(34\) THEN NULL ELSE count\(\*\) END\) \- \(\- count\(\*\)\) \* \(\- Int64\(67\)\) \+ Int64\(\-20\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(0\) \+ \(\- nullif\(\(\- \(\- max\(DISTINCT Int64\(\-63\)\)\)\), \(\- Int64\(\-9\)\)\)\) \* Int64\(89\) AS col2" at position 0 and "\(\- CASE CAST\(NULL AS Float64\) WHEN Int64\(\-91\) \* Int64\(34\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(67\)\) \+ Int64\(\-20\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 92 + + 0 + + - ( + NULLIF ( - - MAX ( DISTINCT - 63 ), - - 9 ) ) * + 89 AS col2, - 28, - + CASE + CAST ( NULL AS FLOAT8 ) WHEN - 91 * 34 THEN NULL ELSE + COUNT ( * ) END - - COUNT ( * ) * - + 67 + - 20 AS col2 query I rowsort label-5434 @@ -28998,7 +28998,7 @@ SELECT - + 3, 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(20\)\) \+ count\(\*\) \- Int64\(41\) AS col1" at position 0 and "count\(Int64\(58\)\) \* Int64\(\-79\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(20\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(41\) AS col1" at position 0 and "count\(Int64\(58\)\) \* Int64\(\-79\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL 20 ) + COUNT ( * ) - 41 AS col1, COUNT ( + + 58 ) * - 79 + 25 AS col1 query I rowsort @@ -29539,7 +29539,7 @@ SELECT DISTINCT + - 96 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 14 -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\(\-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\(\-5\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( + - 5 ) AS col0, - COUNT ( * ) * ( + - 14 ) AS col0 query II rowsort @@ -29966,7 +29966,7 @@ SELECT + NULLIF ( + 3, + 73 * 99 ) * + 80 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3184 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(91\) \* Int64\(\-35\) AS col2" at position 0 and "Int64\(70\) / coalesce\(Int64\(97\), Int64\(\-44\) \* Int64\(23\) \+ Int64\(\-38\) \+ Int64\(65\), Int64\(\-47\)\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) \* Int64\(\-35\) AS col2" at position 0 and "Int64\(70\) / coalesce\(Int64\(97\), Int64\(\-44\) \* Int64\(23\) \+ Int64\(\-38\) \+ Int64\(65\), Int64\(\-47\)\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 91 * + - 35 AS col2, 70 / + COALESCE ( + 97, - 44 * + 23 + - 38 + + 65, + - 47 ) + 54 AS col2 query I rowsort label-5705 @@ -30400,7 +30400,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1761 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ \(\- Int64\(\-35\)\) \* Int64\(50\) AS col0" at position 0 and "count\(\*\) \* \(\- 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\(11\) \+ \(\- Int64\(\-35\)\) \* Int64\(50\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 + - ( - 35 ) * 50 AS col0, COUNT ( * ) * - + 99 AS col0 query I rowsort label-5786 @@ -30866,7 +30866,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\(\*\) AS col1" at position 1 have the 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 @@ -31130,7 +31130,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1134 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-81\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-81\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 * - 81 AS col2, ( - COUNT ( * ) ) + 55 AS col2 query I rowsort @@ -31295,7 +31295,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\(\*\) AS col2" at position 0 and "Int64\(\-78\) \+ coalesce\(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 @@ -32627,7 +32627,7 @@ SELECT ALL - ( - 78 ) / - 67 + COALESCE ( - 0, - 56 ) / - 26 * + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2813 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(\-27\) \+ CAST\(nullif\(Int64\(61\), count\(\*\) \* \(\- Int64\(26\)\) \+ Int64\(32\) \+ \(\- \(\- CAST\(Int64\(84\) AS Float64\)\)\) \+ \(\- Int64\(\-58\)\) \* CASE Int64\(\-97\) WHEN Int64\(96\) THEN Int64\(87\) WHEN count\(\*\) / Int64\(93\) THEN \(\- Int64\(\-9\)\) ELSE count\(\*\) END\) AS Int32\) \- Int64\(\-17\) \+ Int64\(\-94\) \* Int64\(\-38\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(\-27\) \+ CAST\(nullif\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(26\)\) \+ Int64\(32\) \+ \(\- \(\- CAST\(Int64\(84\) AS Float64\)\)\) \+ \(\- Int64\(\-58\)\) \* CASE Int64\(\-97\) WHEN Int64\(96\) THEN Int64\(87\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(93\) THEN \(\- Int64\(\-9\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\) \- Int64\(\-17\) \+ Int64\(\-94\) \* Int64\(\-38\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 * - 27 + CAST ( NULLIF ( + 61, + COUNT ( * ) * - + 26 + 32 + - - CAST ( 84 AS FLOAT8 ) + - - 58 * + CASE + ( - 97 ) WHEN 96 THEN + 87 WHEN + + COUNT ( * ) / + 93 THEN - - 9 ELSE + + COUNT ( * ) END ) AS INTEGER ) - - 17 + - 94 * - 38 AS col2, 20 AS col2 query I rowsort label-6214 @@ -32690,7 +32690,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\(\*\) 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 @@ -34421,7 +34421,7 @@ SELECT + COUNT ( * ) * + + 21 * - 32 + 20 + 25 + + + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \- Int64\(73\) \+ Int64\(35\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \- Int64\(73\) \+ Int64\(35\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 58 - 73 + 35 col2, - COUNT ( * ) + - 79 AS col2 query I rowsort label-6558 @@ -34794,7 +34794,7 @@ SELECT ALL + 72 * + 68 # Datafusion - Expected - 15052 # Datafusion - Expected - 43 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(4\) \* Int64\(53\) AS col0" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) / count\(\*\) \+ 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\(71\) \* Int64\(4\) \* Int64\(53\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * + + 4 * + 53 AS col0, NULLIF ( + 43, COUNT ( * ) * - ( - 40 ) ), COUNT ( * ) * + - COUNT ( * ) / + COUNT ( * ) + 18 AS col0 query I rowsort label-6630 @@ -35547,7 +35547,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\(6\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(14\) \* Int64\(\-26\) \* Int64\(\-2\) \+ count\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -37298,7 +37298,7 @@ SELECT ALL 65 AS col2, + 99 * - 68 + + 67 * - 55 # 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\(\*\)\) AS col1" at position 1 have the 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 DISTINCT 16 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -37485,7 +37485,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\(\*\) AS col1" at position 1 have the 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 @@ -38057,7 +38057,7 @@ SELECT - SUM ( ALL COALESCE ( 20, + 3 + + 60 ) ) / - + 93 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(1\) \+ Int64\(52\) \+ Int64\(\-16\) / Int64\(\-43\) \* count\(\*\) / Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(1\) \+ Int64\(52\) \+ Int64\(\-16\) / Int64\(\-43\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 52 / + 76 col1, + CAST ( NULL AS INTEGER ) / + 1 + + + 52 + ( + - 16 ) / - 43 * COUNT ( * ) / - 5 AS col1 query I rowsort label-7252 @@ -38173,7 +38173,7 @@ SELECT ALL 11 * - - 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 329712 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- \(\- nullif\(\(\- Int64\(74\)\), Int64\(83\) \+ \(\- CAST\(Int64\(19\) AS Int32\)\) / \(\- count\(\*\)\) \+ Int64\(\-85\)\)\)\) \* Int64\(45\) \+ Int64\(42\) AS col1" at position 0 and "min\(Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- \(\- nullif\(\(\- Int64\(74\)\), Int64\(83\) \+ \(\- CAST\(Int64\(19\) AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-85\)\)\)\) \* Int64\(45\) \+ Int64\(42\) AS col1" at position 0 and "min\(Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 99 * - - NULLIF ( - + 74, + 83 + - + CAST ( 19 AS INTEGER ) / - COUNT ( * ) + - 85 ) * + + 45 + 42 AS col1, MIN ( + 87 ) col1 query I rowsort label-7273 @@ -38451,7 +38451,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(67\) AS col0" at position 0 and "\(\- sum\(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\(\*\) \+ Int64\(67\) AS col0" at position 0 and "\(\- sum\(Int64\(30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + + 67 AS col0, - SUM ( + 30 ) AS col0 query I rowsort label-7325 @@ -38730,7 +38730,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\(\*\)\)\) 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\(\*\) 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 @@ -40619,7 +40619,7 @@ SELECT ALL 77 + + COUNT ( * ) - + - 54 + + 35 + 58 - + MIN ( + + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2351 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(46\) \* \(\- count\(\*\)\) \* Int64\(52\) 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 "Int64\(41\) \+ Int64\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(52\) 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 ( 41 ) + + + 46 * - + COUNT ( * ) * + 52 col2, - 92 AS col2 query I rowsort @@ -41299,7 +41299,7 @@ SELECT - 30 * + 36 col1, 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(99\)\) 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\(\*\) \* \(\- Int64\(99\)\) 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 ( * ) * - + 99 AS col2, 68 AS col2 query I rowsort @@ -43637,7 +43637,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\(\*\) 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 @@ -43836,7 +43836,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "\(\- CASE Int64\(\-28\) WHEN count\(\*\) \* \(\- count\(\*\)\) THEN NULL WHEN Int64\(56\) THEN \(\- Int64\(\-36\)\) 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\(68\) AS col2" at position 0 and "\(\- CASE Int64\(\-28\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(56\) THEN \(\- Int64\(\-36\)\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 AS col2, - CASE - 28 WHEN COUNT ( * ) * - COUNT ( * ) THEN NULL WHEN + 56 THEN - - 36 ELSE NULL END AS col2 query I rowsort label-8351 @@ -44699,7 +44699,7 @@ SELECT ALL 18 + - + COUNT ( * ) AS col1 # 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 "CASE Int64\(\-79\) WHEN \(\- count\(\*\)\) THEN NULL WHEN Int64\(88\) THEN Int64\(95\) ELSE \(\- count\(\*\)\) END AS col1" at position 0 and "Int64\(20\) \+ 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 "CASE Int64\(\-79\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(88\) THEN Int64\(95\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(20\) \+ Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE - 79 WHEN + - COUNT ( * ) THEN NULL WHEN + 88 THEN 95 ELSE - COUNT ( * ) END AS col1, 20 + + 44 AS col1 query I rowsort label-8515 @@ -44803,7 +44803,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\(\*\) 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 @@ -45121,7 +45121,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\(\*\) AS col0" at position 1 have 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 @@ -45256,7 +45256,7 @@ SELECT ALL COUNT ( 64 ) + - - 92 # 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\(\*\)\) AS col1" at position 1 have the 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 ( * ) col1 query I rowsort label-8621 @@ -47285,7 +47285,7 @@ SELECT + 34 + - 11 + COUNT ( * ) * + ( - 22 ) / + - 46 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 1548 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(56\)\) AS col2" at position 0 and "coalesce\(Int64\(36\), \(\- count\(\*\)\), Int64\(\-17\)\) \* 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 "max\(Int64\(56\)\) AS col2" at position 0 and "coalesce\(Int64\(36\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-17\)\) \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( ALL + 56 ) AS col2, + COALESCE ( 36, + - COUNT ( * ), - 17 ) * + 43 AS col2 query I rowsort @@ -47808,7 +47808,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\(\*\) 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 @@ -48004,7 +48004,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\(\*\) AS col0" at position 1 have the 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 @@ -48177,7 +48177,7 @@ SELECT - 73 / + CASE - + 52 WHEN + - 19 - + + 39 THEN NULL WHEN - 26 + - - 37 / # Datafusion - Datafusion expected results: # Datafusion - Expected - 143 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(87\) / \(\- \(\- 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\(56\) \+ Int64\(87\) / \(\- \(\- 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 + 56 + + 87 / - - COUNT ( * ) AS col0, 22 col0 query I rowsort @@ -48605,7 +48605,7 @@ SELECT + 56 * - - 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "\(\- sum\(Int64\(62\)\)\) \* \(\- count\(\*\)\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "\(\- sum\(Int64\(62\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 78 AS col0, - ( SUM ( ALL 62 ) ) * - COUNT ( * ) + + 14 AS col0 query I rowsort label-9259 @@ -48631,7 +48631,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(62\), \(\- Int64\(17\)\) \+ count\(\*\) \+ Int64\(1\) \* count\(\*\) \* \(\- Int64\(\-56\)\) / 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 "nullif\(Int64\(62\), \(\- Int64\(17\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-56\)\) / 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 + + NULLIF ( + 62, - + 17 + + COUNT ( * ) + 1 * + ( COUNT ( * ) ) * - - 56 / ( COUNT ( * ) ) ) AS col2, - 70 col2 query I rowsort @@ -48992,7 +48992,7 @@ SELECT DISTINCT - 27 + + 31 # Datafusion - Expected - -67 # Datafusion - Expected - 45 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-68\) 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\(\*\) \+ Int64\(\-68\) 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 ( * ) + - 68 AS col2, 45 AS col2, - - 89 query II rowsort @@ -49587,7 +49587,7 @@ SELECT COUNT ( * ) / - COALESCE ( 29, SUM ( DISTINCT + + 13 ) ) + - 78 * 21 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 1342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "Int64\(6\) \+ \(\- Int64\(\-80\)\) \+ count\(\*\) \- Int64\(\-42\) \* \(\- Int64\(\-32\)\) \- 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\(\-78\) AS col2" at position 0 and "Int64\(6\) \+ \(\- Int64\(\-80\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-42\) \* \(\- Int64\(\-32\)\) \- Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 78 AS col2, 6 + - - 80 + + COUNT ( * ) - - 42 * - + ( - 32 ) - + 89 AS col2 query I rowsort label-9445 @@ -51472,7 +51472,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\(\*\) AS col0" at position 1 have the 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 25e3c9f..f3905ee 100644 --- a/data/sqlite/random/expr/slt_good_67.slt +++ b/data/sqlite/random/expr/slt_good_67.slt @@ -381,7 +381,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\(\*\) AS col2" at position 1 have the 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 @@ -1337,7 +1337,7 @@ SELECT DISTINCT 96 + + - 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4288 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(64\) AS col0" at position 0 and "count\(\*\) \- count\(\*\) \* count\(\(\- Int64\(\-39\)\)\) \* Int64\(\-87\) \+ 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\(67\) \* Int64\(64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* count\(\(\- Int64\(\-39\)\)\) \* Int64\(\-87\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 * + 64 AS col0, COUNT ( * ) - COUNT ( * ) * COUNT ( ALL - - 39 ) * - 87 + + 37 AS col0 # Datafusion - Types were automatically converted from: @@ -1940,7 +1940,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\(\*\) AS col0" at position 0 and "\(\- 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 @@ -2246,7 +2246,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\(\*\) AS col1" at position 1 have the 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 @@ -2843,7 +2843,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\(\*\) 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 @@ -3874,7 +3874,7 @@ SELECT - 3 * - 32 * - 50 + + + COUNT ( * ) AS col1, + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 313 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(20\)\) / Int64\(40\) \* Int64\(\-13\) AS col0" at position 0 and "Int64\(31\) \+ \(\- count\(\*\)\) \* Int64\(28\) \* Int64\(\-9\) \+ 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 "min\(Int64\(20\)\) / Int64\(40\) \* Int64\(\-13\) AS col0" at position 0 and "Int64\(31\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(28\) \* Int64\(\-9\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL + + 20 ) / + 40 * + - 13 AS col0, 31 + - COUNT ( * ) * + 28 * - 9 + + 30 AS col0 query II rowsort label-730 @@ -6529,7 +6529,7 @@ SELECT - + 84 * ( + 74 ) * COUNT ( * ) * + COUNT ( * ) - + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(\-43\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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\(\-43\) \* \(\- 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 ) ) AS col1, - 43 * - COUNT ( * ) AS col1 query I rowsort label-1234 @@ -8970,7 +8970,7 @@ SELECT COUNT ( * ) * - + 20 * - 21 / + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 152528 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \- \(\- Int64\(36\)\) \+ \(\- count\(\*\)\) \+ Int64\(47\) \* Int64\(47\) \* Int64\(69\) AS col1" at position 0 and "Int64\(\-13\) / 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 "Int64\(72\) \- \(\- Int64\(36\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(47\) \* Int64\(47\) \* Int64\(69\) AS col1" at position 0 and "Int64\(\-13\) / CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 - - + 36 + - COUNT ( * ) + 47 * + 47 * + 69 col1, - 13 / CAST ( NULL AS FLOAT8 ) AS col1 query I rowsort @@ -9235,7 +9235,7 @@ SELECT ALL + 73 * COUNT ( * ) / - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(\*\)\) AS col2" at position 0 and "CASE Int64\(\-75\) WHEN Int64\(53\) THEN NULL WHEN \(\- Int64\(\-61\)\) \- Int64\(68\) THEN \(\- Int64\(\-15\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(\-75\) WHEN Int64\(53\) THEN NULL WHEN \(\- Int64\(\-61\)\) \- Int64\(68\) THEN \(\- Int64\(\-15\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 71 - - COUNT ( * ) AS col2, CASE - 75 WHEN 53 THEN NULL WHEN - ( - 61 ) - + 68 THEN - - 15 END col2 query I rowsort @@ -9266,7 +9266,7 @@ SELECT + COUNT ( + 10 ) * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -244882 # Datafusion - Expected - -273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / Int64\(82\) \+ count\(\*\) \* Int64\(\-38\) \+ Int64\(33\) \* count\(\*\) \+ min\(\(\- Int64\(77\)\)\) \- \(\- Int64\(80\)\) \* \(\- Int64\(\-85\)\) \* \(\- Int64\(36\)\) AS col2" at position 0 and "Int64\(3\) \* \(\- Int64\(91\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / Int64\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-38\) \+ Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \+ min\(\(\- Int64\(77\)\)\) \- \(\- Int64\(80\)\) \* \(\- Int64\(\-85\)\) \* \(\- Int64\(36\)\) AS col2" at position 0 and "Int64\(3\) \* \(\- Int64\(91\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 / + 82 + + COUNT ( * ) * - 38 + 33 * + COUNT ( * ) + + MIN ( - + 77 ) - - ( + 80 ) * - - 85 * - + 36 AS col2, + 3 * - + 91 AS col2 query I rowsort @@ -10342,7 +10342,7 @@ SELECT ALL + 78 * + 37 * + 76 * - - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2556 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(Int64\(16\) AS Int32\) AS Int32\) \+ count\(\*\) \+ Int64\(0\) \+ \(\- Int64\(85\)\) \+ Int64\(64\) \* Int64\(41\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-13\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(Int64\(16\) AS Int32\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(0\) \+ \(\- Int64\(85\)\) \+ Int64\(64\) \* Int64\(41\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-13\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + CAST ( + + 16 AS INTEGER ) AS INTEGER ) + COUNT ( * ) + - 0 + - + 85 + 64 * + 41 AS col1, - CAST ( - 13 AS INTEGER ) AS col1 query I rowsort @@ -10488,7 +10488,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "count\(\*\) \+ Int64\(41\) \- count\(\*\) \* Int64\(79\) \* Int64\(89\) \* Int64\(90\) \* Int64\(\-92\) \+ Int64\(82\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-91\) \- count\(\*\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) \* Int64\(89\) \* Int64\(90\) \* Int64\(\-92\) \+ Int64\(82\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-91\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 91 col2, COUNT ( * ) + 41 - COUNT ( * ) * + + 79 * 89 * + 90 * - 92 + + 82 + - + CAST ( NULL AS INTEGER ) - - 91 - + COUNT ( * ) * 79 AS col2 query I rowsort label-1991 @@ -11671,7 +11671,7 @@ SELECT + 57 * ( + MAX ( - 65 ) ) + + 66 * + 12 - + - ( - 1 ) col1, - 68 + - 49 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "min\(Int64\(4\)\) \+ \(\- count\(\*\)\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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 "min\(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 99 AS col1, + MIN ( + 4 ) + - + COUNT ( * ) - - + COUNT ( * ) AS col1 query I rowsort @@ -12028,7 +12028,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\(\*\) 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 @@ -12967,7 +12967,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\(\*\) AS col2" at position 1 have the 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 @@ -13136,7 +13136,7 @@ SELECT + 62 * - ( 89 ) * + 54 + + 39 + + 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ \(\- avg\(Int64\(57\)\)\) \* CAST\(NULL AS Float64\) \* Int64\(51\) \+ Int64\(27\) AS col0" at position 0 and "Int64\(38\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\) \+ \(\- avg\(Int64\(57\)\)\) \* CAST\(NULL AS Float64\) \* Int64\(51\) \+ Int64\(27\) 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 + - 34 + - AVG ( + 57 ) * CAST ( NULL AS FLOAT8 ) * 51 + + + 27 AS col0, 38 * - COUNT ( * ) AS col0 query II rowsort label-2496 @@ -13640,7 +13640,7 @@ SELECT ALL - 4 * - + 69 - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4000 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-50\) \* Int64\(80\) AS col1" at position 0 and "sum\(Int64\(\-10\)\) \- 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\(\*\) \* Int64\(\-50\) \* Int64\(80\) AS col1" at position 0 and "sum\(Int64\(\-10\)\) \- Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + - 50 * + 80 AS col1, + SUM ( + - 10 ) - - 21 AS col1 query I rowsort label-2593 @@ -16341,7 +16341,7 @@ SELECT ALL 56 / - + 96 + - - 3 + - 80 + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "\(\- count\(\*\)\) \* Int64\(0\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(\*\)\) \* Int64\(0\) \* \(\- \(\- 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 ( * ) * + + 0 * - - COUNT ( * ) AS col1 query I rowsort label-3113 @@ -16592,7 +16592,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\(\*\) AS col2" at position 1 have the 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 @@ -17583,7 +17583,7 @@ SELECT DISTINCT + 70 * + NULLIF ( - 76, + 21 * + COUNT ( * ) * + MIN ( ALL - - 2 # 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 Float64\) AS col0" at position 0 and "nullif\(\(\- nullif\(\(\- \(\- Int64\(76\)\)\), Int64\(\-60\) / nullif\(Int64\(\-23\), Int64\(\-69\) \* Int64\(\-68\) \+ Int64\(88\) \* count\(\*\) \+ Int64\(32\) \* Int64\(\-73\)\) \+ Int64\(43\)\)\), Int64\(36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "nullif\(\(\- nullif\(\(\- \(\- Int64\(76\)\)\), Int64\(\-60\) / nullif\(Int64\(\-23\), Int64\(\-69\) \* Int64\(\-68\) \+ Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(32\) \* Int64\(\-73\)\) \+ Int64\(43\)\)\), Int64\(36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) AS col0, NULLIF ( - NULLIF ( - - ( + 76 ), - 60 / + NULLIF ( + - 23, + - 69 * + - 68 + + 88 * + COUNT ( * ) + + 32 * - 73 ) + + 43 ), 36 ) AS col0 query I rowsort label-3351 @@ -18129,7 +18129,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\(\*\) 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 @@ -18756,7 +18756,7 @@ SELECT ALL - 64 + + - COALESCE ( + COUNT ( * ), - 23 * + 13 - - + CASE - SUM ( 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4636 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ min\(Int64\(\-60\)\) \* Int64\(77\) AS col1" at position 0 and "count\(\*\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ min\(Int64\(\-60\)\) \* Int64\(77\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 + + MIN ( - 60 ) * + 77 AS col1, COUNT ( * ) + + 10 AS col1 query I rowsort label-3574 @@ -19253,7 +19253,7 @@ SELECT 89 * - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-78\) AS col2" at position 0 and "Int64\(\-48\) \* \(\- \(\- count\(\*\)\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-78\) AS col2" at position 0 and "Int64\(\-48\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 78 AS col2, - 48 * - - ( COUNT ( * ) ) + - ( - CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -19944,7 +19944,7 @@ NULL # Datafusion - Expected - -23 # Datafusion - Expected - 2 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(8\) AS col1" at position 1 and "\(\- Int64\(\-63\)\) \- CAST\(Int64\(7\) AS Int32\) \+ Int64\(51\) \* \(\- nullif\(count\(\*\), Int64\(69\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(8\) AS col1" at position 1 and "\(\- Int64\(\-63\)\) \- CAST\(Int64\(7\) AS Int32\) \+ Int64\(51\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(69\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23, + 19 / 8 AS col1, - ( + - 63 ) - + CAST ( 7 AS INTEGER ) + + 51 * - + NULLIF ( + + COUNT ( * ), + 69 ) AS col1 query II rowsort @@ -20116,7 +20116,7 @@ SELECT + 59 / + COALESCE ( - 69, 4 * 83, 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-9\) 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\(\*\) \* Int64\(\-9\) 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 ( * ) * + - 9 col2, 47 AS col2 query II rowsort @@ -21069,7 +21069,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\(\*\) AS col0" at position 1 have the 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 @@ -22116,7 +22116,7 @@ SELECT - 52 / - COUNT ( * ) - CAST ( NULL AS FLOAT8 ) + - + 96 + + 16 * - + 84 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 329 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(\-5\) \+ Int64\(29\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-5\) \+ 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 - 60 * - 5 + 29 AS col1, - ( COUNT ( * ) ) AS col1 query I rowsort label-4205 @@ -22138,7 +22138,7 @@ SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7055 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-83\), Int64\(80\) \+ count\(\*\), Int64\(\-13\) \* Int64\(85\)\) \* Int64\(85\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-83\), Int64\(80\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(\-13\) \* Int64\(85\)\) \* Int64\(85\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - 83, + 80 + COUNT ( * ), - 13 * + ( 85 ) ) * 85 AS col2, + 27 AS col2 query I rowsort label-4209 @@ -22681,7 +22681,7 @@ SELECT + SUM ( DISTINCT - 25 ) * - 65 * - 31 AS col0, 49 * + - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-34\) 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\(\*\) \+ Int64\(\-34\) 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 + COUNT ( * ) + - 34 AS col2, + 12 AS col2 query I rowsort @@ -22943,7 +22943,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\(\*\) AS col0" at position 0 and "Int64\(16\) \- count\(\*\) AS col0" at position 1 have the 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 @@ -22954,7 +22954,7 @@ SELECT + 34 / 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ CASE Int64\(44\) WHEN coalesce\(\(\- \(\- nullif\(\(\- count\(\*\)\), Int64\(55\) \* Int64\(\-7\) \+ Int64\(46\)\)\)\), Int64\(45\) / CAST\(NULL AS Int32\) \* \(\- count\(\*\)\), Int64\(78\) \+ Int64\(90\) \- Int64\(\-20\) \* Int64\(\-42\) / Int64\(35\), Int64\(\-76\)\) \- \(\- count\(DISTINCT Int64\(\-88\)\)\) THEN \(\- count\(\*\)\) WHEN \(\- Int64\(11\)\) \+ Int64\(\-98\) / Int64\(\-89\) THEN NULL END \* Int64\(35\) AS col2" at position 0 and "Int64\(23\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ CASE Int64\(44\) WHEN coalesce\(\(\- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(55\) \* Int64\(\-7\) \+ Int64\(46\)\)\)\), Int64\(45\) / CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(78\) \+ Int64\(90\) \- Int64\(\-20\) \* Int64\(\-42\) / Int64\(35\), Int64\(\-76\)\) \- \(\- count\(DISTINCT Int64\(\-88\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(11\)\) \+ Int64\(\-98\) / Int64\(\-89\) THEN NULL END \* Int64\(35\) AS col2" at position 0 and "Int64\(23\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 + CASE 44 WHEN + COALESCE ( - - NULLIF ( - COUNT ( * ), 55 * - 7 + 46 ), 45 / + + CAST ( NULL AS INTEGER ) * - COUNT ( * ), 78 + 90 - - 20 * - 42 / 35, + - 76 ) - - COUNT ( DISTINCT - 88 ) THEN - COUNT ( * ) WHEN + ( - + 11 ) + - 98 / - 89 THEN NULL END * + + 35 AS col2, 23 + ( - + MIN ( + 12 ) ) * + 19 AS col2 query I rowsort @@ -25671,7 +25671,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\(\*\) 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 @@ -26090,7 +26090,7 @@ SELECT ( - + 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ \(\- coalesce\(coalesce\(Int64\(34\), CAST\(NULL AS Int32\), Int64\(\-78\) \+ Int64\(34\) \+ Int64\(89\) \* Int64\(97\), count\(\*\)\), \(\- Int64\(72\)\)\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(coalesce\(Int64\(34\), CAST\(NULL AS Int32\), Int64\(\-78\) \+ Int64\(34\) \+ Int64\(89\) \* Int64\(97\), count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(72\)\)\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) + - COALESCE ( + ( COALESCE ( + 34, CAST ( NULL AS INTEGER ), - 78 + + 34 + + 89 * 97, COUNT ( * ) ) ), - ( 72 ) ) + 77 AS col1 query I rowsort label-4969 @@ -26246,7 +26246,7 @@ SELECT - + 62 + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \+ Int64\(69\) AS col2" at position 0 and "Int64\(\-37\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \+ Int64\(69\) 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 + - 87 + + 69 AS col2, - 37 * - COUNT ( * ) AS col2 query I rowsort label-4999 @@ -26783,7 +26783,7 @@ SELECT + - 17 + + 24 + + + 36 * - 78 * + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(79\), \(\- Int64\(\-63\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(1\) AS Int32\)\) \* Int64\(65\) \+ \(\- Int64\(\-34\)\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(79\), \(\- Int64\(\-63\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(1\) AS Int32\)\) \* Int64\(65\) \+ \(\- Int64\(\-34\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + + ( 79 ), - - 63 ) AS col0, - CAST ( 1 AS INTEGER ) * + 65 + - - 34 * - + COUNT ( * ) AS col0 query I rowsort label-5102 @@ -27715,7 +27715,7 @@ SELECT ( 84 ) + - 80 + CAST ( + 42 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5248 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(\-96\) \- \(\- coalesce\(\(\- \(\- Int64\(\-99\)\)\), Int64\(\-44\), Int64\(77\)\)\) \* \(\- Int64\(\-53\)\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(12\) \* CASE WHEN NOT NULL NOT IN \(\[\(\- count\(\*\)\)\]\) THEN Int64\(\-77\) \+ Int64\(11\) \+ nullif\(Int64\(46\), Int64\(\-34\)\) \* Int64\(27\) ELSE NULL END \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-96\) \- \(\- coalesce\(\(\- \(\- Int64\(\-99\)\)\), Int64\(\-44\), Int64\(77\)\)\) \* \(\- Int64\(\-53\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(12\) \* CASE WHEN NOT NULL NOT IN \(\[\(\- count\(Int64\(1\)\) AS count\(\*\)\)\]\) THEN Int64\(\-77\) \+ Int64\(11\) \+ nullif\(Int64\(46\), Int64\(\-34\)\) \* Int64\(27\) ELSE NULL END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 97 + - 96 - - COALESCE ( - - ( - 99 ), + + ( - 44 ), 77 ) * + ( - - 53 ) * + - COUNT ( * ) col1, 12 * + CASE WHEN ( NOT NULL NOT IN ( + - COUNT ( * ) ) ) THEN - 77 + + 11 + NULLIF ( 46, - 34 ) * + 27 ELSE NULL END * - COUNT ( * ) AS col1 query II rowsort label-5277 @@ -28125,7 +28125,7 @@ SELECT ALL - 66 * 55 - + 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "\(\- count\(\*\)\) \* \(\- CAST\(Int64\(36\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(Int64\(36\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + - 35 ) AS col0, - COUNT ( * ) * + + ( - CAST ( 36 AS INTEGER ) ) AS col0 query I rowsort @@ -29069,7 +29069,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\(\*\) AS col2" at position 1 have the 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 @@ -29092,7 +29092,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\(\*\) 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 @@ -29185,7 +29185,7 @@ SELECT DISTINCT + ( + - COUNT ( * ) ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ coalesce\(\(\- CAST\(\(\- Int64\(\-48\)\) AS Int32\)\), \(\- sum\(Int64\(22\)\)\), \(\- Int64\(\-56\)\)\) \+ Int64\(17\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(\(\- CAST\(\(\- Int64\(\-48\)\) AS Int32\)\), \(\- sum\(Int64\(22\)\)\), \(\- Int64\(\-56\)\)\) \+ Int64\(17\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + COALESCE ( + - CAST ( - - 48 AS INTEGER ), - SUM ( 22 ), - ( - 56 ) ) + + 17 col2, 82 AS col2 query I rowsort label-5557 @@ -29947,7 +29947,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\(\*\) AS col0" at position 1 have the 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 @@ -30274,7 +30274,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\(\*\) AS col1" at position 1 have 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 @@ -30496,7 +30496,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(73\) \- Int64\(99\) \+ \(\- count\(\*\)\) \* \(\- count\(\*\)\) \* Int64\(12\) \+ Int64\(26\) \+ \(\- 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\(79\) AS col1" at position 0 and "Int64\(73\) \- Int64\(99\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(12\) \+ Int64\(26\) \+ \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 AS col1, 73 - 99 + + ( - COUNT ( * ) ) * - COUNT ( * ) * 12 + + + 26 + - - 33 AS col1 query I rowsort label-5809 @@ -30663,7 +30663,7 @@ SELECT ALL + + 84 * 42 + - 16 * + 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(86\), \(\- coalesce\(\(\- Int64\(\-46\)\), count\(\*\), Int64\(15\) \* Int64\(67\) \+ Int64\(87\) \+ Int64\(\-95\) \+ Int64\(25\) \+ Int64\(\-98\)\)\)\) AS col1" at position 0 and "Int64\(44\) / \(\- CASE count\(\*\) WHEN Int64\(\-43\) \+ \(\- \(\- coalesce\(Int64\(\-69\), Int64\(\-86\), Int64\(\-24\)\)\)\) \* \(\- count\(\*\)\) / Int64\(\-2\) THEN Int64\(38\) \* \(\- nullif\(CASE \(\- Int64\(23\)\) WHEN \(\- Int64\(87\)\) \+ Int64\(67\) THEN NULL WHEN \(\- count\(\*\)\) \+ Int64\(90\) / Int64\(\-99\) \* Int64\(55\) \+ Int64\(\-70\) \* Int64\(28\) \* \(\- avg\(Int64\(91\)\)\) THEN Int64\(20\) END, nullif\(Int64\(30\), Int64\(\-3\)\) \+ Int64\(71\)\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(86\), \(\- coalesce\(\(\- Int64\(\-46\)\), count\(Int64\(1\)\) AS count\(\*\), Int64\(15\) \* Int64\(67\) \+ Int64\(87\) \+ Int64\(\-95\) \+ Int64\(25\) \+ Int64\(\-98\)\)\)\) AS col1" at position 0 and "Int64\(44\) / \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-43\) \+ \(\- \(\- coalesce\(Int64\(\-69\), Int64\(\-86\), Int64\(\-24\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-2\) THEN Int64\(38\) \* \(\- nullif\(CASE \(\- Int64\(23\)\) WHEN \(\- Int64\(87\)\) \+ Int64\(67\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(90\) / Int64\(\-99\) \* Int64\(55\) \+ Int64\(\-70\) \* Int64\(28\) \* \(\- avg\(Int64\(91\)\)\) THEN Int64\(20\) END, nullif\(Int64\(30\), Int64\(\-3\)\) \+ Int64\(71\)\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( 86, - COALESCE ( + - ( - 46 ), ( + COUNT ( * ) ), 15 * + + 67 + + 87 + - 95 + 25 + + - 98 ) ) col1, 44 / - CASE + + COUNT ( * ) WHEN - 43 + - - COALESCE ( - 69, + - 86, - 24 ) * - + COUNT ( * ) / - 2 THEN + 38 * + - NULLIF ( CASE - + 23 WHEN - + 87 + 67 THEN NULL WHEN - COUNT ( * ) + + 90 / - 99 * 55 + - 70 * 28 * - AVG ( ALL 91 ) THEN 20 END, NULLIF ( 30, - 3 ) + + 71 ) END col1 query I rowsort label-5841 @@ -31261,7 +31261,7 @@ SELECT ALL 73 col0, ( - 57 ) * - 43 * + 30 + + COALESCE ( - SUM ( 36 ), + 71 / + # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(9\)\)\) AS col1" at position 0 and "Int64\(45\) \* count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(9\)\)\) AS col1" at position 0 and "Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( DISTINCT + 9 ) AS col1, 45 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-5955 @@ -32522,7 +32522,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\(\*\) WHEN count\(\*\) \* nullif\(Int64\(\-96\), CAST\(NULL AS Float64\) \* Int64\(25\) \+ Int64\(67\)\) THEN NULL WHEN \(\- 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\(\*\)\) 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\(\*\) AS Int32\)\) AS col1" at position 1 have 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 @@ -33772,7 +33772,7 @@ SELECT ALL - ( - 71 ) col0 # Datafusion - Expected - 66 # Datafusion - Expected - NULL # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 and "Int64\(98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 and "Int64\(98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, + ( 98 ) AS col1 query I rowsort label-6441 @@ -33833,7 +33833,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\(\*\) AS col2" at position 1 have the 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 @@ -35112,7 +35112,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\(\*\) 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 @@ -36476,7 +36476,7 @@ SELECT + - 90 * + 40 AS col2 # 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 "coalesce\(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 "Int64\(\-52\) AS col1" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 52 AS col1, + COALESCE ( + + COUNT ( * ), + 99 ) AS col1 query II rowsort label-6961 @@ -37438,7 +37438,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\(\*\) AS col0" at position 1 have the 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 @@ -37694,7 +37694,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\(\*\) 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 @@ -38220,7 +38220,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(\-37\) \+ \(\- count\(\*\)\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 AS col1, - 37 + - COUNT ( * ) + - 86 AS col1 query I rowsort label-7288 @@ -39988,7 +39988,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\(\*\) AS col0" at position 1 have the 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 @@ -40652,7 +40652,7 @@ SELECT 6 + - 4 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\(\*\)\) AS col1" at position 1 have the 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 DISTINCT - 77 AS col1, - COUNT ( * ) AS col1 query I rowsort label-7753 @@ -41256,7 +41256,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\(\*\) AS col0" at position 1 have the 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 @@ -41407,7 +41407,7 @@ SELECT - + 83 / + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \- CASE Int64\(63\) WHEN Int64\(7\) / \(\- count\(\*\)\) \* Int64\(56\) \+ Int64\(\-11\) THEN CAST\(NULL AS Int32\) WHEN Int64\(16\) \+ sum\(Int64\(94\)\) / Int64\(\-8\) THEN \(\- CASE Int64\(68\) WHEN min\(Int64\(19\)\) \* count\(\*\) THEN Int64\(88\) WHEN Int64\(55\) THEN Int64\(32\) ELSE Int64\(72\) END\) \- \(\- Int64\(\-24\)\) END / Int64\(24\) / Int64\(32\) AS col1" at position 0 and "min\(Int64\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \- CASE Int64\(63\) WHEN Int64\(7\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(56\) \+ Int64\(\-11\) THEN CAST\(NULL AS Int32\) WHEN Int64\(16\) \+ sum\(Int64\(94\)\) / Int64\(\-8\) THEN \(\- CASE Int64\(68\) WHEN min\(Int64\(19\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(88\) WHEN Int64\(55\) THEN Int64\(32\) ELSE Int64\(72\) END\) \- \(\- Int64\(\-24\)\) END / Int64\(24\) / Int64\(32\) AS col1" at position 0 and "min\(Int64\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 61 - + CASE + + 63 WHEN 7 / - COUNT ( * ) * 56 + - 11 THEN + + CAST ( NULL AS INTEGER ) WHEN 16 + SUM ( 94 ) / - 8 THEN - CASE 68 WHEN + MIN ( ALL + 19 ) * + COUNT ( * ) THEN + + 88 WHEN + 55 THEN + 32 ELSE 72 END - - - 24 END / 24 / + 32 col1, MIN ( - 21 ) AS col1 query I rowsort @@ -43196,7 +43196,7 @@ SELECT 88 + ( + 39 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(71\) \* \(\- Int64\(4\)\) \+ Int64\(42\) \+ Int64\(12\) AS col0" at position 0 and "Int64\(\-76\) \+ Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(71\) \* \(\- Int64\(4\)\) \+ Int64\(42\) \+ Int64\(12\) AS col0" at position 0 and "Int64\(\-76\) \+ Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / + 71 * - + 4 + 42 + 12 AS col0, - 76 + 48 AS col0 query I rowsort label-8242 @@ -43778,7 +43778,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\(\*\) AS col0" at position 1 have the 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 @@ -43843,7 +43843,7 @@ SELECT 47 * + SUM ( ALL 39 ) col1 # 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 "count\(\*\) \+ Int64\(7\) \+ coalesce\(Int64\(0\), count\(\*\), Int64\(53\) \+ \(\- min\(Int64\(\-50\)\)\)\) 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\(\*\) \+ Int64\(7\) \+ coalesce\(Int64\(0\), count\(Int64\(1\)\) AS count\(\*\), Int64\(53\) \+ \(\- min\(Int64\(\-50\)\)\)\) 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 ( * ) + + 7 + + COALESCE ( - 0, + COUNT ( * ), 53 + - MIN ( ALL - 50 ) ) col1, - 85 AS col1 query I rowsort label-8364 @@ -43854,7 +43854,7 @@ SELECT DISTINCT - COUNT ( ALL + + 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 2 -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\(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\(72\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 72 AS col1, ( - ( + + COUNT ( * ) ) ) + 3 AS col1 query I rowsort @@ -45542,7 +45542,7 @@ SELECT 19 * COUNT ( * ) + 66 col1 # 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\(\*\)\)\) 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 ( * ) AS col0, - 55 AS col0 query I rowsort label-8691 @@ -45839,7 +45839,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\(\*\) AS col0" at position 1 have the 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 @@ -47737,7 +47737,7 @@ SELECT ALL 14, + 5 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\(\*\)\) 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 col1 query I rowsort @@ -47874,7 +47874,7 @@ SELECT ALL ( + 1 ), + 33 + 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(63\) 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\(\*\) \* Int64\(63\) 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 ( * ) * 63 AS col0, 27 AS col0 query I rowsort @@ -47923,7 +47923,7 @@ SELECT DISTINCT 32 + - COUNT ( * ) / + CAST ( + 9 AS INTEGER ) - - - 5 AS col0 # Datafusion - Expected - 0 # Datafusion - Expected - -3143 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(78\) AS col2" at position 0 and "Int64\(\-83\) \* Int64\(38\) \+ 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\(\*\) / Int64\(78\) AS col2" at position 0 and "Int64\(\-83\) \* Int64\(38\) \+ Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / + 78 AS col2, - 83 * 38 + 11 AS col2, - COUNT ( * ) query II rowsort label-9141 @@ -48429,7 +48429,7 @@ SELECT - MIN ( - 40 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(28\), \(\- max\(Int64\(87\)\)\)\)\) \+ min\(DISTINCT Int64\(62\)\) AS col2" at position 0 and "Int64\(11\) \* count\(\*\) \+ 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 "\(\- coalesce\(Int64\(28\), \(\- max\(Int64\(87\)\)\)\)\) \+ min\(DISTINCT Int64\(62\)\) AS col2" at position 0 and "Int64\(11\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( 28, - MAX ( + 87 ) ) + + MIN ( DISTINCT + 62 ) AS col2, 11 * + COUNT ( * ) + + 70 AS col2 query I rowsort label-9239 @@ -48936,7 +48936,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\(\*\) 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 - Datafusion expected results: @@ -49307,7 +49307,7 @@ SELECT 27 + - COUNT ( * ) + 79 / SUM ( DISTINCT - 45 ) - 77 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 484202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* coalesce\(Int64\(2\), Int64\(\-78\)\) AS col0" at position 0 and "Int64\(30\) / \(\- count\(\*\)\) \- \(\- Int64\(23\)\) \+ Int64\(99\) \* Int64\(67\) \* 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\(33\) \* coalesce\(Int64\(2\), Int64\(\-78\)\) AS col0" at position 0 and "Int64\(30\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(23\)\) \+ Int64\(99\) \* Int64\(67\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 33 * + COALESCE ( 2, - 78 ) AS col0, 30 / - COUNT ( * ) - - + 23 + 99 * + 67 * + 73 AS col0 query II rowsort label-9405 @@ -49406,7 +49406,7 @@ SELECT 68 / 30 * + - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-13\)\), Int64\(43\) / Int64\(91\)\)\) \+ \(\- Int64\(15\)\) \+ Int64\(84\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-55\), Int64\(31\) \- count\(\*\) \+ Int64\(89\) \- \(\- Int64\(\-59\)\)\)\) / Int64\(\-36\) \+ Int64\(\-78\) \+ Int64\(\-57\) \- 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 "\(\- nullif\(\(\- Int64\(\-13\)\), Int64\(43\) / Int64\(91\)\)\) \+ \(\- Int64\(15\)\) \+ Int64\(84\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-55\), Int64\(31\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(89\) \- \(\- Int64\(\-59\)\)\)\) / Int64\(\-36\) \+ Int64\(\-78\) \+ Int64\(\-57\) \- Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - - 13, + 43 / 91 ) + - + ( + + 15 ) + + 84 AS col0, - NULLIF ( + - 55, + 31 - + COUNT ( * ) + 89 - - - 59 ) / - 36 + - 78 + - 57 - 94 AS col0 query I rowsort @@ -49427,7 +49427,7 @@ SELECT COALESCE ( ( 52 ), - 14, - 74 * COUNT ( * ) ) * 96 / 77 / - 21 + CAST ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \* CAST\(Int64\(\-44\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(\-44\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + 4 ) AS col0, - COUNT ( * ) * CAST ( - 44 AS INTEGER ) AS col0 query I rowsort label-9428 @@ -49522,7 +49522,7 @@ SELECT - MIN ( DISTINCT ( - - 26 ) ) * COUNT ( + + 34 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(80\) 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\(\*\)\) \+ Int64\(80\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 80 AS col2, 86 AS col2 query II rowsort @@ -50004,7 +50004,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -50550,7 +50550,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(32\) \+ count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 AS col0, + 32 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) col0 query I rowsort label-9645 @@ -51108,7 +51108,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\(\*\) AS col0" at position 1 have the 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 @@ -51364,7 +51364,7 @@ SELECT ALL - 53 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-81\) AS col1" at position 0 and "Int64\(2\) / Int64\(35\) \* nullif\(CASE Int64\(45\) WHEN Int64\(45\) \+ Int64\(1\) \* CAST\(NULL AS Int32\) THEN Int64\(77\) END, count\(\*\) \+ Int64\(8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-81\) AS col1" at position 0 and "Int64\(2\) / Int64\(35\) \* nullif\(CASE Int64\(45\) WHEN Int64\(45\) \+ Int64\(1\) \* CAST\(NULL AS Int32\) THEN Int64\(77\) END, count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - 81 col1, 2 / + 35 * + + NULLIF ( CASE + 45 WHEN 45 + 1 * CAST ( NULL AS INTEGER ) THEN 77 END, + COUNT ( * ) + + 8 ) AS col1 query I rowsort label-9803 diff --git a/data/sqlite/random/expr/slt_good_68.slt b/data/sqlite/random/expr/slt_good_68.slt index bcaa3f3..502f008 100644 --- a/data/sqlite/random/expr/slt_good_68.slt +++ b/data/sqlite/random/expr/slt_good_68.slt @@ -441,7 +441,7 @@ SELECT - 31 * + + 53 * + COUNT ( * ) - 31 + + 76 + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(89\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(89\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 27 ) AS col2, 89 * + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -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\(\*\) 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\(\*\) \* \(\- count\(\*\)\) \* Int64\(\-3\) \+ Int64\(74\) AS col1" at position 0 and "Int64\(40\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -1737,7 +1737,7 @@ SELECT DISTINCT + COUNT ( DISTINCT - ( + 2 ) ) * - 9 AS col1, 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5680 # Datafusion - Expected - -819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-71\) AS col0" at position 0 and "\(\- CASE Int64\(35\) WHEN Int64\(38\) THEN NULL WHEN CAST\(NULL AS Int32\) THEN Int64\(81\) \* Int64\(60\) \* \(\- Int64\(\-70\)\) \* Int64\(\-14\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(93\)\) ELSE Int64\(39\) \* Int64\(21\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-71\) AS col0" at position 0 and "\(\- CASE Int64\(35\) WHEN Int64\(38\) THEN NULL WHEN CAST\(NULL AS Int32\) THEN Int64\(81\) \* Int64\(60\) \* \(\- Int64\(\-70\)\) \* Int64\(\-14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(93\)\) ELSE Int64\(39\) \* Int64\(21\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 80 * + - 71 AS col0, - CASE 35 WHEN + + 38 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 81 * + 60 * - - 70 * - 14 + - COUNT ( * ) + - + 93 ELSE + + 39 * + 21 END AS col0 query I rowsort label-325 @@ -2276,7 +2276,7 @@ SELECT ALL - 16 * + + 64 + - 80 - - - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- coalesce\(\(\- avg\(Int64\(\-53\)\)\), Int64\(4\), \(\- Int64\(1\)\) \+ Int64\(\-23\) \* Int64\(11\)\)\) \* Int64\(\-45\) \* \(\- count\(\*\)\) \+ \(\- \(\- CASE Int64\(\-5\) WHEN Int64\(\-30\) \+ Int64\(80\) \+ \(\- Int64\(59\)\) \+ Int64\(\-52\) \* Int64\(\-84\) THEN Int64\(\-27\) \+ Int64\(\-6\) END\)\) AS col0" at position 0 and "\(\- count\(Int64\(90\)\)\) \* count\(\*\) \+ Int64\(\-83\) / \(\- \(\- sum\(\(\- Int64\(26\)\)\)\)\) \+ \(\- nullif\(Int64\(90\), count\(\*\)\)\) AS col0" at position 1 have the 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\(\(\- avg\(Int64\(\-53\)\)\), Int64\(4\), \(\- Int64\(1\)\) \+ Int64\(\-23\) \* Int64\(11\)\)\) \* Int64\(\-45\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- CASE Int64\(\-5\) WHEN Int64\(\-30\) \+ Int64\(80\) \+ \(\- Int64\(59\)\) \+ Int64\(\-52\) \* Int64\(\-84\) THEN Int64\(\-27\) \+ Int64\(\-6\) END\)\) AS col0" at position 0 and "\(\- count\(Int64\(90\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-83\) / \(\- \(\- sum\(\(\- Int64\(26\)\)\)\)\) \+ \(\- nullif\(Int64\(90\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 16 * + - COALESCE ( + - AVG ( ALL - 53 ), + 4, - + 1 + - 23 * 11 ) * - 45 * - COUNT ( * ) + - ( + - CASE - 5 WHEN - 30 + + 80 + - + 59 + - 52 * - 84 THEN - 27 + - 6 END ) AS col0, - COUNT ( ALL + 90 ) * COUNT ( * ) + - 83 / - - SUM ( - + 26 ) + + - NULLIF ( 90, COUNT ( * ) ) AS col0 query I rowsort label-428 @@ -3234,7 +3234,7 @@ SELECT ALL 29 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -688 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(\-8\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-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 86 * ( - 8 ) AS col1, - COUNT ( * ) col1 query II rowsort label-610 @@ -3296,7 +3296,7 @@ SELECT 58 * + 13 + - 16 - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(98\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- CASE Int64\(\-94\) WHEN Int64\(24\) THEN count\(Int64\(\-26\)\) ELSE \(\- Int64\(\-60\)\) END\) \* Int64\(\-78\) AS col0" at position 0 and "Int64\(37\) \+ \(\- CASE Int64\(93\) WHEN Int64\(16\) \* Int64\(58\) \* Int64\(\-36\) \+ count\(\*\) \+ Int64\(\-56\) \* Int64\(48\) \* Int64\(2\) \* sum\(Int64\(68\)\) \* \(\- Int64\(17\)\) \* nullif\(\(\- Int64\(\-4\)\), Int64\(\-61\) \+ Int64\(16\) \+ Int64\(22\) \+ \(\- count\(\*\)\) / \(\- coalesce\(\(\- Int64\(73\)\), sum\(DISTINCT Int64\(\-85\)\) \* Int64\(17\) \+ Int64\(\-22\) \* Int64\(\-68\), CAST\(Int64\(82\) AS Int32\) / Int64\(39\)\)\) \+ Int64\(\-27\) \* Int64\(43\)\) THEN CAST\(NULL AS Int32\) \* Int64\(24\) WHEN nullif\(Int64\(\-26\), nullif\(Int64\(83\), \(\- min\(DISTINCT Int64\(54\)\)\) \+ Int64\(\-76\)\) \+ Int64\(\-22\)\) THEN NULL ELSE NULL END\) \+ Int64\(8\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(98\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- CASE Int64\(\-94\) WHEN Int64\(24\) THEN count\(Int64\(\-26\)\) ELSE \(\- Int64\(\-60\)\) END\) \* Int64\(\-78\) AS col0" at position 0 and "Int64\(37\) \+ \(\- CASE Int64\(93\) WHEN Int64\(16\) \* Int64\(58\) \* Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) \* Int64\(48\) \* Int64\(2\) \* sum\(Int64\(68\)\) \* \(\- Int64\(17\)\) \* nullif\(\(\- Int64\(\-4\)\), Int64\(\-61\) \+ Int64\(16\) \+ Int64\(22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- coalesce\(\(\- Int64\(73\)\), sum\(DISTINCT Int64\(\-85\)\) \* Int64\(17\) \+ Int64\(\-22\) \* Int64\(\-68\), CAST\(Int64\(82\) AS Int32\) / Int64\(39\)\)\) \+ Int64\(\-27\) \* Int64\(43\)\) THEN CAST\(NULL AS Int32\) \* Int64\(24\) WHEN nullif\(Int64\(\-26\), nullif\(Int64\(83\), \(\- min\(DISTINCT Int64\(54\)\)\) \+ Int64\(\-76\)\) \+ Int64\(\-22\)\) THEN NULL ELSE NULL END\) \+ Int64\(8\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 59 + + 98 + - + CAST ( NULL AS INTEGER ) + ( - CASE - 94 WHEN + 24 THEN + COUNT ( - 26 ) ELSE - - 60 END ) * - 78 AS col0, + 37 + - CASE 93 WHEN + ( 16 ) * + 58 * - 36 + + COUNT ( * ) + + - 56 * 48 * + 2 * + + SUM ( ALL + + 68 ) * - + 17 * + NULLIF ( - - 4, + - 61 + 16 + + 22 + - COUNT ( * ) / - COALESCE ( - + 73, + SUM ( DISTINCT - 85 ) * 17 + - 22 * - 68, + CAST ( 82 AS INTEGER ) / 39 ) + - 27 * 43 ) THEN + CAST ( NULL AS INTEGER ) * 24 WHEN + NULLIF ( - 26, NULLIF ( 83, - MIN ( DISTINCT 54 ) + - 76 ) + - 22 ) THEN NULL ELSE NULL END + + 8 * - 22 AS col0 query II rowsort @@ -3345,7 +3345,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\(\*\)\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -3455,7 +3455,7 @@ SELECT ALL 97 + 3 * 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5793 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- nullif\(Int64\(74\), Int64\(\-91\)\)\) \+ Int64\(89\) \+ Int64\(41\) \* CASE \(\- Int64\(\-61\)\) WHEN Int64\(\-82\) THEN \(\- count\(\*\)\) / \(\- count\(\*\)\) \* Int64\(\-20\) WHEN Int64\(53\) \* Int64\(50\) THEN NULL ELSE \(\- Int64\(\-28\)\) END AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- nullif\(Int64\(74\), Int64\(\-91\)\)\) \+ Int64\(89\) \+ Int64\(41\) \* CASE \(\- Int64\(\-61\)\) WHEN Int64\(\-82\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-20\) WHEN Int64\(53\) \* Int64\(50\) THEN NULL ELSE \(\- Int64\(\-28\)\) END 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 95 * - NULLIF ( + 74, - 91 ) + 89 + 41 * CASE - - 61 WHEN + - 82 THEN ( - COUNT ( * ) ) / - + COUNT ( * ) * - 20 WHEN 53 * 50 THEN NULL ELSE - + ( - 28 ) END AS col2, ( + 81 ) AS col2 query II rowsort label-652 @@ -3490,7 +3490,7 @@ SELECT - 26 * + 95 + + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4085 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- count\(\*\)\) \* Int64\(\-43\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-43\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 95 ) * + - COUNT ( * ) * - 43 AS col1, + 64 AS col1 # Datafusion - Types were automatically converted from: @@ -4263,7 +4263,7 @@ SELECT - COALESCE ( + + 67, + 27 * - - COUNT ( 8 ), - CAST ( - CAST ( NULL AS IN # 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\) AS col0" at position 0 and "Int64\(27\) / Int64\(73\) \* \(\- Int64\(\-80\)\) \* count\(\*\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(27\) / Int64\(73\) \* \(\- Int64\(\-80\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 95 AS col0, 27 / + ( 73 ) * - - 80 * + COUNT ( * ) * - 96 AS col0 query I rowsort label-806 @@ -5322,7 +5322,7 @@ SELECT ALL ( 30 ) * - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) AS col0, - ( + COUNT ( * ) ) col0 query I rowsort @@ -5746,7 +5746,7 @@ SELECT + 90 + - 9 * - 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -79 -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\(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\(\-2\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 AS col2, - COUNT ( * ) * + 79 AS col2 query I rowsort @@ -7931,7 +7931,7 @@ SELECT ALL 66 * - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - -850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(73\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) \* \(\- \(\- CAST\(\(\- CASE Int64\(\-34\) WHEN count\(\*\) THEN NULL WHEN avg\(DISTINCT Int64\(18\)\) \+ Int64\(81\) THEN max\(DISTINCT Int64\(\-31\)\) ELSE Int64\(85\) \* \(\- nullif\(Int64\(\-10\), Int64\(44\) / Int64\(73\)\)\) END\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CAST\(\(\- CASE Int64\(\-34\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN avg\(DISTINCT Int64\(18\)\) \+ Int64\(81\) THEN max\(DISTINCT Int64\(\-31\)\) ELSE Int64\(85\) \* \(\- nullif\(Int64\(\-10\), Int64\(44\) / Int64\(73\)\)\) END\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 53 + + + 73 + + - COUNT ( * ) AS col2, COUNT ( * ) * - - CAST ( - CASE - 34 WHEN + COUNT ( * ) THEN NULL WHEN + AVG ( DISTINCT + 18 ) + + 81 THEN + MAX ( DISTINCT - 31 ) ELSE 85 * - NULLIF ( - 10, 44 / 73 ) END AS INTEGER ) AS col2 query I rowsort label-1512 @@ -8635,7 +8635,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\(\*\) AS col0" at position 0 and "Int64\(3\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -9757,7 +9757,7 @@ SELECT ( - + 59 ) - 38 - + 31 / + + 2 AS col0, - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 139191 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(83\) \* Int64\(39\) \* \(\- count\(\*\)\) / \(\- 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\(43\) \* Int64\(83\) \* Int64\(39\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- 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 DISTINCT + 43 * 83 * 39 * + - COUNT ( * ) / - COUNT ( * ) AS col1, - 65 AS col1 query I rowsort label-1858 @@ -9944,7 +9944,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\(\*\) AS col0" at position 1 have the 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 @@ -11929,7 +11929,7 @@ SELECT 29 * - + 97 AS col1, 1 + 46 - - 9 # 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\(48\) \+ Int64\(\-13\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-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 + 48 + - 13 col0, - COUNT ( * ) AS col0 query I rowsort label-2269 @@ -12309,7 +12309,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\(\*\) 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 @@ -12604,7 +12604,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-83\) \* \(\- count\(\*\)\) \- Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-83\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 25 AS col1, - 83 * - COUNT ( * ) - + 15 AS col1 query I rowsort @@ -13803,7 +13803,7 @@ SELECT COUNT ( + - 77 ) + + + COUNT ( * ) * + 22 # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) AS col2, 87 col2 query I rowsort @@ -17133,7 +17133,7 @@ SELECT DISTINCT 98 * 21 * + - MIN ( ALL + - ( + 65 ) ) * - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-94\)\)\) AS col2" at position 0 and "count\(\*\) \* 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 "\(\- sum\(DISTINCT Int64\(\-94\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( DISTINCT - 94 ) AS col2, + COUNT ( * ) * 56 col2 query I rowsort @@ -17334,7 +17334,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\(\*\) AS col1" at position 1 have the 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 @@ -17812,7 +17812,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(65\)\), Int64\(20\) \+ count\(\*\) \+ Int64\(\-1\)\)\) AS col2" at position 0 and "Int64\(83\) \+ 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 "\(\- nullif\(\(\- Int64\(65\)\), Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-1\)\)\) AS col2" at position 0 and "Int64\(83\) \+ Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - + 65, + + 20 + COUNT ( * ) + + ( - 1 ) ) AS col2, 83 + - 51 AS col2 query I rowsort @@ -17901,7 +17901,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\(\*\) / 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 @@ -18460,7 +18460,7 @@ SELECT DISTINCT CASE - - 2 WHEN + - 78 THEN NULL ELSE + + 51 END AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -449984 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* \(\- Int64\(\-79\)\) \* nullif\(Int64\(89\), Int64\(88\)\) AS col1" at position 0 and "Int64\(14\) \- Int64\(48\) \* \(\- count\(\*\)\) \- Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* \(\- Int64\(\-79\)\) \* nullif\(Int64\(89\), Int64\(88\)\) AS col1" at position 0 and "Int64\(14\) \- Int64\(48\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 64 * - - 79 * NULLIF ( 89, + 88 ) AS col1, 14 - 48 * - COUNT ( * ) - - 58 AS col1 query I rowsort @@ -18649,7 +18649,7 @@ SELECT - 86 / - + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* \(\- CASE sum\(Int64\(94\)\) WHEN \(\- \(\- count\(\*\)\)\) THEN \(\- count\(\*\)\) WHEN \(\- count\(\*\)\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "Int64\(57\) / 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\(\-4\) \* \(\- CASE sum\(Int64\(94\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "Int64\(57\) / Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 * - + CASE + SUM ( ALL + 94 ) WHEN - - COUNT ( * ) THEN - COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL ELSE NULL END AS col0, 57 / + 3 AS col0 query I rowsort label-3556 @@ -18887,7 +18887,7 @@ NULL # 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 "\(\- count\(\*\)\) \* Int64\(2\) AS col1" at position 0 and "Int64\(70\) / 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\(\*\)\) \* Int64\(2\) AS col1" at position 0 and "Int64\(70\) / Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * + 2 col1, 70 / + 27 AS col1 query II rowsort label-3600 @@ -20020,7 +20020,7 @@ SELECT MAX ( ALL 25 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4608 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-64\) \* \(\- 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\(\-64\) \* \(\- Int64\(\-72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col1, - 64 * - - 72 AS col1 query I rowsort @@ -20445,7 +20445,7 @@ SELECT COUNT ( 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "Int64\(\-69\) \+ Int64\(\-44\) \* \(\- CASE count\(\*\) WHEN \(\- Int64\(39\)\) THEN Int64\(85\) \+ Int64\(91\) 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\(77\) AS col2" at position 0 and "Int64\(\-69\) \+ Int64\(\-44\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(39\)\) THEN Int64\(85\) \+ Int64\(91\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 77 AS col2, - 69 + + - 44 * - CASE COUNT ( * ) WHEN - + 39 THEN + + 85 + 91 ELSE NULL END AS col2 query I rowsort label-3896 @@ -20538,7 +20538,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\(\*\) AS col2" at position 1 have the 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 @@ -23462,7 +23462,7 @@ SELECT + 55 * 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "CASE Int64\(\-97\) WHEN \(\- count\(\*\)\) THEN \(\- CASE \(\- Int64\(74\)\) WHEN \(\- CAST\(nullif\(Int64\(\-64\), Int64\(41\)\) AS Int32\)\) THEN Int64\(23\) END\) WHEN Int64\(10\) \* Int64\(38\) \* Int64\(\-67\) THEN NULL ELSE NULL END \* Int64\(66\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "CASE Int64\(\-97\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- CASE \(\- Int64\(74\)\) WHEN \(\- CAST\(nullif\(Int64\(\-64\), Int64\(41\)\) AS Int32\)\) THEN Int64\(23\) END\) WHEN Int64\(10\) \* Int64\(38\) \* Int64\(\-67\) THEN NULL ELSE NULL END \* Int64\(66\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 68 AS col0, + CASE - 97 WHEN + - COUNT ( * ) THEN - + CASE - + 74 WHEN - + CAST ( + NULLIF ( - 64, + 41 ) AS INTEGER ) THEN + ( 23 ) END WHEN 10 * + 38 * - 67 THEN NULL ELSE NULL END * + 66 * - 15 AS col0 query I rowsort label-4473 @@ -24822,7 +24822,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\(\*\) 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 @@ -26189,7 +26189,7 @@ SELECT ALL + - 29 * + - 11 + - + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3331926 # Datafusion - Expected - -2838 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(66\)\) \+ Int64\(58\) \* Int64\(\-53\) \* count\(\*\) \+ Int64\(14\) \+ Int64\(10\) \* Int64\(95\) \* min\(\(\- Int64\(\-73\)\)\) \* Int64\(\-48\) AS col1" at position 0 and "Int64\(43\) \* \(\- max\(Int64\(66\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(66\)\) \+ Int64\(58\) \* Int64\(\-53\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) \+ Int64\(10\) \* Int64\(95\) \* min\(\(\- Int64\(\-73\)\)\) \* Int64\(\-48\) AS col1" at position 0 and "Int64\(43\) \* \(\- max\(Int64\(66\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - + 66 + + 58 * - 53 * + COUNT ( * ) + ( 14 ) + 10 * + 95 * + + MIN ( - - 73 ) * - 48 AS col1, 43 * - MAX ( ALL 66 ) AS col1 query I rowsort label-4994 @@ -27047,7 +27047,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\(\*\) AS col2" at position 1 have 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 @@ -27806,7 +27806,7 @@ SELECT - MAX ( + + 56 ) / + CAST ( + + 64 AS INTEGER ) + + 69 * + - 77 * + - COU # Datafusion - Datafusion expected results: # Datafusion - Expected - -5765760 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(\-91\) \* Int64\(\-11\) \* Int64\(\-90\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-91\) \* Int64\(\-11\) \* Int64\(\-90\) AS col2" at 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 * - 91 * - 11 * + - 90 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -28111,7 +28111,7 @@ SELECT ALL + + 60 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -152 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(\-34\) \+ Int64\(2\) \* Int64\(44\) / \(\- 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 "Int64\(\-30\) \+ Int64\(\-34\) \+ Int64\(2\) \* Int64\(44\) / \(\- 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 - 30 + - 34 + 2 * 44 / - COUNT ( * ) col2, - ( + 17 ) AS col2 query I rowsort @@ -28317,7 +28317,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\(\*\) 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 @@ -30071,7 +30071,7 @@ SELECT DISTINCT + SUM ( - 0 ) AS col1, 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -115500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(98\) AS col2" at position 0 and "Int64\(75\) \* Int64\(55\) \* 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\(\*\)\) \* Int64\(98\) AS col2" at position 0 and "Int64\(75\) \* Int64\(55\) \* Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * 98 AS col2, 75 * + 55 * - 28 AS col2 query I rowsort label-5732 @@ -30565,7 +30565,7 @@ SELECT + 82 * - 72 * - + COUNT ( * ) AS col1, - 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "coalesce\(coalesce\(Int64\(26\), Int64\(\-39\) \+ Int64\(46\), Int64\(\-16\) \+ count\(\*\) \- nullif\(\(\- \(\- count\(\*\)\)\), \(\- Int64\(\-73\)\)\) \* Int64\(\-12\)\), CASE Int64\(59\) WHEN \(\- Int64\(97\)\) THEN NULL WHEN Int64\(17\) THEN Int64\(1\) END \- sum\(Int64\(\-63\)\) \- Int64\(44\), \(\- \(\- count\(\*\)\)\)\) \+ \(\- 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\(82\) AS col2" at position 0 and "coalesce\(coalesce\(Int64\(26\), Int64\(\-39\) \+ Int64\(46\), Int64\(\-16\) \+ count\(Int64\(1\)\) AS count\(\*\) \- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- Int64\(\-73\)\)\) \* Int64\(\-12\)\), CASE Int64\(59\) WHEN \(\- Int64\(97\)\) THEN NULL WHEN Int64\(17\) THEN Int64\(1\) END \- sum\(Int64\(\-63\)\) \- Int64\(44\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ \(\- Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 AS col2, COALESCE ( + COALESCE ( + + 26, - 39 + + 46, - 16 + COUNT ( * ) - NULLIF ( - - COUNT ( * ), - - 73 ) * - 12 ), CASE + 59 WHEN - + 97 THEN NULL WHEN 17 THEN + 1 END - + SUM ( ALL - 63 ) - + + 44, - - COUNT ( * ) ) + - - 30 AS col2 query I rowsort @@ -31496,7 +31496,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\(\*\) 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 @@ -33356,7 +33356,7 @@ SELECT DISTINCT ( 13 ) AS 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 17 col1, - COUNT ( * ) AS col1 query I rowsort @@ -33773,7 +33773,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\(\*\) 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 @@ -34416,7 +34416,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\(\*\) AS col2" at position 1 have the 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 @@ -34463,7 +34463,7 @@ SELECT - - 32 * + ( COUNT ( - 63 ) ) AS col0 # 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 "\(\- max\(DISTINCT Int64\(1\)\)\) AS col0" at position 0 and "Int64\(36\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have 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\(1\)\)\) 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 - MAX ( DISTINCT 1 ) AS col0, 36 * - - COUNT ( * ) AS col0 query II rowsort label-6570 @@ -34501,7 +34501,7 @@ SELECT DISTINCT + MIN ( 46 ) * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(count\(\*\), Int64\(\-67\)\)\) \+ Int64\(\-48\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-67\)\)\) \+ Int64\(\-48\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + COUNT ( * ), - 67 ) + - 48 + + CAST ( NULL AS INTEGER ) AS col1, + 63 AS col1 query I rowsort @@ -34907,7 +34907,7 @@ SELECT ALL - 57 / + + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(9\)\)\) \* \(\- \(\- 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 "sum\(\(\- Int64\(9\)\)\) \* \(\- \(\- 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 SUM ( - + 9 ) * - - COUNT ( * ) AS col2, 2 AS col2 query I rowsort @@ -35262,7 +35262,7 @@ SELECT DISTINCT + 47 * + COUNT ( * ) AS col0, + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(82\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(56\) \* \(\- Int64\(69\)\) \+ \(\- \(\- max\(Int64\(\-94\)\)\)\) \* \(\- \(\- nullif\(Int64\(7\), \(\- CAST\(Int64\(32\) AS Float64\)\)\)\)\) \- coalesce\(Int64\(76\), Int64\(83\), \(\- Int64\(\-23\)\) \* Int64\(62\)\) \- Int64\(69\) / \(CASE count\(\*\) WHEN Int64\(51\) THEN NULL WHEN Int64\(\-95\) \* Int64\(32\) THEN Int64\(9\) END \+ nullif\(count\(\*\), \(\- CAST\(Int64\(77\) AS Float64\)\) \- Int64\(57\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(82\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(56\) \* \(\- Int64\(69\)\) \+ \(\- \(\- max\(Int64\(\-94\)\)\)\) \* \(\- \(\- nullif\(Int64\(7\), \(\- CAST\(Int64\(32\) AS Float64\)\)\)\)\) \- coalesce\(Int64\(76\), Int64\(83\), \(\- Int64\(\-23\)\) \* Int64\(62\)\) \- Int64\(69\) / \(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(51\) THEN NULL WHEN Int64\(\-95\) \* Int64\(32\) THEN Int64\(9\) END \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(Int64\(77\) AS Float64\)\) \- Int64\(57\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * 82 AS col0, 7 + + 56 * - + 69 + - - MAX ( ALL - 94 ) * + + ( - - NULLIF ( 7, ( - CAST ( 32 AS FLOAT8 ) ) ) ) - COALESCE ( + 76, + 83, - - 23 * + 62 ) - + ( 69 ) / ( + CASE COUNT ( * ) WHEN + 51 THEN NULL WHEN ( - 95 ) * 32 THEN 9 END + NULLIF ( ( COUNT ( * ) ), - CAST ( + 77 AS FLOAT8 ) - 57 ) ) AS col0 query II rowsort label-6722 @@ -35584,7 +35584,7 @@ SELECT - 19, 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "count\(\*\) \+ Int64\(32\) \+ Int64\(\-43\) \- \(\- CASE Int64\(17\) WHEN Int64\(29\) THEN NULL WHEN Int64\(\-36\) THEN Int64\(\-97\) \* Int64\(\-79\) \+ \(\- count\(\*\)\) / Int64\(60\) ELSE NULL END\) \+ Int64\(16\) \* Int64\(\-73\) \+ Int64\(\-61\) \* Int64\(66\) \- Int64\(86\) \+ count\(\*\) \* min\(Int64\(93\)\) \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(32\) \+ Int64\(\-43\) \- \(\- CASE Int64\(17\) WHEN Int64\(29\) THEN NULL WHEN Int64\(\-36\) THEN Int64\(\-97\) \* Int64\(\-79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(60\) ELSE NULL END\) \+ Int64\(16\) \* Int64\(\-73\) \+ Int64\(\-61\) \* Int64\(66\) \- Int64\(86\) \+ count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(93\)\) \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 64 AS col2, ( COUNT ( * ) ) + 32 + - 43 - - CASE + 17 WHEN + + 29 THEN NULL WHEN - 36 THEN + - 97 * - 79 + - COUNT ( * ) / + 60 ELSE NULL END + 16 * - 73 + + - 61 * 66 - 86 + COUNT ( * ) * MIN ( ALL + 93 ) * + 24 AS col2 query I rowsort label-6782 @@ -36565,7 +36565,7 @@ SELECT + 22 * 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-4\), Int64\(74\)\) \+ Int64\(35\) AS col1" at position 0 and "Int64\(56\) \- coalesce\(Int64\(\-32\), \(\- count\(\*\)\)\) AS col1" at position 1 have 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\), Int64\(74\)\) \+ Int64\(35\) AS col1" at position 0 and "Int64\(56\) \- coalesce\(Int64\(\-32\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - 4, + + 74 ) + 35 AS col1, 56 - + + COALESCE ( - 32, - COUNT ( * ) ) AS col1 query I rowsort label-6969 @@ -37208,7 +37208,7 @@ SELECT DISTINCT ( - ( - 51 ) ) * - MIN ( ALL + 52 ) AS col2 # 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 "\(\- \(\- \(\- count\(\*\)\)\)\) \+ Int64\(\-1\) 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\(\*\)\)\)\) \+ Int64\(\-1\) 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 ( * ) ) + - 1 AS col0, + 84 AS col0 query I rowsort label-7093 @@ -37688,7 +37688,7 @@ SELECT + 77, + ( - ( COUNT ( * ) ) ) / 90 / - + 94 + 98 + 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-74\) WHEN Int64\(19\) THEN NULL WHEN coalesce\(\(\- count\(\*\)\), Int64\(97\) \* CASE Int64\(72\) WHEN Int64\(\-77\) \* Int64\(68\) THEN Int64\(\-20\) ELSE NULL END\) THEN NULL WHEN Int64\(\-40\) THEN NULL ELSE Int64\(33\) \- Int64\(\-77\) \+ count\(\*\) \* Int64\(\-12\) END 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 "CASE Int64\(\-74\) WHEN Int64\(19\) THEN NULL WHEN coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(97\) \* CASE Int64\(72\) WHEN Int64\(\-77\) \* Int64\(68\) THEN Int64\(\-20\) ELSE NULL END\) THEN NULL WHEN Int64\(\-40\) THEN NULL ELSE Int64\(33\) \- Int64\(\-77\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-12\) END AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - 74 WHEN + ( + ( 19 ) ) THEN NULL WHEN COALESCE ( + ( - COUNT ( * ) ), + 97 * + CASE + 72 WHEN - 77 * 68 THEN - 20 ELSE NULL END ) THEN NULL WHEN - 40 THEN NULL ELSE 33 - - 77 + COUNT ( * ) * + - 12 END AS col2, + 25 AS col2 query I rowsort label-7184 @@ -38981,7 +38981,7 @@ SELECT DISTINCT + NULLIF ( - - 96, 99 ) / - 71 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(65\), Int64\(\-41\) \* count\(\*\) \+ Int64\(26\)\) 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 "nullif\(Int64\(65\), Int64\(\-41\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(26\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( 65, - 41 * + COUNT ( * ) + + + 26 ) col1, - COUNT ( * ) * 39 AS col1 query I rowsort @@ -39235,7 +39235,7 @@ SELECT + 5, + 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -1706 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(98\) \- Int64\(22\) \* \(\- sum\(DISTINCT 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\(\*\)\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(98\) \- Int64\(22\) \* \(\- sum\(DISTINCT Int64\(\-82\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + - ( - 57 ) AS col1, 98 - 22 * - + SUM ( DISTINCT + - 82 ) AS col1 query I rowsort label-7477 @@ -39635,7 +39635,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\(\*\) \* 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\(13\) \* Int64\(\-25\) / Int64\(93\)\) \* \(\- count\(DISTINCT Int64\(9\)\)\) \* 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 @@ -42057,7 +42057,7 @@ SELECT 9 AS col0, - 60 # 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 "count\(\*\) \* CAST\(NULL AS Float64\) 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\(\*\) \* CAST\(NULL AS Float64\) 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 ( * ) * CAST ( NULL AS FLOAT8 ) col2, + 71 AS col2 # Datafusion - Datafusion expected results: @@ -44281,7 +44281,7 @@ SELECT + + SUM ( DISTINCT 41 ) / 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(29\) \* count\(Int64\(\-86\)\) / Int64\(\-85\) \* Int64\(4\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(29\) \* count\(Int64\(\-86\)\) / Int64\(\-85\) \* Int64\(4\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + 29 * COUNT ( - 86 ) / - 85 * 4 AS col2, 5 AS col2 query I rowsort @@ -45028,7 +45028,7 @@ SELECT 89 * - 21 + - 70 + - - 88 + + 55 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8329 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(85\)\) \* Int64\(98\) AS col2" at position 0 and "\(\- coalesce\(Int64\(74\), Int64\(4\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(85\)\) \* Int64\(98\) AS col2" at position 0 and "\(\- coalesce\(Int64\(74\), Int64\(4\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + - + 85 * 98 AS col2, - COALESCE ( 74, + 4 ) AS col2 query II rowsort label-8581 @@ -45040,7 +45040,7 @@ SELECT NULLIF ( - 8, COUNT ( * ) ) * + 2, 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(5\)\) \+ \(\- count\(\*\)\) / \(\- Int64\(5\)\) 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 "max\(DISTINCT Int64\(5\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(5\)\) 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 MAX ( DISTINCT 5 ) + - + COUNT ( * ) / - + 5 AS col1, - 26 AS col1 query I rowsort @@ -46454,7 +46454,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + 46 AS col2 query I rowsort label-8850 @@ -46894,7 +46894,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\(\*\) 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 @@ -47302,7 +47302,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\(\*\) THEN Int64\(46\) \+ count\(\*\) WHEN Int64\(\-58\) \+ Int64\(97\) THEN NULL END\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -47366,7 +47366,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\(\-37\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -49320,7 +49320,7 @@ SELECT ( - + 73 ), - 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -549 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ Int64\(34\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-14\) AS col1" at position 0 and "Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ Int64\(34\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-14\) AS col1" at position 0 and "Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 73 + + ( + 34 ) * - - COUNT ( * ) * - 14 AS col1, - 48 AS col1 query I rowsort @@ -50878,7 +50878,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\(\*\) AS col1" at position 0 and "nullif\(Int64\(\-40\), Int64\(\-13\) \+ \(\- Int64\(\-35\)\) \+ \(\- 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 @@ -51921,7 +51921,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\(\*\) AS col0" at position 0 and "nullif\(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 2b0800c..15147bf 100644 --- a/data/sqlite/random/expr/slt_good_69.slt +++ b/data/sqlite/random/expr/slt_good_69.slt @@ -975,7 +975,7 @@ SELECT ALL + ( + + COALESCE ( - + COUNT ( DISTINCT - + 77 ), COUNT ( * ) + - 83, # Datafusion - Datafusion expected results: # Datafusion - Expected - 19559 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- count\(\*\)\) \+ Int64\(24\) \* \(\- \(\- Int64\(21\)\)\) \* Int64\(39\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(24\) \* \(\- \(\- Int64\(21\)\)\) \* Int64\(39\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 97 * - COUNT ( * ) + + 24 * - ( - + 21 ) * 39 AS col1, + 11 AS col1 query I rowsort @@ -1311,7 +1311,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\(\*\) 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 @@ -1731,7 +1731,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\(\*\) AS col2" at position 1 have the 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 @@ -3104,7 +3104,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\(\*\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -3701,7 +3701,7 @@ SELECT ALL + 30 * 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(43\) AS col0" at position 0 and "Int64\(60\) \* CASE \(\- Int64\(82\)\) WHEN Int64\(64\) THEN \(\- count\(\*\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(43\) AS col0" at position 0 and "Int64\(60\) \* CASE \(\- Int64\(82\)\) WHEN Int64\(64\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + 43 AS col0, + 60 * CASE - + 82 WHEN + 64 THEN - COUNT ( * ) ELSE NULL END AS col0 query II rowsort label-698 @@ -5240,7 +5240,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -5544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(94\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-58\) \+ \(\- coalesce\(Int64\(92\), Int64\(\-51\), Int64\(\-79\) \* Int64\(86\) \* Int64\(64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(94\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-58\) \+ \(\- coalesce\(Int64\(92\), Int64\(\-51\), Int64\(\-79\) \* Int64\(86\) \* Int64\(64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 68 AS col0, + 94 * - ( - COUNT ( * ) ) * - 58 + - COALESCE ( 92, + - 51, - 79 * + 86 * 64 ) AS col0 query I rowsort @@ -5359,7 +5359,7 @@ SELECT ALL 21 * + + 90 + + ( - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4513 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(\(\- CASE Int64\(20\) WHEN \(\- Int64\(60\)\) \* \(\- nullif\(Int64\(\-72\), Int64\(19\) \+ avg\(\(\- Int64\(7\)\)\)\)\) \* count\(\*\) \* \(\- count\(\*\)\) \+ CAST\(NULL AS Int32\) \- Int64\(49\) THEN \(\- \(\- count\(\*\)\)\) WHEN \(\- sum\(Int64\(\-57\)\)\) \* Int64\(57\) \+ Int64\(21\) \+ Int64\(31\) THEN Int64\(36\) END\), min\(Int64\(31\)\) \+ \(\- \(\- count\(\*\)\)\) \* Int64\(19\)\), CAST\(\(\- Int64\(\-43\)\) AS Int32\)\)\) \* Int64\(\-53\) \+ Int64\(\-4\) \* count\(\*\) \+ max\(Int64\(53\)\) \- Int64\(73\) \* \(\- Int64\(24\)\) \+ Int64\(98\) \- Int64\(\-59\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(\(\- CASE Int64\(20\) WHEN \(\- Int64\(60\)\) \* \(\- nullif\(Int64\(\-72\), Int64\(19\) \+ avg\(\(\- Int64\(7\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \- Int64\(49\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- sum\(Int64\(\-57\)\)\) \* Int64\(57\) \+ Int64\(21\) \+ Int64\(31\) THEN Int64\(36\) END\), min\(Int64\(31\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(19\)\), CAST\(\(\- Int64\(\-43\)\) AS Int32\)\)\) \* Int64\(\-53\) \+ Int64\(\-4\) \* count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(53\)\) \- Int64\(73\) \* \(\- Int64\(24\)\) \+ Int64\(98\) \- Int64\(\-59\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( COALESCE ( - CASE 20 WHEN - + 60 * - NULLIF ( - 72, 19 + + AVG ( - + 7 ) ) * + COUNT ( * ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + + 49 THEN - - COUNT ( * ) WHEN - SUM ( + - 57 ) * + 57 + + 21 + + 31 THEN + 36 END, + MIN ( ALL 31 ) + - - COUNT ( * ) * 19 ), + CAST ( - - 43 AS INTEGER ) ) * + - 53 + - 4 * COUNT ( * ) + ( MAX ( ALL + 53 ) ) - + 73 * + - ( + 24 ) + 98 - - 59 + + ( - 95 ) AS col1, 48 AS col1 query I rowsort label-1014 @@ -5390,7 +5390,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 117600 # Datafusion - Expected - -106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- count\(\*\)\) \* Int64\(\-80\) \* Int64\(42\) AS col1" at position 0 and "Int64\(\-74\) \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-80\) \* Int64\(42\) AS col1" at position 0 and "Int64\(\-74\) \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 35 * - ( + + COUNT ( * ) ) * - 80 * + 42 AS col1, - 74 + - 32 AS col1 query I rowsort @@ -5642,7 +5642,7 @@ SELECT - MAX ( + 6 ) + - - NULLIF ( - NULLIF ( - 15, + 95 ), - 32 ) * NULLIF ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -1298 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(74\) \+ Int64\(52\) \+ Int64\(95\) \* \(\- count\(\*\)\) \* Int64\(22\) AS col1" at position 0 and "Int64\(0\) / coalesce\(Int64\(66\), \(\- count\(Int64\(50\)\)\)\) \* coalesce\(Int64\(\-38\), \(\- Int64\(\-51\)\)\) \* Int64\(78\) \+ \(\- Int64\(39\)\) \+ \(\- nullif\(Int64\(0\), count\(\*\)\)\) / \(\- Int64\(\-62\)\) \* Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(74\) \+ Int64\(52\) \+ Int64\(95\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(22\) AS col1" at position 0 and "Int64\(0\) / coalesce\(Int64\(66\), \(\- count\(Int64\(50\)\)\)\) \* coalesce\(Int64\(\-38\), \(\- Int64\(\-51\)\)\) \* Int64\(78\) \+ \(\- Int64\(39\)\) \+ \(\- nullif\(Int64\(0\), count\(Int64\(1\)\) AS count\(\*\)\)\) / \(\- Int64\(\-62\)\) \* Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 10 * + 74 + + + 52 + + + 95 * - COUNT ( * ) * + 22 AS col1, - 0 / COALESCE ( 66, - COUNT ( ALL 50 ) ) * COALESCE ( + ( - 38 ), - - 51 ) * 78 + - + ( 39 ) + - NULLIF ( 0, + COUNT ( * ) ) / - - 62 * - 44 AS col1 query II rowsort label-1066 @@ -5901,7 +5901,7 @@ SELECT + 70 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* CASE \(\- Int64\(\-97\)\) WHEN Int64\(34\) THEN \(\- count\(\*\)\) \+ \(\- min\(Int64\(49\)\)\) \- \(\- CASE WHEN Int64\(12\) IS NULL THEN Int64\(96\) END\) \+ \(\- Int64\(\-84\)\) \+ min\(Int64\(21\)\) \* Int64\(79\) / Int64\(78\) \* Int64\(72\) \* Int64\(54\) WHEN Int64\(\-51\) THEN NULL ELSE NULL END / Int64\(36\) AS col0" at position 0 and "Int64\(18\) \+ \(\- Int64\(\-60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* CASE \(\- Int64\(\-97\)\) WHEN Int64\(34\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- min\(Int64\(49\)\)\) \- \(\- CASE WHEN Int64\(12\) IS NULL THEN Int64\(96\) END\) \+ \(\- Int64\(\-84\)\) \+ min\(Int64\(21\)\) \* Int64\(79\) / Int64\(78\) \* Int64\(72\) \* Int64\(54\) WHEN Int64\(\-51\) THEN NULL ELSE NULL END / Int64\(36\) AS col0" at position 0 and "Int64\(18\) \+ \(\- Int64\(\-60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 76 * CASE - - 97 WHEN + 34 THEN + - COUNT ( * ) + - MIN ( + + 49 ) - - + CASE WHEN + 12 IS NULL THEN 96 END + - - 84 + + MIN ( + 21 ) * 79 / 78 * + + 72 * 54 WHEN + - 51 THEN NULL ELSE NULL END / + 36 AS col0, + 18 + - - 60 AS col0 query I rowsort label-1116 @@ -7197,7 +7197,7 @@ SELECT - COUNT ( + + 44 ) * - ( - 17 ) * - 56 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 75 -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\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 2 AS col2, COUNT ( * ) * 75 AS col2 query I rowsort label-1369 @@ -8570,7 +8570,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\(\*\) 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 @@ -10095,7 +10095,7 @@ SELECT - 59 * + + 20 AS col0 # Datafusion - Expected - 81 # Datafusion - Expected - 80 # Datafusion - Expected - 6840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* min\(Int64\(80\)\) AS col2" at position 1 and "Int64\(76\) \* Int64\(90\) 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\(\*\) \* min\(Int64\(80\)\) AS col2" at position 1 and "Int64\(76\) \* Int64\(90\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 81, + COUNT ( * ) * MIN ( ALL 80 ) AS col2, ( 76 ) * 90 col2 query I rowsort label-1920 @@ -10718,7 +10718,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\(\*\) AS col0" at position 1 have the 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 @@ -10745,7 +10745,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\(\*\) AS col0" at position 1 have 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 @@ -11296,7 +11296,7 @@ SELECT + + SUM ( + 68 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* \(\- count\(\*\)\) \- \(\- nullif\(Int64\(21\), Int64\(\-37\)\)\) AS col2" at position 0 and "nullif\(Int64\(97\), Int64\(\-12\) \- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- nullif\(Int64\(21\), Int64\(\-37\)\)\) AS col2" at position 0 and "nullif\(Int64\(97\), Int64\(\-12\) \- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 * - COUNT ( * ) - - NULLIF ( 21, + - 37 ) AS col2, + NULLIF ( 97, - 12 - 81 ) AS col2 query I rowsort label-2152 @@ -12291,7 +12291,7 @@ SELECT CAST ( + 35 AS INTEGER ) * 59 * + - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-43\) \+ \(\- CAST\(Int64\(\-54\) AS Int32\)\) \+ Int64\(49\) \+ count\(\*\) \* Int64\(37\) AS col2" at position 0 and "\(\- Int64\(55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-43\) \+ \(\- CAST\(Int64\(\-54\) AS Int32\)\) \+ Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) AS col2" at position 0 and "\(\- Int64\(55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 + - 43 + - CAST ( + - 54 AS INTEGER ) + + 49 + + COUNT ( * ) * + 37 col2, - ( 55 ) AS col2 query I rowsort @@ -12415,7 +12415,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\(\*\) AS col2" at position 1 have the 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 @@ -13530,7 +13530,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\(\*\) 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 @@ -13700,7 +13700,7 @@ SELECT 57 / + + 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1652 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* count\(\*\) \+ \(\- CASE Int64\(\-88\) WHEN CAST\(Int64\(0\) AS Int32\) \* \(\- Int64\(64\)\) THEN Int64\(0\) END\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(28\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(\-88\) WHEN CAST\(Int64\(0\) AS Int32\) \* \(\- Int64\(64\)\) THEN Int64\(0\) END\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(28\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 28 ) * + + ( COUNT ( * ) ) + - CASE - 88 WHEN + ( CAST ( + 0 AS INTEGER ) ) * - ( 64 ) THEN 0 END + ( + 86 ) AS col0, 28 * 59 AS col0 query I rowsort @@ -14207,7 +14207,7 @@ SELECT COALESCE ( + + 52, - 10 ) + - COALESCE ( 1, - - 24 * - 18 ) * + 38 * + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "nullif\(\(\- coalesce\(count\(\*\), Int64\(21\) \+ CAST\(NULL AS Int32\)\)\), Int64\(1\)\) \+ \(\- Int64\(71\)\) \+ Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "nullif\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(21\) \+ CAST\(NULL AS Int32\)\)\), Int64\(1\)\) \+ \(\- Int64\(71\)\) \+ Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 99 AS col0, NULLIF ( + ( - COALESCE ( + COUNT ( * ), 21 + + + CAST ( NULL AS INTEGER ) ) ), + + 1 ) + - + 71 + + + 50 AS col0 query II rowsort @@ -14822,7 +14822,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\(\*\) 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 @@ -19077,7 +19077,7 @@ SELECT ALL 51 + - 88 - + 88 * + 0 * 70 * 69 # Datafusion - Expected - 1372 # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col1" at position 1 and "Int64\(2\) \+ Int64\(\-89\) \* Int64\(47\) \* \(\- \(\- nullif\(\(\- \(\- count\(\*\)\)\), \(\- \(\- CASE Int64\(\-14\) WHEN Int64\(\-58\) THEN NULL ELSE Int64\(27\) END\)\)\)\)\) \* Int64\(76\) \* Int64\(\-42\) \- \(\- Int64\(\-23\)\) \- Int64\(\-29\) \* \(\- CASE \(\- Int64\(19\)\) WHEN Int64\(90\) \- Int64\(55\) THEN CAST\(NULL AS Int32\) / count\(\*\) \- \(\- Int64\(\-7\) \- Int64\(28\)\) WHEN Int64\(\-66\) \+ Int64\(72\) THEN count\(\*\) ELSE NULL END\) \* Int64\(65\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col1" at position 1 and "Int64\(2\) \+ Int64\(\-89\) \* Int64\(47\) \* \(\- \(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- \(\- CASE Int64\(\-14\) WHEN Int64\(\-58\) THEN NULL ELSE Int64\(27\) END\)\)\)\)\) \* Int64\(76\) \* Int64\(\-42\) \- \(\- Int64\(\-23\)\) \- Int64\(\-29\) \* \(\- CASE \(\- Int64\(19\)\) WHEN Int64\(90\) \- Int64\(55\) THEN CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-7\) \- Int64\(28\)\) WHEN Int64\(\-66\) \+ Int64\(72\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) \* Int64\(65\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 * + ( + 14 ) AS col0, ( - + ( + 18 ) ) col1, 2 + - 89 * + 47 * - ( - NULLIF ( - - COUNT ( * ), - - CASE - 14 WHEN - 58 THEN NULL ELSE + 27 END ) ) * + 76 * + - 42 - - - 23 - - 29 * - CASE - + 19 WHEN 90 - 55 THEN CAST ( NULL AS INTEGER ) / COUNT ( * ) - - ( - 7 - 28 ) WHEN - 66 + 72 THEN COUNT ( * ) ELSE NULL END * + 65 AS col1 query I rowsort @@ -19253,7 +19253,7 @@ SELECT ALL + - COUNT ( * ) * - + 46 + + COUNT ( * ) * 92 + - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / CAST\(Int64\(\-59\) AS Int32\) AS col1" at position 0 and "Int64\(\-56\) \* CAST\(NULL AS Float64\) \+ Int64\(96\) \+ Int64\(99\) \* Int64\(\-98\) \* Int64\(95\) \* sum\(Int64\(\-1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(\-59\) AS Int32\) AS col1" at position 0 and "Int64\(\-56\) \* CAST\(NULL AS Float64\) \+ Int64\(96\) \+ Int64\(99\) \* Int64\(\-98\) \* Int64\(95\) \* sum\(Int64\(\-1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) / + CAST ( + - 59 AS INTEGER ) AS col1, - 56 * + CAST ( NULL AS FLOAT8 ) + 96 + 99 * + - 98 * 95 * + SUM ( - 1 ) AS col1 query I rowsort @@ -20862,7 +20862,7 @@ SELECT 13 * + COALESCE ( + + 50, - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) col0 # 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 "count\(\*\) / Int64\(29\) \* CASE \(\- Int64\(75\)\) WHEN \(\- max\(\(\- Int64\(1\)\)\)\) THEN \(\- sum\(DISTINCT Int64\(97\)\)\) END AS col1" at position 0 and "Int64\(\-84\) / Int64\(53\) \+ min\(\(\- Int64\(\-69\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(29\) \* CASE \(\- Int64\(75\)\) WHEN \(\- max\(\(\- Int64\(1\)\)\)\) THEN \(\- sum\(DISTINCT Int64\(97\)\)\) END AS col1" at position 0 and "Int64\(\-84\) / Int64\(53\) \+ min\(\(\- Int64\(\-69\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / 29 * CASE - ( + 75 ) WHEN - + MAX ( ALL - + 1 ) THEN - SUM ( DISTINCT + 97 ) END AS col1, - 84 / + 53 + + + MIN ( ALL - - 69 ) col1 query II rowsort label-3980 @@ -21902,7 +21902,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\(\*\) 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 @@ -22757,7 +22757,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\(\*\) 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 @@ -23116,7 +23116,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\(\*\) AS col0" at position 1 have the 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 @@ -23142,7 +23142,7 @@ SELECT 35 + - 85 * - 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 0 -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\(\-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\(37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 AS col1, + COUNT ( * ) / - 33 AS col1 query I rowsort @@ -23268,7 +23268,7 @@ SELECT ( - + 8 ) * + 33 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 5094 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(29\) AS col1" at position 0 and "Int64\(46\) \+ \(\- Int64\(\-95\)\) \* Int64\(53\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) AS col1" at position 0 and "Int64\(46\) \+ \(\- Int64\(\-95\)\) \* Int64\(53\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * 29 AS col1, + 46 + - - 95 * + + 53 + + + 13 AS col1 query I rowsort @@ -25296,7 +25296,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\(\*\) 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 @@ -25903,7 +25903,7 @@ SELECT 6 AS col0, - COALESCE ( 35, + 76 * + + 27 + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -5382 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- count\(\*\)\) \+ Int64\(90\) AS col0" at position 0 and "nullif\(\(\- \(\- count\(Int64\(86\)\)\)\), Int64\(8\)\) \* Int64\(\-69\) \* 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\(18\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(90\) AS col0" at position 0 and "nullif\(\(\- \(\- count\(Int64\(86\)\)\)\), Int64\(8\)\) \* Int64\(\-69\) \* Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 18 * - COUNT ( * ) + + 90 AS col0, + NULLIF ( - - COUNT ( ALL 86 ), + 8 ) * - 69 * + 78 AS col0 # Datafusion - Types were automatically converted from: @@ -26315,7 +26315,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\(\*\) AS col1" at position 1 have the 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 @@ -26373,7 +26373,7 @@ SELECT - 54 AS col2, - 94 + + 33 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\(\*\)\) AS col2" at position 1 have the 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 @@ -26876,7 +26876,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\(\*\) 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 @@ -27032,7 +27032,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\(\*\) 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 @@ -28146,7 +28146,7 @@ SELECT - 66 + - - ( - - 91 ) * 29 * + + SUM ( - 91 ) + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(44\)\)\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(44\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MAX ( DISTINCT 44 ) * - COUNT ( * ) AS col1, - 10 col1 # Datafusion - Types were automatically converted from: @@ -28486,13 +28486,13 @@ SELECT ALL - COUNT ( DISTINCT 91 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -63 -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\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 2 AS col0, COUNT ( * ) + + - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1350 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(27\)\) / \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(27\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 * - + 27 / - - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) * - 72 AS col1 query I rowsort label-5437 @@ -28994,7 +28994,7 @@ SELECT + 35 AS col2, - 11 + + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- CAST\(NULL AS Int32\) \+ \(\- \(\- count\(\*\)\)\) \+ \(\- Int64\(\-96\)\) / Int64\(30\) AS col2" at position 0 and "Int64\(16\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- CAST\(NULL AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-96\)\) / Int64\(30\) AS col2" at position 0 and "Int64\(16\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 30 - + CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) + - - 96 / + ( + 30 ) AS col2, 16 * 12 col2 query I rowsort @@ -29110,7 +29110,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\(\*\) 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 @@ -29701,7 +29701,7 @@ SELECT 98 / - ( - - 24 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(24\) / count\(\*\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(24\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 24 * - - COUNT ( * ) AS col1, 24 / + + ( COUNT ( * ) ) + 77 AS col1 query II rowsort @@ -30853,7 +30853,7 @@ SELECT ALL - NULLIF ( NULLIF ( + 37, - 19 ), - 47 ) + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(31\) 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\(\*\) \+ Int64\(31\) 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 ( * ) + + 31 AS col1, + 15 AS col1 query I rowsort label-5884 @@ -32874,7 +32874,7 @@ SELECT - 55 * ( - COUNT ( * ) ) + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col1" at position 0 and "CASE CASE CASE Int64\(27\) WHEN \(\- count\(\*\)\) THEN NULL ELSE Int64\(57\) \- Int64\(33\) \* Int64\(57\) END WHEN Int64\(\-6\) THEN min\(DISTINCT Int64\(35\)\) ELSE Int64\(42\) END WHEN Int64\(48\) / Int64\(59\) THEN Int64\(\-39\) \+ Int64\(\-31\) WHEN Int64\(78\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(8\) \+ Int64\(93\) ELSE Int64\(55\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col1" at position 0 and "CASE CASE CASE Int64\(27\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(57\) \- Int64\(33\) \* Int64\(57\) END WHEN Int64\(\-6\) THEN min\(DISTINCT Int64\(35\)\) ELSE Int64\(42\) END WHEN Int64\(48\) / Int64\(59\) THEN Int64\(\-39\) \+ Int64\(\-31\) WHEN Int64\(78\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(8\) \+ Int64\(93\) ELSE Int64\(55\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 60 AS col1, + CASE + + CASE CASE ( 27 ) WHEN - COUNT ( * ) THEN NULL ELSE 57 - 33 * + 57 END WHEN - 6 THEN + MIN ( DISTINCT + 35 ) ELSE 42 END WHEN + 48 / 59 THEN - 39 + - 31 WHEN 78 THEN - CAST ( NULL AS INTEGER ) * 8 + 93 ELSE 55 END AS col1 query I rowsort @@ -33309,7 +33309,7 @@ SELECT ALL 91 col2, + COALESCE ( + - 79, + 87 * - COUNT ( * ), + CAST ( 16 AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -4440 -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\(\-37\), nullif\(count\(\*\), Int64\(11\) \+ avg\(Int64\(16\)\)\)\)\) \* CASE Int64\(8\) WHEN Int64\(55\) \+ Int64\(57\) THEN NULL ELSE \(\- coalesce\(\(\- Int64\(\-52\)\), Int64\(\-39\) \* count\(Int64\(84\)\)\)\) \+ Int64\(\-68\) 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\(59\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-37\), nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(11\) \+ avg\(Int64\(16\)\)\)\)\) \* CASE Int64\(8\) WHEN Int64\(55\) \+ Int64\(57\) THEN NULL ELSE \(\- coalesce\(\(\- Int64\(\-52\)\), Int64\(\-39\) \* count\(Int64\(84\)\)\)\) \+ Int64\(\-68\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 AS col1, - COALESCE ( - 37, + NULLIF ( COUNT ( * ), + + 11 + AVG ( + 16 ) ) ) * CASE 8 WHEN 55 + + 57 THEN NULL ELSE - ( COALESCE ( - ( - 52 ), - 39 * + COUNT ( 84 ) ) ) + - 68 END AS col1 query I rowsort label-6357 @@ -33867,7 +33867,7 @@ SELECT DISTINCT 68 + + - NULLIF ( 26, - - 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ \(\- Int64\(\-77\)\) \+ Int64\(\-92\) AS col0" at position 0 and "Int64\(\-4\) \* Int64\(\-53\) \+ count\(\*\) \+ 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\(\-80\) \+ \(\- Int64\(\-77\)\) \+ Int64\(\-92\) AS col0" at position 0 and "Int64\(\-4\) \* Int64\(\-53\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 + - ( - 77 ) + + - 92 AS col0, - 4 * - 53 + + COUNT ( * ) + 59 AS col0 query II rowsort label-6464 @@ -34656,7 +34656,7 @@ SELECT ALL - - 44 * + 60 - + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3992 # Datafusion - Expected - -9305 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) \* Int64\(22\) \- Int64\(\-91\) \* Int64\(\-40\) AS col0" at position 0 and "count\(\*\) \+ Int64\(94\) \* \(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) \* Int64\(22\) \- Int64\(\-91\) \* Int64\(\-40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(94\) \* \(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 16 * + 22 - - 91 * - 40 AS col0, COUNT ( * ) + 94 * - + 99 AS col0 query I rowsort label-6614 @@ -34720,7 +34720,7 @@ SELECT ALL + + 60 + - 39 # Datafusion - Expected - -74 # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \+ Int64\(\-39\) AS col0" at position 0 and "coalesce\(Int64\(91\), Int64\(95\) / max\(Int64\(79\)\) \+ \(\- Int64\(\-53\)\) \+ count\(\*\) \* Int64\(68\) \* \(\- count\(\*\)\) \* 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\(\-35\) \+ Int64\(\-39\) AS col0" at position 0 and "coalesce\(Int64\(91\), Int64\(95\) / max\(Int64\(79\)\) \+ \(\- Int64\(\-53\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 35 + - 39 AS col0, COALESCE ( + 91, + + 95 / MAX ( 79 ) + - - 53 + + COUNT ( * ) * + 68 * - + COUNT ( * ) * 0 ) AS col0, - CASE WHEN COALESCE ( ( - 80 ), + 99 + + 87 ) BETWEEN 3 * 77 AND 89 THEN + COALESCE ( 49, - MIN ( + 92 ) ) * + CAST ( - COUNT ( * ) AS INTEGER ) + - 0 * - COUNT ( ALL - 39 * - 48 ) END query I rowsort label-6626 @@ -35569,7 +35569,7 @@ SELECT 98 + + 6 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 col0, - COUNT ( * ) AS col0 query I rowsort label-6788 @@ -37089,7 +37089,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col1" at position 0 and "count\(\*\) \* \(\- sum\(Int64\(68\)\)\) \- 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\(\-12\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(68\)\)\) \- Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 12 AS col1, + COUNT ( * ) * - SUM ( + 68 ) - 49 AS col1 query II rowsort @@ -37430,7 +37430,7 @@ SELECT + 68 + - + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-26\) \* Int64\(\-38\) \+ count\(\*\) \- sum\(Int64\(67\)\) \* CASE nullif\(count\(\*\), CASE \(\- \(\- CASE CASE Int64\(23\) WHEN \(\- nullif\(Int64\(68\), Int64\(17\)\)\) \* Int64\(12\) / Int64\(\-44\) \* Int64\(45\) THEN \(\- Int64\(\-71\)\) \+ Int64\(79\) \* Int64\(15\) \+ Int64\(69\) ELSE NULL END WHEN Int64\(\-94\) THEN Int64\(57\) \- Int64\(94\) \* Int64\(46\) \+ Int64\(74\) WHEN count\(\*\) THEN NULL WHEN Int64\(73\) \+ Int64\(\-57\) THEN NULL END\)\) WHEN count\(\(\- Int64\(1\)\)\) \+ \(\- CASE Int64\(\-38\) WHEN \(\- min\(DISTINCT Int64\(49\)\)\) THEN count\(\*\) \* \(\- CASE WHEN NOT NULL <= NULL THEN \(\- count\(\*\)\) END\) END\) \* Int64\(28\) THEN Int64\(16\) \+ Int64\(26\) ELSE Int64\(46\) END\) WHEN Int64\(47\) THEN Int64\(\-11\) WHEN Int64\(25\) THEN Int64\(70\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-26\) \* Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\) \- sum\(Int64\(67\)\) \* CASE nullif\(count\(Int64\(1\)\) AS count\(\*\), CASE \(\- \(\- CASE CASE Int64\(23\) WHEN \(\- nullif\(Int64\(68\), Int64\(17\)\)\) \* Int64\(12\) / Int64\(\-44\) \* Int64\(45\) THEN \(\- Int64\(\-71\)\) \+ Int64\(79\) \* Int64\(15\) \+ Int64\(69\) ELSE NULL END WHEN Int64\(\-94\) THEN Int64\(57\) \- Int64\(94\) \* Int64\(46\) \+ Int64\(74\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(73\) \+ Int64\(\-57\) THEN NULL END\)\) WHEN count\(\(\- Int64\(1\)\)\) \+ \(\- CASE Int64\(\-38\) WHEN \(\- min\(DISTINCT Int64\(49\)\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE WHEN NOT NULL <= NULL THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) END\) \* Int64\(28\) THEN Int64\(16\) \+ Int64\(26\) ELSE Int64\(46\) END\) WHEN Int64\(47\) THEN Int64\(\-11\) WHEN Int64\(25\) THEN Int64\(70\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 AS col1, - 26 * - 38 + COUNT ( * ) - SUM ( ALL 67 ) * CASE + NULLIF ( COUNT ( * ), CASE - - CASE + CASE + 23 WHEN - ( NULLIF ( + + 68, 17 ) ) * + 12 / - 44 * 45 THEN - - 71 + + + 79 * + 15 + 69 ELSE NULL END WHEN - 94 THEN + 57 - + 94 * + 46 + + 74 WHEN + COUNT ( * ) THEN NULL WHEN 73 + - 57 THEN NULL END WHEN COUNT ( - ( + 1 ) ) + - CASE - 38 WHEN - MIN ( DISTINCT + 49 ) THEN COUNT ( * ) * - CASE WHEN NOT NULL <= NULL THEN - COUNT ( * ) END END * 28 THEN 16 + 26 ELSE + 46 END ) WHEN + 47 THEN - 11 WHEN + 25 THEN 70 END AS col1 query I rowsort label-7142 @@ -37599,7 +37599,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\(\*\) AS col0" at position 1 have the 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 @@ -38239,7 +38239,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\(\*\) 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 @@ -38314,7 +38314,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\(\*\) AS col1" at position 1 have the 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 @@ -39503,7 +39503,7 @@ SELECT 42, CAST ( - 99 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \* \(\- CASE nullif\(Int64\(\-19\), Int64\(66\) \+ Int64\(96\)\) WHEN Int64\(\-13\) \* \(\- Int64\(\-42\)\) THEN count\(\*\) \+ \(\- Int64\(\-58\)\) WHEN Int64\(77\) THEN \(\- Int64\(\-77\)\) WHEN \(\- count\(\*\)\) \* Int64\(32\) \* \(\- CASE \(\- CAST\(Int64\(89\) AS Int32\)\) WHEN Int64\(\-20\) \* \(\- count\(\*\)\) \- Int64\(70\) THEN NULL WHEN Int64\(20\) \- \(\- Int64\(65\)\) \- Int64\(\-54\) THEN Int64\(92\) \+ count\(\*\) END\) \* Int64\(97\) / Int64\(36\) \+ nullif\(Int64\(\-61\), nullif\(Int64\(35\), count\(\*\)\) \+ Int64\(22\)\) \* Int64\(76\) THEN NULL END\) \* Int64\(90\) \* Int64\(77\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \* \(\- CASE nullif\(Int64\(\-19\), Int64\(66\) \+ Int64\(96\)\) WHEN Int64\(\-13\) \* \(\- Int64\(\-42\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-58\)\) WHEN Int64\(77\) THEN \(\- Int64\(\-77\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(32\) \* \(\- CASE \(\- CAST\(Int64\(89\) AS Int32\)\) WHEN Int64\(\-20\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(70\) THEN NULL WHEN Int64\(20\) \- \(\- Int64\(65\)\) \- Int64\(\-54\) THEN Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(97\) / Int64\(36\) \+ nullif\(Int64\(\-61\), nullif\(Int64\(35\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(22\)\) \* Int64\(76\) THEN NULL END\) \* Int64\(90\) \* Int64\(77\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 53 ) * - CASE NULLIF ( - 19, 66 + + 96 ) WHEN - 13 * - ( + - 42 ) THEN + COUNT ( * ) + - - 58 WHEN 77 THEN - ( - 77 ) WHEN - COUNT ( * ) * 32 * - CASE - CAST ( 89 AS INTEGER ) WHEN - 20 * - + COUNT ( * ) - 70 THEN NULL WHEN + + 20 - - + 65 - - 54 THEN 92 + + COUNT ( * ) END * + + 97 / 36 + NULLIF ( - 61, + NULLIF ( 35, COUNT ( * ) ) + 22 ) * 76 THEN NULL END * 90 * + 77 AS col0, - 62 AS col0 query I rowsort label-7537 @@ -40300,7 +40300,7 @@ SELECT 30 + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1099791 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "\(\- Int64\(7\)\) \* nullif\(Int64\(23\), Int64\(4\) \* Int64\(\-17\) \- \(\- Int64\(82\)\)\) \* \(\- count\(\*\)\) \* Int64\(69\) \* 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\(2\) AS col0" at position 0 and "\(\- Int64\(7\)\) \* nullif\(Int64\(23\), Int64\(4\) \* Int64\(\-17\) \- \(\- Int64\(82\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(69\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 2 AS col0, - ( ( + 7 ) ) * NULLIF ( 23, + 4 * + ( - 17 ) - - + 82 ) * + - COUNT ( * ) * + + 69 * 99 AS col0 query I rowsort label-7685 @@ -42991,7 +42991,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\(\*\) 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 @@ -43408,7 +43408,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\(\*\)\) \+ CASE \(\- nullif\(Int64\(\-46\), Int64\(65\)\)\) WHEN Int64\(\-18\) \* Int64\(65\) / \(\- count\(\*\)\) \+ \(\- Int64\(\-71\)\) THEN Int64\(\-99\) WHEN CAST\(count\(\*\) AS Int32\) \+ \(\- coalesce\(Int64\(\-83\), 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 @@ -45007,7 +45007,7 @@ SELECT DISTINCT - + ( - COUNT ( * ) ) * + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "count\(\*\) \* max\(\(\- 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\(80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* max\(\(\- Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 80 AS col2, + COUNT ( * ) * + MAX ( + - ( - 72 ) ) col2 query II rowsort label-8584 @@ -45281,7 +45281,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\(\*\) 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 @@ -45997,7 +45997,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\(\*\) 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 @@ -46240,7 +46240,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\(\*\) 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 @@ -46320,7 +46320,7 @@ SELECT ALL NULLIF ( + 18, + COUNT ( * ) * + - 71 ) + ( 19 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(29\), Int64\(49\)\) / \(\- Int64\(\-81\)\) AS col0" at position 0 and "count\(\*\) \+ Int64\(78\) \+ 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 "nullif\(Int64\(29\), Int64\(49\)\) / \(\- Int64\(\-81\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(78\) \+ Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( 29, + 49 ) / - - 81 AS col0, COUNT ( * ) + 78 + + 66 AS col0 query I rowsort @@ -46759,7 +46759,7 @@ SELECT ALL COUNT ( * ) + - + 22 * + NULLIF ( COUNT ( * ), 4 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 305 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(5\), \(\- \(\- coalesce\(\(\- count\(\*\)\), \(\- Int64\(76\)\)\)\)\)\)\) \* Int64\(\-61\) 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 "\(\- nullif\(Int64\(5\), \(\- \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(76\)\)\)\)\)\)\) \* Int64\(\-61\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( 5, - - COALESCE ( - + COUNT ( * ), - + 76 ) ) * - 61 col2, - 81 AS col2 query I rowsort @@ -48116,7 +48116,7 @@ SELECT ALL + 1 * + 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 149 -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\(42\) \- Int64\(\-11\) \+ 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\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(42\) \- Int64\(\-11\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + 51 ) AS col2, + COUNT ( * ) * + + 42 - - 11 + 96 AS col2 # Datafusion - Types were automatically converted from: @@ -49337,7 +49337,7 @@ SELECT 13 + + ( - COALESCE ( - 22, NULLIF ( + 29, + - 98 * - 49 ) / + ( + CASE 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- \(\- sum\(DISTINCT \(\- Int64\(\-68\)\)\)\)\) WHEN count\(\*\) \+ Int64\(29\) \+ Int64\(\-60\) THEN max\(Int64\(24\)\) \+ Int64\(\-47\) END\) AS col1" at position 0 and "max\(Int64\(\-64\)\) \- Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- \(\- sum\(DISTINCT \(\- Int64\(\-68\)\)\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(29\) \+ Int64\(\-60\) THEN max\(Int64\(24\)\) \+ Int64\(\-47\) END\) AS col1" at position 0 and "max\(Int64\(\-64\)\) \- Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE - - SUM ( DISTINCT - - 68 ) WHEN COUNT ( * ) + + 29 + + - 60 THEN MAX ( ALL + 24 ) + - 47 END AS col1, + MAX ( - 64 ) - - 32 AS col1 query II rowsort @@ -51150,7 +51150,7 @@ SELECT + + 69 - ( - 12 ) / ( + 1 ) + 72 + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-45\) 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-45\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / ( + + ( - 45 ) ) AS col0, 17 AS col0 query II rowsort label-9753 @@ -51699,7 +51699,7 @@ SELECT DISTINCT - 9 * - 5 * + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(\-10\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(18\) \* \(\- CASE \(\- count\(Int64\(16\)\)\) WHEN Int64\(86\) \* Int64\(\-8\) / Int64\(90\) THEN Int64\(\-43\) \* Int64\(88\) WHEN max\(CAST\(NULL AS Int32\)\) THEN count\(\*\) \+ Int64\(97\) \* Int64\(2\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(\-10\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(18\) \* \(\- CASE \(\- count\(Int64\(16\)\)\) WHEN Int64\(86\) \* Int64\(\-8\) / Int64\(90\) THEN Int64\(\-43\) \* Int64\(88\) WHEN max\(CAST\(NULL AS Int32\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(2\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 + + - 10 + - 83 AS col2, + 18 * - + CASE - COUNT ( + 16 ) WHEN + 86 * + - 8 / + 90 THEN - 43 * 88 WHEN MAX ( CAST ( NULL AS INTEGER ) ) THEN + COUNT ( * ) + 97 * + 2 END AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_7.slt b/data/sqlite/random/expr/slt_good_7.slt index 40cc6d3..c2c431b 100644 --- a/data/sqlite/random/expr/slt_good_7.slt +++ b/data/sqlite/random/expr/slt_good_7.slt @@ -349,7 +349,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 165 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(70\)\) \* Int64\(62\) \- Int64\(\-92\) \- \(\- Int64\(8\)\) / Int64\(58\) / Int64\(5\) \+ Int64\(\-52\) \+ count\(\*\) \+ \(\- Int64\(\-62\)\) \* nullif\(count\(\*\), sum\(DISTINCT Int64\(\-26\)\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(16\) \+ 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\(70\)\) \* Int64\(62\) \- Int64\(\-92\) \- \(\- Int64\(8\)\) / Int64\(58\) / Int64\(5\) \+ Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-62\)\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), sum\(DISTINCT Int64\(\-26\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(16\) \+ Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( + 70 ) * + + 62 - - 92 - - + 8 / + 58 / ( 5 ) + + - 52 + + COUNT ( * ) + - - 62 * NULLIF ( COUNT ( * ), + SUM ( DISTINCT - 26 ) ) AS col1, COUNT ( * ) * + 16 + 94 AS col1 query I rowsort label-60 @@ -443,7 +443,7 @@ SELECT - 58 * + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col0" at position 0 and "Int64\(3\) / count\(\*\) \+ \(\- CASE Int64\(\-63\) WHEN Int64\(43\) \* count\(\*\) THEN Int64\(77\) \* Int64\(69\) WHEN \(\- Int64\(24\)\) \+ Int64\(83\) \* \(\- Int64\(\-92\)\) THEN Int64\(91\) END\) \+ \(\- Int64\(\-12\)\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col0" at position 0 and "Int64\(3\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(\-63\) WHEN Int64\(43\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(77\) \* Int64\(69\) WHEN \(\- Int64\(24\)\) \+ Int64\(83\) \* \(\- Int64\(\-92\)\) THEN Int64\(91\) END\) \+ \(\- Int64\(\-12\)\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 33 AS col0, 3 / + COUNT ( * ) + - CASE - 63 WHEN + + 43 * + COUNT ( * ) THEN + 77 * + ( 69 ) WHEN - + ( + 24 ) + + 83 * - - 92 THEN + 91 END + - - 12 * + 64 col0 query I rowsort @@ -721,7 +721,7 @@ SELECT MAX ( ALL + 40 ) * + COUNT ( * ) - - ( - 96 ) + + MIN ( - - NULLIF ( 53, # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "CASE Int64\(78\) WHEN Int64\(53\) THEN count\(\*\) / Int64\(\-70\) ELSE count\(\*\) \* Int64\(27\) END \+ Int64\(83\) \+ \(\- 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\(50\) AS col2" at position 0 and "CASE Int64\(78\) WHEN Int64\(53\) THEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-70\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* Int64\(27\) END \+ Int64\(83\) \+ \(\- Int64\(\-37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 50 col2, CASE + 78 WHEN 53 THEN COUNT ( * ) / - 70 ELSE COUNT ( * ) * 27 END + + 83 + - - 37 AS col2 query I rowsort @@ -2586,7 +2586,7 @@ SELECT DISTINCT 40 * - - COUNT ( * ) * + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \- Int64\(54\) AS col0" at position 0 and "count\(\*\) \+ Int64\(90\) \+ Int64\(43\) / Int64\(20\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(54\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(90\) \+ Int64\(43\) / Int64\(20\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 5 ) - + 54 AS col0, + COUNT ( * ) + + + 90 + 43 / 20 * - COUNT ( * ) col0 query II rowsort label-494 @@ -5322,7 +5322,7 @@ SELECT + NULLIF ( 58, + 25 * + 17 ) / COUNT ( * ) + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1569 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(44\) \+ Int64\(38\) \+ Int64\(48\) \* \(\- Int64\(\-31\)\) AS col0" at position 0 and "Int64\(\-80\) \* \(\- Int64\(\-7\)\) \* CAST\(NULL AS Float64\) \* \(\- \(\- nullif\(Int64\(84\), \(\- count\(\*\)\) \* \(\- Int64\(\-90\)\) \* Int64\(\-79\) \* Int64\(32\) \+ Int64\(79\) \+ Int64\(89\)\)\)\) \- Int64\(\-42\) \+ Int64\(76\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(44\) \+ Int64\(38\) \+ Int64\(48\) \* \(\- Int64\(\-31\)\) AS col0" at position 0 and "Int64\(\-80\) \* \(\- Int64\(\-7\)\) \* CAST\(NULL AS Float64\) \* \(\- \(\- nullif\(Int64\(84\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-90\)\) \* Int64\(\-79\) \* Int64\(32\) \+ Int64\(79\) \+ Int64\(89\)\)\)\) \- Int64\(\-42\) \+ Int64\(76\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 44 + + 38 + + 48 * + ( - - 31 ) col0, - 80 * - ( + - 7 ) * + CAST ( NULL AS FLOAT8 ) * - - NULLIF ( 84, - COUNT ( * ) * - - 90 * - 79 * 32 + 79 + 89 ) - - 42 + 76 + + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -5734,7 +5734,7 @@ SELECT - 73 * - + 79 + - - 43 + + - COUNT ( * ) + 62 * - - ( - 45 ) + - 55 + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- sum\(DISTINCT Int64\(11\)\)\) AS col0" at position 0 and "\(\- nullif\(Int64\(14\), Int64\(81\) \* Int64\(16\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(24\)\)\)\) \+ count\(\*\) \- Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- sum\(DISTINCT Int64\(11\)\)\) AS col0" at position 0 and "\(\- nullif\(Int64\(14\), Int64\(81\) \* Int64\(16\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(24\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 53 + - SUM ( DISTINCT 11 ) AS col0, - NULLIF ( + 14, + 81 * 16 + - COUNT ( * ) + - + 24 ) + + COUNT ( * ) - - 52 AS col0 query I rowsort @@ -6247,7 +6247,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\(\*\), coalesce\(Int64\(\-88\), Int64\(\-61\)\) \+ Int64\(\-57\) \+ \(\- count\(\*\)\)\)\) THEN Int64\(69\) \* \(\- Int64\(\-20\)\) ELSE NULL END \* 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 @@ -6977,7 +6977,7 @@ SELECT COUNT ( * ) + + COUNT ( * ) * + - ( 81 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(66\) \- Int64\(88\) \- Int64\(40\) \* \(\- count\(\*\)\) / count\(DISTINCT \(\- Int64\(19\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(66\) \- Int64\(88\) \- Int64\(40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(DISTINCT \(\- Int64\(19\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 AS col2, 66 - + 88 - + 40 * - COUNT ( * ) / + COUNT ( DISTINCT + + ( - + 19 ) ) AS col2 query I rowsort label-1329 @@ -7829,7 +7829,7 @@ SELECT - COALESCE ( + 5, + - 63, - 78 ) AS col0, 89 * + 82 * - 76 # Datafusion - Expected - 90 # Datafusion - Expected - -414 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-90\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-90\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - - 90 AS col1, 23 * - 18, - CAST ( NULL AS FLOAT8 ) AS col1 query I rowsort @@ -11293,7 +11293,7 @@ SELECT 42 / - 12 - + + NULLIF ( + 59, + CAST ( - + CASE 9 WHEN + + ( + + 19 ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 11039 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "max\(\(\- Int64\(\-7\)\)\) \* Int64\(83\) \* 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 "max\(\(\- Int64\(\-7\)\)\) \* Int64\(83\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, + MAX ( - - 7 ) * 83 * + + 19 col2 query I rowsort @@ -11528,7 +11528,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\(\*\) 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 @@ -12420,7 +12420,7 @@ SELECT - MIN ( DISTINCT + 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2564 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-78\) \+ Int64\(10\) AS col2" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-78\) \+ Int64\(10\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 33 * - 78 + + + 10 AS col2, CAST ( - COUNT ( * ) AS INTEGER ) AS col2 query II rowsort label-2368 @@ -12916,7 +12916,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\(\*\) 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 # Datafusion - Datafusion expected results: @@ -13864,7 +13864,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\(\*\) 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 @@ -14467,7 +14467,7 @@ SELECT 57 + + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-26\) \- count\(\*\) \+ \(\- nullif\(max\(Int64\(82\)\), \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-26\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(max\(Int64\(82\)\), \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 80 col1, COUNT ( * ) * + - 26 - COUNT ( * ) + - NULLIF ( MAX ( + ( 82 ) ), - CAST ( NULL AS INTEGER ) ) col1 # Datafusion - Types were automatically converted from: @@ -14508,7 +14508,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\(\*\) \+ CAST\(\(\- coalesce\(Int64\(\-58\), Int64\(\-78\)\)\) AS Int32\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 - Datafusion expected results: @@ -14704,7 +14704,7 @@ SELECT - - 38 * + COUNT ( * ) + 52 + - + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / min\(Int64\(85\)\) \+ Int64\(95\) 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\(\*\)\) / min\(Int64\(85\)\) \+ Int64\(95\) 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 ( * ) / + MIN ( + 85 ) + + + 95 AS col2, 33 AS col2 query I rowsort @@ -15476,7 +15476,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\(\*\) 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 @@ -16101,7 +16101,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\(\*\) 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 @@ -16280,7 +16280,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\(\*\) AS col1" at position 1 have the 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 @@ -17602,7 +17602,7 @@ SELECT 81 / - + 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-94\) \* \(\- Int64\(22\)\) \+ Int64\(30\) AS col1" at position 0 and "Int64\(40\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-94\) \* \(\- Int64\(22\)\) \+ Int64\(30\) 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 ( * ) / - 94 * - + 22 + 30 AS col1, + 40 + - COUNT ( * ) AS col1 query II rowsort label-3348 @@ -17637,7 +17637,7 @@ SELECT ALL 12 - + + 24 # Datafusion - Expected - 58608 # Datafusion - Expected - 1824 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(20\) \* Int64\(38\) \+ Int64\(88\) AS col0" at position 0 and "\(\- \(\- CASE Int64\(59\) WHEN Int64\(61\) \* Int64\(\-71\) \* Int64\(36\) \+ Int64\(25\) / Int64\(\-91\) THEN Int64\(99\) / Int64\(5\) \* count\(\*\) ELSE Int64\(\-32\) END\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(20\) \* Int64\(38\) \+ Int64\(88\) AS col0" at position 0 and "\(\- \(\- CASE Int64\(59\) WHEN Int64\(61\) \* Int64\(\-71\) \* Int64\(36\) \+ Int64\(25\) / Int64\(\-91\) THEN Int64\(99\) / Int64\(5\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(\-32\) END\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 * + 20 * 38 + 88 AS col0, + 57 * - ( - + 32 ), - - CASE + + 59 WHEN 61 * - 71 * 36 + + 25 / - 91 THEN 99 / 5 * + COUNT ( * ) ELSE - 32 END AS col0 query I rowsort label-3354 @@ -18728,7 +18728,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\(\*\) 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 @@ -19044,7 +19044,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\(\*\) 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 @@ -19938,7 +19938,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\(\*\)\) \* 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 @@ -22216,7 +22216,7 @@ SELECT ALL - - 69, + 72 * 56 AS col1 # 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\(\*\)\)\) 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 ( * ) AS col1, + 48 AS col1 query I rowsort @@ -22530,7 +22530,7 @@ SELECT - 18 * 6 / - + 69 # Datafusion - Expected - -39 # Datafusion - Expected - -47 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(\*\)\), Int64\(29\) \+ Int64\(\-60\), Int64\(62\)\) \+ Int64\(\-38\) AS col0" at position 0 and "count\(\*\) \* count\(\*\) / \(\- Int64\(\-36\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(29\) \+ Int64\(\-60\), Int64\(62\)\) \+ Int64\(\-38\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-36\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( ( - COUNT ( * ) ), + 29 + + - 60, + + 62 ) + - 38 AS col0, - 47, COUNT ( * ) * COUNT ( * ) / - - 36 col0 query II rowsort @@ -23750,7 +23750,7 @@ SELECT ALL - NULLIF ( + 81, 13 - + - 40 ) AS col0 # 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\(\*\)\)\) AS col2" at position 0 and "count\(\*\) / Int64\(\-27\) \+ \(\- coalesce\(\(\- Int64\(7\)\), Int64\(92\) \* Int64\(53\), Int64\(1\)\)\) \* \(\- 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 "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-27\) \+ \(\- coalesce\(\(\- Int64\(7\)\), Int64\(92\) \* Int64\(53\), Int64\(1\)\)\) \* \(\- Int64\(\-78\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) col2, COUNT ( * ) / - 27 + - COALESCE ( - + 7, 92 * + 53, 1 ) * - - 78 AS col2 query I rowsort @@ -24675,14 +24675,14 @@ 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\(\*\) 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: # Datafusion - Expected - 1 # Datafusion - Expected - 5006 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-14\) \+ \(\- \(\- Int64\(3\)\)\) \- \(\- \(\- Int64\(76\)\)\) \* \(\- CAST\(Int64\(65\) AS Int32\)\) AS col1" at position 1 and "\(\- count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-14\) \+ \(\- \(\- Int64\(3\)\)\) \- \(\- \(\- Int64\(76\)\)\) \* \(\- CAST\(Int64\(65\) AS Int32\)\) AS col1" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + 77 + + - 14 + - ( - + 3 ) - - ( - + 76 ) * + - CAST ( + + 65 AS INTEGER ) AS col1, + - ( COUNT ( * ) ) AS col1 query I rowsort @@ -25000,7 +25000,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\(\*\) AS col1" at position 1 have the 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 @@ -26950,7 +26950,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\(\*\) 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 @@ -27127,7 +27127,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -28402,7 +28402,7 @@ SELECT + NULLIF ( - 19, + + COUNT ( * ) * - COUNT ( * ) + + 40 * - 42 + - COALES # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \+ min\(Int64\(91\)\) AS col2" at position 0 and "Int64\(80\) \+ Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ min\(Int64\(91\)\) AS col2" at position 0 and "Int64\(80\) \+ Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) + MIN ( + 91 ) AS col2, 80 + - 29 AS col2 query II rowsort label-5408 @@ -28466,7 +28466,7 @@ SELECT DISTINCT + ( ( - 51 ) ) * - 6 * + 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) / Int64\(\-88\) \+ max\(Int64\(\-24\)\) \+ \(\- min\(DISTINCT Int64\(\-21\)\)\) / count\(\*\) \+ Int64\(\-96\) \+ Int64\(74\) 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\(76\) / Int64\(\-88\) \+ max\(Int64\(\-24\)\) \+ \(\- min\(DISTINCT Int64\(\-21\)\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-96\) \+ Int64\(74\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 76 / - 88 + MAX ( + - 24 ) + - + MIN ( DISTINCT - 21 ) / + COUNT ( * ) + - 96 + + 74 AS col1, 25 AS col1 query I rowsort label-5420 @@ -28628,7 +28628,7 @@ SELECT 60 * - + 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2520 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* count\(\*\) \* Int64\(72\) 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 "Int64\(35\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 35 * + COUNT ( * ) * + 72 AS col1, - 74 AS col1 query I rowsort @@ -28639,7 +28639,7 @@ SELECT + 1 * - 28 + - + 44 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\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(\-37\), 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 "coalesce\(Int64\(\-37\), Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) col0, + COALESCE ( - 37, + 22 ) AS col0 query I rowsort @@ -28759,7 +28759,7 @@ SELECT DISTINCT 70 + + 11 * + + 43 * + CASE 89 WHEN + + 90 THEN + + 65 + + COUNT # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 ALL 9 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -29028,7 +29028,7 @@ SELECT + CAST ( SUM ( ALL - - 48 ) AS INTEGER ) + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(\-74\) 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\(\*\)\) \- Int64\(\-74\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) - - 74 AS col0, + 88 AS col0 # Datafusion - Datafusion expected results: @@ -30074,7 +30074,7 @@ SELECT 5 * - 44 * + + COALESCE ( COALESCE ( 99, + - 23 ), ( + 71 ) / + - 35 - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ nullif\(Int64\(\-61\), Int64\(57\)\) \- \(\- Int64\(\-26\)\) 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\(\*\) \+ nullif\(Int64\(\-61\), Int64\(57\)\) \- \(\- Int64\(\-26\)\) 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 ( * ) + NULLIF ( - 61, + 57 ) - - + ( - 26 ) AS col1, + 43 AS col1 query II rowsort label-5725 @@ -30179,7 +30179,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\(\*\) 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 @@ -31720,7 +31720,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-86\), 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 "coalesce\(Int64\(\-86\), 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 COALESCE ( - 86, + COUNT ( * ) ) AS col1, 46 AS col1 query I rowsort label-6034 @@ -31741,7 +31741,7 @@ SELECT + MIN ( - 30 ) - 18 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(28\) \+ \(\- count\(\*\)\) \+ 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\(46\) AS col0" at position 0 and "Int64\(28\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 46 AS col0, + 28 + - COUNT ( * ) + 66 col0 query I rowsort label-6038 @@ -31954,7 +31954,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\(\*\) AS col2" at position 1 have the 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 @@ -32935,7 +32935,7 @@ SELECT + COUNT ( * ) AS col0, 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4067 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int32\)\) \* Int64\(\-83\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int32\)\) \* Int64\(\-83\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( - 49 AS INTEGER ) * - 83 AS col2, - COUNT ( * ) AS col2 # Datafusion - Types were automatically converted from: @@ -33941,7 +33941,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\(\*\) 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 @@ -34323,7 +34323,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\(\*\) AS col2" at position 1 have the 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 @@ -34527,7 +34527,7 @@ SELECT ALL 9 * 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CASE \(\- Int64\(71\)\) WHEN Int64\(38\) \+ count\(\*\) THEN \(\- max\(Int64\(83\)\)\) \* Int64\(82\) \* Int64\(\-81\) WHEN Int64\(91\) \* Int64\(60\) \- avg\(Int64\(69\)\) \* Int64\(33\) \+ Int64\(\-94\) \+ count\(\*\) THEN NULL END \+ nullif\(\(\- Int64\(96\)\), \(\- Int64\(18\)\)\) 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\(\*\) \+ CASE \(\- Int64\(71\)\) WHEN Int64\(38\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- max\(Int64\(83\)\)\) \* Int64\(82\) \* Int64\(\-81\) WHEN Int64\(91\) \* Int64\(60\) \- avg\(Int64\(69\)\) \* Int64\(33\) \+ Int64\(\-94\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL END \+ nullif\(\(\- Int64\(96\)\), \(\- Int64\(18\)\)\) 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 ( * ) + + CASE - ( + 71 ) WHEN 38 + + COUNT ( * ) THEN + - MAX ( 83 ) * + 82 * + - 81 WHEN + 91 * 60 - AVG ( 69 ) * 33 + - 94 + + COUNT ( * ) THEN NULL END + + NULLIF ( - + 96, - + 18 ) AS col1, - 17 AS col1 query I rowsort label-6567 @@ -37209,7 +37209,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\(\*\) AS col2" at position 0 and "Int64\(19\) \- count\(\*\) AS col2" at position 1 have the 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 @@ -37839,7 +37839,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(5\) / Int64\(\-63\) \* \(\- CAST\(Int64\(97\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(5\) / Int64\(\-63\) \* \(\- CAST\(Int64\(97\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + - 11 AS col0, ( 5 ) / - 63 * - CAST ( + + 97 AS INTEGER ) AS col0 query II rowsort @@ -38858,7 +38858,7 @@ SELECT + - 11 + - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1456 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) \+ Int64\(82\) \* Int64\(17\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) \+ Int64\(82\) \* Int64\(17\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 62 + 82 * + 17 AS col2, - COUNT ( * ) + + + 83 AS col2 query I rowsort label-7389 @@ -39570,7 +39570,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5073 # Datafusion - Expected - -3180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) / Int64\(43\) \+ Int64\(\-89\) \* \(\- count\(\*\)\) \* Int64\(\-57\) AS col0" at position 0 and "Int64\(86\) \* Int64\(\-36\) \+ \(\- Int64\(84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) / Int64\(43\) \+ Int64\(\-89\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-57\) AS col0" at position 0 and "Int64\(86\) \* Int64\(\-36\) \+ \(\- Int64\(84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 / + + 43 + - 89 * + - COUNT ( * ) * + ( - 57 ) col0, 86 * + + ( - 36 ) + - + 84 AS col0 query I rowsort label-7524 @@ -39826,7 +39826,7 @@ NULL # Datafusion - Expected - -403 # Datafusion - Expected - 33 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- \(\- sum\(DISTINCT \(\- Int64\(31\)\)\)\)\) AS col1" at position 0 and "Int64\(31\) \+ count\(\*\) \+ coalesce\(\(\- nullif\(Int64\(\-3\), Int64\(\-60\)\)\), \(\- nullif\(Int64\(26\), Int64\(52\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- \(\- sum\(DISTINCT \(\- Int64\(31\)\)\)\)\) AS col1" at position 0 and "Int64\(31\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(\(\- nullif\(Int64\(\-3\), Int64\(\-60\)\)\), \(\- nullif\(Int64\(26\), Int64\(52\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 13 * ( + - ( + - SUM ( DISTINCT - + 31 ) ) ) AS col1, + 33, + + 31 + COUNT ( * ) + COALESCE ( - NULLIF ( - 3, + - 60 ), - + NULLIF ( + 26, + 52 ) ) AS col1 query I rowsort label-7572 @@ -42794,7 +42794,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\(\*\) AS col1" at position 1 have the 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 @@ -44140,7 +44140,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\(\*\) 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 @@ -44265,7 +44265,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\(\*\) 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 @@ -45591,7 +45591,7 @@ SELECT ALL + ( + COALESCE ( - COALESCE ( - 93, + - 39 * + 57 * + 19 ), - 36 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 21861 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(\-37\) \* sum\(Int64\(25\)\) \* coalesce\(\(\- max\(Int64\(22\)\)\), Int64\(17\)\) \+ \(\- count\(\*\)\) \+ Int64\(36\) \* 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\(93\) AS col2" at position 0 and "Int64\(\-37\) \* sum\(Int64\(25\)\) \* coalesce\(\(\- max\(Int64\(22\)\)\), Int64\(17\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(36\) \* Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 AS col2, - 37 * SUM ( 25 ) * + COALESCE ( + - MAX ( ALL 22 ), 17 ) + - COUNT ( * ) + + + 36 * + 42 AS col2 query I rowsort label-8674 @@ -47852,7 +47852,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\(\*\) 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 @@ -48360,7 +48360,7 @@ SELECT - - 8 * 25 * + 16 + - COUNT ( * ) - - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5270 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-36\)\) \* Int64\(\-55\) \+ Int64\(37\) \* Int64\(91\) \+ sum\(Int64\(\-92\)\) \+ Int64\(53\) \* Int64\(75\) AS col1" at position 0 and "\(\- Int64\(85\)\) / \(\- 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\(\-36\)\) \* Int64\(\-55\) \+ Int64\(37\) \* Int64\(91\) \+ sum\(Int64\(\-92\)\) \+ Int64\(53\) \* Int64\(75\) AS col1" at position 0 and "\(\- Int64\(85\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 36 * - 55 + + 37 * 91 + + SUM ( + - 92 ) + 53 * 75 AS col1, + ( - + 85 ) / + - COUNT ( * ) + - 52 AS col1 query I rowsort label-9201 @@ -48559,7 +48559,7 @@ SELECT ALL + - CAST ( + 99 AS INTEGER ) + + 6 * + 31 AS col0, 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(\-50\) AS col1" at position 0 and "Int64\(41\) \* \(\- Int64\(36\)\) \+ CAST\(NULL AS Int32\) \* Int64\(54\) \* Int64\(\-24\) \+ Int64\(\-40\) \+ count\(\*\) \* Int64\(29\) \* Int64\(\-22\) \* Int64\(\-88\) \- Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(\-50\) AS col1" at position 0 and "Int64\(41\) \* \(\- Int64\(36\)\) \+ CAST\(NULL AS Int32\) \* Int64\(54\) \* Int64\(\-24\) \+ Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \* Int64\(\-22\) \* Int64\(\-88\) \- Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 76 + - 50 AS col1, 41 * - + 36 + CAST ( NULL AS INTEGER ) * + ( 54 ) * + - 24 + - 40 + + + COUNT ( * ) * 29 * ( - 22 ) * - 88 - + - 72 col1 query I rowsort label-9239 @@ -51207,7 +51207,7 @@ SELECT ALL + 97 - + 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8170 # Datafusion - Expected - 191 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) \* Int64\(\-95\) AS col1" at position 0 and "Int64\(92\) \+ Int64\(65\) \+ coalesce\(\(\- Int64\(\-17\)\), count\(\*\), Int64\(98\) \+ count\(\*\) / CAST\(\(\- Int64\(15\)\) AS Int32\) \+ \(\- count\(\*\)\)\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) \* Int64\(\-95\) AS col1" at position 0 and "Int64\(92\) \+ Int64\(65\) \+ coalesce\(\(\- Int64\(\-17\)\), count\(Int64\(1\)\) AS count\(\*\), Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(\(\- Int64\(15\)\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 86 * + - 95 AS col1, + 92 + 65 + COALESCE ( - ( - 17 ), + COUNT ( * ), 98 + + COUNT ( * ) / + CAST ( - ( + 15 ) AS INTEGER ) + - COUNT ( * ) ) * 2 col1 query II rowsort label-9740 @@ -51488,7 +51488,7 @@ SELECT ALL - 38 * - + 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(\-74\) 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\(\*\)\) / Int64\(\-74\) 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 ( * ) / - 74 AS col1, 75 col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_70.slt b/data/sqlite/random/expr/slt_good_70.slt index c740995..8ffee89 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\(\*\) AS col1" at position 1 have the same name\. 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 @@ -172,7 +172,7 @@ SELECT DISTINCT - ( - COALESCE ( + COUNT ( * ), - 53 - - + ( COUNT ( * ) ) ) ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 2064 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(86\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(86\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 + - COUNT ( * ) AS col1, 86 * + 24 col1 query I rowsort label-27 @@ -1117,7 +1117,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\(\*\) AS col2" at position 1 have the 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 @@ -1382,7 +1382,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\(\*\)\), \(\- coalesce\(Int64\(\-65\), Int64\(\-40\) \+ Int64\(29\) \+ Int64\(\-25\) \+ Int64\(\-71\) \* \(\- 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\(\*\) AS Int32\)\) \* Int64\(\-56\) END WHEN avg\(Int64\(\-3\)\) THEN \(\- 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 @@ -2800,7 +2800,7 @@ SELECT 1 * - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1068 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ count\(\*\) \* Int64\(32\) AS col0" at position 0 and "CASE Int64\(22\) WHEN Int64\(\-1\) THEN NULL ELSE Int64\(\-87\) \* Int64\(\-12\) \+ Int64\(24\) 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\(\-5\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(32\) AS col0" at position 0 and "CASE Int64\(22\) WHEN Int64\(\-1\) THEN NULL ELSE Int64\(\-87\) \* Int64\(\-12\) \+ Int64\(24\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 5 + + COUNT ( * ) * 32 AS col0, CASE + 22 WHEN - 1 THEN NULL ELSE - 87 * - 12 + 24 END AS col0 query II rowsort label-526 @@ -3538,7 +3538,7 @@ SELECT ALL + 87 - 33, 8 - 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2028 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(\-39\) AS col2" at position 0 and "count\(\*\) \+ Int64\(\-42\) \+ \(\- max\(Int64\(\-50\)\)\) \+ 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\(52\) \* Int64\(\-39\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-42\) \+ \(\- max\(Int64\(\-50\)\)\) \+ Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 * - 39 AS col2, COUNT ( * ) + - 42 + - MAX ( ALL - 50 ) + + 77 AS col2 query I rowsort label-663 @@ -4298,7 +4298,7 @@ SELECT ALL 15 col1, 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(27\) / Int64\(\-66\) AS col0" at position 0 and "Int64\(\-86\) \+ \(\- Int64\(\-96\)\) \+ CASE \(\- count\(\*\)\) WHEN Int64\(\-87\) \* \(\- Int64\(52\)\) \* Int64\(57\) \+ \(\- min\(Int64\(\-9\)\)\) THEN Int64\(81\) WHEN Int64\(68\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END / Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(27\) / Int64\(\-66\) AS col0" at position 0 and "Int64\(\-86\) \+ \(\- Int64\(\-96\)\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-87\) \* \(\- Int64\(52\)\) \* Int64\(57\) \+ \(\- min\(Int64\(\-9\)\)\) THEN Int64\(81\) WHEN Int64\(68\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END / Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 + + 27 / - 66 col0, - 86 + - - 96 + + CASE - COUNT ( * ) WHEN - 87 * - + 52 * + 57 + + - MIN ( + - 9 ) THEN 81 WHEN 68 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END / - 94 AS col0 query I rowsort @@ -4828,7 +4828,7 @@ SELECT + + 39 AS col1, 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -349931 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "coalesce\(Int64\(94\), \(\- Int64\(\-92\)\), \(\- max\(DISTINCT Int64\(\-41\)\)\), Int64\(\-95\)\) \* Int64\(\-73\) \* Int64\(51\) \+ 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\(\-63\) AS col1" at position 0 and "coalesce\(Int64\(94\), \(\- Int64\(\-92\)\), \(\- max\(DISTINCT Int64\(\-41\)\)\), Int64\(\-95\)\) \* Int64\(\-73\) \* Int64\(51\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 63 col1, + COALESCE ( 94, - - 92, - MAX ( DISTINCT - 41 ), + - 95 ) * - 73 * + + 51 + + COUNT ( * ) + 30 col1 query I rowsort @@ -5508,7 +5508,7 @@ SELECT ALL - 44, + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- count\(\*\)\) \- \(\- Int64\(\-1\)\) / \(\- min\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-65\) \- \(\- CASE Int64\(17\) WHEN \(\- Int64\(\-54\)\) \+ count\(\*\) \* \(\- coalesce\(Int64\(43\), Int64\(\-92\) \* Int64\(\-46\) / Int64\(10\)\)\) THEN NULL ELSE Int64\(\-1\) \+ \(\- count\(DISTINCT Int64\(\-35\)\)\) \+ Int64\(25\) \* \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-89\) END\) / CAST\(NULL AS Int32\) \+ Int64\(50\) \+ \(\- \(\- Int64\(77\)\)\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-1\)\) / \(\- min\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-65\) \- \(\- CASE Int64\(17\) WHEN \(\- Int64\(\-54\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(Int64\(43\), Int64\(\-92\) \* Int64\(\-46\) / Int64\(10\)\)\) THEN NULL ELSE Int64\(\-1\) \+ \(\- count\(DISTINCT Int64\(\-35\)\)\) \+ Int64\(25\) \* \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-89\) END\) / CAST\(NULL AS Int32\) \+ Int64\(50\) \+ \(\- \(\- Int64\(77\)\)\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 40 + - COUNT ( * ) - - - 1 / - MIN ( DISTINCT - + ( + + 2 ) ) * - 65 - - CASE 17 WHEN - - 54 + COUNT ( * ) * - COALESCE ( + 43, - 92 * + - 46 / + 10 ) THEN NULL ELSE - 1 + - COUNT ( DISTINCT - 35 ) + + 25 * - CAST ( + - 47 AS INTEGER ) + - 89 END / + CAST ( NULL AS INTEGER ) + 50 + - ( - + 77 ) + 40 AS col2, 63 + - 45 col2 query I rowsort @@ -7429,7 +7429,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\(\*\) AS col2" at position 1 have the 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 @@ -8097,7 +8097,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\(\*\) 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 @@ -9976,7 +9976,7 @@ SELECT ALL - NULLIF ( + 46, - 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) / Int64\(91\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ Int64\(\-88\) \* Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) / Int64\(91\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-88\) \* Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 84 / 91 AS col1, - COUNT ( * ) + + + ( - 88 ) * - 57 AS col1 query I rowsort @@ -10318,7 +10318,7 @@ SELECT DISTINCT 16 * + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-71\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(28\) \+ 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-71\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(28\) \+ Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + - 71 + 10 AS col1, + 28 + 11 AS col1 query I rowsort @@ -12360,13 +12360,13 @@ 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\(\*\) AS col2" at position 1 have the 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: # Datafusion - Expected - NULL # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / \(\- coalesce\(Int64\(2\), Int64\(53\), Int64\(21\)\)\) \* \(\- count\(DISTINCT Int64\(45\)\)\) / \(\- coalesce\(nullif\(count\(\*\), Int64\(67\)\), Int64\(\-11\)\)\) \+ \(\- Int64\(\-32\)\) \* Int64\(0\) \- CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(\-89\) \+ \(\- count\(\*\)\) \* 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\(14\) / \(\- coalesce\(Int64\(2\), Int64\(53\), Int64\(21\)\)\) \* \(\- count\(DISTINCT Int64\(45\)\)\) / \(\- coalesce\(nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(67\)\), Int64\(\-11\)\)\) \+ \(\- Int64\(\-32\)\) \* Int64\(0\) \- CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(\-89\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 / - COALESCE ( + 2, + + 53, + + 21 ) * - COUNT ( DISTINCT 45 ) / - COALESCE ( + NULLIF ( COUNT ( * ), + + 67 ), - 11 ) + - - 32 * + 0 - CAST ( NULL AS FLOAT8 ) AS col0, - 89 + - COUNT ( * ) * - 87 AS col0 query I rowsort label-2349 @@ -12393,7 +12393,7 @@ SELECT + 10 - + - 32, 97 * 36 * + + 55 - + 0 + 96 AS col0 # 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 "Int64\(15\) \* \(\- Int64\(\-61\)\) \* \(\- Int64\(\-35\)\) \+ CASE \(\- Int64\(67\)\) WHEN count\(\*\) THEN NULL WHEN Int64\(12\) \* Int64\(73\) \+ Int64\(47\) THEN \(\- count\(\*\)\) END \* CASE count\(\*\) WHEN \(\- Int64\(\-55\)\) THEN Int64\(70\) \+ \(\- coalesce\(Int64\(96\), \(\- max\(DISTINCT Int64\(\-2\)\)\)\)\) WHEN Int64\(65\) \+ Int64\(6\) THEN \(\- \(\- max\(DISTINCT Int64\(\-22\)\)\)\) ELSE NULL END 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\(15\) \* \(\- Int64\(\-61\)\) \* \(\- Int64\(\-35\)\) \+ CASE \(\- Int64\(67\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(12\) \* Int64\(73\) \+ Int64\(47\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-55\)\) THEN Int64\(70\) \+ \(\- coalesce\(Int64\(96\), \(\- max\(DISTINCT Int64\(\-2\)\)\)\)\) WHEN Int64\(65\) \+ Int64\(6\) THEN \(\- \(\- max\(DISTINCT Int64\(\-22\)\)\)\) ELSE NULL END AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 * + + ( - - 61 ) * - - 35 + CASE - + 67 WHEN COUNT ( * ) THEN NULL WHEN 12 * + 73 + + 47 THEN - + COUNT ( * ) END * + CASE COUNT ( * ) WHEN - - 55 THEN + 70 + + - COALESCE ( 96, - MAX ( DISTINCT - 2 ) ) WHEN + ( + 65 ) + + 6 THEN - - MAX ( DISTINCT - 22 ) ELSE NULL END AS col1, 30 AS col1 query I rowsort @@ -13103,7 +13103,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\(94\) \+ 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 @@ -13272,7 +13272,7 @@ SELECT - 38 + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2958 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(58\) AS col2" at position 0 and "count\(\*\) \+ \(\- Int64\(88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(58\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 51 * + 58 AS col2, + COUNT ( * ) + - + 88 AS col2 query I rowsort @@ -14212,7 +14212,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\(\*\) AS col1" at position 1 have the 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 @@ -17532,7 +17532,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -18186,7 +18186,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\(\*\) AS col1" at position 1 have the 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 @@ -19563,7 +19563,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\(\*\) AS col2" at position 1 have the 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 @@ -19601,7 +19601,7 @@ SELECT ALL - 47, - 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 25 -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\(56\) \- \(\- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(56\) \- \(\- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 21 AS col2, - COUNT ( * ) * + ( + 56 ) - - + 81 AS col2 query II rowsort @@ -20524,7 +20524,7 @@ SELECT - + SUM ( ALL - + 93 ) + - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -14136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col1" at position 0 and "Int64\(38\) \* Int64\(6\) \* \(\- 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\(\-12\) AS col1" at position 0 and "Int64\(38\) \* Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 AS col1, 38 * 6 * + - COUNT ( * ) * + + 62 AS col1 query I rowsort @@ -20881,7 +20881,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2576 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* CASE Int64\(42\) WHEN Int64\(27\) THEN NULL WHEN \(\- Int64\(46\)\) \* Int64\(\-51\) / sum\(DISTINCT \(\- nullif\(Int64\(93\), Int64\(39\) \+ Int64\(\-70\) \+ Int64\(\-74\) / Int64\(99\)\)\)\) THEN Int64\(31\) ELSE \(\- Int64\(\-92\)\) / count\(\*\) / \(\- count\(\*\)\) END AS col2" at position 0 and "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 "Int64\(28\) \* CASE Int64\(42\) WHEN Int64\(27\) THEN NULL WHEN \(\- Int64\(46\)\) \* Int64\(\-51\) / sum\(DISTINCT \(\- nullif\(Int64\(93\), Int64\(39\) \+ Int64\(\-70\) \+ Int64\(\-74\) / Int64\(99\)\)\)\) THEN Int64\(31\) ELSE \(\- Int64\(\-92\)\) / count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col2" at position 0 and "Int64\(5\) \+ Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 28 * CASE + 42 WHEN + + 27 THEN NULL WHEN - ( + 46 ) * - 51 / ( + SUM ( DISTINCT - NULLIF ( + 93, + + 39 + + ( - 70 ) + - 74 / + 99 ) ) ) THEN 31 ELSE - - 92 / COUNT ( * ) / ( + - COUNT ( * ) ) END AS col2, + 5 + 38 AS col2 query I rowsort label-3975 @@ -21401,7 +21401,7 @@ SELECT + CAST ( + 9 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-69\), count\(\*\)\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-69\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + COALESCE ( - 69, COUNT ( * ) ) ) AS col1, - 11 AS col1 query I rowsort label-4074 @@ -22819,7 +22819,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\(\*\) 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 @@ -23084,7 +23084,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\(\*\) AS col2" at position 1 have the 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 @@ -23220,7 +23220,7 @@ SELECT DISTINCT - + 32 * + + SUM ( DISTINCT + 13 ) + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(69\) 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\(\*\)\) \+ Int64\(69\) 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 ( * ) + 69 AS col0, - 53 AS col0 query II rowsort label-4418 @@ -24380,7 +24380,7 @@ SELECT NULLIF ( - + 88, - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(81\) AS col1" at position 0 and "CASE Int64\(66\) WHEN \(\- count\(\*\)\) THEN Int64\(45\) WHEN Int64\(7\) 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\(95\) \+ Int64\(81\) AS col1" at position 0 and "CASE Int64\(66\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(45\) WHEN Int64\(7\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 + 81 AS col1, CASE + 66 WHEN - COUNT ( * ) THEN + 45 WHEN 7 THEN NULL END AS col1 query I rowsort @@ -26160,7 +26160,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\(\*\) AS col0" at position 1 have the 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 @@ -26216,7 +26216,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* CASE Int64\(43\) WHEN avg\(Int64\(12\)\) THEN Int64\(31\) WHEN count\(\*\) THEN Int64\(39\) END \- Int64\(82\) 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 "Int64\(\-95\) \* CASE Int64\(43\) WHEN avg\(Int64\(12\)\) THEN Int64\(31\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(39\) END \- Int64\(82\) 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 - 95 * + CASE + 43 WHEN + AVG ( ALL + 12 ) THEN + 31 WHEN COUNT ( * ) THEN + 39 END - 82 AS col2, + 22 AS col2 query I rowsort label-4991 @@ -26535,7 +26535,7 @@ SELECT + ( - 63 ) AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - 7 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 1 and "\(\- coalesce\(Int64\(\-47\), Int64\(53\) \* Int64\(\-26\) \+ Int64\(\-85\) \+ Int64\(59\), count\(\*\)\)\) \* count\(\*\) \+ Int64\(\-29\) \+ Int64\(\-2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 1 and "\(\- coalesce\(Int64\(\-47\), Int64\(53\) \* Int64\(\-26\) \+ Int64\(\-85\) \+ Int64\(59\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-29\) \+ Int64\(\-2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 7 AS col1, - COALESCE ( + - 47, 53 * - 26 + - 85 + + 59, + COUNT ( * ) ) * COUNT ( * ) + - 29 + - 2 AS col1 query I rowsort label-5052 @@ -27206,7 +27206,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\(\*\) 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 @@ -27529,7 +27529,7 @@ SELECT ALL - - 12 AS col2, COUNT ( DISTINCT - 82 ) * COUNT ( * ) - + - 58 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 330 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* count\(\*\) \* \(\- Int64\(\-66\)\) AS col1" at position 0 and "\(\- sum\(\(\- Int64\(80\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-66\)\) AS col1" at position 0 and "\(\- sum\(\(\- Int64\(80\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + 5 ) * COUNT ( * ) * - - 66 AS col1, - SUM ( ALL - + 80 ) AS col1 query I rowsort @@ -28408,7 +28408,7 @@ SELECT - - NULLIF ( 71, + 48 / - 5 ) + + - 22 + + COUNT ( * ) AS col1, - 90 * ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -3825 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ CAST\(Int64\(15\) AS Int32\) \- Int64\(94\) \* Int64\(40\) AS col2" at position 0 and "count\(\*\) \* Int64\(23\) \* \(\- count\(DISTINCT Int64\(27\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ CAST\(Int64\(15\) AS Int32\) \- Int64\(94\) \* Int64\(40\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) \* \(\- count\(DISTINCT Int64\(27\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 + + CAST ( ( 15 ) AS INTEGER ) - + 94 * 40 col2, COUNT ( * ) * 23 * - COUNT ( DISTINCT + 27 ) AS col2 query I rowsort label-5412 @@ -28497,7 +28497,7 @@ SELECT + COUNT ( * ) * + 20 * - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / \(\- Int64\(\-13\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-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 + 5 / - - 13 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -30366,7 +30366,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\(\*\) AS col1" at position 1 have the 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 @@ -32132,7 +32132,7 @@ SELECT DISTINCT - - 70 + + - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "CASE \(\- Int64\(52\)\) WHEN \(\- \(\- count\(\*\)\)\) THEN Int64\(90\) ELSE Int64\(\-2\) \- \(\- \(\- Int64\(5\)\)\) END \* 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\(0\) AS col0" at position 0 and "CASE \(\- Int64\(52\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(90\) ELSE Int64\(\-2\) \- \(\- \(\- Int64\(5\)\)\) END \* Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 0 AS col0, CASE - + 52 WHEN - ( - COUNT ( * ) ) THEN + 90 ELSE - 2 - - ( + - ( 5 ) ) END * + 92 AS col0 query I rowsort label-6123 @@ -32240,7 +32240,7 @@ SELECT DISTINCT 34 * - 49 * ( + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col2" at position 0 and "count\(\*\) \- \(\- count\(\*\)\) \+ Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) - + - COUNT ( * ) + + ( 58 ) AS col2 query I rowsort @@ -32971,7 +32971,7 @@ SELECT + 81 * + 75 # 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\(\*\)\) 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 - COUNT ( * ) col2, + 70 AS col2 query I rowsort @@ -35408,7 +35408,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\(\*\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -36381,7 +36381,7 @@ SELECT + 96, 99 / - + 13 + - 25 * COALESCE ( - ( - - 17 ), COUNT ( * ) * CASE - # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 1227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-69\)\), count\(\*\)\) \* Int64\(17\) \+ Int64\(29\) \+ \(\- Int64\(1\)\) \+ 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\(\-30\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-69\)\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(17\) \+ Int64\(29\) \+ \(\- Int64\(1\)\) \+ Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 30 AS col1, + COALESCE ( - - 69, + + COUNT ( * ) ) * + 17 + + 29 + - + 1 + 26 col1 query II rowsort label-6938 @@ -36544,7 +36544,7 @@ SELECT + 20 * + 69 * + 78 AS col2 # 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\(\*\)\) 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 ( - COUNT ( * ) ) AS col0, 66 AS col0 query I rowsort label-6968 @@ -36835,7 +36835,7 @@ SELECT ALL - 52 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ \(\- 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 "Int64\(68\) \+ \(\- 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 68 + - COUNT ( * ) AS col1, 4 col1 query II rowsort @@ -37419,7 +37419,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\(\*\) AS col2" at position 1 have the 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 @@ -37627,7 +37627,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\(\*\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(94\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -38269,7 +38269,7 @@ SELECT DISTINCT MIN ( - 86 ) # 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\(2\) \- \(\- \(\- Int64\(\-45\)\)\) AS col1" at position 0 and "count\(\*\) \+ Int64\(\-1\) \* Int64\(82\) \+ \(\- \(\- CASE \(\- Int64\(11\)\) WHEN Int64\(51\) \+ \(\- Int64\(\-83\)\) \- Int64\(\-86\) \+ Int64\(49\) \* Int64\(90\) \- \(\- Int64\(\-29\)\) THEN Int64\(\-58\) WHEN Int64\(15\) THEN Int64\(\-16\) \* Int64\(93\) END\)\) \* \(\- Int64\(84\)\) / Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \- \(\- \(\- Int64\(\-45\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-1\) \* Int64\(82\) \+ \(\- \(\- CASE \(\- Int64\(11\)\) WHEN Int64\(51\) \+ \(\- Int64\(\-83\)\) \- Int64\(\-86\) \+ Int64\(49\) \* Int64\(90\) \- \(\- Int64\(\-29\)\) THEN Int64\(\-58\) WHEN Int64\(15\) THEN Int64\(\-16\) \* Int64\(93\) END\)\) \* \(\- Int64\(84\)\) / Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 2 - - - ( - 45 ) AS col1, COUNT ( * ) + - 1 * + 82 + - + ( - CASE + - ( 11 ) WHEN 51 + - - 83 - - 86 + 49 * 90 - - - 29 THEN - 58 WHEN + + 15 THEN - 16 * 93 END ) * - + 84 / + 80 AS col1 query I rowsort label-7296 @@ -38635,7 +38635,7 @@ SELECT DISTINCT + 96 * - + 84 / + COUNT ( ALL - + 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-7\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(\-8\) \- 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\(\*\) / Int64\(\-7\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(\-8\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / ( - 7 ) col2, 82 + - 8 - - 33 AS col2 query I rowsort label-7366 @@ -38694,7 +38694,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\(\*\) AS col0" at position 1 have the 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 @@ -40632,7 +40632,7 @@ SELECT - ( - COUNT ( * ) ) / 56 / - 95 + - COALESCE ( + - 27, + 51 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* max\(Int64\(13\)\) 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\(\*\) \* max\(Int64\(13\)\) 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 ( * ) * + + MAX ( + 13 ) AS col1, ( 64 ) AS col1 query I rowsort @@ -40884,7 +40884,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\(\*\) AS col0" at position 0 and "Int64\(34\) \- \(\- Int64\(56\)\) \* Int64\(19\) \+ Int64\(15\) \+ Int64\(14\) \+ \(\- 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 @@ -42611,7 +42611,7 @@ SELECT ALL + COUNT ( * ) - - COALESCE ( - 97, + MIN ( - 21 ), + - 89 ) AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - -93 # Datafusion - Expected - 34720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col0" at position 1 and "Int64\(70\) \* Int64\(\-31\) \* sum\(Int64\(16\)\) / \(\- 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\(\-93\) AS col0" at position 1 and "Int64\(70\) \* Int64\(\-31\) \* sum\(Int64\(16\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( + CASE + - 95 WHEN 29 THEN + - 84 ELSE NULL END ), - 93 col0, 70 * - 31 * SUM ( ALL 16 ) / - COUNT ( * ) AS col0 query I rowsort @@ -43465,7 +43465,7 @@ SELECT - + COUNT ( * ) + 15 + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* count\(\*\) \+ Int64\(2\) 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\(\-99\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(2\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 99 * + COUNT ( * ) + 2 AS col0, + 67 AS col0 query I rowsort label-8292 @@ -43572,7 +43572,7 @@ SELECT 41 AS col1, 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - -129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) \+ Int64\(75\) \+ Int64\(42\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(\*\)\)\), Int64\(\-20\) \* Int64\(\-99\)\) \* \(\- Int64\(\-3\)\) \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(75\) \+ Int64\(42\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-20\) \* Int64\(\-99\)\) \* \(\- Int64\(\-3\)\) \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + 75 + + 42 col1, COALESCE ( - - COUNT ( * ), - 20 * - 99 ) * - - 3 * - 43 AS col1 query I rowsort label-8312 @@ -45104,7 +45104,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\(20\) \+ Int64\(\-3\) \+ Int64\(\-88\) \+ 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 @@ -45322,7 +45322,7 @@ SELECT DISTINCT 8 col0, + COUNT ( ALL 11 ) AS col0, - COALESCE ( + SUM ( 36 ), + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(96\) WHEN Int64\(74\) THEN \(\- min\(Int64\(6\)\)\) \* count\(\*\) \* Int64\(99\) \+ Int64\(\-64\) \* \(\- sum\(DISTINCT Int64\(\-16\)\)\) ELSE NULL END AS col1" at position 0 and "sum\(DISTINCT 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 "CASE Int64\(96\) WHEN Int64\(74\) THEN \(\- min\(Int64\(6\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(99\) \+ Int64\(\-64\) \* \(\- sum\(DISTINCT Int64\(\-16\)\)\) ELSE NULL END AS col1" at position 0 and "sum\(DISTINCT Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE 96 WHEN 74 THEN - MIN ( ALL 6 ) * + + COUNT ( * ) * 99 + - 64 * - SUM ( DISTINCT - 16 ) ELSE NULL END AS col1, SUM ( DISTINCT - 7 ) col1 query I rowsort @@ -45425,7 +45425,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\(\*\) AS col2" at position 1 have the 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 @@ -45655,7 +45655,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\(\*\) 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 @@ -46401,7 +46401,7 @@ SELECT SUM ( NULLIF ( + + 19, + 63 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(66\) \+ Int64\(77\) AS col1" at position 0 and "\(\- count\(\*\)\) \* \(\- CASE \(\- CAST\(\(\- max\(Int64\(\-33\)\)\) AS Int32\)\) WHEN \(\- \(\- min\(Int64\(19\)\)\)\) THEN NULL WHEN Int64\(25\) THEN Int64\(50\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(66\) \+ Int64\(77\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CASE \(\- CAST\(\(\- max\(Int64\(\-33\)\)\) AS Int32\)\) WHEN \(\- \(\- min\(Int64\(19\)\)\)\) THEN NULL WHEN Int64\(25\) THEN Int64\(50\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 / + 66 + 77 AS col1, - COUNT ( * ) * - + CASE - + CAST ( - MAX ( + - 33 ) AS INTEGER ) WHEN - - MIN ( + 19 ) THEN NULL WHEN + 25 THEN + 50 ELSE NULL END col1 query I rowsort @@ -47918,7 +47918,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -48958,7 +48958,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 1581 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(49\), \(\- sum\(Int64\(63\)\)\) \- count\(\*\), Int64\(72\), Int64\(\-60\) \- Int64\(\-30\) \+ Int64\(89\)\) AS col2" at position 0 and "Int64\(\-93\) \* 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 "coalesce\(Int64\(49\), \(\- sum\(Int64\(63\)\)\) \- count\(Int64\(1\)\) AS count\(\*\), Int64\(72\), Int64\(\-60\) \- Int64\(\-30\) \+ Int64\(89\)\) AS col2" at position 0 and "Int64\(\-93\) \* Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + 49, - SUM ( + 63 ) - + COUNT ( * ), + 72, - 60 - - 30 + 89 ) AS col2, - 93 * - 17 col2 query I rowsort @@ -48969,7 +48969,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 548 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(65\) \- Int64\(52\) \+ Int64\(8\) \* \(\- max\(Int64\(\-83\)\)\) AS col2" at position 0 and "Int64\(90\) / 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\(\*\) \- Int64\(65\) \- Int64\(52\) \+ Int64\(8\) \* \(\- max\(Int64\(\-83\)\)\) AS col2" at position 0 and "Int64\(90\) / Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - 65 - 52 + + 8 * - MAX ( - 83 ) AS col2, 90 / 45 AS col2 query I rowsort label-9342 @@ -49049,7 +49049,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\(\*\) 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 @@ -50305,7 +50305,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\(\*\) 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 @@ -50352,7 +50352,7 @@ SELECT DISTINCT - + 64 - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(\-2\) \* Int64\(25\) \- \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(\-2\) \* Int64\(25\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 53 AS col2, - 2 * 25 - - + COUNT ( * ) AS col2 query I rowsort @@ -51831,7 +51831,7 @@ SELECT ALL - COUNT ( DISTINCT - 42 ) / + ( + SUM ( ALL 10 ) ) + - 41 + - - 44 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / sum\(Int64\(42\)\) AS col1" at position 0 and "coalesce\(Int64\(35\), Int64\(84\), Int64\(54\) \* Int64\(47\) \+ \(\- Int64\(\-32\)\) \- Int64\(89\) / Int64\(88\) \+ 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\(\*\) / sum\(Int64\(42\)\) AS col1" at position 0 and "coalesce\(Int64\(35\), Int64\(84\), Int64\(54\) \* Int64\(47\) \+ \(\- Int64\(\-32\)\) \- Int64\(89\) / Int64\(88\) \+ Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / SUM ( + 42 ) AS col1, COALESCE ( + 35, + 84, + + 54 * + + 47 + - - 32 - 89 / 88 + - 33 ) AS col1 query I rowsort label-9895 diff --git a/data/sqlite/random/expr/slt_good_71.slt b/data/sqlite/random/expr/slt_good_71.slt index 314cb37..2549073 100644 --- a/data/sqlite/random/expr/slt_good_71.slt +++ b/data/sqlite/random/expr/slt_good_71.slt @@ -2760,7 +2760,7 @@ SELECT DISTINCT 33 AS col1, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 443 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-16\)\) \+ \(\- nullif\(Int64\(\-26\), coalesce\(Int64\(\-36\), count\(\*\), Int64\(\-45\)\)\)\) \* Int64\(17\) 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\(\-16\)\) \+ \(\- nullif\(Int64\(\-26\), coalesce\(Int64\(\-36\), count\(Int64\(1\)\) AS count\(\*\), Int64\(\-45\)\)\)\) \* Int64\(17\) 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 COUNT ( - 16 ) + + - NULLIF ( - 26, + COALESCE ( - 36, COUNT ( * ), - 45 ) ) * 17 AS col0, 15 AS col0 query I rowsort label-518 @@ -3223,7 +3223,7 @@ SELECT COUNT ( * ) * + - 97 + + COALESCE ( + 38, + - 82 * ( + - 67 ) / + - 51 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -8462 -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\(\-93\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-93\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 32 AS col2, COUNT ( * ) + - 93 * + 91 AS col2 query I rowsort label-607 @@ -3314,7 +3314,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\(\*\) AS col1" at position 1 have the 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 @@ -3843,7 +3843,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\(6\) \- avg\(coalesce\(Int64\(\-58\), Int64\(\-35\), Int64\(68\) \* Int64\(\-63\)\)\) \* Int64\(66\) / Int64\(41\)\) \* count\(\*\) AS col2" at position 1 have 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 @@ -5169,7 +5169,7 @@ SELECT 32 * 99 + - 10 + + 53 * - - ( - + COUNT ( * ) ) * - + 10 + - 81 * - 85 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -160 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(80\)\)\) \* Int64\(44\) / CASE \(\- \(\- max\(Int64\(15\)\)\)\) WHEN avg\(Int64\(\-8\)\) / max\(\(\- Int64\(49\)\)\) \* Int64\(90\) THEN NULL ELSE Int64\(22\) END AS col1" at position 0 and "count\(\*\) \* 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 "\(\- sum\(Int64\(80\)\)\) \* Int64\(44\) / CASE \(\- \(\- max\(Int64\(15\)\)\)\) WHEN avg\(Int64\(\-8\)\) / max\(\(\- Int64\(49\)\)\) \* Int64\(90\) THEN NULL ELSE Int64\(22\) END AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( 80 ) * + 44 / + + CASE - - MAX ( ALL 15 ) WHEN + + AVG ( ALL - 8 ) / + MAX ( - + 49 ) * + 90 THEN NULL ELSE 22 END AS col1, COUNT ( * ) * + 6 AS col1 query II rowsort label-979 @@ -7065,7 +7065,7 @@ SELECT - + 24 - - ( + 62 ) - - + MAX ( DISTINCT + - 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) / Int64\(25\) / Int64\(62\) / \(\- Int64\(\-18\)\) \* Int64\(\-64\) AS col1" at position 0 and "\(\- \(\- nullif\(Int64\(89\), Int64\(58\) \+ Int64\(36\) \+ count\(\*\)\)\)\) AS col1" at position 1 have the 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\(25\) / Int64\(62\) / \(\- Int64\(\-18\)\) \* Int64\(\-64\) AS col1" at position 0 and "\(\- \(\- nullif\(Int64\(89\), Int64\(58\) \+ Int64\(36\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 95 ) / 25 / 62 / - - 18 * - 64 AS col1, ( - - NULLIF ( 89, + 58 + ( 36 + COUNT ( * ) ) ) ) AS col1 query II rowsort @@ -7449,7 +7449,7 @@ SELECT DISTINCT SUM ( DISTINCT - - 45 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-38\), \(\- \(\- count\(\*\)\)\) \* Int64\(\-31\) \- Int64\(95\), \(\- Int64\(14\)\)\) AS col1" at position 0 and "Int64\(95\) \+ \(\- 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 "coalesce\(Int64\(\-38\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-31\) \- Int64\(95\), \(\- Int64\(14\)\)\) AS col1" at position 0 and "Int64\(95\) \+ \(\- Int64\(37\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + - 38, - - COUNT ( * ) * - 31 - + 95, - + 14 ) AS col1, + 95 + - + 37 AS col1 query I rowsort label-1420 @@ -7566,7 +7566,7 @@ SELECT ALL + 93, - 24 AS col1 # Datafusion - Expected - -1 # Datafusion - Expected - 95 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) \* Int64\(39\) \* count\(\*\) \+ \(\- max\(Int64\(\-38\)\)\) 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(Int64\(\-38\)\)\) 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 ( * ) * - COUNT ( * ) * + 39 * COUNT ( * ) + - MAX ( ALL + - 38 ) col1, 95 AS col1, 69 AS col1 query I rowsort @@ -8076,7 +8076,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-32\) AS Int32\) AS col1" at position 0 and "count\(\*\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-32\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 32 AS INTEGER ) col1, COUNT ( * ) + + 15 AS col1 query I rowsort label-1537 @@ -8176,7 +8176,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\(\*\) 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 @@ -10350,7 +10350,7 @@ SELECT 70 AS col1, - 84 # 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 "Int64\(1\) AS col1" at position 0 and "coalesce\(Int64\(50\), \(\- Int64\(68\)\) \+ count\(\*\), \(\- min\(\(\- Int64\(34\)\)\)\) \+ Int64\(\-73\) \+ Int64\(\-22\)\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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 "coalesce\(Int64\(50\), \(\- Int64\(68\)\) \+ count\(Int64\(1\)\) AS count\(\*\), \(\- min\(\(\- Int64\(34\)\)\)\) \+ Int64\(\-73\) \+ Int64\(\-22\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 1 AS col1, + COALESCE ( 50, - + 68 + + COUNT ( * ), - MIN ( - + 34 ) + - 73 + - 22 ) - - COUNT ( * ) AS col1 query I rowsort @@ -10902,7 +10902,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -13929,7 +13929,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\(\*\) AS col2" at position 1 have the 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 @@ -16240,7 +16240,7 @@ SELECT ALL ( + 34 ) / - - ( + 80 ) + - - 47 + + 15 + - - 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-58\) 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\(\*\) \* Int64\(\-58\) 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 ( * ) * - 58 AS col2, 91 AS col2 query I rowsort label-3103 @@ -17056,7 +17056,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\(\*\) 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 @@ -18692,7 +18692,7 @@ SELECT DISTINCT + 6 + - 18 / - MIN ( + + 52 ) # 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 "coalesce\(Int64\(90\), Int64\(0\), Int64\(5\) \* Int64\(92\)\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(17\) \* count\(\*\) / Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(90\), Int64\(0\), Int64\(5\) \* Int64\(92\)\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( + 90, + + 0, + + 5 * + 92 ) + + 8 AS col2, + 17 * COUNT ( * ) / - 56 AS col2 query I rowsort label-3570 @@ -19439,7 +19439,7 @@ SELECT 27 + + 17 # 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 "\(\- CASE \(\- Int64\(\-21\)\) WHEN count\(\*\) \+ \(\- Int64\(\-63\)\) THEN Int64\(43\) END\) AS col1" at position 0 and "Int64\(67\) \+ \(\- 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 "\(\- CASE \(\- Int64\(\-21\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-63\)\) THEN Int64\(43\) END\) AS col1" at position 0 and "Int64\(67\) \+ \(\- Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE - + ( - 21 ) WHEN + COUNT ( * ) + - - 63 THEN + 43 END AS col1, + 67 + - + 84 col1 query I rowsort label-3714 @@ -19885,7 +19885,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\(\*\) 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 @@ -20618,7 +20618,7 @@ SELECT DISTINCT - 40 * + + 68 # Datafusion - Expected - 52 # Datafusion - Expected - 92 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- count\(\*\) \* Int64\(40\) AS col0" at position 0 and "Int64\(0\) 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\(92\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(40\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 92 - + + COUNT ( * ) * + 40 AS col0, 10 / 5 + + 90 AS col2, 0 AS col0 query II rowsort label-3941 @@ -22248,7 +22248,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\(\*\) 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 @@ -22346,7 +22346,7 @@ SELECT 50, 44 + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- CAST\(NULL AS Int32\) \+ Int64\(32\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) \+ Int64\(32\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + 32 AS col2, 83 col2 query I rowsort label-4271 @@ -24343,7 +24343,7 @@ SELECT - CAST ( + + AVG ( - 38 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(\-11\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-11\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) - - 11 AS col1, CAST ( NULL AS INTEGER ) / - + 19 AS col1 query I rowsort label-4659 @@ -24477,7 +24477,7 @@ SELECT SUM ( DISTINCT - 83 ) * COUNT ( * ) + + + COALESCE ( 21, - 95 ), + 5 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ Int64\(66\) / Int64\(7\) \+ Int64\(1\) / \(\- 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 "Int64\(43\) \+ Int64\(66\) / Int64\(7\) \+ Int64\(1\) / \(\- 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 43 + + + 66 / 7 + 1 / - COUNT ( * ) AS col1, ( 73 ) AS col1 query I rowsort @@ -24651,7 +24651,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\(\*\) AS col0" at position 1 have the 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 @@ -26147,7 +26147,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\(\*\) AS col1" at position 1 have the 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 @@ -26201,7 +26201,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\(\*\) \- CAST\(\(\- Int64\(23\)\) AS Int32\) \* \(\- Int64\(25\)\) \* Int64\(95\) \+ nullif\(Int64\(64\), Int64\(12\)\) \- \(\- Int64\(\-16\)\) \- Int64\(83\) / count\(\*\) AS col0" at position 0 and "Int64\(96\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -26377,7 +26377,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\(\*\) 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: @@ -27499,7 +27499,7 @@ SELECT DISTINCT - - ( COUNT ( * ) ) + - 40 + - + SUM ( + 19 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2784 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ Int64\(\-51\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(26\) \* \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) / count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(5\) \- Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ Int64\(\-51\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(26\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(5\) \- Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 21 + - 51 * - 55 AS col0, + 26 * - CAST ( - COUNT ( * ) AS INTEGER ) / + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 5 - - 43 AS col0 query I rowsort label-5262 @@ -27642,7 +27642,7 @@ SELECT - - 56 * + + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * + - 46 - 88 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "count\(\*\) \+ 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\(48\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 48 AS col1, COUNT ( * ) + + 41 AS col1 # Datafusion - Types were automatically converted from: @@ -27656,7 +27656,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\(\*\) 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 @@ -27765,7 +27765,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\(\*\) AS col0" at position 0 and "Int64\(33\) \* Int64\(\-65\) \+ 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 @@ -28693,7 +28693,7 @@ SELECT ALL + 75 * + - 31 * 54 + - 49 # Datafusion - Expected - 88 # Datafusion - Expected - 91 # Datafusion - Expected - 880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ coalesce\(Int64\(86\), Int64\(92\), Int64\(\-61\) / \(\- nullif\(Int64\(75\), Int64\(\-73\) \* max\(\(\- Int64\(\-1\)\)\) \+ Int64\(\-94\)\)\) \* \(\- nullif\(Int64\(8\), Int64\(0\) \+ Int64\(57\)\)\)\) \+ \(\- Int64\(\-4\)\) AS col1" at position 1 and "\(\- Int64\(88\)\) \* Int64\(\-10\) 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\(\*\) \+ coalesce\(Int64\(86\), Int64\(92\), Int64\(\-61\) / \(\- nullif\(Int64\(75\), Int64\(\-73\) \* max\(\(\- Int64\(\-1\)\)\) \+ Int64\(\-94\)\)\) \* \(\- nullif\(Int64\(8\), Int64\(0\) \+ Int64\(57\)\)\)\) \+ \(\- Int64\(\-4\)\) AS col1" at position 1 and "\(\- Int64\(88\)\) \* Int64\(\-10\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / - ( + COUNT ( * ) ) + - NULLIF ( - + 89, 45 * 37 + + 35 + - 41 * - COUNT ( * ) ), + COUNT ( * ) + COALESCE ( + 86, 92, - 61 / - NULLIF ( + + 75, - 73 * MAX ( - - 1 ) + - 94 ) * - + NULLIF ( + 8, - 0 + + 57 ) ) + + ( - - 4 ) AS col1, + ( - + 88 ) * - 10 AS col1 # Datafusion - Types were automatically converted from: @@ -29122,7 +29122,7 @@ 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 "Int64\(\-3\) AS col0" at position 0 and "count\(\*\) / Int64\(70\) \+ 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\(\-3\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(70\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 3 AS col0, + COUNT ( * ) / + 70 + 38 AS col0 query I rowsort label-5567 @@ -29682,7 +29682,7 @@ SELECT - 58, 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "CASE \(\- coalesce\(Int64\(\-53\), Int64\(13\)\)\) WHEN \(\- \(\- count\(Int64\(\-38\)\)\)\) \+ Int64\(66\) THEN CASE Int64\(21\) WHEN Int64\(11\) THEN NULL WHEN \(\- count\(Int64\(53\)\)\) \* Int64\(\-26\) THEN count\(\*\) END 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\(62\) AS col0" at position 0 and "CASE \(\- coalesce\(Int64\(\-53\), Int64\(13\)\)\) WHEN \(\- \(\- count\(Int64\(\-38\)\)\)\) \+ Int64\(66\) THEN CASE Int64\(21\) WHEN Int64\(11\) THEN NULL WHEN \(\- count\(Int64\(53\)\)\) \* Int64\(\-26\) THEN count\(Int64\(1\)\) AS count\(\*\) END ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 62 AS col0, + CASE - + COALESCE ( - 53, + 13 ) WHEN - - COUNT ( ALL - 38 ) + + + 66 THEN CASE + 21 WHEN + 11 THEN NULL WHEN - COUNT ( ALL 53 ) * - 26 THEN COUNT ( * ) END ELSE NULL END AS col0 query I rowsort label-5673 @@ -29949,7 +29949,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\(\*\) 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 @@ -30999,7 +30999,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\(\*\) AS col0" at position 1 have the 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 @@ -32048,7 +32048,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -32427,7 +32427,7 @@ SELECT - + 27 * + - 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 @@ -32610,7 +32610,7 @@ SELECT DISTINCT + 70 * + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "nullif\(Int64\(\-59\), CASE Int64\(\-9\) WHEN Int64\(\-18\) THEN count\(\*\) \* Int64\(83\) 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\(24\) AS col0" at position 0 and "nullif\(Int64\(\-59\), CASE Int64\(\-9\) WHEN Int64\(\-18\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(83\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 AS col0, NULLIF ( - 59, + CASE - 9 WHEN - 18 THEN + COUNT ( * ) * + 83 END ) AS col0 query II rowsort @@ -33986,7 +33986,7 @@ SELECT - - 79 - 18 AS col0, ( - - 64 ) - + CAST ( 49 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 770 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) \* Int64\(\-22\) AS col1" at position 0 and "count\(\*\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) \* Int64\(\-22\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 35 * + - 22 AS col1, COUNT ( * ) + + 18 AS col1 query I rowsort label-6499 @@ -34270,7 +34270,7 @@ SELECT ALL - 49 / - 24, - COUNT ( * ) AS col1 # 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\(\*\)\) AS col2" at position 0 and "Int64\(18\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(18\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, 18 * + + 4 AS col2 query I rowsort @@ -35334,7 +35334,7 @@ SELECT DISTINCT 14 * + + NULLIF ( + 73, - 4 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2861 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ \(\- count\(\*\)\) \- Int64\(26\) \+ Int64\(93\) \+ Int64\(\-47\) \+ Int64\(88\) \* Int64\(32\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(26\) \+ Int64\(93\) \+ Int64\(\-47\) \+ Int64\(88\) \* Int64\(32\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 26 + + - COUNT ( * ) - 26 + 93 + - 47 + + 88 * 32 AS col0, 8 col0 query I rowsort @@ -36153,7 +36153,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\(\*\) 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 @@ -37495,7 +37495,7 @@ SELECT 81 / - - 85 + + 90 + - 56 * + 95 AS col0, 7 + - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - 173712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / count\(\*\) \* Int64\(1\) \+ \(\- Int64\(\-29\)\) AS col1" at position 0 and "Int64\(44\) \* Int64\(47\) \* 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\(97\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(1\) \+ \(\- Int64\(\-29\)\) AS col1" at position 0 and "Int64\(44\) \* Int64\(47\) \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 97 / COUNT ( * ) * + 1 + - - 29 AS col1, 44 * + ( + 47 ) * + 84 AS col1 query I rowsort label-7160 @@ -37604,7 +37604,7 @@ SELECT ALL 18 + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -320 -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\(\-40\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-40\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 33 AS col1, - COUNT ( * ) * - 40 * - 8 AS col1 query I rowsort @@ -38845,7 +38845,7 @@ SELECT - 15, - 74 + + 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(\*\) WHEN Int64\(68\) THEN coalesce\(Int64\(\-51\), \(\- CAST\(NULL AS Int32\)\) \- \(\- count\(\*\)\) \- Int64\(\-26\)\) / \(\- Int64\(86\)\) ELSE NULL END / min\(Int64\(37\)\) AS col0" at position 0 and "min\(Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(68\) THEN coalesce\(Int64\(\-51\), \(\- CAST\(NULL AS Int32\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-26\)\) / \(\- Int64\(86\)\) ELSE NULL END / min\(Int64\(37\)\) AS col0" at position 0 and "min\(Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + COUNT ( * ) WHEN 68 THEN COALESCE ( - 51, + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) - + - 26 ) / - ( 86 ) ELSE NULL END / + MIN ( ( 37 ) ) AS col0, + MIN ( ALL - 93 ) AS col0 query I rowsort @@ -39892,7 +39892,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(33\) \* Int64\(\-54\) THEN NULL WHEN Int64\(39\) THEN Int64\(\-9\) END\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-67\) \* Int64\(46\) \- Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(33\) \* Int64\(\-54\) THEN NULL WHEN Int64\(39\) THEN Int64\(\-9\) END\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-67\) \* Int64\(46\) \- Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - CASE + 62 WHEN + + 33 * - 54 THEN NULL WHEN + 39 THEN - 9 END AS col1, CAST ( NULL AS INTEGER ) * + - 67 * 46 - + 76 AS col1 query I rowsort @@ -41304,7 +41304,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(78\) AS col0" at position 0 and "\(\- 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 "Int64\(45\) \+ Int64\(78\) 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 ALL + 45 + + 78 AS col0, - COUNT ( * ) * - + 16 col0 query II rowsort @@ -41784,7 +41784,7 @@ SELECT ALL - 12 + + - CASE MAX ( DISTINCT - 72 ) WHEN 17 THEN + 34 WHEN 78 THEN # 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 "sum\(\(\- Int64\(\-50\)\)\) \+ Int64\(38\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have 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\(\-50\)\)\) \+ 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 + SUM ( ALL - - 50 ) + + 38 col1, - COUNT ( * ) col1 query I rowsort label-7981 @@ -42503,7 +42503,7 @@ SELECT ALL - SUM ( + - 94 ) - 48 AS col2, 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "CASE count\(\*\) WHEN Int64\(98\) THEN Int64\(13\) WHEN Int64\(90\) THEN NULL END \- \(\- Int64\(\-71\)\) \- Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(98\) THEN Int64\(13\) WHEN Int64\(90\) THEN NULL END \- \(\- Int64\(\-71\)\) \- Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 col2, + CASE + COUNT ( * ) WHEN + 98 THEN 13 WHEN 90 THEN NULL END - - - 71 - + + 52 AS col2 query II rowsort label-8116 @@ -43237,7 +43237,7 @@ SELECT ALL 94 col0, COUNT ( * ) + - 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 673 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "Int64\(\-63\) / Int64\(94\) \+ Int64\(17\) \- CASE coalesce\(\(\- count\(\*\)\), Int64\(40\) \+ Int64\(71\) / Int64\(\-42\), CASE Int64\(\-7\) WHEN Int64\(59\) THEN NULL WHEN \(\- Int64\(60\)\) \+ Int64\(\-65\) / Int64\(16\) \* Int64\(93\) THEN NULL ELSE Int64\(\-52\) \+ Int64\(\-33\) END\) WHEN \(\- count\(Int64\(\-82\)\)\) THEN Int64\(40\) END \+ Int64\(12\) \* 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 "Int64\(45\) AS col2" at position 0 and "Int64\(\-63\) / Int64\(94\) \+ Int64\(17\) \- CASE coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(40\) \+ Int64\(71\) / Int64\(\-42\), CASE Int64\(\-7\) WHEN Int64\(59\) THEN NULL WHEN \(\- Int64\(60\)\) \+ Int64\(\-65\) / Int64\(16\) \* Int64\(93\) THEN NULL ELSE Int64\(\-52\) \+ Int64\(\-33\) END\) WHEN \(\- count\(Int64\(\-82\)\)\) THEN Int64\(40\) END \+ Int64\(12\) \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 45 AS col2, - 63 / + + 94 + + 17 - + CASE + COALESCE ( - COUNT ( * ), 40 + 71 / - 42, + CASE - 7 WHEN + 59 THEN NULL WHEN - + 60 + - 65 / + 16 * 93 THEN NULL ELSE + - 52 + - 33 END ) WHEN - COUNT ( ( - 82 ) ) THEN 40 END + 12 * + 58 AS col2 query I rowsort @@ -44095,7 +44095,7 @@ SELECT + 5 * + + 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 54 col1, CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 query I rowsort @@ -44674,7 +44674,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\(\*\) 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 @@ -45024,7 +45024,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(\*\)\) \+ Int64\(\-57\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-57\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 col1, 61 * ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + - 57 + 43 AS col1 query I rowsort @@ -45052,7 +45052,7 @@ SELECT - 30, 53 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 "\(\- 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 ( * ) col1, 62 col1 query I rowsort label-8603 @@ -45861,7 +45861,7 @@ SELECT ALL 66 * - 8 + - 66 AS col2, - SUM ( DISTINCT - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 444620 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(94\) \* Int64\(86\) AS col0" at position 0 and "Int64\(23\) \* count\(\*\) \+ Int64\(55\) \- 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\) \* Int64\(94\) \* Int64\(86\) AS col0" at position 0 and "Int64\(23\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(55\) \- Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 * 94 * 86 AS col0, + ( + + 23 ) * + + COUNT ( * ) + + + 55 - - 73 AS col0 query I rowsort @@ -48066,7 +48066,7 @@ SELECT ALL 58 + - MIN ( + - ( + 40 ) ) + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 859 # Datafusion - Expected - -149520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(76\), Int64\(\-48\) \+ Int64\(\-84\) \- \(\- max\(Int64\(28\)\)\) \* \(\- Int64\(15\)\), Int64\(73\) \* Int64\(69\)\)\) \+ \(\- Int64\(17\)\) \* Int64\(\-52\) \+ count\(\*\) \+ Int64\(50\) AS col0" at position 0 and "Int64\(89\) \* Int64\(\-42\) \* 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 "\(\- coalesce\(Int64\(76\), Int64\(\-48\) \+ Int64\(\-84\) \- \(\- max\(Int64\(28\)\)\) \* \(\- Int64\(15\)\), Int64\(73\) \* Int64\(69\)\)\) \+ \(\- Int64\(17\)\) \* Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(50\) AS col0" at position 0 and "Int64\(89\) \* Int64\(\-42\) \* Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( + ( 76 ), - 48 + - 84 - + - MAX ( 28 ) * - + 15, + 73 * + 69 ) + - + 17 * - 52 + + COUNT ( * ) + 50 AS col0, + 89 * - 42 * 40 AS col0 query I rowsort label-9173 @@ -48560,7 +48560,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\(\*\) 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 @@ -49893,7 +49893,7 @@ SELECT ALL COUNT ( * ) * - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(69\) \* Int64\(46\) \* \(\- nullif\(CASE Int64\(29\) WHEN count\(\*\) THEN Int64\(51\) WHEN Int64\(34\) THEN Int64\(4\) WHEN Int64\(\-14\) \+ Int64\(90\) THEN CASE Int64\(71\) WHEN Int64\(\-45\) THEN \(\- coalesce\(Int64\(85\), Int64\(41\)\)\) ELSE NULL END \+ Int64\(9\) END, CASE Int64\(82\) WHEN Int64\(64\) THEN NULL WHEN Int64\(22\) \* Int64\(12\) \+ \(\- sum\(Int64\(\-40\) \+ Int64\(56\)\)\) THEN coalesce\(Int64\(\-25\), max\(DISTINCT Int64\(95\)\) \+ Int64\(65\)\) \+ Int64\(\-94\) 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\(78\) AS col2" at position 0 and "Int64\(69\) \* Int64\(46\) \* \(\- nullif\(CASE Int64\(29\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(51\) WHEN Int64\(34\) THEN Int64\(4\) WHEN Int64\(\-14\) \+ Int64\(90\) THEN CASE Int64\(71\) WHEN Int64\(\-45\) THEN \(\- coalesce\(Int64\(85\), Int64\(41\)\)\) ELSE NULL END \+ Int64\(9\) END, CASE Int64\(82\) WHEN Int64\(64\) THEN NULL WHEN Int64\(22\) \* Int64\(12\) \+ \(\- sum\(Int64\(\-40\) \+ Int64\(56\)\)\) THEN coalesce\(Int64\(\-25\), max\(DISTINCT Int64\(95\)\) \+ Int64\(65\)\) \+ Int64\(\-94\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 AS col2, ( + 69 ) * + 46 * - NULLIF ( CASE + 29 WHEN COUNT ( * ) THEN + 51 WHEN 34 THEN 4 WHEN - 14 + + 90 THEN CASE 71 WHEN - 45 THEN - COALESCE ( 85, + 41 ) ELSE NULL END + + 9 END, + CASE + 82 WHEN 64 THEN NULL WHEN + 22 * + 12 + - SUM ( - 40 + + 56 ) THEN COALESCE ( - 25, + MAX ( DISTINCT + 95 ) + 65 ) + - 94 END ) AS col2 query I rowsort label-9524 @@ -50930,7 +50930,7 @@ SELECT DISTINCT - 20 + - 34 / ( + CAST ( + 58 AS INTEGER ) ) 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 "\(\- 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-9720 diff --git a/data/sqlite/random/expr/slt_good_72.slt b/data/sqlite/random/expr/slt_good_72.slt index 803da6d..70eddeb 100644 --- a/data/sqlite/random/expr/slt_good_72.slt +++ b/data/sqlite/random/expr/slt_good_72.slt @@ -138,7 +138,7 @@ NULL # 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\(\*\)\) AS col0" at position 0 and "Int64\(65\) \- Int64\(\-25\) \+ 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\(65\) \- Int64\(\-25\) \+ Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, 65 - - 25 + - 39 AS col0 query I rowsort label-20 @@ -1127,7 +1127,7 @@ SELECT - 93 - 7 + + + 71 + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 41 * 86 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 query I rowsort label-208 @@ -1978,7 +1978,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- nullif\(Int64\(64\), Int64\(\-7\)\)\) / \(\- Int64\(13\)\) \+ Int64\(9\) \+ CAST\(NULL AS Int32\) \* Int64\(\-71\) / count\(\*\) \+ nullif\(\(\- Int64\(\-14\)\), sum\(Int64\(42\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- nullif\(Int64\(64\), Int64\(\-7\)\)\) / \(\- Int64\(13\)\) \+ Int64\(9\) \+ CAST\(NULL AS Int32\) \* Int64\(\-71\) / count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(\(\- Int64\(\-14\)\), sum\(Int64\(42\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 41 AS col2, + ( + CAST ( NULL AS INTEGER ) ) * - NULLIF ( + 64, - 7 ) / - + 13 + 9 + + + CAST ( NULL AS INTEGER ) * - 71 / ( + COUNT ( * ) ) + NULLIF ( - - 14, SUM ( + 42 ) ) AS col2 query I rowsort label-369 @@ -2069,7 +2069,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\(\*\) 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 @@ -2509,7 +2509,7 @@ SELECT DISTINCT - 64 * + + 33 + 64 # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, 54 AS col2 query I rowsort label-470 @@ -4213,7 +4213,7 @@ SELECT DISTINCT - COUNT ( * ) + 71 / + 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2484 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-49\) \+ Int64\(\-55\) \+ \(\- Int64\(21\)\) \+ Int64\(87\) \* Int64\(6\) \* Int64\(5\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(87\) \- 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\(\*\)\) \+ Int64\(\-49\) \+ Int64\(\-55\) \+ \(\- Int64\(21\)\) \+ Int64\(87\) \* Int64\(6\) \* Int64\(5\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(87\) \- Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) + - 49 + - 55 + - + 21 + + 87 * + 6 * 5 AS col1, 46 + + + 87 - + 24 AS col1 query I rowsort @@ -4260,7 +4260,7 @@ SELECT 95 * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -542 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "\(\- \(\- coalesce\(Int64\(40\), \(\- \(\- nullif\(Int64\(19\), CASE count\(\*\) WHEN Int64\(37\) \- Int64\(75\) THEN NULL ELSE Int64\(\-83\) END\)\)\) \+ count\(\*\) \+ Int64\(5\) \+ Int64\(\-1\) \- Int64\(69\) / Int64\(\-78\) \* \(\- count\(\*\)\)\)\)\) \* Int64\(\-14\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "\(\- \(\- coalesce\(Int64\(40\), \(\- \(\- nullif\(Int64\(19\), CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(37\) \- Int64\(75\) THEN NULL ELSE Int64\(\-83\) END\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(5\) \+ Int64\(\-1\) \- Int64\(69\) / Int64\(\-78\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \* Int64\(\-14\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 AS col0, ( - - COALESCE ( + 40, - - NULLIF ( + 19, + CASE + COUNT ( * ) WHEN + 37 - + ( 75 ) THEN NULL ELSE - 83 END ) + COUNT ( * ) + + 5 + - 1 - 69 / - 78 * - COUNT ( * ) ) ) * - 14 + + 18 AS col0 query I rowsort label-803 @@ -4813,7 +4813,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\(\*\) AS col1" at position 1 have the 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 @@ -4834,7 +4834,7 @@ SELECT + 97 + - 71 + - 25 + - COUNT ( * ) + - + 39 * 34 + + - COALESCE ( CASE + # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "CASE Int64\(13\) WHEN Int64\(43\) / \(\- nullif\(Int64\(\-22\), Int64\(61\)\)\) \+ Int64\(\-10\) / Int64\(\-88\) \* \(\- nullif\(\(\- \(\- Int64\(45\)\)\), Int64\(23\)\)\) THEN Int64\(0\) ELSE Int64\(\-98\) \+ Int64\(\-55\) \- \(\- \(\- count\(\*\)\)\) END \* 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 "Int64\(23\) AS col0" at position 0 and "CASE Int64\(13\) WHEN Int64\(43\) / \(\- nullif\(Int64\(\-22\), Int64\(61\)\)\) \+ Int64\(\-10\) / Int64\(\-88\) \* \(\- nullif\(\(\- \(\- Int64\(45\)\)\), Int64\(23\)\)\) THEN Int64\(0\) ELSE Int64\(\-98\) \+ Int64\(\-55\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 23 AS col0, CASE + 13 WHEN + 43 / - NULLIF ( - 22, + 61 ) + - 10 / - 88 * - NULLIF ( - + ( - ( + 45 ) ), 23 ) THEN - 0 ELSE + - 98 + - 55 - - ( - + COUNT ( * ) ) END * + COUNT ( * ) + 3 AS col0 query I rowsort @@ -5148,7 +5148,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\(\*\) AS col0" at position 1 have the same 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 @@ -6111,7 +6111,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\(\*\) 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 @@ -8923,7 +8923,7 @@ SELECT MAX ( 54 ) + - - 20 AS col0 # Datafusion - Expected - -17 # Datafusion - Expected - -67 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "coalesce\(Int64\(\-67\), count\(\*\)\) AS col1" at position 1 have the 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 "coalesce\(Int64\(\-67\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 17 col1, COALESCE ( - 67, COUNT ( * ) ) col1, + COUNT ( * ) / + ( 13 ) query I rowsort @@ -9129,7 +9129,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -9589,7 +9589,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 92 -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\(\-25\) \+ 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\(\-29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-25\) \+ Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 29 AS col1, COUNT ( * ) / - 25 + 92 AS col1 query I rowsort label-1819 @@ -9683,7 +9683,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\(\*\) AS col0" at position 0 and "Int64\(1\) \* Int64\(\-62\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -9992,7 +9992,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\(\*\) AS col1" at position 1 have the 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 @@ -10814,7 +10814,7 @@ SELECT ALL - COALESCE ( + MAX ( - 87 ), - COUNT ( * ), - + 60 ) + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(72\) \* \(\- Int64\(\-86\)\) / count\(\*\) \* \(\- count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(72\) \* \(\- Int64\(\-86\)\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 AS col2, 72 * - ( - 86 ) / COUNT ( * ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 29 AS col2 query I rowsort label-2050 @@ -10968,7 +10968,7 @@ SELECT - 8 * 4 + + 1 + + - 4 * + 33 + 80 * 92 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 928 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(33\) WHEN Int64\(6\) THEN Int64\(55\) WHEN Int64\(22\) THEN NULL ELSE Int64\(18\) \+ Int64\(45\) END AS col1" at position 0 and "Int64\(\-77\) \* Int64\(\-13\) \+ count\(\*\) \+ Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(33\) WHEN Int64\(6\) THEN Int64\(55\) WHEN Int64\(22\) THEN NULL ELSE Int64\(18\) \+ Int64\(45\) END AS col1" at position 0 and "Int64\(\-77\) \* Int64\(\-13\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE 33 WHEN + + 6 THEN 55 WHEN + + 22 THEN NULL ELSE + + 18 + 45 END AS col1, - 77 * - 13 + COUNT ( * ) + - 74 col1 query I rowsort @@ -11523,7 +11523,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -147204 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(87\) \* \(\- count\(\*\)\) \* max\(Int64\(36\)\) AS col2" at position 0 and "Int64\(11\) \+ \(\- nullif\(Int64\(21\), Int64\(34\)\)\) \+ 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\(47\) \* Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(36\)\) AS col2" at position 0 and "Int64\(11\) \+ \(\- nullif\(Int64\(21\), Int64\(34\)\)\) \+ Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 * 87 * - COUNT ( * ) * MAX ( + 36 ) AS col2, 11 + - NULLIF ( 21, 34 ) + ( 2 ) AS col2 query I rowsort label-2187 @@ -11827,7 +11827,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- \(\- 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 "Int64\(26\) \* \(\- \(\- 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 + 26 * - - COUNT ( * ) AS col1, - 39 AS col1 query I rowsort @@ -12425,7 +12425,7 @@ SELECT ALL + 63 + 86 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -4234 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(81\)\) AS col1" at position 0 and "Int64\(73\) \* count\(\*\) \* CASE Int64\(58\) WHEN \(\- count\(DISTINCT Int64\(22\)\)\) THEN NULL ELSE Int64\(\-58\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(81\)\) AS col1" at position 0 and "Int64\(73\) \* count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(58\) WHEN \(\- count\(DISTINCT Int64\(22\)\)\) THEN NULL ELSE Int64\(\-58\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - + 81 AS col1, 73 * + COUNT ( * ) * CASE + ( + 58 ) WHEN - COUNT ( DISTINCT + 22 ) THEN NULL ELSE - 58 END AS col1 query II rowsort @@ -12790,7 +12790,7 @@ SELECT - + 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(21\) \* Int64\(\-12\) \* Int64\(57\) \+ Int64\(57\) / \(\- Int64\(\-64\)\) \+ \(\- Int64\(\-40\)\) \+ CAST\(NULL AS Int32\) \+ nullif\(Int64\(14\), \(\- count\(\*\)\) \+ \(\- Int64\(\-64\)\)\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(21\) \* Int64\(\-12\) \* Int64\(57\) \+ Int64\(57\) / \(\- Int64\(\-64\)\) \+ \(\- Int64\(\-40\)\) \+ CAST\(NULL AS Int32\) \+ nullif\(Int64\(14\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-64\)\)\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 21 * - 12 * 57 + + 57 / - - 64 + - - 40 + CAST ( NULL AS INTEGER ) + + + NULLIF ( 14, - COUNT ( * ) + - - 64 ) AS col2, + 75 AS col2 query I rowsort label-2426 @@ -12900,7 +12900,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\(\*\) 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 @@ -13582,7 +13582,7 @@ SELECT + 72 / - 91 # 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\(18\) \* Int64\(50\) AS col0" at position 0 and "Int64\(55\) \- 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\(\*\) / Int64\(18\) \* Int64\(50\) AS col0" at position 0 and "Int64\(55\) \- Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + + COUNT ( * ) ) / + 18 * 50 AS col0, + 55 - 15 col0 query I rowsort label-2577 @@ -14309,7 +14309,7 @@ SELECT - ( - ( - CAST ( + ( + 77 ) AS INTEGER ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(67\) \+ max\(Int64\(\-58\)\) \+ Int64\(\-6\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(67\) \+ max\(Int64\(\-58\)\) \+ Int64\(\-6\) \* \(\- 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, + 67 + + MAX ( ALL - 58 ) + - 6 * - COUNT ( * ) col1 query I rowsort @@ -15224,7 +15224,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\(\*\) 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 @@ -15562,7 +15562,7 @@ SELECT ALL + 86 / + 22 + + + 70 * - 11 - - + 94 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 57 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(33\) \* \(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(62\) \+ 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\(78\) \* Int64\(33\) \* \(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(62\) \+ Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 78 ) * + 33 * - CAST ( NULL AS FLOAT8 ) col1, + COUNT ( * ) * 62 + - 5 col1, 29 AS col2 query I rowsort label-2960 @@ -15588,7 +15588,7 @@ SELECT ALL 72 * ( + 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 6814 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ \(\- \(\- count\(DISTINCT Int64\(\-11\)\)\)\) \* min\(Int64\(\-39\)\) AS col2" at position 0 and "coalesce\(sum\(Int64\(92\)\), Int64\(\-26\)\) \* Int64\(75\) \+ \(\- count\(\*\)\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ \(\- \(\- count\(DISTINCT Int64\(\-11\)\)\)\) \* min\(Int64\(\-39\)\) AS col2" at position 0 and "coalesce\(sum\(Int64\(92\)\), Int64\(\-26\)\) \* Int64\(75\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 78 + - - COUNT ( DISTINCT - 11 ) * + MIN ( - 39 ) AS col2, COALESCE ( SUM ( ALL + 92 ), - 26 ) * + 75 + - COUNT ( * ) * + 86 AS col2 query I rowsort label-2965 @@ -16192,7 +16192,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\(\*\) 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 @@ -16343,7 +16343,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / Int64\(\-66\) AS col2" at position 0 and "\(\- coalesce\(Int64\(71\), \(\- max\(Int64\(3\)\)\)\)\) / CASE Int64\(70\) WHEN Int64\(\-13\) THEN Int64\(68\) \* Int64\(28\) \- Int64\(\-91\) \* CAST\(Int64\(15\) AS Int32\) WHEN min\(Int64\(21\)\) \* Int64\(\-68\) \+ Int64\(83\) THEN Int64\(60\) \* CASE avg\(Int64\(\-93\)\) WHEN Int64\(59\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(53\) THEN Int64\(57\) END \+ count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / Int64\(\-66\) AS col2" at position 0 and "\(\- coalesce\(Int64\(71\), \(\- max\(Int64\(3\)\)\)\)\) / CASE Int64\(70\) WHEN Int64\(\-13\) THEN Int64\(68\) \* Int64\(28\) \- Int64\(\-91\) \* CAST\(Int64\(15\) AS Int32\) WHEN min\(Int64\(21\)\) \* Int64\(\-68\) \+ Int64\(83\) THEN Int64\(60\) \* CASE avg\(Int64\(\-93\)\) WHEN Int64\(59\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(53\) THEN Int64\(57\) END \+ count\(Int64\(1\)\) AS count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 25 / - 66 AS col2, - COALESCE ( 71, + - MAX ( + 3 ) ) / CASE 70 WHEN + - 13 THEN + 68 * + 28 - + - 91 * + CAST ( 15 AS INTEGER ) WHEN + MIN ( 21 ) * - 68 + 83 THEN 60 * CASE AVG ( ( - 93 ) ) WHEN 59 THEN NULL WHEN - 80 + 53 THEN 57 END + COUNT ( * ) END col2 query I rowsort label-3108 @@ -16539,7 +16539,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2124 # Datafusion - Expected - -4570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(25\) \* Int64\(85\) AS col0" at position 0 and "Int64\(72\) \* Int64\(\-63\) \+ Int64\(\-34\) \- 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\(\*\)\) \+ Int64\(25\) \* Int64\(85\) AS col0" at position 0 and "Int64\(72\) \* Int64\(\-63\) \+ Int64\(\-34\) \- Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + + 25 * + 85 col0, 72 * - 63 + - 34 - - 0 AS col0 query I rowsort label-3146 @@ -16978,7 +16978,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-57\) 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\(\*\) \* Int64\(\-57\) 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 ( * ) * - 57 AS col0, + 39 AS col0 query I rowsort label-3229 @@ -17672,7 +17672,7 @@ SELECT - - 30, 33 / 1 + NULLIF ( - 20, 24 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -200 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(71\) \+ Int64\(\-46\) \+ Int64\(0\) \+ Int64\(\-85\) \+ count\(\*\) \* Int64\(73\) AS col0" at position 0 and "Int64\(31\) / \(\- CAST\(Int64\(74\) AS Int32\)\) \+ count\(\*\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(71\) \+ Int64\(\-46\) \+ Int64\(0\) \+ Int64\(\-85\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(73\) AS col0" at position 0 and "Int64\(31\) / \(\- CAST\(Int64\(74\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 * + 71 + - 46 + - 0 + - 85 + + COUNT ( * ) * 73 AS col0, 31 / - CAST ( + 74 AS INTEGER ) + + COUNT ( * ) * - 51 AS col0 query I rowsort label-3362 @@ -18057,7 +18057,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\(\*\) AS col1" at position 1 have 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 @@ -18555,7 +18555,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\(\*\) 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 @@ -18680,7 +18680,7 @@ SELECT 73 + + 30 + - + 80 + - 24 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 138 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \- Int64\(\-62\) AS col1" at position 0 and "coalesce\(Int64\(\-10\), count\(\*\)\) AS col1" at position 1 have the 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\(\-62\) AS col1" at position 0 and "coalesce\(Int64\(\-10\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 - - 62 AS col1, COALESCE ( - 10, + + COUNT ( * ) ) AS col1 query I rowsort label-3555 @@ -19075,7 +19075,7 @@ SELECT + 22 / 9 / - 61 * - 54 * COUNT ( * ), + 0 + 82 - - 31 AS col1 # Datafusion - Expected - 70 # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(58\) / Int64\(2\) AS col2" at position 1 and "max\(CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) / Int64\(2\) AS col2" at position 1 and "max\(CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 70 ), COUNT ( * ) + + 58 / + 2 AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-3631 @@ -19962,7 +19962,7 @@ SELECT ALL COUNT ( * ) / 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 342548 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) / Int64\(68\) \* count\(\*\) \+ Int64\(32\) \+ \(\- count\(\*\)\) \* Int64\(73\) \* Int64\(51\) \* Int64\(\-92\) 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\(\-24\) / Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(73\) \* Int64\(51\) \* Int64\(\-92\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 24 / + ( + 68 ) * + COUNT ( * ) + + 32 + + - COUNT ( * ) * 73 * + 51 * - 92 AS col0, ( 92 ) AS col0 query I rowsort label-3802 @@ -20442,7 +20442,7 @@ SELECT + 53 - + 51 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -892 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-89\)\)\) \* Int64\(37\) \+ Int64\(\-45\) \* \(\- Int64\(\-93\)\) AS col0" at position 0 and "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 "sum\(\(\- Int64\(\-89\)\)\) \* Int64\(37\) \+ Int64\(\-45\) \* \(\- Int64\(\-93\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + SUM ( ALL - - 89 ) * 37 + - 45 * - - 93 AS col0, COUNT ( * ) + + 64 AS col0 query II rowsort label-3893 @@ -20871,7 +20871,7 @@ SELECT - 98 * 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ CASE Int64\(\-90\) WHEN \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(83\)\)\) THEN NULL ELSE Int64\(77\) END AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* count\(\*\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ CASE Int64\(\-90\) WHEN \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(83\)\)\) THEN NULL ELSE Int64\(77\) END AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 + CASE + - 90 WHEN - COALESCE ( CAST ( NULL AS INTEGER ), 83 ) THEN NULL ELSE + 77 END AS col0, - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 85 AS col0 query II rowsort label-3974 @@ -21224,7 +21224,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\(\*\) AS Int32\) AS col2" at position 1 have the 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 @@ -22086,7 +22086,7 @@ SELECT + + 55 col2, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 AS col1, + COUNT ( * ) * - COUNT ( * ) * - 73 AS col1 query I rowsort label-4208 @@ -23962,7 +23962,7 @@ SELECT ALL + COUNT ( * ) * + + 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ \(\- 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 "Int64\(33\) \+ \(\- 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 33 + - COUNT ( * ) AS col1, 57 col1 query I rowsort @@ -25483,7 +25483,7 @@ SELECT + 70 * + - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -46815 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-59\) \+ Int64\(39\) \+ Int64\(14\) \* \(\- min\(Int64\(\-86\)\)\) \* Int64\(\-43\) \+ Int64\(\-21\) \+ \(\- Int64\(51\)\) \* 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\(\-59\) \+ Int64\(39\) \+ Int64\(14\) \* \(\- min\(Int64\(\-86\)\)\) \* Int64\(\-43\) \+ Int64\(\-21\) \+ \(\- Int64\(51\)\) \* Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - 59 + 39 + 14 * - MIN ( ALL - 86 ) * - 43 + - 21 + - + 51 * - 98 col2 query I rowsort @@ -26578,7 +26578,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\(\*\)\)\)\)\)\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have 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 @@ -27256,7 +27256,7 @@ SELECT 61 + + 30 + 82 + + 2 # 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\(\*\)\) AS col2" at position 1 have the 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 label-5202 @@ -29159,7 +29159,7 @@ SELECT 49 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5314 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- Int64\(\-69\)\) \+ coalesce\(count\(\*\), Int64\(\-18\)\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- Int64\(\-69\)\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-18\)\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 * + - ( - 69 ) + COALESCE ( COUNT ( * ), - 18 ) AS col0, - 73 AS col0 query II rowsort label-5564 @@ -29235,7 +29235,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\(\*\) AS col0" at position 1 have the 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 @@ -30713,7 +30713,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\(\*\) AS col0" at position 0 and "Int64\(72\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -30780,7 +30780,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* nullif\(count\(\*\), Int64\(61\) \* Int64\(45\) \* count\(\*\) \* \(\- count\(\*\)\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(85\)\) \- \(\- 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\(\-65\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(61\) \* Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(85\)\) \- \(\- Int64\(76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 * + NULLIF ( COUNT ( * ), + 61 * + 45 * COUNT ( * ) * - COUNT ( * ) ) AS col1, + MAX ( DISTINCT + 85 ) - - + 76 AS col1 # Datafusion - Types were automatically converted from: @@ -32962,7 +32962,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\(17\) \* 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 @@ -34360,7 +34360,7 @@ SELECT - - 26 * - COUNT ( * ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -2158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(\-26\)\)\) \- Int64\(62\) \+ Int64\(46\) \+ \(\- count\(\*\)\) \* Int64\(3\) \+ \(\- coalesce\(\(\- Int64\(89\)\), Int64\(46\)\)\) AS col1" at position 0 and "Int64\(\-83\) \* 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\(\-26\)\)\) \- Int64\(62\) \+ Int64\(46\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(3\) \+ \(\- coalesce\(\(\- Int64\(89\)\), Int64\(46\)\)\) AS col1" at position 0 and "Int64\(\-83\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( ALL - ( - 26 ) ) - + 62 + + 46 + - COUNT ( * ) * + 3 + - + COALESCE ( - ( 89 ), + 46 ) AS col1, - 83 * 26 col1 query I rowsort @@ -37007,7 +37007,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 3009 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- \(\- count\(\(\- Int64\(46\)\)\)\) \+ Int64\(\-60\) \* Int64\(20\) / \(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(59\) \* 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\(\*\)\) \- \(\- count\(\(\- Int64\(46\)\)\)\) \+ Int64\(\-60\) \* Int64\(20\) / \(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(59\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) - - COUNT ( ALL - + 46 ) + - 60 * 20 / - + 77 AS col0, + 59 * + + 51 col0 query II rowsort label-7057 @@ -37665,7 +37665,7 @@ SELECT 15 * - 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(10\) \* CAST\(NULL AS Float64\) \+ Int64\(\-55\) \- Int64\(68\) / \(\- Int64\(\-85\)\) \+ Int64\(11\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-87\) \+ \(\- count\(\*\)\) \* min\(Int64\(19\)\) \- \(\- count\(\*\)\) \* Int64\(53\) / Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(10\) \* CAST\(NULL AS Float64\) \+ Int64\(\-55\) \- Int64\(68\) / \(\- Int64\(\-85\)\) \+ Int64\(11\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(Int64\(19\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(53\) / Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 + + 10 * CAST ( NULL AS FLOAT8 ) + + ( + - 55 ) - + 68 / - - 85 + + 11 * ( - COUNT ( * ) ) col2, - 87 + - COUNT ( * ) * MIN ( + 19 ) - - COUNT ( * ) * 53 / + + 22 AS col2 # Datafusion - Datafusion expected results: @@ -37785,7 +37785,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\(\*\) 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 @@ -38221,7 +38221,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\(\-97\) \* Int64\(74\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -38316,7 +38316,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\(\*\) AS col1" at position 1 have the 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 @@ -38405,7 +38405,7 @@ SELECT ALL - 49 * + ( + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(38\) \+ Int64\(\-29\) \* Int64\(\-62\) \+ CAST\(\(\- CASE Int64\(69\) WHEN Int64\(\-9\) THEN \(\- count\(\*\)\) \+ count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-58\) \* Int64\(\-19\) WHEN CAST\(NULL AS Int32\) \* Int64\(71\) \* Int64\(91\) THEN NULL ELSE NULL END\) AS Int32\) \- Int64\(\-69\) AS col2" at position 0 and "Int64\(64\) \+ sum\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(38\) \+ Int64\(\-29\) \* Int64\(\-62\) \+ CAST\(\(\- CASE Int64\(69\) WHEN Int64\(\-9\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-58\) \* Int64\(\-19\) WHEN CAST\(NULL AS Int32\) \* Int64\(71\) \* Int64\(91\) THEN NULL ELSE NULL END\) AS Int32\) \- Int64\(\-69\) AS col2" at position 0 and "Int64\(64\) \+ sum\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 70 + 38 + - 29 * - 62 + CAST ( - CASE 69 WHEN - 9 THEN - + COUNT ( * ) + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) - - 58 * - 19 WHEN CAST ( NULL AS INTEGER ) * + 71 * 91 THEN NULL ELSE NULL END AS INTEGER ) - - 69 AS col2, + 64 + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 # Datafusion - Datafusion expected results: @@ -38787,7 +38787,7 @@ SELECT ALL - 35 - - 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(7\) \* nullif\(Int64\(80\), Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(7\) \* nullif\(Int64\(80\), Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, 7 * + NULLIF ( 80, + 56 ) AS col2 query II rowsort label-7396 @@ -38989,7 +38989,7 @@ SELECT ALL - 66 * 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(8\) AS Int32\) \+ Int64\(98\) AS col1" at position 0 and "count\(\*\) / \(\- Int64\(\-4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(8\) AS Int32\) \+ Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + + 8 AS INTEGER ) + 98 AS col1, + COUNT ( * ) / - - 4 AS col1 query I rowsort @@ -39564,7 +39564,7 @@ SELECT - 85 * + 27 + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 4590 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(90\) \* count\(\*\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(90\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 32 AS col0, + 90 * + COUNT ( * ) * + 51 AS col0 query I rowsort label-7546 @@ -39758,7 +39758,7 @@ SELECT ALL - 20 * 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "CASE count\(\*\) WHEN Int64\(70\) THEN NULL WHEN Int64\(83\) THEN Int64\(\-90\) 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\(63\) AS col0" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(70\) THEN NULL WHEN Int64\(83\) THEN Int64\(\-90\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 AS col0, CASE + COUNT ( * ) WHEN 70 THEN NULL WHEN 83 THEN - 90 ELSE NULL END AS col0 query I rowsort label-7583 @@ -40152,7 +40152,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\(\*\) AS col0" at position 1 have the 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 @@ -40325,7 +40325,7 @@ SELECT ALL + 91 * ( + 14 ) # Datafusion - Expected - 0 # Datafusion - Expected - 1607 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(37\) / Int64\(57\) / \(\- min\(Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(27\) \+ \(\- Int64\(72\)\) \* \(\- CASE WHEN NOT Int64\(71\) BETWEEN coalesce\(\(\- nullif\(Int64\(\-83\), Int64\(5\)\)\), Int64\(79\)\) AND CAST\(NULL AS Int32\) \+ Int64\(\-29\) THEN \(\- coalesce\(count\(\*\), nullif\(sum\(DISTINCT Int64\(\-51\)\), \(\- Int64\(\-8\)\) \* Int64\(31\)\) \+ Int64\(11\)\)\) WHEN NOT NULL IS NOT NULL THEN NULL END\) \+ Int64\(75\) \* Int64\(21\) \+ \(\- Int64\(\-78\)\) \+ Int64\(\-69\) / Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(37\) / Int64\(57\) / \(\- min\(Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(27\) \+ \(\- Int64\(72\)\) \* \(\- CASE WHEN NOT Int64\(71\) BETWEEN coalesce\(\(\- nullif\(Int64\(\-83\), Int64\(5\)\)\), Int64\(79\)\) AND CAST\(NULL AS Int32\) \+ Int64\(\-29\) THEN \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), nullif\(sum\(DISTINCT Int64\(\-51\)\), \(\- Int64\(\-8\)\) \* Int64\(31\)\) \+ Int64\(11\)\)\) WHEN NOT NULL IS NOT NULL THEN NULL END\) \+ Int64\(75\) \* Int64\(21\) \+ \(\- Int64\(\-78\)\) \+ Int64\(\-69\) / Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 * + 37 / 57 / - MIN ( ALL - 50 ) AS col0, + 27 + - + 72 * + - CASE WHEN NOT 71 BETWEEN + COALESCE ( - NULLIF ( - 83, ( 5 ) ), + 79 ) AND CAST ( NULL AS INTEGER ) + - 29 THEN + - COALESCE ( COUNT ( * ), + NULLIF ( SUM ( DISTINCT - 51 ), - - 8 * + 31 ) + + 11 ) WHEN NOT NULL IS NOT NULL THEN NULL END + 75 * + 21 + - - 78 + - 69 / + 35 col0, - 77 AS col1 query I rowsort label-7692 @@ -41936,7 +41936,7 @@ SELECT + COUNT ( - 40 ) * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-90\)\)\) / Int64\(\-26\) / CAST\(NULL AS Int32\) \- count\(\*\) \* Int64\(\-59\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-90\)\)\) / Int64\(\-26\) / CAST\(NULL AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-59\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + SUM ( - 90 ) / - 26 / + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - 59 AS col0, - 66 AS col0 query I rowsort label-8003 @@ -42276,7 +42276,7 @@ SELECT + 0 col1, + ( - + 64 ) * + COALESCE ( + + 36, - - 0 ) * + MIN ( ALL 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 114 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(75\) \+ Int64\(46\) AS col2" at position 0 and "Int64\(90\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(46\) AS col2" at position 0 and "Int64\(90\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 7 + + 75 + + 46 AS col2, 90 * + - COUNT ( * ) AS col2 query I rowsort label-8069 @@ -42458,7 +42458,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\(\*\) AS col2" at position 1 have the 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 @@ -42537,7 +42537,7 @@ SELECT - 65 * - COUNT ( * ), - 82 * - MAX ( 33 ) + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5700 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(\-60\) AS col2" at position 0 and "coalesce\(\(\- Int64\(8\)\), count\(\*\) \* Int64\(33\), Int64\(38\) \* CASE Int64\(54\) WHEN \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(39\)\)\) / Int64\(42\) THEN Int64\(\-40\) \* Int64\(\-44\) \+ Int64\(64\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(\-60\) AS col2" at position 0 and "coalesce\(\(\- Int64\(8\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\), Int64\(38\) \* CASE Int64\(54\) WHEN \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(39\)\)\) / Int64\(42\) THEN Int64\(\-40\) \* Int64\(\-44\) \+ Int64\(64\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 95 * - 60 AS col2, + COALESCE ( - ( 8 ), COUNT ( * ) * + 33, + 38 * + CASE + 54 WHEN + - NULLIF ( - CAST ( NULL AS INTEGER ), 39 ) / 42 THEN - 40 * - 44 + 64 ELSE NULL END ) AS col2 query II rowsort @@ -44258,7 +44258,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\(\*\) 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 @@ -44985,7 +44985,7 @@ SELECT ALL - - 92 + 12 AS col1, - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 15 -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\(12\) \+ \(\- count\(\*\)\) \+ 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\(22\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 22 AS col0, - COUNT ( * ) * 12 + - ( + + COUNT ( * ) ) + 28 col0 # Datafusion - Types were automatically converted from: @@ -45196,7 +45196,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(22\)\)\) \+ \(\- Int64\(66\)\) AS col0" at position 0 and "count\(\*\) \+ \(\- Int64\(\-12\)\) \+ \(\- Int64\(\-53\)\) \* \(\- count\(\*\)\) \+ Int64\(13\) / \(\- 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 "\(\- sum\(Int64\(22\)\)\) \+ \(\- Int64\(66\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-12\)\) \+ \(\- Int64\(\-53\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(13\) / \(\- Int64\(\-31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( 22 ) + - + 66 AS col0, COUNT ( * ) + - - 12 + - - 53 * - + COUNT ( * ) + 13 / - - 31 AS col0 query I rowsort @@ -45966,7 +45966,7 @@ SELECT ALL - 72 + - 60 * + - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* \(\- count\(\*\)\) AS col0" at position 0 and "max\(\(\- CASE Int64\(\-24\) WHEN Int64\(\-11\) THEN Int64\(55\) \* Int64\(5\) \* Int64\(22\) 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\(94\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "max\(\(\- CASE Int64\(\-24\) WHEN Int64\(\-11\) THEN Int64\(55\) \* Int64\(5\) \* Int64\(22\) ELSE NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 94 * - COUNT ( * ) AS col0, + MAX ( - + CASE - 24 WHEN - 11 THEN + 55 * + + 5 * 22 ELSE NULL END ) AS col0 query I rowsort label-8770 @@ -47081,7 +47081,7 @@ SELECT - + 26 + - - ( + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "\(\- CASE Int64\(\-13\) WHEN \(\- max\(DISTINCT Int64\(86\)\)\) \* \(\- Int64\(\-19\)\) \* Int64\(49\) \+ Int64\(59\) \+ Int64\(33\) THEN \(\- coalesce\(\(\- count\(\*\)\), \(\- Int64\(\-29\)\) \+ Int64\(\-12\) \+ count\(\*\) \+ \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(\-72\)\), Int64\(9\) \* Int64\(0\)\)\) \+ Int64\(\-40\) / Int64\(75\) \+ Int64\(80\) WHEN Int64\(\-10\) \* \(\- count\(\*\)\) \* Int64\(\-27\) \- count\(DISTINCT \(\- CAST\(Int64\(91\) AS Int32\)\)\) \+ Int64\(66\) THEN \(\- CAST\(Int64\(37\) AS Float64\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "\(\- CASE Int64\(\-13\) WHEN \(\- max\(DISTINCT Int64\(86\)\)\) \* \(\- Int64\(\-19\)\) \* Int64\(49\) \+ Int64\(59\) \+ Int64\(33\) THEN \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-29\)\) \+ Int64\(\-12\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-72\)\), Int64\(9\) \* Int64\(0\)\)\) \+ Int64\(\-40\) / Int64\(75\) \+ Int64\(80\) WHEN Int64\(\-10\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) \- count\(DISTINCT \(\- CAST\(Int64\(91\) AS Int32\)\)\) \+ Int64\(66\) THEN \(\- CAST\(Int64\(37\) AS Float64\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 50 AS col0, - CASE - 13 WHEN + - MAX ( DISTINCT + 86 ) * - ( - 19 ) * 49 + 59 + + 33 THEN - COALESCE ( + - COUNT ( * ), - - 29 + - 12 + COUNT ( * ) + - ( + + ( + - COUNT ( * ) ) ) * - - 72, + 9 * - 0 ) + - 40 / 75 + 80 WHEN - 10 * + - COUNT ( * ) * - 27 - COUNT ( DISTINCT - + CAST ( 91 AS INTEGER ) ) + 66 THEN - CAST ( 37 AS FLOAT8 ) END AS col0 query I rowsort @@ -47468,7 +47468,7 @@ SELECT CASE - - 83 WHEN - + 95 THEN NULL ELSE - - 62 END + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- count\(\*\)\) AS col0" at position 0 and "\(\- CASE WHEN NOT Int64\(62\) IS NOT NULL THEN Int64\(80\) / Int64\(\-57\) \* \(\- CASE Int64\(\-51\) WHEN Int64\(95\) THEN coalesce\(Int64\(73\), Int64\(\-6\)\) ELSE NULL END\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CASE WHEN NOT Int64\(62\) IS NOT NULL THEN Int64\(80\) / Int64\(\-57\) \* \(\- CASE Int64\(\-51\) WHEN Int64\(95\) THEN coalesce\(Int64\(73\), Int64\(\-6\)\) ELSE NULL END\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 * - + COUNT ( * ) AS col0, ( - CASE WHEN NOT 62 IS NOT NULL THEN + 80 / - 57 * - CASE - 51 WHEN + 95 THEN COALESCE ( + 73, - 6 ) ELSE NULL END END ) AS col0 query I rowsort @@ -48021,7 +48021,7 @@ SELECT 31 + + - 48 * - + 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- 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 "Int64\(15\) \* \(\- 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 DISTINCT 15 * + - COUNT ( * ) AS col1, 66 col1 query I rowsort label-9163 @@ -48862,7 +48862,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\(\-26\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -50651,7 +50651,7 @@ SELECT 10 - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(48\) 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\(\*\) \+ Int64\(48\) 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 + COUNT ( * ) + + + 48 AS col2, + 8 AS col2 query I rowsort @@ -52098,7 +52098,7 @@ SELECT + 83 * - COUNT ( * ) * + - ( + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(46\) WHEN Int64\(56\) / \(\- count\(\*\)\) \+ Int64\(20\) \+ count\(\*\) THEN NULL ELSE Int64\(96\) END AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(46\) WHEN Int64\(56\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(96\) END AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE 46 WHEN + 56 / - COUNT ( * ) + + 20 + COUNT ( * ) THEN NULL ELSE + 96 END AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-9950 diff --git a/data/sqlite/random/expr/slt_good_73.slt b/data/sqlite/random/expr/slt_good_73.slt index 8b88cc7..f1c20f4 100644 --- a/data/sqlite/random/expr/slt_good_73.slt +++ b/data/sqlite/random/expr/slt_good_73.slt @@ -125,7 +125,7 @@ SELECT + ( 58 ) * 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2668 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(92\) \* 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\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(92\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col0, + 92 * + - 29 col0 query I rowsort label-17 @@ -1925,7 +1925,7 @@ SELECT ALL 84 + + ( 77 ) AS col1, 32 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ CASE \(\- Int64\(78\)\) WHEN \(\- count\(\*\)\) \* \(\- Int64\(43\)\) \* CASE Int64\(31\) WHEN Int64\(\-27\) / Int64\(58\) / Int64\(54\) \- Int64\(56\) \+ Int64\(0\) / \(\- Int64\(\-52\)\) \+ \(\- Int64\(19\)\) THEN NULL WHEN Int64\(77\) \* Int64\(68\) THEN Int64\(39\) \+ Int64\(8\) \* Int64\(6\) \* \(\- count\(\*\)\) \* Int64\(\-91\) ELSE Int64\(92\) END THEN Int64\(26\) WHEN Int64\(63\) THEN NULL WHEN Int64\(\-82\) THEN NULL END AS col0" at position 0 and "Int64\(76\) \* 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\(94\) \+ CASE \(\- Int64\(78\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(43\)\) \* CASE Int64\(31\) WHEN Int64\(\-27\) / Int64\(58\) / Int64\(54\) \- Int64\(56\) \+ Int64\(0\) / \(\- Int64\(\-52\)\) \+ \(\- Int64\(19\)\) THEN NULL WHEN Int64\(77\) \* Int64\(68\) THEN Int64\(39\) \+ Int64\(8\) \* Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-91\) ELSE Int64\(92\) END THEN Int64\(26\) WHEN Int64\(63\) THEN NULL WHEN Int64\(\-82\) THEN NULL END AS col0" at position 0 and "Int64\(76\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 94 + CASE - + 78 WHEN - COUNT ( * ) * - + 43 * + CASE 31 WHEN - 27 / 58 / 54 - 56 + + 0 / - - 52 + - + 19 THEN NULL WHEN + 77 * 68 THEN 39 + + 8 * + 6 * - COUNT ( * ) * - 91 ELSE 92 END THEN 26 WHEN 63 THEN NULL WHEN - 82 THEN NULL END AS col0, + 76 * 55 col0 query I rowsort @@ -2729,7 +2729,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\(\*\) AS col2" at position 1 have the 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 @@ -3040,7 +3040,7 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - -5 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-6\) AS col2" at position 1 and "Int64\(39\) 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\(\-6\) AS col2" at position 1 and "Int64\(39\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + 10 AS INTEGER ) AS col1, COUNT ( * ) + - 6 AS col2, + 39 AS col2 query I rowsort label-570 @@ -5088,7 +5088,7 @@ SELECT ALL + + 89 / ( - - 72 ) * 74 # Datafusion - Expected - 5856 # Datafusion - Expected - 72 # Datafusion - Expected - 7052 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-72\)\), count\(\*\)\) AS col0" at position 1 and "Int64\(82\) \* 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 "nullif\(\(\- Int64\(\-72\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 and "Int64\(82\) \* Int64\(86\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 61 * - + MAX ( DISTINCT + - 96 ), NULLIF ( - - 72, COUNT ( * ) ) AS col0, + 82 * + 86 AS col0 query I rowsort label-959 @@ -5317,7 +5317,7 @@ SELECT 49 * CAST ( - 29 AS INTEGER ) AS col2, - 56 + + + 88 * + - 51, - COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - 3638250 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* \(\- min\(Int64\(15\)\)\) \* Int64\(\-98\) \* Int64\(\-75\) AS col0" at position 0 and "Int64\(43\) \+ \(\- nullif\(Int64\(\-95\), nullif\(CAST\(NULL AS Int32\), count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(1\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* \(\- min\(Int64\(15\)\)\) \* Int64\(\-98\) \* Int64\(\-75\) AS col0" at position 0 and "Int64\(43\) \+ \(\- nullif\(Int64\(\-95\), nullif\(CAST\(NULL AS Int32\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(1\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 33 * - MIN ( ALL + 15 ) * - 98 * - 75 AS col0, 43 + + - NULLIF ( - 95, NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / 1 ) ) AS col0 query I rowsort @@ -6156,7 +6156,7 @@ SELECT ALL 9 + NULLIF ( + 21, - 68 ) # 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\(14\) \+ count\(\*\) \+ Int64\(34\) 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\(14\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(34\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 + COUNT ( * ) + + 34 AS col1, 3 col1 query I rowsort label-1168 @@ -6462,7 +6462,7 @@ SELECT 12 * - COUNT ( 80 ) / - SUM ( DISTINCT + 60 ) + - 66 - 59 * 82 / 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 5201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "\(\- max\(Int64\(74\)\)\) \* coalesce\(Int64\(\-70\), Int64\(\-28\) / Int64\(\-76\), Int64\(45\), Int64\(2\) \* Int64\(\-73\)\) \- \(\- 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 "Int64\(\-71\) AS col2" at position 0 and "\(\- max\(Int64\(74\)\)\) \* coalesce\(Int64\(\-70\), Int64\(\-28\) / Int64\(\-76\), Int64\(45\), Int64\(2\) \* Int64\(\-73\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 71 AS col2, - MAX ( 74 ) * COALESCE ( + - 70, + + ( - 28 ) / - 76, + 45, 2 * - 73 ) - - COUNT ( * ) * + 21 AS col2 query I rowsort label-1225 @@ -7744,7 +7744,7 @@ SELECT DISTINCT ( + COALESCE ( 13, 34, 5 ) ) * + - 29 + - 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(88\) \+ \(\- 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\(\*\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(88\) \+ \(\- Int64\(37\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + ( + + 53 ) AS col1, 88 + - + 37 AS col1 query I rowsort @@ -8218,7 +8218,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\(\*\) 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 @@ -8452,7 +8452,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\(\*\) AS col2" at position 1 have the 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 @@ -9656,7 +9656,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 @@ -11348,7 +11348,7 @@ SELECT + + SUM ( - 82 ) * + 99 * - + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-67\)\) AS col0" at position 0 and "\(\- \(\- count\(\*\)\)\) \+ 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 "min\(Int64\(\-67\)\) AS col0" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( + - 67 ) AS col0, - ( - COUNT ( * ) ) + 63 col0 query I rowsort @@ -11768,7 +11768,7 @@ SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - + 8 * - 25 / + + 95 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72330 # Datafusion - Expected - 1310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-9\) \+ Int64\(\-44\) \* \(\- Int64\(\-33\)\) \* Int64\(\-50\) AS col2" at position 0 and "Int64\(\-69\) \+ \(\- Int64\(\-66\)\) \+ count\(\*\) \+ Int64\(\-32\) \* Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-9\) \+ Int64\(\-44\) \* \(\- Int64\(\-33\)\) \* Int64\(\-50\) AS col2" at position 0 and "Int64\(\-69\) \+ \(\- Int64\(\-66\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-32\) \* Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 30 * - 9 + - 44 * - - 33 * + - 50 AS col2, - 69 + - - 66 + COUNT ( * ) + - 32 * - 41 AS col2 query I rowsort @@ -12406,7 +12406,7 @@ SELECT 28 AS col2, COUNT ( * ) AS col0 # 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 "count\(\*\) \+ Int64\(\-70\) \+ Int64\(26\) / Int64\(\-31\) 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\(\*\) \+ Int64\(\-70\) \+ Int64\(26\) / Int64\(\-31\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + - 70 + + + 26 / - 31 AS col1, + 57 AS col1 query I rowsort label-2358 @@ -12834,7 +12834,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\(\*\) 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 @@ -12865,7 +12865,7 @@ SELECT ALL + - CASE COUNT ( * ) WHEN + 47 THEN NULL ELSE 29 END + - 14 + + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- CASE Int64\(44\) WHEN Int64\(89\) \* Int64\(8\) \* \(\- Int64\(\-77\)\) THEN NULL WHEN count\(\*\) \- count\(\*\) \* Int64\(\-35\) / Int64\(\-21\) \+ Int64\(\-71\) \* CAST\(min\(Int64\(50\)\) AS Int32\) \* Int64\(\-2\) \* Int64\(36\) THEN coalesce\(Int64\(\-40\), Int64\(10\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- CASE Int64\(44\) WHEN Int64\(89\) \* Int64\(8\) \* \(\- Int64\(\-77\)\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-35\) / Int64\(\-21\) \+ Int64\(\-71\) \* CAST\(min\(Int64\(50\)\) AS Int32\) \* Int64\(\-2\) \* Int64\(36\) THEN coalesce\(Int64\(\-40\), Int64\(10\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 AS col1, - CASE + 44 WHEN + 89 * + 8 * - ( - 77 ) THEN NULL WHEN COUNT ( * ) - + COUNT ( * ) * - 35 / - 21 + - 71 * + CAST ( MIN ( ALL + 50 ) AS INTEGER ) * - 2 * + 36 THEN + COALESCE ( - 40, 10 ) ELSE NULL END AS col1 query I rowsort @@ -13294,7 +13294,7 @@ SELECT - - 6 + - 74 * - COUNT ( * ) * - COALESCE ( 98, ( + 2 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 199148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "CASE Int64\(\-56\) WHEN \(\- Int64\(3\)\) THEN \(\- count\(\*\)\) \* Int64\(18\) \+ Int64\(32\) \* \(\- CAST\(Int64\(17\) AS Int32\)\) WHEN Int64\(90\) \* \(\- Int64\(\-13\)\) THEN \(\- min\(\(\- Int64\(36\)\)\)\) ELSE Int64\(61\) END \* Int64\(34\) \* \(\- Int64\(\-96\)\) \- Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "CASE Int64\(\-56\) WHEN \(\- Int64\(3\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \+ Int64\(32\) \* \(\- CAST\(Int64\(17\) AS Int32\)\) WHEN Int64\(90\) \* \(\- Int64\(\-13\)\) THEN \(\- min\(\(\- Int64\(36\)\)\)\) ELSE Int64\(61\) END \* Int64\(34\) \* \(\- Int64\(\-96\)\) \- Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 AS col2, CASE - 56 WHEN - + 3 THEN + - COUNT ( * ) * + 18 + 32 * + - CAST ( + 17 AS INTEGER ) WHEN + + 90 * - - 13 THEN - + MIN ( ALL - + 36 ) ELSE 61 END * 34 * - - 96 - - 44 AS col2 query I rowsort label-2528 @@ -13438,7 +13438,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\(\*\) AS col2" at position 1 have the 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 @@ -15404,7 +15404,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\(\*\) AS col2" at position 1 have the 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 @@ -18947,7 +18947,7 @@ SELECT ALL 86 * - MAX ( DISTINCT + 10 ), + 29 AS col2 # Datafusion - Expected - 4 # Datafusion - Expected - -5857 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* Int64\(78\) \+ Int64\(71\) AS col0" at position 1 and "\(\- 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\(\-76\) \* Int64\(78\) \+ Int64\(71\) 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 4 * + - 39 / - 39, - 76 * + 78 + + 71 AS col0, - + COUNT ( * ) col0 query I rowsort @@ -19087,7 +19087,7 @@ SELECT ALL + 48 + - 8, CAST ( 72 AS INTEGER ) + + 61 + COUNT ( * ) AS col1 # Datafusion - Expected - -80 # Datafusion - Expected - -2 # Datafusion - Expected - 2073 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT nullif\(Int64\(80\), Int64\(70\)\)\)\) \* max\(DISTINCT Int64\(80\)\) AS col2" at position 0 and "count\(\*\) \+ 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\(DISTINCT nullif\(Int64\(80\), Int64\(70\)\)\)\) \* max\(DISTINCT Int64\(80\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( DISTINCT NULLIF ( 80, + 70 ) ) * + + MAX ( DISTINCT 80 ) AS col2, COUNT ( * ) + + ( - 3 ) AS col2, + 85 / 50 + - 41 + - 40 + + - 31 * + MAX ( DISTINCT - 67 ) + + + 76 query II rowsort label-3637 @@ -19129,7 +19129,7 @@ SELECT 26 + 13 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(\-71\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-71\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) - + - 71 AS col1, - 69 col1 query I rowsort label-3645 @@ -20074,7 +20074,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\(\*\) AS col2" at position 1 have the 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 @@ -20159,7 +20159,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\(\*\) AS col2" at position 0 and "coalesce\(\(\- Int64\(78\)\), \(\- 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 @@ -20474,7 +20474,7 @@ SELECT + 89 + - ( 87 ) + 89, - MIN ( DISTINCT - - 86 ) AS 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\(\*\)\)\) 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 # Datafusion - Types were automatically converted from: @@ -23201,7 +23201,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\(\*\) 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 @@ -26632,7 +26632,7 @@ SELECT - - 66 / - 67 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN CAST\(\(\- Int64\(\-84\)\) AS Int32\) \- Int64\(97\) THEN NULL WHEN nullif\(Int64\(\-48\), Int64\(82\)\) THEN NULL ELSE Int64\(46\) END AS col0" at position 0 and "nullif\(count\(\*\), Int64\(\-95\)\) \+ Int64\(79\) \+ Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN CAST\(\(\- Int64\(\-84\)\) AS Int32\) \- Int64\(97\) THEN NULL WHEN nullif\(Int64\(\-48\), Int64\(82\)\) THEN NULL ELSE Int64\(46\) END AS col0" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-95\)\) \+ Int64\(79\) \+ Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE 32 WHEN + + CAST ( - - 84 AS INTEGER ) - 97 THEN NULL WHEN NULLIF ( - 48, 82 ) THEN NULL ELSE 46 END AS col0, NULLIF ( + COUNT ( * ), - 95 ) + + 79 + + 19 AS col0 query I rowsort label-5073 @@ -27258,7 +27258,7 @@ SELECT DISTINCT 21 / + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) / CASE \(\- Int64\(1\)\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(77\) THEN NULL WHEN coalesce\(Int64\(\-35\), nullif\(\(\- Int64\(6\)\), CAST\(Int64\(\-50\) AS Int32\)\) \+ count\(\*\)\) THEN NULL ELSE Int64\(75\) END AS col2" at position 0 and "Int64\(89\) \- \(\- \(\- \(\- nullif\(Int64\(12\), CAST\(NULL AS Int32\) \+ Int64\(2\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) / CASE \(\- Int64\(1\)\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(77\) THEN NULL WHEN coalesce\(Int64\(\-35\), nullif\(\(\- Int64\(6\)\), CAST\(Int64\(\-50\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(75\) END AS col2" at position 0 and "Int64\(89\) \- \(\- \(\- \(\- nullif\(Int64\(12\), CAST\(NULL AS Int32\) \+ Int64\(2\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + 6 ) / CASE - ( 1 ) WHEN - - 31 + 77 THEN NULL WHEN COALESCE ( + - 35, NULLIF ( - + 6, CAST ( - 50 AS INTEGER ) ) + + ( + + COUNT ( * ) ) ) THEN NULL ELSE + 75 END AS col2, 89 - - - ( - NULLIF ( + 12, + CAST ( NULL AS INTEGER ) + + 2 ) ) AS col2 query I rowsort @@ -27964,7 +27964,7 @@ SELECT DISTINCT - + 10 * - + 54 * + - 14 + - 87 - + NULLIF ( + + 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), + COUNT ( * ) query I rowsort label-5325 @@ -30041,7 +30041,7 @@ SELECT + 26 + - - 53 * + 7 + + CASE WHEN NOT - 20 < 89 OR NOT 34 + + 16 - - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -352232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-72\) WHEN \(\- sum\(DISTINCT Int64\(\-66\)\)\) \- Int64\(38\) \* \(\- Int64\(16\)\) \- \(\- Int64\(\-92\)\) \- Int64\(\-29\) \* \(\- Int64\(7\)\) \- \(\- Int64\(\-64\)\) THEN Int64\(\-81\) \+ \(\- count\(\*\)\) \* coalesce\(Int64\(70\), Int64\(21\)\) / \(\- Int64\(58\)\) ELSE Int64\(34\) \- Int64\(82\) END AS col0" at position 0 and "Int64\(72\) \+ Int64\(\-91\) \* Int64\(88\) \* Int64\(44\) \+ 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 "CASE Int64\(\-72\) WHEN \(\- sum\(DISTINCT Int64\(\-66\)\)\) \- Int64\(38\) \* \(\- Int64\(16\)\) \- \(\- Int64\(\-92\)\) \- Int64\(\-29\) \* \(\- Int64\(7\)\) \- \(\- Int64\(\-64\)\) THEN Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* coalesce\(Int64\(70\), Int64\(21\)\) / \(\- Int64\(58\)\) ELSE Int64\(34\) \- Int64\(82\) END AS col0" at position 0 and "Int64\(72\) \+ Int64\(\-91\) \* Int64\(88\) \* Int64\(44\) \+ Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE - 72 WHEN + - SUM ( DISTINCT - 66 ) - + 38 * - + 16 - - - 92 - - 29 * - + 7 - - - 64 THEN - 81 + - COUNT ( * ) * + + COALESCE ( + 70, 21 ) / - + 58 ELSE 34 - + 82 END AS col0, 72 + - 91 * + 88 * 44 + ( 48 ) AS col0 query I rowsort label-5724 @@ -30940,7 +30940,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\(\*\) 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 @@ -31104,7 +31104,7 @@ SELECT + 84 * + 68 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 "coalesce\(Int64\(50\), Int64\(63\), Int64\(\-8\) \+ Int64\(64\)\) \+ \(\- nullif\(CASE \(\- count\(\*\)\) WHEN Int64\(\-63\) \* \(\- Int64\(\-86\)\) THEN Int64\(24\) ELSE NULL END, Int64\(\-68\) \* Int64\(\-82\)\)\) / \(\- coalesce\(Int64\(\-99\), \(\- Int64\(70\)\) \* Int64\(20\) \+ \(\- \(\- Int64\(49\)\)\), Int64\(91\)\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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\(50\), Int64\(63\), Int64\(\-8\) \+ Int64\(64\)\) \+ \(\- nullif\(CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-63\) \* \(\- Int64\(\-86\)\) THEN Int64\(24\) ELSE NULL END, Int64\(\-68\) \* Int64\(\-82\)\)\) / \(\- coalesce\(Int64\(\-99\), \(\- Int64\(70\)\) \* Int64\(20\) \+ \(\- \(\- Int64\(49\)\)\), 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 DISTINCT + + COALESCE ( + 50, 63, + + ( - 8 ) + + 64 ) + + - NULLIF ( + CASE - COUNT ( * ) WHEN - 63 * - - 86 THEN + 24 ELSE NULL END, - 68 * + - 82 ) / - COALESCE ( + - 99, - + 70 * 20 + - - ( ( 49 ) ), 91 ) AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -31720,7 +31720,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\(\*\) 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: @@ -32025,7 +32025,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\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(38\) AS Int32\)\) / Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(38\) AS Int32\)\) / Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + COUNT ( * ) ) AS col0, - ( + CAST ( + 38 AS INTEGER ) ) / 26 AS col0 query I rowsort label-6109 @@ -33245,7 +33245,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\(\*\) 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 @@ -33736,7 +33736,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\(\*\) 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: @@ -34339,7 +34339,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\(\*\) AS col2" at position 0 and "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 @@ -34903,7 +34903,7 @@ SELECT + - 11 + + + 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(72\) \+ \(\- 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 "Int64\(62\) AS col2" at position 0 and "Int64\(72\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 62 AS col2, + 72 + - COUNT ( * ) - + 27 col2 query I rowsort @@ -35947,7 +35947,7 @@ SELECT + 33 / + COUNT ( * ), + COUNT ( * ) AS col1 # Datafusion - Expected - 16 # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \+ Int64\(40\) \- count\(\*\) \+ Int64\(\-59\) AS col0" at position 0 and "Int64\(98\) \+ Int64\(\-39\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(40\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-59\) AS col0" at position 0 and "Int64\(98\) \+ Int64\(\-39\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 36 ) + + 40 - + COUNT ( * ) + - 59 AS col0, + 98 + - 39 + - + COUNT ( * ) AS col0, COUNT ( DISTINCT + 63 ) AS col2 query I rowsort @@ -36006,7 +36006,7 @@ SELECT 32, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- CAST\(Int64\(3\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(3\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - CAST ( + 3 AS INTEGER ) AS col2, - 22 col2 query I rowsort @@ -37226,7 +37226,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\(\*\) 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 @@ -37359,7 +37359,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\(\*\) 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 @@ -38080,7 +38080,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\(\*\) 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 @@ -38363,7 +38363,7 @@ SELECT 4 + MIN ( + 56 ) / COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* count\(\*\) \+ Int64\(\-60\) 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\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-60\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 33 * + COUNT ( * ) + + - 60 col1, 17 col1 query II rowsort label-7315 @@ -38416,7 +38416,7 @@ SELECT ALL + 98 + 60 - - + 86 * - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-75\) WHEN \(\- count\(Int64\(80\)\)\) THEN Int64\(62\) END \* count\(\*\) \* \(\- Int64\(\-84\)\) \+ count\(Int64\(53\)\) \* Int64\(\-74\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-75\) WHEN \(\- count\(Int64\(80\)\)\) THEN Int64\(62\) END \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-84\)\) \+ count\(Int64\(53\)\) \* Int64\(\-74\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - 75 WHEN - COUNT ( 80 ) THEN 62 END * + + COUNT ( * ) * - - 84 + COUNT ( + 53 ) * - 74 AS col0, 65 AS col0 query II rowsort label-7324 @@ -38655,7 +38655,7 @@ SELECT - + 85 + + + 27 # 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 col2" at position 0 and "Int64\(1\) \* Int64\(\-80\) / \(\- \(\- CASE \(\- avg\(Int64\(27\)\)\) WHEN Int64\(76\) THEN \(\- coalesce\(Int64\(60\), \(\- \(\- count\(\*\)\)\)\)\) \- Int64\(20\) WHEN \(\- \(\- Int64\(18\)\)\) \* Int64\(69\) \+ Int64\(90\) \* \(\- Int64\(\-66\)\) \+ CASE Int64\(\-22\) WHEN Int64\(\-73\) \* Int64\(\-33\) THEN Int64\(\-45\) / Int64\(94\) \+ \(\- Int64\(9\)\) ELSE NULL END THEN NULL WHEN Int64\(62\) 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\(1\) AS col2" at position 0 and "Int64\(1\) \* Int64\(\-80\) / \(\- \(\- CASE \(\- avg\(Int64\(27\)\)\) WHEN Int64\(76\) THEN \(\- coalesce\(Int64\(60\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \- Int64\(20\) WHEN \(\- \(\- Int64\(18\)\)\) \* Int64\(69\) \+ Int64\(90\) \* \(\- Int64\(\-66\)\) \+ CASE Int64\(\-22\) WHEN Int64\(\-73\) \* Int64\(\-33\) THEN Int64\(\-45\) / Int64\(94\) \+ \(\- Int64\(9\)\) ELSE NULL END THEN NULL WHEN Int64\(62\) THEN NULL END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 AS col2, 1 * - 80 / - + ( - CASE - AVG ( + 27 ) WHEN + 76 THEN - COALESCE ( + + 60, - - COUNT ( * ) ) - + 20 WHEN - - ( 18 ) * + 69 + 90 * - - 66 + CASE ( - 22 ) WHEN - 73 * - 33 THEN - 45 / 94 + - + 9 ELSE NULL END THEN NULL WHEN 62 THEN NULL END ) AS col2 query I rowsort @@ -40657,7 +40657,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\(\*\) 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 @@ -41902,7 +41902,7 @@ SELECT 71 + - MAX ( - 44 ) # 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\(\*\)\)\) AS col0" at position 0 and "max\(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 "max\(Int64\(\-33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col0, MAX ( - 33 ) AS col0 query I rowsort @@ -42866,7 +42866,7 @@ SELECT - NULLIF ( + - 56, + 65 * 39 ) - + 64 AS col0, 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(25\)\)\) \* Int64\(\-87\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(25\)\)\) \* Int64\(\-87\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - COUNT ( 25 ) * - 87 AS col2, + 7 AS col2 query I rowsort @@ -43486,7 +43486,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "coalesce\(Int64\(59\), \(\- count\(\*\)\) \+ max\(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\(\-54\) AS col2" at position 0 and "coalesce\(Int64\(59\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ max\(Int64\(\-11\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 54 col2, COALESCE ( 59, - COUNT ( * ) + + MAX ( - 11 ) ) AS col2 # Datafusion - Datafusion expected results: @@ -43902,7 +43902,7 @@ SELECT - 4 * + 20 # Datafusion - Expected - 41760 # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(6\) \* Int64\(\-87\) AS col0" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-83\) \* Int64\(\-76\) \* Int64\(\-32\) THEN Int64\(21\) / \(\- Int64\(29\)\) / Int64\(22\) \+ count\(\*\) \- \(\- count\(\*\)\) WHEN sum\(Int64\(32\)\) THEN NULL END \* Int64\(\-39\) \+ Int64\(\-61\) \- Int64\(76\) \+ Int64\(\-83\) \+ Int64\(78\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(6\) \* Int64\(\-87\) AS col0" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-83\) \* Int64\(\-76\) \* Int64\(\-32\) THEN Int64\(21\) / \(\- Int64\(29\)\) / Int64\(22\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN sum\(Int64\(32\)\) THEN NULL END \* Int64\(\-39\) \+ Int64\(\-61\) \- Int64\(76\) \+ Int64\(\-83\) \+ Int64\(78\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 * + 6 * - 87 AS col0, 51 - - 53 - + 9, + CASE - ( - 87 ) WHEN - 83 * - 76 * - 32 THEN + 21 / - + 29 / + 22 + + COUNT ( * ) - - COUNT ( * ) WHEN + + SUM ( ALL + 32 ) THEN NULL END * - 39 + - 61 - + + 76 + - 83 + 78 AS col0 query II rowsort @@ -44085,7 +44085,7 @@ SELECT ALL + + 91 + - SUM ( - + 89 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 177072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\*\), Int64\(\-22\) \* sum\(DISTINCT CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(\*\)\)\) \* \(\- Int64\(97\)\) \+ CASE \(\- Int64\(\-22\)\) WHEN \(\- Int64\(14\)\) THEN Int64\(18\) END\) AS col2" at position 0 and "count\(\*\) \* Int64\(62\) \* Int64\(84\) \* \(\- Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-22\) \* sum\(DISTINCT CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(97\)\) \+ CASE \(\- Int64\(\-22\)\) WHEN \(\- Int64\(14\)\) THEN Int64\(18\) END\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(62\) \* Int64\(84\) \* \(\- Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 22 * + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - ( - COUNT ( * ) ) * - ( + 97 ) + + ( + CASE - - 22 WHEN - + 14 THEN 18 END ) ) AS col2, COUNT ( * ) * + 62 * 84 * - - 34 col2 query I rowsort @@ -44275,7 +44275,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\(\*\) 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 @@ -44336,7 +44336,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\(\*\) AS col0" at position 0 and "\(\- nullif\(Int64\(51\), Int64\(27\) \+ Int64\(\-4\) \+ Int64\(77\)\)\) \+ Int64\(78\) \+ Int64\(54\) \+ count\(\*\) \* 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 @@ -44557,7 +44557,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1334 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(15\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "count\(\*\) \+ \(\- nullif\(Int64\(49\), Int64\(59\) / Int64\(15\) \- Int64\(15\) \- Int64\(48\) \+ Int64\(70\) \+ Int64\(\-77\) / Int64\(29\)\)\) \- \(\- 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\(\-89\) \* Int64\(15\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(49\), Int64\(59\) / Int64\(15\) \- Int64\(15\) \- Int64\(48\) \+ Int64\(70\) \+ Int64\(\-77\) / Int64\(29\)\)\) \- \(\- Int64\(26\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 89 * + + 15 + - - COUNT ( * ) AS col2, COUNT ( * ) + - NULLIF ( + 49, + 59 / + 15 - 15 - + + 48 + + 70 + - 77 / 29 ) - - + 26 AS col2 # Datafusion - Datafusion expected results: @@ -45151,7 +45151,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\(\*\) 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\(\*\)\)\) 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 @@ -45330,7 +45330,7 @@ SELECT + 10 AS col1, 12 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- \(\- count\(\*\)\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-80\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\(\*\) \+ Int64\(\-80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - - + COUNT ( * ) col0, COUNT ( * ) + - 80 * - - COUNT ( * ) AS col0 query I rowsort label-8640 @@ -46031,7 +46031,7 @@ SELECT DISTINCT COUNT ( * ) / - + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -90 -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\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) 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 68 AS col1, + COUNT ( * ) + - 91 col1 query I rowsort label-8773 @@ -46431,7 +46431,7 @@ SELECT DISTINCT - ( - 80 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) / sum\(Int64\(51\)\) AS col1" at position 0 and "Int64\(\-9\) \* max\(DISTINCT Int64\(86\)\) \- 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\(\*\)\)\) / sum\(Int64\(51\)\) AS col1" at position 0 and "Int64\(\-9\) \* max\(DISTINCT Int64\(86\)\) \- Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) / SUM ( 51 ) AS col1, - 9 * MAX ( DISTINCT + 86 ) - + 61 AS col1 query II rowsort label-8848 @@ -47866,7 +47866,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\(\*\) 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 @@ -49382,7 +49382,7 @@ SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 # Datafusion - Expected - 0 # Datafusion - Expected - -1 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(0\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 10 * + 0 AS col0, ( - COUNT ( * ) ) AS col0, + 29 AS col0 query I rowsort @@ -49446,7 +49446,7 @@ SELECT 39, - ( - 53 ) + + + COALESCE ( 4, - + 91 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "Int64\(8\) \+ Int64\(67\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(8\) \+ Int64\(67\) \+ \(\- 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, + 8 + + 67 + - COUNT ( * ) AS col2 query I rowsort @@ -51413,7 +51413,7 @@ SELECT - CAST ( - 51 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-85\) AS col1" at position 0 and "Int64\(91\) \* 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\(\*\) / Int64\(\-85\) AS col1" at position 0 and "Int64\(91\) \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / + - 85 col1, 91 * 84 AS col1 query II rowsort label-9799 @@ -51815,7 +51815,7 @@ SELECT 24 - + CAST ( + 63 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-81\) AS col2" at position 0 and "Int64\(\-75\) \+ \(\- Int64\(21\)\) \+ Int64\(45\) \* \(\- \(\- count\(\*\)\)\) / Int64\(93\) \* \(\- 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\(\*\) \* Int64\(\-81\) AS col2" at position 0 and "Int64\(\-75\) \+ \(\- Int64\(21\)\) \+ Int64\(45\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(93\) \* \(\- Int64\(95\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 81 AS col2, - 75 + - + 21 + + 45 * - - COUNT ( * ) / + 93 * - + 95 col2 # Datafusion - Types were automatically converted from: @@ -52056,7 +52056,7 @@ SELECT ALL COALESCE ( 9, 10 ) # 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\(21\) \+ Int64\(27\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 + 21 + + + 27 AS col1, - ( COUNT ( * ) ) AS col1 query I rowsort label-9921 diff --git a/data/sqlite/random/expr/slt_good_74.slt b/data/sqlite/random/expr/slt_good_74.slt index ad89541..31d8544 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\(\*\) 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\(\*\) 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 @@ -481,7 +481,7 @@ SELECT + - NULLIF ( - COUNT ( * ), + - CAST ( NULL AS INTEGER ) / + 16 - - + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -270089 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(6\) \+ Int64\(95\) \+ Int64\(1\) \+ \(\- count\(\*\)\) \+ Int64\(41\) \* Int64\(68\) \* Int64\(\-97\) AS col1" at position 0 and "Int64\(35\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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\(6\) \+ Int64\(95\) \+ Int64\(1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(41\) \* Int64\(68\) \* Int64\(\-97\) 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 + 42 * + 6 + + 95 + 1 + - COUNT ( * ) + 41 * 68 * - 97 AS col1, 35 - + - COUNT ( * ) AS col1 query I rowsort label-83 @@ -545,7 +545,7 @@ SELECT ALL + 52 AS col0, 94 AS col2 # 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\(\*\) \* \(\- \(\- count\(\*\)\)\) / \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(3\) \+ 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\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(3\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - + ( - COUNT ( * ) ) / - + COUNT ( * ) AS col2, + 3 + + + 57 AS col2 query I rowsort @@ -622,7 +622,7 @@ SELECT DISTINCT - 49 + + + COUNT ( * ) + 40 AS col0 # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-46\) \- sum\(Int64\(86\)\) \* \(\- CAST\(Int64\(29\) AS Int32\)\) \* \(\- count\(\*\)\) \* Int64\(\-80\) \* count\(\*\) \+ CAST\(NULL AS Int32\) \* count\(Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-46\) \- sum\(Int64\(86\)\) \* \(\- CAST\(Int64\(29\) AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* count\(Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 AS col0, - 46 - + ( + SUM ( + 86 ) ) * ( - CAST ( 29 AS INTEGER ) ) * + - COUNT ( * ) * - 80 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) * COUNT ( + 51 ) AS col0, + 45 AS col0 query I rowsort label-110 @@ -673,7 +673,7 @@ SELECT ALL - - 6 / + ( - + 53 ) * + 17 * - 46 + - 27 AS col0 # Datafusion - Expected - 10 # Datafusion - Expected - -1 # Datafusion - Expected - -92960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(15\) / Int64\(\-47\) \* count\(\*\) \* Int64\(\-28\) \+ Int64\(\-83\) \+ Int64\(2\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(15\) / Int64\(\-47\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-28\) \+ Int64\(\-83\) \+ 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 91 + + 15 / - 47 * COUNT ( * ) * - 28 + - 83 + 2 AS col0, - COUNT ( * ) AS col0, 28 * - 40 * CAST ( + 83 AS INTEGER ) AS col2 query I rowsort @@ -847,7 +847,7 @@ SELECT + 63, 36 / + 11 * + CASE + 7 WHEN + 8 THEN NULL WHEN - 46 THEN NULL ELSE # 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\(\*\)\) AS col1" at position 0 and "Int64\(17\) / Int64\(\-77\) \+ 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\(17\) / Int64\(\-77\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, + 17 / + - 77 + + 84 col1 query I rowsort @@ -886,7 +886,7 @@ SELECT + 84 AS col2, 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(93\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-88\) / Int64\(24\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(93\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-88\) / Int64\(24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + ( 93 ) AS INTEGER ) AS col1, - 88 / 24 * + + ( - COUNT ( * ) ) AS col1 query I rowsort label-159 @@ -1085,7 +1085,7 @@ SELECT ALL 51 * + + MIN ( ALL - 3 ) + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97458 # Datafusion - Expected - 370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(\-34\) \* Int64\(\-41\) \- \(\- Int64\(\-60\)\) \+ \(\- Int64\(62\)\) \+ count\(\*\) / Int64\(94\) AS col1" at position 0 and "Int64\(9\) \* Int64\(36\) \+ 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\(70\) \* Int64\(\-34\) \* Int64\(\-41\) \- \(\- Int64\(\-60\)\) \+ \(\- Int64\(62\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(94\) AS col1" at position 0 and "Int64\(9\) \* Int64\(36\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 70 * - 34 * - 41 - - - 60 + - + 62 + + COUNT ( * ) / + 94 AS col1, 9 * + 36 + + 46 col1 query I rowsort @@ -1466,7 +1466,7 @@ SELECT 16, + MAX ( - + 59 ) + + 40 + + 50 col2 # Datafusion - Expected - 513 # Datafusion - Expected - -79 # Datafusion - Expected - 1915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- count\(\*\)\) \* min\(DISTINCT \(\- \(\- CAST\(Int64\(19\) AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT \(\- \(\- CAST\(Int64\(19\) AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 27 * + ( - COUNT ( * ) ) * + MIN ( DISTINCT - - CAST ( + 19 AS INTEGER ) ) AS col1, - 79 AS col1, - 94 - + + ( 15 ) + - + ( + + 44 ) * - + 46 col0 query I rowsort label-269 @@ -1686,7 +1686,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\(\*\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -1824,7 +1824,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\(65\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -2080,7 +2080,7 @@ SELECT ALL 69 + - 10 * 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -5477 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(64\) \* Int64\(\-85\) \+ Int64\(12\) \+ \(\- count\(\*\)\) \+ \(\- CAST\(Int64\(48\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(64\) \* Int64\(\-85\) \+ Int64\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(48\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 AS col1, 64 * - 85 + 12 + + - COUNT ( * ) + - CAST ( + 48 AS INTEGER ) AS col1 query I rowsort label-385 @@ -2809,7 +2809,7 @@ SELECT DISTINCT - SUM ( DISTINCT 36 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \- Int64\(\-69\) AS col1" at position 0 and "\(\- Int64\(72\)\) \- count\(Int64\(63\)\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-69\) AS col1" at position 0 and "\(\- Int64\(72\)\) \- count\(Int64\(63\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 - - 69 AS col1, ( - + 72 ) - COUNT ( ALL + + 63 ) * - ( COUNT ( * ) ) AS col1 query I rowsort label-521 @@ -3076,7 +3076,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\(\*\) AS col1" at position 1 have the 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 @@ -3236,7 +3236,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\(\*\) 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 @@ -3717,7 +3717,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-52\) \+ \(\- CASE Int64\(42\) WHEN Int64\(93\) THEN NULL WHEN Int64\(59\) \* Int64\(87\) \- \(\- Int64\(54\)\) THEN NULL ELSE Int64\(44\) END\) AS col2" at position 0 and "Int64\(75\) \+ \(\- coalesce\(Int64\(\-21\), Int64\(\-50\) / Int64\(51\) \+ \(\- CASE CAST\(Int64\(\-37\) AS Int32\) WHEN Int64\(81\) \+ \(\- count\(\*\)\) \* \(\- coalesce\(\(\- Int64\(1\)\), Int64\(67\) \+ Int64\(25\) \+ Int64\(\-72\), Int64\(0\)\)\) \* Int64\(\-46\) \* Int64\(\-36\) \+ Int64\(16\) \- \(\- avg\(DISTINCT Int64\(92\)\)\) \+ max\(DISTINCT Int64\(84\)\) \* Int64\(\-3\) THEN count\(\*\) END\) / Int64\(95\) \+ \(\- Int64\(\-81\)\) \+ Int64\(50\) \* min\(Int64\(74\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-52\) \+ \(\- CASE Int64\(42\) WHEN Int64\(93\) THEN NULL WHEN Int64\(59\) \* Int64\(87\) \- \(\- Int64\(54\)\) THEN NULL ELSE Int64\(44\) END\) AS col2" at position 0 and "Int64\(75\) \+ \(\- coalesce\(Int64\(\-21\), Int64\(\-50\) / Int64\(51\) \+ \(\- CASE CAST\(Int64\(\-37\) AS Int32\) WHEN Int64\(81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- Int64\(1\)\), Int64\(67\) \+ Int64\(25\) \+ Int64\(\-72\), Int64\(0\)\)\) \* Int64\(\-46\) \* Int64\(\-36\) \+ Int64\(16\) \- \(\- avg\(DISTINCT Int64\(92\)\)\) \+ max\(DISTINCT Int64\(84\)\) \* Int64\(\-3\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) / Int64\(95\) \+ \(\- Int64\(\-81\)\) \+ Int64\(50\) \* min\(Int64\(74\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - COUNT ( * ) * - 52 + - + CASE + 42 WHEN + 93 THEN NULL WHEN 59 * + + 87 - - + 54 THEN NULL ELSE 44 END AS col2, 75 + - COALESCE ( - 21, + - 50 / 51 + - CASE + CAST ( - 37 AS INTEGER ) WHEN 81 + - COUNT ( * ) * - + COALESCE ( - + 1, + 67 + + 25 + - 72, + 0 ) * - 46 * - 36 + + + 16 - - AVG ( DISTINCT 92 ) + + MAX ( DISTINCT + 84 ) * - 3 THEN COUNT ( * ) END / 95 + - - 81 + 50 * MIN ( + 74 ) ) AS col2 query I rowsort label-697 @@ -4266,7 +4266,7 @@ SELECT - + 66 * + 98 - COUNT ( * ) / - 76 / - + 7 - - 61 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(44\)\), Int64\(\-37\) / Int64\(3\) \+ avg\(\(\- Int64\(\-64\)\)\) \+ 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 "\(\- nullif\(\(\- Int64\(44\)\), Int64\(\-37\) / Int64\(3\) \+ avg\(\(\- Int64\(\-64\)\)\) \+ 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 - NULLIF ( - + 44, - 37 / 3 + + AVG ( - - 64 ) + + COUNT ( * ) ) col2, 42 AS col2 query I rowsort label-801 @@ -4571,7 +4571,7 @@ SELECT ALL ( + 64 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "\(\- CASE Int64\(\-30\) WHEN min\(Int64\(\-78\)\) \- count\(\*\) THEN \(\- Int64\(\-25\)\) END\) \+ Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "\(\- CASE Int64\(\-30\) WHEN min\(Int64\(\-78\)\) \- count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(\-25\)\) END\) \+ Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + - 76 ) AS col0, - CASE - 30 WHEN MIN ( ALL + - 78 ) - + COUNT ( * ) THEN - - 25 END + + 13 AS col0 query I rowsort label-858 @@ -6578,7 +6578,7 @@ SELECT 62 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 208196 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- max\(Int64\(46\)\)\) \* sum\(Int64\(73\)\) \* Int64\(\-62\) 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 "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(Int64\(46\)\)\) \* sum\(Int64\(73\)\) \* Int64\(\-62\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - MAX ( ALL + 46 ) * + SUM ( 73 ) * - 62 col2, + 26 AS col2 query I rowsort label-1245 @@ -6764,7 +6764,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -15135157 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-99\) \* Int64\(\-40\) \* Int64\(\-78\) \- Int64\(37\) AS col0" at position 0 and "CASE Int64\(\-60\) WHEN Int64\(70\) THEN count\(\*\) \+ \(\- count\(\*\)\) WHEN Int64\(58\) \* \(\- max\(Int64\(41\)\)\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-99\) \* Int64\(\-40\) \* Int64\(\-78\) \- Int64\(37\) AS col0" at position 0 and "CASE Int64\(\-60\) WHEN Int64\(70\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(58\) \* \(\- max\(Int64\(41\)\)\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 49 * - 99 * + - 40 * + - 78 - + 37 AS col0, + CASE - 60 WHEN 70 THEN COUNT ( * ) + - COUNT ( * ) WHEN + 58 * - MAX ( ALL 41 ) THEN NULL END AS col0 query I rowsort @@ -7188,7 +7188,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\(\*\) 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 @@ -8871,7 +8871,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\(\*\) 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 @@ -9311,7 +9311,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\(\*\) 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 @@ -9668,7 +9668,7 @@ SELECT + COALESCE ( - 56, + 62, - COUNT ( * ) + + 68 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 5330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(56\) \* Int64\(94\) \- 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\(56\) \* Int64\(94\) \- Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, 56 * 94 - + - 66 AS col1 query I rowsort label-1826 @@ -9859,7 +9859,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(24\) WHEN \(\- Int64\(90\)\) THEN \(\- sum\(Int64\(75\)\)\) \* Int64\(52\) \* Int64\(25\) \- \(\- count\(\*\)\) / max\(Int64\(64\)\) WHEN Int64\(\-33\) THEN NULL END\) 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 "\(\- CASE Int64\(24\) WHEN \(\- Int64\(90\)\) THEN \(\- sum\(Int64\(75\)\)\) \* Int64\(52\) \* Int64\(25\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / max\(Int64\(64\)\) WHEN Int64\(\-33\) THEN NULL END\) 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 - CASE + 24 WHEN - ( 90 ) THEN - SUM ( ALL + 75 ) * 52 * + 25 - - COUNT ( * ) / + + MAX ( ALL 64 ) WHEN - 33 THEN NULL END AS col2, + 92 col2 query I rowsort label-1863 @@ -10143,7 +10143,7 @@ SELECT + - 28 * 26 * 99 + + 61 AS col0, 51 * 14 # 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\(\*\)\) 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 "\(\- 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 DISTINCT - COUNT ( * ) col0, + 64 AS col0 query I rowsort @@ -12653,7 +12653,7 @@ SELECT - 47 + 30 * - - COUNT ( * ) + 27 # 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\(\*\)\) 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-2393 @@ -12941,7 +12941,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-58\) AS col2" at position 0 and "\(\- Int64\(87\)\) / Int64\(9\) / \(\- count\(\*\)\) \- count\(\*\) \+ Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-58\) AS col2" at position 0 and "\(\- Int64\(87\)\) / Int64\(9\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 + + - 58 AS col2, ( - + 87 ) / + 9 / - COUNT ( * ) - COUNT ( * ) + 86 AS col2 query I rowsort @@ -13200,7 +13200,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\(\-49\) \* Int64\(\-9\) \+ 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 @@ -14310,7 +14310,7 @@ SELECT ALL - 74 * 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* count\(\*\) \+ Int64\(20\) \+ Int64\(\-92\) 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\(38\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ Int64\(\-92\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 * COUNT ( * ) + + 20 + - 92 AS col2, 50 AS col2 query I rowsort label-2713 @@ -15753,7 +15753,7 @@ SELECT ALL 39 * + - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(89\)\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(11\) / \(\- count\(\*\)\) \- 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 "min\(DISTINCT Int64\(89\)\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(11\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MIN ( DISTINCT 89 ) AS col2, + 11 + 11 / - COUNT ( * ) - + 11 AS col2 query II rowsort label-2988 @@ -17036,7 +17036,7 @@ SELECT ALL + 26, 17 * - + 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(87\) \* Int64\(23\) \+ Int64\(68\) / \(\- min\(Int64\(12\)\)\) \+ Int64\(84\) \- Int64\(71\) / Int64\(2\) \+ \(\- Int64\(64\)\) \- 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\(87\) \* Int64\(23\) \+ Int64\(68\) / \(\- min\(Int64\(12\)\)\) \+ Int64\(84\) \- Int64\(71\) / Int64\(2\) \+ \(\- Int64\(64\)\) \- Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - COUNT ( * ) AS col1, 87 * + 23 + 68 / + - MIN ( 12 ) + + 84 - + + 71 / + + 2 + - + 64 - + + 99 AS col1 query II rowsort @@ -18151,7 +18151,7 @@ SELECT 85 / - SUM ( ALL 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(7\)\), Int64\(30\), Int64\(31\)\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(58\) \* \(\- Int64\(17\)\) \+ Int64\(\-27\) \+ Int64\(81\) \+ Int64\(50\) \* Int64\(\-39\) \* Int64\(\-87\) \* \(\- count\(\*\)\) \* Int64\(93\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(7\)\), Int64\(30\), Int64\(31\)\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(58\) \* \(\- Int64\(17\)\) \+ Int64\(\-27\) \+ Int64\(81\) \+ Int64\(50\) \* Int64\(\-39\) \* Int64\(\-87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(93\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( COUNT ( ALL + 7 ), + ( + ( 30 ) ), 31 ) + + 47 AS col2, 58 * - + 17 + - 27 + + 81 + + 50 * + - 39 * - 87 * - COUNT ( * ) * 93 + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -18644,7 +18644,7 @@ SELECT ALL - COALESCE ( - 48, + + 8 * + - 46 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ Int64\(\-87\) / Int64\(43\) AS col0" at position 0 and "\(\- CASE Int64\(38\) WHEN \(\- count\(\*\)\) \+ Int64\(\-38\) \+ \(\- Int64\(\-57\)\) \* Int64\(\-70\) THEN Int64\(\-81\) / \(\- nullif\(count\(\*\), \(\- CASE count\(\*\) WHEN Int64\(\-95\) \* Int64\(\-78\) THEN Int64\(36\) \+ Int64\(\-24\) \* Int64\(50\) \- Int64\(55\) \+ Int64\(\-28\) \+ Int64\(\-59\) \* Int64\(74\) \* Int64\(35\) WHEN Int64\(7\) \+ Int64\(30\) \* min\(DISTINCT Int64\(12\)\) \* Int64\(28\) \+ Int64\(55\) THEN NULL ELSE NULL END\) \* Int64\(66\)\)\) \+ Int64\(\-70\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ Int64\(\-87\) / Int64\(43\) AS col0" at position 0 and "\(\- CASE Int64\(38\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-38\) \+ \(\- Int64\(\-57\)\) \* Int64\(\-70\) THEN Int64\(\-81\) / \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-95\) \* Int64\(\-78\) THEN Int64\(36\) \+ Int64\(\-24\) \* Int64\(50\) \- Int64\(55\) \+ Int64\(\-28\) \+ Int64\(\-59\) \* Int64\(74\) \* Int64\(35\) WHEN Int64\(7\) \+ Int64\(30\) \* min\(DISTINCT Int64\(12\)\) \* Int64\(28\) \+ Int64\(55\) THEN NULL ELSE NULL END\) \* Int64\(66\)\)\) \+ Int64\(\-70\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 + - 87 / + 43 col0, - CASE + 38 WHEN - + COUNT ( * ) + - 38 + - - 57 * - 70 THEN - 81 / - NULLIF ( COUNT ( * ), - CASE + COUNT ( * ) WHEN - 95 * - 78 THEN + 36 + + ( - 24 ) * 50 - 55 + - 28 + - 59 * + 74 * + 35 WHEN + + 7 + 30 * + MIN ( DISTINCT + 12 ) * + 28 + 55 THEN NULL ELSE NULL END * 66 ) + - 70 END AS col0 query I rowsort @@ -18701,7 +18701,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\(\*\) AS col1" at position 1 have the 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 @@ -18723,7 +18723,7 @@ SELECT ALL ( + - 93 ) - + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -98 -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\(\-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\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 AS col1, COUNT ( * ) * - 98 col1 # Datafusion - Datafusion expected results: @@ -19134,7 +19134,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\(\*\) 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 @@ -19152,7 +19152,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\(\*\) AS col1" at position 1 have the 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 @@ -19795,7 +19795,7 @@ SELECT + + 63 * + - 11 AS col2 # 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\(33\) / \(\- count\(\*\)\) \+ \(\- \(\- \(\- Int64\(\-73\)\)\)\) AS col1" at position 0 and "coalesce\(Int64\(\-3\), Int64\(17\), \(\- sum\(Int64\(\-52\)\)\), \(\- Int64\(2\)\) \+ Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- \(\- Int64\(\-73\)\)\)\) AS col1" at position 0 and "coalesce\(Int64\(\-3\), Int64\(17\), \(\- sum\(Int64\(\-52\)\)\), \(\- Int64\(2\)\) \+ Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 33 / - COUNT ( * ) + - - ( - ( - 73 ) ) AS col1, COALESCE ( - 3, + 17, - SUM ( ALL - 52 ), - + 2 + + 71 ) col1 query I rowsort label-3761 @@ -20788,7 +20788,7 @@ SELECT COALESCE ( - 86, - 77 / - 5 * + + COUNT ( * ) ) * + - CAST ( - 98 AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-25\), \(\- Int64\(81\)\)\) \* max\(Int64\(5\)\) \+ Int64\(35\) AS col0" at position 0 and "Int64\(35\) \- Int64\(91\) \- \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-25\), \(\- Int64\(81\)\)\) \* max\(Int64\(5\)\) \+ Int64\(35\) AS col0" at position 0 and "Int64\(35\) \- Int64\(91\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( - 25, - + 81 ) * + MAX ( ALL + 5 ) + + 35 col0, 35 - + 91 - + - COUNT ( * ) AS col0 query I rowsort @@ -21267,7 +21267,7 @@ SELECT 14 * 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-62\) AS col1" at position 0 and "Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-62\) AS col1" at position 0 and "Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 62 AS col1, - 42 AS col1 query I rowsort @@ -21759,7 +21759,7 @@ SELECT DISTINCT MIN ( 25 ) + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3192 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(\-84\) AS col1" at position 0 and "Int64\(18\) \- count\(\*\) \- Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(\-84\) AS col1" at position 0 and "Int64\(18\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 38 * - 84 col1, 18 - + + COUNT ( * ) - 86 col1 query I rowsort @@ -21882,7 +21882,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\(\*\) AS col1" at position 1 have the 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 @@ -22603,7 +22603,7 @@ SELECT ( - COUNT ( * ) ) * + CAST ( 73 AS INTEGER ) AS col0 # 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 "\(\- CASE max\(Int64\(\-83\)\) WHEN Int64\(\-70\) \* Int64\(76\) THEN NULL WHEN Int64\(18\) / \(\- count\(\*\)\) \+ Int64\(38\) THEN NULL WHEN Int64\(\-55\) THEN Int64\(66\) ELSE Int64\(\-73\) \* count\(\*\) END\) / 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\(\-30\) AS col0" at position 0 and "\(\- CASE max\(Int64\(\-83\)\) WHEN Int64\(\-70\) \* Int64\(76\) THEN NULL WHEN Int64\(18\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(38\) THEN NULL WHEN Int64\(\-55\) THEN Int64\(66\) ELSE Int64\(\-73\) \* count\(Int64\(1\)\) AS count\(\*\) END\) / Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 30 AS col0, - CASE + MAX ( ALL - 83 ) WHEN - 70 * 76 THEN NULL WHEN 18 / - COUNT ( * ) + + 38 THEN NULL WHEN - 55 THEN 66 ELSE - 73 * COUNT ( * ) END / 65 AS col0 query I rowsort @@ -25163,7 +25163,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\(\*\) AS col0" at position 1 have the 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 @@ -25852,7 +25852,7 @@ SELECT ALL + ( 7 ) + - 50 + + - ( - - 98 ) # Datafusion - Expected - 167 # 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 1 and "\(\- count\(Int64\(8\)\)\) \* CASE Int64\(1\) WHEN Int64\(83\) THEN Int64\(\-80\) \* Int64\(25\) \+ Int64\(44\) \* Int64\(\-29\) \* Int64\(3\) \+ Int64\(\-92\) WHEN \(\- Int64\(30\)\) \* \(\- \(\- \(\- count\(\*\)\)\)\) \+ count\(\*\) THEN NULL END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col1" at position 1 and "\(\- count\(Int64\(8\)\)\) \* CASE Int64\(1\) WHEN Int64\(83\) THEN Int64\(\-80\) \* Int64\(25\) \+ Int64\(44\) \* Int64\(\-29\) \* Int64\(3\) \+ Int64\(\-92\) WHEN \(\- Int64\(30\)\) \* \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 89 + + + 78, ( + ( - + 55 ) ) col1, - COUNT ( + 8 ) * + CASE + ( 1 ) WHEN + 83 THEN ( - 80 ) * + 25 + + 44 * - 29 * + 3 + - 92 WHEN - + 30 * - ( - - ( COUNT ( * ) ) ) + COUNT ( * ) THEN NULL END AS col1 query II rowsort label-4921 @@ -27467,7 +27467,7 @@ SELECT - COUNT ( ALL + 64 ) AS col0 # Datafusion - Expected - -2460 # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(80\)\) \* min\(Int64\(\-7\)\) \* Int64\(19\) \* \(\- Int64\(87\)\) / \(\- CASE Int64\(\-27\) WHEN count\(\(\- nullif\(Int64\(92\), Int64\(46\)\)\)\) THEN \(\- Int64\(\-18\)\) \+ Int64\(\-60\) END\) AS col2" at position 1 and "\(\- 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\(80\)\) \* min\(Int64\(\-7\)\) \* Int64\(19\) \* \(\- Int64\(87\)\) / \(\- CASE Int64\(\-27\) WHEN count\(\(\- nullif\(Int64\(92\), Int64\(46\)\)\)\) THEN \(\- Int64\(\-18\)\) \+ Int64\(\-60\) END\) 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 - 60 * + 41, COUNT ( + 80 ) * + MIN ( - 7 ) * 19 * - + 87 / - CASE - 27 WHEN COUNT ( - ( NULLIF ( 92, + 46 ) ) ) THEN - - 18 + - 60 END AS col2, + - COUNT ( * ) AS col2 query I rowsort label-5230 @@ -27741,7 +27741,7 @@ SELECT - 90, 46 + + 76 * - - 72 * + COALESCE ( + - MAX ( - 0 ), AVG ( DISTINCT + # 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\(\*\) AS col1" at position 1 have the 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 @@ -29010,7 +29010,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\(\-81\)\)\) \* \(\- Int64\(15\)\) \* Int64\(88\) / 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 @@ -29612,7 +29612,7 @@ SELECT + 46 * + + 44 * - + COUNT ( * ) + + COUNT ( * ) AS col1 # 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\(\*\)\) AS col2" at position 1 have the 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 81 col2, - COUNT ( * ) AS col2 query I rowsort @@ -30232,7 +30232,7 @@ SELECT ( 22 ) - - 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6557 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(83\) AS col1" at position 0 and "Int64\(10\) \* count\(\*\) \+ Int64\(36\) \- \(\- Int64\(\-57\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(83\) AS col1" at position 0 and "Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) \- \(\- Int64\(\-57\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 * 83 col1, 10 * + + COUNT ( * ) + + 36 - - - 57 AS col1 query I rowsort label-5753 @@ -30302,7 +30302,7 @@ SELECT DISTINCT MIN ( - 75 ) * 55 - - 31 + - + 11 - - 3 * + 71 col0 # 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 "count\(\*\) \- Int64\(\-72\) AS col2" at position 0 and "\(\- CASE \(\- count\(\*\)\) WHEN Int64\(\-59\) THEN Int64\(62\) \* count\(\*\) 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\(\*\) \- Int64\(\-72\) AS col2" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-59\) THEN Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - + ( - 72 ) AS col2, - CASE - COUNT ( * ) WHEN + - 59 THEN 62 * + + COUNT ( * ) ELSE NULL END AS col2 query I rowsort label-5766 @@ -33543,7 +33543,7 @@ SELECT + 94 * 17 - + 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 2256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(\-24\) \* nullif\(Int64\(\-94\), Int64\(99\) \+ Int64\(92\) \- count\(\*\)\) AS col0" at position 1 have the 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\(\-24\) \* nullif\(Int64\(\-94\), Int64\(99\) \+ Int64\(92\) \- 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, - 24 * NULLIF ( - 94, + 99 + + 92 - COUNT ( * ) ) AS col0 query I rowsort label-6389 @@ -34566,7 +34566,7 @@ SELECT - CASE - 16 WHEN - 50 THEN - AVG ( DISTINCT - - 42 ) WHEN + + CAST ( NULL # Datafusion - Expected - -3080 # 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 1 and "CASE Int64\(\-60\) WHEN Int64\(\-34\) THEN NULL WHEN Int64\(31\) THEN Int64\(31\) ELSE NULL END / \(\- count\(\*\)\) \* max\(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 "Int64\(\-57\) AS col0" at position 1 and "CASE Int64\(\-60\) WHEN Int64\(\-34\) THEN NULL WHEN Int64\(31\) THEN Int64\(31\) ELSE NULL END / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(86\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 88 * + 35, - 57 AS col0, + + CASE + - 60 WHEN + ( - 34 ) THEN NULL WHEN 31 THEN + + 31 ELSE NULL END / - COUNT ( * ) * + MAX ( + 86 ) AS col0 query I rowsort label-6583 @@ -37976,7 +37976,7 @@ SELECT - 46 * - 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col2" at position 0 and "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 "\(\- Int64\(\-54\)\) 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 - - 54 AS col2, + COUNT ( * ) * - 21 AS col2 # Datafusion - Types were automatically converted from: @@ -39899,7 +39899,7 @@ SELECT DISTINCT - CAST ( - 26 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "coalesce\(count\(\*\), Int64\(\-48\) / Int64\(56\)\) \+ 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\(39\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-48\) / Int64\(56\)\) \+ Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 39 AS col0, + COALESCE ( + + COUNT ( * ), - 48 / 56 ) + - 89 AS col0 query I rowsort label-7601 @@ -40151,7 +40151,7 @@ SELECT + SUM ( + 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5220 # Datafusion - Expected - -120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(90\) \* Int64\(\-58\) AS col2" at position 0 and "Int64\(\-63\) \+ Int64\(\-96\) \+ 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\(\*\) \* Int64\(90\) \* Int64\(\-58\) AS col2" at position 0 and "Int64\(\-63\) \+ Int64\(\-96\) \+ Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + 90 * - 58 AS col2, - 63 + - 96 + 39 AS col2 query I rowsort label-7650 @@ -40401,7 +40401,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\(\*\) 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 @@ -40566,7 +40566,7 @@ SELECT DISTINCT ( CAST ( + 52 AS INTEGER ) ) * + 59 + COALESCE ( - 76, NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(58\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(12\) \* Int64\(\-50\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(58\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(12\) \* Int64\(\-50\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, 58 + - - CAST ( NULL AS INTEGER ) + 12 * - 50 + - 46 AS col0 query I rowsort label-7729 @@ -41310,7 +41310,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\(\*\) 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 @@ -41458,7 +41458,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 891458700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(52\) \* Int64\(\-19\) \* \(\- count\(Int64\(\-28\)\)\) \* Int64\(\-98\) \* Int64\(\-93\) \* Int64\(99\) \- Int64\(77\) / \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-31\) \* CASE Int64\(\-75\) WHEN Int64\(99\) / \(\- coalesce\(Int64\(83\) \* \(\- Int64\(\-65\) \* CAST\(NULL AS Int32\)\), Int64\(\-84\), Int64\(90\), count\(\*\)\)\) \+ \(\- sum\(Int64\(77\)\)\) THEN Int64\(24\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(52\) \* Int64\(\-19\) \* \(\- count\(Int64\(\-28\)\)\) \* Int64\(\-98\) \* Int64\(\-93\) \* Int64\(99\) \- Int64\(77\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-31\) \* CASE Int64\(\-75\) WHEN Int64\(99\) / \(\- coalesce\(Int64\(83\) \* \(\- Int64\(\-65\) \* CAST\(NULL AS Int32\)\), Int64\(\-84\), Int64\(90\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- sum\(Int64\(77\)\)\) THEN Int64\(24\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 + + + 52 * - 19 * - COUNT ( - 28 ) * + - 98 * - 93 * 99 - + 77 / - COUNT ( * ) AS col2, - 31 * + CASE - 75 WHEN 99 / - COALESCE ( 83 * - ( - 65 * ( CAST ( NULL AS INTEGER ) ) ), - 84, + 90, + COUNT ( * ) ) + - SUM ( 77 ) THEN + 24 ELSE NULL END col2 query I rowsort @@ -41581,7 +41581,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\(\*\) AS col1" at position 0 and "Int64\(59\) / \(\- 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 @@ -42470,7 +42470,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\(\*\) AS col1" at position 0 and "Int64\(23\) \+ \(\- 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 @@ -43142,7 +43142,7 @@ SELECT - 49 * - - 99 + - + COUNT ( * ) + - 12 * - 23 * SUM ( ALL + 79 ) * + 87 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ min\(DISTINCT Int64\(41\)\) 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\(\*\) \+ min\(DISTINCT Int64\(41\)\) AS col0" at position 0 and "Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + MIN ( DISTINCT 41 ) AS col0, - 32 col0 query I rowsort @@ -43827,7 +43827,7 @@ SELECT COUNT ( * ) + - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -5 -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\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 col0, + COUNT ( * ) + - 6 AS col0 query II rowsort @@ -44069,7 +44069,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\(\*\) 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 @@ -44766,7 +44766,7 @@ SELECT ALL 14 + - MIN ( DISTINCT - 55 ) + MIN ( DISTINCT - + 45 ) * - 91 + - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -134 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ coalesce\(\(\- Int64\(59\)\), Int64\(\-95\) \* Int64\(60\) \- \(\- Int64\(\-87\)\) \* Int64\(\-82\) \* \(\- Int64\(\-67\)\) \+ count\(\*\) \+ \(\- Int64\(69\)\) \+ \(\- 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\(\-75\) \+ coalesce\(\(\- Int64\(59\)\), Int64\(\-95\) \* Int64\(60\) \- \(\- Int64\(\-87\)\) \* Int64\(\-82\) \* \(\- Int64\(\-67\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(69\)\) \+ \(\- 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 - 75 + + COALESCE ( - + 59, - 95 * + + 60 - - - 87 * + - 82 * - - 67 + + COUNT ( * ) + - + 69 + - + COUNT ( * ) ) AS col0, - 85 AS col0 query I rowsort @@ -44818,7 +44818,7 @@ SELECT - - CASE + 27 WHEN + 94 THEN NULL WHEN 41 THEN NULL ELSE 9 END * + 85 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-94\) \- Int64\(48\) \+ Int64\(51\) \* count\(Int64\(83\)\) AS col2" at position 0 and "Int64\(10\) \* Int64\(14\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-94\) \- Int64\(48\) \+ Int64\(51\) \* count\(Int64\(83\)\) AS col2" at position 0 and "Int64\(10\) \* Int64\(14\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) * - 94 - + 48 + 51 * COUNT ( 83 ) col2, + 10 * 14 * 26 col2 query I rowsort label-8536 @@ -45203,7 +45203,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\(\*\) 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 @@ -45331,7 +45331,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\(\*\)\) \* 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 @@ -47391,7 +47391,7 @@ SELECT DISTINCT 3 / + 34 * + - 58 # 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 "Int64\(20\) / Int64\(\-15\) AS col1" at position 0 and "count\(\*\) \* 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\(20\) / Int64\(\-15\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 20 / - 15 AS col1, + ( + COUNT ( * ) ) * - 84 AS col1 query II rowsort label-9028 @@ -49593,7 +49593,7 @@ SELECT ALL - + ( - 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1344 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(84\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(\*\)\) \+ \(\- coalesce\(Int64\(3\), CASE Int64\(\-8\) WHEN max\(Int64\(22\)\) \+ Int64\(94\) THEN NULL WHEN Int64\(66\) \+ \(\- CAST\(Int64\(70\) \- Int64\(76\) AS Int32\)\) THEN NULL ELSE Int64\(40\) END \- Int64\(\-28\)\)\) \* avg\(Int64\(\-56\) \+ Int64\(\-69\)\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(84\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(3\), CASE Int64\(\-8\) WHEN max\(Int64\(22\)\) \+ Int64\(94\) THEN NULL WHEN Int64\(66\) \+ \(\- CAST\(Int64\(70\) \- Int64\(76\) AS Int32\)\) THEN NULL ELSE Int64\(40\) END \- Int64\(\-28\)\)\) \* avg\(Int64\(\-56\) \+ Int64\(\-69\)\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 * + 84 AS col1, + CAST ( NULL AS INTEGER ) + + ( - + COUNT ( * ) ) + - COALESCE ( 3, + + CASE - 8 WHEN MAX ( ALL 22 ) + + 94 THEN NULL WHEN 66 + - CAST ( ( + 70 ) - + 76 AS INTEGER ) THEN NULL ELSE 40 END - - 28 ) * + AVG ( - 56 + - 69 ) * 92 AS col1 query I rowsort label-9456 @@ -49775,7 +49775,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\(\*\) AS col0" at position 1 have the 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 @@ -51189,7 +51189,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(45\) \- Int64\(\-85\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(45\) \- Int64\(\-85\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6 + + - COUNT ( * ) AS col1, 45 - - 85 + - 0 AS col1 query I rowsort label-9760 @@ -51345,7 +51345,7 @@ SELECT DISTINCT NULLIF ( 35, + 71 ) - - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col0" at position 0 and "Int64\(66\) \+ Int64\(79\) \+ Int64\(\-45\) \+ \(\- count\(\*\)\) \* CASE Int64\(70\) WHEN \(\- Int64\(77\)\) THEN Int64\(57\) \* Int64\(14\) \+ count\(\*\) END \* \(\- \(\- 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\(\-21\) AS col0" at position 0 and "Int64\(66\) \+ Int64\(79\) \+ Int64\(\-45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(70\) WHEN \(\- Int64\(77\)\) THEN Int64\(57\) \* Int64\(14\) \+ count\(Int64\(1\)\) AS count\(\*\) END \* \(\- \(\- Int64\(80\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 21 AS col0, 66 + + 79 + + ( - 45 ) + - COUNT ( * ) * + CASE + 70 WHEN - + 77 THEN + 57 * + + ( 14 ) + COUNT ( * ) END * - ( - ( 80 ) ) col0 query II rowsort label-9789 @@ -52147,7 +52147,7 @@ SELECT ALL - 37 * + 83 - + 77 - NULLIF ( - + COUNT ( * ), - ( - - AVG ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 2508572 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(15\) AS col2" at position 0 and "Int64\(\-11\) \* Int64\(\-73\) \* \(\- coalesce\(Int64\(44\), sum\(Int64\(12\)\) \+ Int64\(24\) \+ \(\- Int64\(23\)\)\)\) \* 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\(\*\) \+ Int64\(15\) AS col2" at position 0 and "Int64\(\-11\) \* Int64\(\-73\) \* \(\- coalesce\(Int64\(44\), sum\(Int64\(12\)\) \+ Int64\(24\) \+ \(\- Int64\(23\)\)\)\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + 15 col2, + ( + - 11 ) * + ( - 73 ) * + - COALESCE ( + 44, SUM ( ALL 12 ) + 24 + - ( ( + 23 ) ) ) * - 71 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_75.slt b/data/sqlite/random/expr/slt_good_75.slt index 3ba15b2..626497e 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\(\*\) 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 @@ -1625,7 +1625,7 @@ SELECT ALL - 99, 39 + + NULLIF ( - + 19, 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11352201 # Datafusion - Expected - 1263 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-58\) \+ Int64\(34\) \* Int64\(37\) \* nullif\(Int64\(\-94\), \(\- count\(\*\)\) / Int64\(45\)\) \* Int64\(96\) \+ Int64\(99\) \- Int64\(50\) AS col0" at position 0 and "Int64\(87\) \+ \(\- \(\- coalesce\(Int64\(26\), Int64\(\-77\), Int64\(39\) \* \(\- Int64\(\-77\)\)\)\)\) \- Int64\(\-50\) \* 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\(\*\) \* Int64\(\-58\) \+ Int64\(34\) \* Int64\(37\) \* nullif\(Int64\(\-94\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(45\)\) \* Int64\(96\) \+ Int64\(99\) \- Int64\(50\) AS col0" at position 0 and "Int64\(87\) \+ \(\- \(\- coalesce\(Int64\(26\), Int64\(\-77\), Int64\(39\) \* \(\- Int64\(\-77\)\)\)\)\) \- Int64\(\-50\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + - 58 + + 34 * + 37 * NULLIF ( - 94, - COUNT ( * ) / + 45 ) * 96 + + 99 - + 50 AS col0, 87 + - - COALESCE ( + 26, + - 77, 39 * - - 77 ) - - 50 * + 23 AS col0 query II rowsort label-303 @@ -1665,7 +1665,7 @@ SELECT + COUNT ( * ) * 34 * + 98 + 23 * + - 52 + + 59 * + + 60 + 88 # Datafusion - Expected - 59 # Datafusion - Expected - -6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col0" at position 1 and "CASE count\(\*\) WHEN Int64\(89\) THEN Int64\(18\) \* \(\- min\(Int64\(49\)\)\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col0" at position 1 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(89\) THEN Int64\(18\) \* \(\- min\(Int64\(49\)\)\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 59 AS col1, - 6 AS col0, CASE + COUNT ( * ) WHEN + 89 THEN + 18 * - MIN ( ALL 49 ) END AS col0 query I rowsort label-310 @@ -1816,7 +1816,7 @@ SELECT ALL + COUNT ( * ) * CASE COUNT ( ALL + CASE + 71 WHEN - 52 THEN - + 80 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 7470 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(70\) WHEN Int64\(56\) \+ nullif\(\(\- coalesce\(Int64\(\-8\), count\(\*\) / Int64\(99\)\)\), avg\(DISTINCT Int64\(15\)\) \+ Int64\(83\)\) THEN NULL ELSE Int64\(\-18\) END \+ count\(\*\) \* Int64\(\-96\) \* Int64\(2\) \* Int64\(\-39\) AS col0" at position 0 and "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 "CASE Int64\(70\) WHEN Int64\(56\) \+ nullif\(\(\- coalesce\(Int64\(\-8\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(99\)\)\), avg\(DISTINCT Int64\(15\)\) \+ Int64\(83\)\) THEN NULL ELSE Int64\(\-18\) END \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) \* Int64\(2\) \* Int64\(\-39\) AS col0" at position 0 and "count\(Int64\(\-51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE 70 WHEN + + 56 + NULLIF ( - COALESCE ( - 8, COUNT ( * ) / 99 ), AVG ( DISTINCT 15 ) + 83 ) THEN NULL ELSE - 18 END + + COUNT ( * ) * - 96 * 2 * + - 39 AS col0, + COUNT ( - 51 ) AS col0 query I rowsort label-339 @@ -2226,7 +2226,7 @@ SELECT + + 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-1\)\)\) AS col1" at position 0 and "\(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\) \* \(\- coalesce\(\(\- count\(\*\)\), Int64\(38\) \+ Int64\(\-76\)\)\) \* CAST\(Int64\(33\) AS Int32\) \+ \(\- nullif\(\(\- Int64\(1\)\), Int64\(71\) / nullif\(\(\- CAST\(\(\- Int64\(84\)\) AS Int32\)\), Int64\(40\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-1\)\)\) AS col1" at position 0 and "\(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(38\) \+ Int64\(\-76\)\)\) \* CAST\(Int64\(33\) AS Int32\) \+ \(\- nullif\(\(\- Int64\(1\)\), Int64\(71\) / nullif\(\(\- CAST\(\(\- Int64\(84\)\) AS Int32\)\), Int64\(40\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - SUM ( - 1 ) col1, - ( - + MIN ( - - 57 ) ) * - COALESCE ( + - COUNT ( * ), + 38 + - 76 ) * CAST ( + 33 AS INTEGER ) + - NULLIF ( - + 1, 71 / + NULLIF ( - CAST ( - + 84 AS INTEGER ), + 40 ) ) col1 query I rowsort @@ -3129,7 +3129,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1342 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- Int64\(61\)\) \* count\(\*\) \+ \(\- Int64\(\-39\)\) / Int64\(69\) AS col0" at position 0 and "Int64\(89\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\(61\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-39\)\) / Int64\(69\) 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 - 22 * - + 61 * + COUNT ( * ) + - - 39 / 69 AS col0, + 89 + - ( COUNT ( * ) ) AS col0 query I rowsort label-590 @@ -3527,7 +3527,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(34\) AS col0" at position 0 and "Int64\(94\) \* \(\- nullif\(Int64\(0\), \(\- count\(\*\)\) / Int64\(30\) \* nullif\(Int64\(29\), min\(\(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- Int64\(33\)\)\)\) \+ Int64\(\-85\) \+ Int64\(\-13\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(34\) AS col0" at position 0 and "Int64\(94\) \* \(\- nullif\(Int64\(0\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \* nullif\(Int64\(29\), min\(\(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- Int64\(33\)\)\)\) \+ Int64\(\-85\) \+ Int64\(\-13\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 + + 34 AS col0, 94 * - NULLIF ( 0, - COUNT ( * ) / 30 * NULLIF ( + + 29, + MIN ( - CAST ( NULL AS INTEGER ) ) ) * - + 33 ) + + - 85 + - 13 * - 0 AS col0 query I rowsort label-666 @@ -4034,7 +4034,7 @@ SELECT 4 / 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(67\)\) 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\(\*\) \+ \(\- Int64\(67\)\) 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 ( * ) + - + 67 AS col2, - 53 col2 query I rowsort label-762 @@ -6038,7 +6038,7 @@ SELECT ALL + 11 + + - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- count\(\*\)\) \+ \(\- \(\- \(\- \(\- Int64\(5\)\)\)\)\) 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\(15\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- \(\- \(\- Int64\(5\)\)\)\)\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 15 * + - COUNT ( * ) + - - ( - - ( + ( 5 ) ) ) AS col1, - 40 AS col1 query I rowsort @@ -6513,7 +6513,7 @@ SELECT - MAX ( DISTINCT 64 ) + 26, 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 49 -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\(\-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\(11\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 AS col0, ( - + COUNT ( * ) ) * + - 49 col0 query I rowsort label-1240 @@ -12091,7 +12091,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\(\*\) AS col1" at position 0 and "Int64\(\-58\) \- Int64\(74\) \+ nullif\(\(\- Int64\(32\)\), Int64\(\-49\) \+ \(\- 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 @@ -12221,7 +12221,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\(\*\) 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 @@ -12263,7 +12263,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(27\) AS col2" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) \- \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + 27 AS col2, CAST ( - COUNT ( * ) AS INTEGER ) - - - 99 col2 query I rowsort label-2330 @@ -12529,7 +12529,7 @@ SELECT ALL - 35 + + 59 + - + CAST ( + 88 AS INTEGER ) AS col2 # 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\(\*\)\) AS col1" at position 1 have the 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 II rowsort @@ -13414,7 +13414,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\(\*\) AS col2" at position 1 have the 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 @@ -16084,7 +16084,7 @@ SELECT + 39, 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ count\(\*\) \+ \(\- Int64\(\-1\)\) \* \(\- coalesce\(Int64\(91\), Int64\(\-68\), Int64\(57\)\)\) \+ Int64\(\-13\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(41\) \+ Int64\(\-71\) \* Int64\(\-11\) \* Int64\(74\) AS col1" at position 0 and "Int64\(34\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-1\)\) \* \(\- coalesce\(Int64\(91\), Int64\(\-68\), Int64\(57\)\)\) \+ Int64\(\-13\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(41\) \+ Int64\(\-71\) \* Int64\(\-11\) \* Int64\(74\) AS col1" at position 0 and "Int64\(34\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 + + COUNT ( * ) + - - 1 * - + COALESCE ( 91, - 68, + 57 ) + - 13 * - CAST ( NULL AS INTEGER ) + 41 + - 71 * - 11 * 74 col1, 34 * + 27 AS col1 query II rowsort label-3063 @@ -16123,7 +16123,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\(\*\) AS col2" at position 1 have the 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 @@ -17343,7 +17343,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -134 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* CAST\(\(\- max\(DISTINCT \(\- \(\- CAST\(Int64\(2\) AS Float64\)\)\)\)\) AS Int32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ count\(\*\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* CAST\(\(\- max\(DISTINCT \(\- \(\- CAST\(Int64\(2\) AS Float64\)\)\)\)\) AS Int32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 * CAST ( + - MAX ( DISTINCT - - CAST ( + 2 AS FLOAT8 ) ) AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 65 AS col2 query I rowsort label-3304 @@ -17354,7 +17354,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\(\*\) AS col1" at position 1 have the 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 @@ -18227,7 +18227,7 @@ SELECT - 82 / - + COUNT ( DISTINCT + 50 ) # Datafusion - Expected - 63 # Datafusion - Expected - -87 # Datafusion - Expected - -20 -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\(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\(63\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 AS col0, ( + + COUNT ( * ) ) * - + 87 AS col0, - + 20 AS col2 query II rowsort label-3472 @@ -19300,7 +19300,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\(\*\) AS col1" at position 1 have the 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 @@ -19602,7 +19602,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\(\*\) AS col1" at position 1 have 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 @@ -20012,7 +20012,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\(\*\) 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 @@ -20804,7 +20804,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\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(36\)\)\) / coalesce\(Int64\(58\), nullif\(\(\- nullif\(Int64\(36\), Int64\(60\) \+ 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\(\*\) 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\(\*\) \* 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\(\*\) WHEN \(\- 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 @@ -21417,7 +21417,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\(\*\) AS col0" at position 1 have the 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: @@ -21636,7 +21636,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\(56\)\) \+ Int64\(71\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -22174,7 +22174,7 @@ SELECT - - NULLIF ( + ( + - 45 ), 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(\-73\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(\-73\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 72 AS col0, - 73 + - - COUNT ( * ) AS col0 query I rowsort label-4224 @@ -22559,7 +22559,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\(\*\) 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: @@ -23077,7 +23077,7 @@ SELECT ALL - - 35 * 56 + 91 * COUNT ( ALL - + 76 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -99 -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\(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\(19\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 AS col0, - COUNT ( * ) * + + 99 AS col0 query I rowsort label-4397 @@ -24146,7 +24146,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\(\*\) 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 @@ -24424,7 +24424,7 @@ SELECT 69 * + AVG ( DISTINCT - 68 ) * + + 10 / - CAST ( NULL AS INTEGER ) + + CA # 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\(45\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(23\) AS col2" at position 0 and "\(\- CASE Int64\(\-22\) WHEN Int64\(29\) THEN NULL WHEN Int64\(13\) THEN Int64\(78\) \* Int64\(89\) 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\(45\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(23\) AS col2" at position 0 and "\(\- CASE Int64\(\-22\) WHEN Int64\(29\) THEN NULL WHEN Int64\(13\) THEN Int64\(78\) \* Int64\(89\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 45 * - ( - ( + COUNT ( * ) ) ) + + + 23 AS col2, - CASE - 22 WHEN 29 THEN NULL WHEN + 13 THEN + + 78 * 89 ELSE NULL END AS col2 query I rowsort label-4654 @@ -24496,7 +24496,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\(\*\) AS col1" at position 1 have the 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 @@ -24688,7 +24688,7 @@ SELECT ALL ( + 85 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CASE \(\- Int64\(79\)\) WHEN \(\- Int64\(\-63\)\) THEN Int64\(94\) \* Int64\(58\) \+ Int64\(\-54\) \+ Int64\(63\) END WHEN \(\- Int64\(63\)\) THEN \(\- avg\(Int64\(56\)\)\) WHEN Int64\(27\) THEN Int64\(2\) END AS col1" at position 0 and "Int64\(45\) \* count\(\*\) \+ Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CASE \(\- Int64\(79\)\) WHEN \(\- Int64\(\-63\)\) THEN Int64\(94\) \* Int64\(58\) \+ Int64\(\-54\) \+ Int64\(63\) END WHEN \(\- Int64\(63\)\) THEN \(\- avg\(Int64\(56\)\)\) WHEN Int64\(27\) THEN Int64\(2\) END AS col1" at position 0 and "Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE + + CASE - + 79 WHEN - - 63 THEN 94 * + + 58 + + - 54 + 63 END WHEN - + 63 THEN - AVG ( + + 56 ) WHEN + ( ( + 27 ) ) THEN 2 END AS col1, + 45 * + COUNT ( * ) + + 8 col1 # Datafusion - Types were automatically converted from: @@ -24969,7 +24969,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\(\*\) 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 @@ -25832,7 +25832,7 @@ SELECT ( - - CAST ( 0 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4128 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(96\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(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 - 43 * + 96 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -25981,7 +25981,7 @@ SELECT + - COUNT ( - 68 ) + + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2008 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \- count\(\*\) \* Int64\(25\) \* Int64\(\-83\) 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 "Int64\(\-67\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\) \* Int64\(\-83\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 67 - COUNT ( * ) * 25 * + - 83 col1, 94 AS col1 query I rowsort label-4948 @@ -27166,7 +27166,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\(\*\) AS col2" at position 1 have the 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 @@ -28544,7 +28544,7 @@ SELECT 93 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-93\) \* \(\- Int64\(\-40\)\) / count\(\*\) \- Int64\(\-88\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-93\) \* \(\- Int64\(\-40\)\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-88\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * - 93 * - - 40 / + + COUNT ( * ) - - 88 AS col1, 32 AS col1 query II rowsort @@ -28914,7 +28914,7 @@ SELECT ALL 95 * + 85 + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(91\) AS col0" at position 0 and "\(\- nullif\(Int64\(26\), CAST\(NULL AS Int32\) / count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) AS col0" at position 0 and "\(\- nullif\(Int64\(26\), CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + + COUNT ( * ) ) * + 91 AS col0, - NULLIF ( 26, CAST ( NULL AS INTEGER ) / COUNT ( * ) ) AS col0 query I rowsort label-5504 @@ -29594,7 +29594,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\(\*\) AS col2" at position 1 have the 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 @@ -30115,7 +30115,7 @@ SELECT DISTINCT + COUNT ( * ) + + ( - - 44 ) + - 39 * + + COUNT ( + 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-48\) \- \(\- Int64\(99\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(91\) \* 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\(\*\) \* Int64\(\-48\) \- \(\- Int64\(99\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 48 - - ( + ( + + 99 ) ) AS col2, + COUNT ( * ) + + 91 * 2 AS col2 query I rowsort @@ -30830,7 +30830,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(20\) AS col0" at position 0 and "Int64\(\-59\) \+ Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) AS col0" at position 0 and "Int64\(\-59\) \+ Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * 20 AS col0, - 59 + - 36 AS col0 query I rowsort label-5870 @@ -32141,7 +32141,7 @@ SELECT ALL + 84 + - + ( - + 4 ) - ( - COUNT ( * ) ) * NULLIF ( 6, COALESCE ( - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -175 -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\(\-82\) \+ Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-82\) \+ Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 56 AS col2, + COUNT ( * ) + - 82 + - 94 AS col2 query I rowsort label-6121 @@ -32209,7 +32209,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\(\*\) 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 @@ -32777,7 +32777,7 @@ SELECT - COUNT ( + - 51 ) AS col0, 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1593 # Datafusion - Expected - 1927 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(\-62\) \+ count\(\*\) \+ CAST\(Int64\(42\) AS Int32\) AS col1" at position 0 and "Int64\(47\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(42\) AS Int32\) AS col1" at position 0 and "Int64\(47\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 25 * + - 62 + COUNT ( * ) + + + CAST ( + 42 AS INTEGER ) AS col1, + 47 * + 41 AS col1 query I rowsort label-6241 @@ -33067,13 +33067,13 @@ 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\(\*\) AS col0" at position 1 have the 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: # Datafusion - Expected - -5079600 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(\-45\) \* Int64\(\-20\) \* Int64\(\-68\) AS col1" at position 0 and "count\(\*\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(\-45\) \* Int64\(\-20\) \* Int64\(\-68\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( 83 ) * - 45 * - 20 * + ( + - 68 ) AS col1, COUNT ( * ) * + 45 AS col1 query I rowsort @@ -33177,7 +33177,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\(\*\) 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 @@ -33611,7 +33611,7 @@ SELECT ( 3 ) * 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-26\)\), \(\- CASE Int64\(\-97\) WHEN Int64\(\-27\) THEN nullif\(Int64\(\-96\), Int64\(46\) \* Int64\(1\)\) WHEN Int64\(72\) THEN NULL END\) \- \(\- count\(\*\)\)\) \+ \(\- Int64\(\-73\)\) AS col1" at position 0 and "Int64\(\-49\) \- Int64\(\-21\) \+ \(\- CASE Int64\(\-85\) WHEN Int64\(\-12\) THEN NULL WHEN Int64\(43\) \+ Int64\(\-53\) \* Int64\(3\) THEN Int64\(20\) \* \(\- count\(\*\)\) ELSE NULL END\) \* 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 "nullif\(\(\- Int64\(\-26\)\), \(\- CASE Int64\(\-97\) WHEN Int64\(\-27\) THEN nullif\(Int64\(\-96\), Int64\(46\) \* Int64\(1\)\) WHEN Int64\(72\) THEN NULL END\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-73\)\) AS col1" at position 0 and "Int64\(\-49\) \- Int64\(\-21\) \+ \(\- CASE Int64\(\-85\) WHEN Int64\(\-12\) THEN NULL WHEN Int64\(43\) \+ Int64\(\-53\) \* Int64\(3\) THEN Int64\(20\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END\) \* Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - ( - 26 ), - CASE - 97 WHEN - 27 THEN + NULLIF ( - 96, 46 * + + 1 ) WHEN + 72 THEN NULL END - - COUNT ( * ) ) + - - 73 AS col1, - 49 - - 21 + - CASE + - 85 WHEN - 12 THEN NULL WHEN 43 + - 53 * + 3 THEN 20 * - COUNT ( * ) ELSE NULL END * + 42 AS col1 query II rowsort @@ -34116,7 +34116,7 @@ SELECT ALL + 78 * - - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "\(\- count\(\*\)\) \* \(\- CAST\(CAST\(CASE Int64\(28\) WHEN Int64\(\-28\) THEN Int64\(\-81\) END AS Int32\) AS Float64\)\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(CAST\(CASE Int64\(28\) WHEN Int64\(\-28\) THEN Int64\(\-81\) END AS Int32\) AS Float64\)\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 AS col0, ( - COUNT ( * ) ) * - CAST ( + CAST ( CASE 28 WHEN - 28 THEN - 81 END AS INTEGER ) AS FLOAT8 ) + - 27 AS col0 query I rowsort label-6496 @@ -35534,7 +35534,7 @@ SELECT DISTINCT - - 90 AS col1, 68 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\(\*\)\) 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 @@ -35550,7 +35550,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\(\*\) AS col1" at position 1 have the 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 @@ -36467,7 +36467,7 @@ SELECT ALL + 30 AS col1, 83 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 328 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- count\(\*\) \+ Int64\(41\) \* Int64\(8\) 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\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) \* Int64\(8\) 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 ( * ) - COUNT ( * ) + 41 * 8 AS col1, - 48 AS col1 # Datafusion - Types were automatically converted from: @@ -37133,7 +37133,7 @@ SELECT - 43 + + 14 / CAST ( 8 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(8\) \* Int64\(26\) \+ Int64\(86\) \* count\(\*\) \+ \(\- 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\(53\) AS col1" at position 0 and "Int64\(8\) \* Int64\(26\) \+ Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 AS col1, 8 * 26 + 86 * COUNT ( * ) + - + 84 AS col1 query I rowsort label-7071 @@ -37797,7 +37797,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\(\*\) 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 @@ -38119,7 +38119,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -41164,7 +41164,7 @@ 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 "coalesce\(\(\- \(\- count\(Int64\(35\)\)\)\), Int64\(\-59\)\) / count\(\*\) / 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\(\-86\)\)\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(35\)\)\)\), Int64\(\-59\)\) / count\(Int64\(1\)\) AS count\(\*\) / Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - 86 ) AS col1, COALESCE ( - - COUNT ( + 35 ), - 59 ) / COUNT ( * ) / 3 AS col1 query I rowsort label-7851 @@ -42013,7 +42013,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\(\*\) 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 @@ -43162,7 +43162,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\(\*\) \+ \(\- count\(DISTINCT Int64\(\-27\)\)\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -43622,7 +43622,7 @@ SELECT ALL + 50 + - 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(96\) \* 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\(96\) \* Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, 96 * - 2 AS col1 query I rowsort label-8322 @@ -43879,7 +43879,7 @@ SELECT ALL - COALESCE ( + + 83, - + 15 ) AS col1 # 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 "Int64\(56\) / nullif\(Int64\(50\), \(\- \(\- coalesce\(Int64\(98\), Int64\(33\) \+ Int64\(\-31\) \+ count\(\*\)\)\)\)\) AS col1" at position 0 and "nullif\(sum\(DISTINCT Int64\(\-33\)\), Int64\(35\) \* count\(\*\) \+ Int64\(69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) / nullif\(Int64\(50\), \(\- \(\- coalesce\(Int64\(98\), Int64\(33\) \+ Int64\(\-31\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col1" at position 0 and "nullif\(sum\(DISTINCT Int64\(\-33\)\), Int64\(35\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 56 / + NULLIF ( + 50, + - ( - ( + COALESCE ( + 98, 33 + - 31 + COUNT ( * ) ) ) ) ) AS col1, NULLIF ( + SUM ( DISTINCT - 33 ), 35 * + COUNT ( * ) + 69 ) AS col1 query I rowsort label-8370 @@ -44516,7 +44516,7 @@ NULL # 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\(\*\)\) AS col0" at position 1 have the 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 99 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -46276,7 +46276,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 340768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) / Int64\(\-10\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-41\)\) AS Int32\) \* nullif\(Int64\(84\), \(\- \(\- count\(\*\)\)\)\) \* max\(DISTINCT Int64\(99\)\) \- Int64\(92\) \- Int64\(48\) \- \(\- Int64\(\-84\)\) \- Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) / Int64\(\-10\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-41\)\) AS Int32\) \* nullif\(Int64\(84\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* max\(DISTINCT Int64\(99\)\) \- Int64\(92\) \- Int64\(48\) \- \(\- Int64\(\-84\)\) \- Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS FLOAT8 ) / - 10 AS col2, CAST ( - - 41 AS INTEGER ) * NULLIF ( 84, - - COUNT ( * ) ) * + + MAX ( DISTINCT 99 ) - + 92 - + 48 - - - 84 - + - 36 AS col2 query II rowsort label-8825 @@ -46736,7 +46736,7 @@ SELECT COUNT ( * ) * + COALESCE ( - CAST ( + + 55 AS INTEGER ), 87 ) + + 26 * NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(88\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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 "Int64\(88\) \* \(\- \(\- 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, 88 * + + ( - ( - COUNT ( * ) ) ) AS col1 query I rowsort @@ -47097,7 +47097,7 @@ SELECT + 11 + ( + ( 91 ) ) * + 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 1845 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(28\) \- Int64\(\-41\) \- Int64\(\-48\) \* count\(\*\) \* 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\(\-71\) AS col0" at position 0 and "Int64\(28\) \- Int64\(\-41\) \- Int64\(\-48\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 71 col0, + 28 - - 41 - - 48 * + COUNT ( * ) * + + 37 col0 query I rowsort @@ -48365,7 +48365,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) / min\(DISTINCT Int64\(\-30\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ 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\(\-63\) / min\(DISTINCT Int64\(\-30\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 63 / + MIN ( DISTINCT - 30 ) AS col0, - COUNT ( * ) + + 27 AS col0 query I rowsort label-9228 @@ -48452,7 +48452,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-69\)\) 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\(\*\) \* \(\- Int64\(\-69\)\) 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 ( * ) * - - 69 AS col1, 36 AS col1 query I rowsort label-9245 @@ -49545,7 +49545,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\(25\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -50327,7 +50327,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\(\*\) AS col2" at position 1 have the 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 @@ -50894,7 +50894,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\(\*\) 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 @@ -51080,7 +51080,7 @@ SELECT + 0 - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \- \(\- \(\- 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 "\(\- Int64\(\-18\)\) \- \(\- \(\- 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 - - 18 - + - ( - + ( + COUNT ( * ) ) ) AS col2, - 23 AS col2 query I rowsort label-9755 diff --git a/data/sqlite/random/expr/slt_good_76.slt b/data/sqlite/random/expr/slt_good_76.slt index e8ea09a..f90c574 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\(19\) / Int64\(23\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -1747,7 +1747,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\(\*\) AS col0" at position 1 have the 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: @@ -1871,7 +1871,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\(\*\) 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 @@ -3076,7 +3076,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\(\*\) 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 @@ -4243,7 +4243,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -4538,7 +4538,7 @@ SELECT - 88 * + MIN ( ALL - + 51 ) # 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ), - COUNT ( * ) query II rowsort label-875 @@ -4941,7 +4941,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\(\*\) 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 @@ -5079,7 +5079,7 @@ SELECT ( - 15 ) # 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), + COUNT ( * ) query I rowsort @@ -5630,7 +5630,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\(\*\) AS col0" at position 1 have the 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 @@ -6392,7 +6392,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\(\*\) / count\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -7892,7 +7892,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\(\*\) \+ count\(\*\) AS col1" at position 1 have the 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: @@ -8486,7 +8486,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\(18\) \+ Int64\(41\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -8498,7 +8498,7 @@ SELECT - 19 AS col2, NULLIF ( - 2, + 27 ) - - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* \(\- 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 "Int64\(11\) \* \(\- 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 ( 11 ) * - COUNT ( * ) AS col2, 39 col2 query I rowsort label-1643 @@ -9544,7 +9544,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\(\*\) 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 @@ -9560,7 +9560,7 @@ SELECT ALL ( + - 58 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 25 -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\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 AS col0, COUNT ( * ) * 25 AS col0 query I rowsort label-1847 @@ -11880,7 +11880,7 @@ SELECT - + COUNT ( * ) AS col2, + 42 # 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\(\*\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ \(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col0, - COUNT ( * ) + - + 48 AS col0 query I rowsort label-2294 @@ -12423,7 +12423,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 0 -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\(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\(8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 col1, + COUNT ( * ) / 63 AS col1 query I rowsort label-2400 @@ -13322,7 +13322,7 @@ SELECT ALL + - SUM ( - 23 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col0, - COUNT ( * ) + + 11 AS col0 query I rowsort label-2571 @@ -14771,7 +14771,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\(\*\) 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 @@ -15057,7 +15057,7 @@ SELECT ALL NULLIF ( + + 99, - + 67 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 @@ -15323,7 +15323,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\(\*\) AS col1" at position 1 have the 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 @@ -15452,7 +15452,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\(\*\) 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 @@ -15942,7 +15942,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\(\*\) AS col2" at position 1 have the 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 @@ -16260,7 +16260,7 @@ SELECT + - ( - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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 query I rowsort label-3142 @@ -16314,7 +16314,7 @@ SELECT ALL + 42 * - 70 # Datafusion - Expected - 76 # 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 1 and "\(\- 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\(32\) 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 - - 74 + 2 AS col2, + 32 AS col1, - COUNT ( * ) col1 query I rowsort @@ -17305,7 +17305,7 @@ SELECT DISTINCT - 11 * + 9 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 43 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -17482,7 +17482,7 @@ SELECT DISTINCT MAX ( ALL + 43 ) 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 col1, - COUNT ( * ) AS col1 query I rowsort label-3378 @@ -17872,7 +17872,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\(\*\) AS col0" at position 1 have the 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 @@ -20691,7 +20691,7 @@ SELECT ALL 58 * - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-97\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - 97 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -21195,7 +21195,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\(\*\) AS col2" at position 1 have the 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 @@ -23945,7 +23945,7 @@ SELECT + 7 + CAST ( 36 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / \(\- Int64\(85\)\) 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\(\*\) / \(\- Int64\(85\)\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / - + 85 AS col2, 60 AS col2 query I rowsort label-4631 @@ -24049,7 +24049,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\(\*\) AS col2" at position 1 have the 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 @@ -24126,7 +24126,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -26077,7 +26077,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\(\*\) 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 @@ -26093,7 +26093,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\(\*\) 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 @@ -27815,7 +27815,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -28760,7 +28760,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\(\*\) AS col0" at position 1 have the 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 @@ -29060,7 +29060,7 @@ SELECT ALL ( 82 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the 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 Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -29355,7 +29355,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\(\*\) AS col1" at position 1 have the 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 @@ -30090,7 +30090,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\(\*\) 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 @@ -30107,7 +30107,7 @@ SELECT + CAST ( + ( + + NULLIF ( - COUNT ( * ), - 99 ) ) AS INTEGER ) col2, - CO # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, - 46 AS col2 query I rowsort @@ -30522,7 +30522,7 @@ SELECT ALL ( - 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 "\(\- count\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), ( + - COUNT ( * ) ) query I rowsort label-5905 @@ -31601,7 +31601,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\(\*\) 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 @@ -33065,7 +33065,7 @@ SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col1 # 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\(\*\)\) AS col1" at position 1 have the 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 ( * ) col1 query I rowsort label-6401 @@ -34844,7 +34844,7 @@ SELECT ALL - 6 * 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(\-43\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. 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\(\-43\) \* \(\- 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 ) ) AS col1, - 43 * - COUNT ( * ) AS col1 query I rowsort label-6745 @@ -35433,7 +35433,7 @@ SELECT DISTINCT - - 9 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "min\(Int64\(4\)\) \+ \(\- count\(\*\)\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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 "min\(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 99 AS col1, + MIN ( + 4 ) + - + COUNT ( * ) - - + COUNT ( * ) AS col1 query I rowsort @@ -36182,7 +36182,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\(\*\) 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 @@ -37605,7 +37605,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\(\*\) 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 @@ -38140,7 +38140,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\(\*\) AS col2" at position 1 have the 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 @@ -38436,7 +38436,7 @@ SELECT ( 89 ) # 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 "coalesce\(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 "Int64\(\-52\) AS col1" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 52 AS col1, + COALESCE ( + + COUNT ( * ), + 99 ) AS col1 query I rowsort @@ -38569,7 +38569,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\(\*\) AS col0" at position 1 have the 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 @@ -39987,7 +39987,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(63\) 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\(\*\) \* Int64\(63\) 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 ( * ) * 63 AS col0, 27 AS col0 query I rowsort label-7736 @@ -40373,7 +40373,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\(\*\) AS col0" at position 1 have the 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 @@ -40588,7 +40588,7 @@ SELECT + ( + - SUM ( DISTINCT NULLIF ( - 57, + 60 ) ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(89\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(89\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 27 ) AS col2, 89 * + - COUNT ( * ) AS col2 query I rowsort label-7852 @@ -40609,7 +40609,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\(\*\) 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 @@ -41223,7 +41223,7 @@ SELECT DISTINCT MIN ( DISTINCT 69 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) AS col0, - ( + COUNT ( * ) ) col0 query I rowsort label-7973 @@ -42001,7 +42001,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\(\*\) 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 @@ -43415,7 +43415,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\(\*\) 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 @@ -46227,7 +46227,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + 46 AS col2 query I rowsort label-8943 @@ -47141,7 +47141,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\(\*\) 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 @@ -47218,7 +47218,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\(\*\) AS col2" at position 1 have the 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 @@ -48074,7 +48074,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\(\*\) 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 @@ -48533,7 +48533,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\(\-28\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -49113,7 +49113,7 @@ SELECT - 74 * 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92505258 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- CASE Int64\(70\) WHEN Int64\(\-19\) THEN NULL ELSE Int64\(94\) END\) \* Int64\(68\) \* Int64\(\-67\) \* Int64\(12\) \- Int64\(\-4\) \* Int64\(56\) \+ Int64\(10\) AS col0" at position 0 and "Int64\(\-83\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(70\) WHEN Int64\(\-19\) THEN NULL ELSE Int64\(94\) END\) \* Int64\(68\) \* Int64\(\-67\) \* Int64\(12\) \- Int64\(\-4\) \* Int64\(56\) \+ Int64\(10\) 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 ALL + 18 * - CASE 70 WHEN + - 19 THEN NULL ELSE + 94 END * + + 68 * - 67 * + 12 - - 4 * 56 + 10 AS col0, - 83 / - - COUNT ( * ) AS col0 query I rowsort @@ -50203,7 +50203,7 @@ SELECT ( - 23 ) + - - 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2026 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \- Int64\(41\) \* Int64\(\-48\) AS col2" at position 0 and "count\(\*\) \- 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\(58\) \- Int64\(41\) \* Int64\(\-48\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 58 - 41 * + - 48 col2, COUNT ( * ) - - 68 col2 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_77.slt b/data/sqlite/random/expr/slt_good_77.slt index dd5f4ae..22739ea 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\(\*\) 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 @@ -2135,7 +2135,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -2281400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(84\) \+ \(\- max\(DISTINCT Int64\(52\)\)\) AS col0" at position 0 and "Int64\(\-50\) \* \(\- Int64\(\-61\)\) \* \(\- CAST\(\(\- max\(Int64\(17\)\)\) AS Int32\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(84\) \+ \(\- max\(DISTINCT Int64\(52\)\)\) AS col0" at position 0 and "Int64\(\-50\) \* \(\- Int64\(\-61\)\) \* \(\- CAST\(\(\- max\(Int64\(17\)\)\) AS Int32\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) / + + 84 + - MAX ( DISTINCT 52 ) col0, - 50 * - - 61 * - CAST ( - MAX ( ALL + 17 ) AS INTEGER ) * + 44 AS col0 query I rowsort label-401 @@ -2177,7 +2177,7 @@ SELECT + + 46 * COUNT ( * ) AS col2 # Datafusion - Expected - 95 # Datafusion - Expected - -3012 # Datafusion - Expected - 81 -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\(81\) \+ 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 "Int64\(95\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(81\) \+ Int64\(1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 95 col1, - 32 + - 66 + + - 94 * + - MAX ( - ( + 31 ) ), - COUNT ( * ) + + 81 + + ( 1 ) AS col1 query I rowsort label-409 @@ -2556,7 +2556,7 @@ SELECT ALL 95 + 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 "Int64\(1\) AS col1" at position 0 and "count\(\*\) \- 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\(1\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 AS col1, COUNT ( * ) - 85 col1 query I rowsort label-482 @@ -3494,7 +3494,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 185525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- nullif\(Int64\(31\), Int64\(37\)\)\) \+ count\(\*\) / CAST\(NULL AS Int32\) \* \(\- Int64\(49\)\) AS col1" at position 0 and "Int64\(70\) \* \(\- min\(Int64\(\-50\)\)\) \* Int64\(53\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- nullif\(Int64\(31\), Int64\(37\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) \* \(\- Int64\(49\)\) AS col1" at position 0 and "Int64\(70\) \* \(\- min\(Int64\(\-50\)\)\) \* Int64\(53\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 36 * - NULLIF ( + 31, + ( 37 ) ) + + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - + 49 col1, 70 * - + MIN ( - 50 ) * + 53 + 25 AS col1 query II rowsort @@ -3747,7 +3747,7 @@ SELECT 18 + - + 83 + - 77, + MAX ( ALL - + 15 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 134 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-53\)\), Int64\(37\)\) \- coalesce\(Int64\(\-82\), Int64\(20\), Int64\(0\)\) \- \(\- \(\- 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 "nullif\(\(\- Int64\(\-53\)\), Int64\(37\)\) \- coalesce\(Int64\(\-82\), Int64\(20\), Int64\(0\)\) \- \(\- \(\- 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 ALL NULLIF ( - - 53, + 37 ) - + + COALESCE ( - 82, + + 20, - 0 ) - - - COUNT ( * ) AS col0, 47 AS col0 query I rowsort label-706 @@ -4702,7 +4702,7 @@ SELECT + 96 * 70 + + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 6474 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-83\) \* 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\(\-83\) \* Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, ( + - 83 ) * - 78 AS col1 query I rowsort label-891 @@ -4966,7 +4966,7 @@ SELECT - 54 * MIN ( - 50 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2600 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(40\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-3\), Int64\(\-35\) / Int64\(4\), CAST\(Int64\(18\) AS Int32\) \+ Int64\(18\)\)\) \+ \(\- CASE count\(\*\) WHEN Int64\(87\) THEN Int64\(44\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(40\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-3\), Int64\(\-35\) / Int64\(4\), CAST\(Int64\(18\) AS Int32\) \+ Int64\(18\)\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(87\) THEN Int64\(44\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 65 * - + 40 AS col2, - COALESCE ( + - 3, - 35 / + + 4, CAST ( + 18 AS INTEGER ) + 18 ) + - CASE COUNT ( * ) WHEN 87 THEN 44 END AS col2 query I rowsort label-941 @@ -6503,7 +6503,7 @@ SELECT ALL 83 * + AVG ( DISTINCT - 62 ) + + - 19 + + MIN ( + + 58 ) + - 85 - - - # 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\(\*\) 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 @@ -8971,7 +8971,7 @@ SELECT 15 * + ( + ( - 57 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3198 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ max\(DISTINCT nullif\(Int64\(\-18\), Int64\(\-79\) / Int64\(42\)\)\) \* Int64\(63\) \+ Int64\(53\) \+ Int64\(\-98\) \* Int64\(21\) AS col1" at position 0 and "Int64\(52\) \+ count\(\*\) \+ \(\- Int64\(7\)\) / Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ max\(DISTINCT nullif\(Int64\(\-18\), Int64\(\-79\) / Int64\(42\)\)\) \* Int64\(63\) \+ Int64\(53\) \+ Int64\(\-98\) \* Int64\(21\) AS col1" at position 0 and "Int64\(52\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(7\)\) / Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 59 + + MAX ( DISTINCT NULLIF ( - 18, + - 79 / + 42 ) ) * 63 + + 53 + - 98 * 21 AS col1, 52 + + COUNT ( * ) + - + 7 / - 7 col1 query II rowsort @@ -9508,7 +9508,7 @@ SELECT DISTINCT 44 + 88 + 45 * + 0 * COUNT ( * ) * + 10 # 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\(79\) \+ \(\- count\(\*\)\) AS col1" at position 0 and "count\(\*\) / Int64\(34\) / Int64\(\-4\) \* 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\(79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) / Int64\(\-4\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 + - COUNT ( * ) AS col1, ( COUNT ( * ) ) / ( 34 ) / - 4 * + 65 col1 query I rowsort @@ -10239,7 +10239,7 @@ SELECT ALL 79 + - ( - + ( 48 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- min\(DISTINCT Int64\(\-10\)\)\) \+ count\(\*\) \+ Int64\(\-8\) \+ Int64\(\-27\) AS col1" at position 0 and "max\(Int64\(\-90\)\) \* Int64\(74\) \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- min\(DISTINCT Int64\(\-10\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-8\) \+ Int64\(\-27\) AS col1" at position 0 and "max\(Int64\(\-90\)\) \* Int64\(74\) \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( ( + CAST ( NULL AS INTEGER ) ) ) + - + ( + MIN ( DISTINCT - 10 ) ) + COUNT ( * ) + - 8 + - 27 AS col1, MAX ( - 90 ) * + 74 + + - 15 AS col1 query I rowsort label-1950 @@ -11678,7 +11678,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - -736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(98\)\) \+ \(\- Int64\(\-22\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(92\) \* 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\(\*\) \* \(\- Int64\(98\)\) \+ \(\- Int64\(\-22\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(92\) \* Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - + 98 + - - 22 AS col0, COUNT ( * ) * 92 * - 8 col0 query I rowsort label-2221 @@ -13186,7 +13186,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col1" at position 0 and "Int64\(31\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col1" at position 0 and "Int64\(31\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 98 AS col1, + 31 + + - COUNT ( * ) AS col1 query I rowsort label-2515 @@ -13586,7 +13586,7 @@ SELECT CAST ( 60 AS INTEGER ) / 28 + - 65 + + 0 * 65 * - - 23 * + ( + 58 ) / - S # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-2590 @@ -13724,7 +13724,7 @@ SELECT - 18 - - 24 AS col2 # 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 "\(\- nullif\(\(\- count\(\*\)\), nullif\(Int64\(32\), Int64\(62\)\) \+ \(\- count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), nullif\(Int64\(32\), Int64\(62\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - COUNT ( * ), NULLIF ( + 32, 62 ) + - COUNT ( * ) ) AS col1, 28 AS col1 query I rowsort @@ -15164,7 +15164,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\(\*\) AS col1" at position 1 have the 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 @@ -16080,7 +16080,7 @@ SELECT - ( + 49 ) * - - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 189 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(99\)\), Int64\(56\) / count\(\*\)\)\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(\-81\) \+ Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(99\)\), Int64\(56\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(\-81\) \+ Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - + 99, 56 / + + COUNT ( * ) ) + + + 90 AS col2, - 81 + 91 AS col2 query I rowsort @@ -16533,7 +16533,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\(\*\) AS col1" at position 1 have the 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 @@ -17923,7 +17923,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\(\*\) AS col0" at position 1 have the 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 @@ -17944,7 +17944,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\(\*\)\)\) \+ 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 @@ -18221,7 +18221,7 @@ SELECT DISTINCT - 42 * + MIN ( - 44 ) * + - 3 * + 6 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -3001 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int32\) AS col1" at position 0 and "\(\- CASE Int64\(36\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(\-50\) THEN NULL ELSE Int64\(79\) \* Int64\(38\) \+ nullif\(\(\- count\(\*\)\), Int64\(19\) \- Int64\(\-37\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int32\) AS col1" at position 0 and "\(\- CASE Int64\(36\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(\-50\) THEN NULL ELSE Int64\(79\) \* Int64\(38\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(19\) \- Int64\(\-37\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 38 AS INTEGER ) AS col1, - CASE 36 WHEN - - 31 + - 50 THEN NULL ELSE + + 79 * + + 38 + + + NULLIF ( - COUNT ( * ), 19 - - 37 ) END col1 query I rowsort label-3468 @@ -18574,7 +18574,7 @@ SELECT ALL 12 + + - 80 # 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\(\*\)\) 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 "\(\- 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 - COUNT ( * ) AS col2, 31 AS col2 query I rowsort label-3536 @@ -18676,7 +18676,7 @@ SELECT ALL - 0 * + 93, + 65 + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(Int64\(\-39\), Int64\(4\) \+ \(\- CASE Int64\(6\) WHEN Int64\(89\) \+ \(\- Int64\(\-84\)\) THEN \(\- Int64\(\-40\)\) \* count\(\*\) \- CASE \(\- count\(\*\)\) WHEN Int64\(\-33\) \+ Int64\(\-51\) THEN Int64\(53\) \* Int64\(\-78\) \+ CAST\(\(\- Int64\(\-14\)\) AS Float64\) WHEN Int64\(33\) \- Int64\(\-3\) THEN NULL END \+ \(\- Int64\(59\)\) \* Int64\(57\) \* Int64\(26\) \* Int64\(5\) ELSE NULL END\)\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(Int64\(\-39\), Int64\(4\) \+ \(\- CASE Int64\(6\) WHEN Int64\(89\) \+ \(\- Int64\(\-84\)\) THEN \(\- Int64\(\-40\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-33\) \+ Int64\(\-51\) THEN Int64\(53\) \* Int64\(\-78\) \+ CAST\(\(\- Int64\(\-14\)\) AS Float64\) WHEN Int64\(33\) \- Int64\(\-3\) THEN NULL END \+ \(\- Int64\(59\)\) \* Int64\(57\) \* Int64\(26\) \* Int64\(5\) ELSE NULL END\)\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - CAST ( - NULLIF ( - 39, + 4 + - CASE 6 WHEN 89 + - - 84 THEN - - 40 * + COUNT ( * ) - CASE - COUNT ( * ) WHEN - 33 + - 51 THEN + 53 * - 78 + CAST ( - - 14 AS FLOAT8 ) WHEN 33 - - 3 THEN NULL END + - + 59 * + + 57 * + 26 * + + 5 ELSE NULL END ) AS INTEGER ) ) AS col2, 90 AS col2 query I rowsort @@ -19741,7 +19741,7 @@ SELECT + MAX ( 22 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7037 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(\-9\) / Int64\(16\) \+ coalesce\(Int64\(26\), \(\- Int64\(\-75\)\) \* Int64\(\-86\)\) \+ Int64\(\-46\) \+ \(\- count\(\*\)\) / Int64\(12\) \+ nullif\(Int64\(71\), Int64\(51\)\) \* \(\- nullif\(\(\- \(\- min\(\(\- Int64\(99\)\)\)\)\), Int64\(10\)\)\) AS col1" at position 0 and "Int64\(80\) \+ 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\(28\) \+ Int64\(\-9\) / Int64\(16\) \+ coalesce\(Int64\(26\), \(\- Int64\(\-75\)\) \* Int64\(\-86\)\) \+ Int64\(\-46\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(12\) \+ nullif\(Int64\(71\), Int64\(51\)\) \* \(\- nullif\(\(\- \(\- min\(\(\- Int64\(99\)\)\)\)\), Int64\(10\)\)\) AS col1" at position 0 and "Int64\(80\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 28 + - 9 / 16 + COALESCE ( + 26, - - 75 * - 86 ) + - 46 + - COUNT ( * ) / + + 12 + + + NULLIF ( 71, + 51 ) * + - NULLIF ( - - MIN ( - + 99 ), + + 10 ) col1, 80 + + 55 col1 query I rowsort @@ -20262,7 +20262,7 @@ SELECT ALL - + MIN ( + 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6925 # Datafusion - Expected - -2340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- Int64\(88\)\) \* count\(\*\) \- \(\- Int64\(27\)\) AS col0" at position 0 and "Int64\(30\) \* 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\(79\) \* \(\- Int64\(88\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(27\)\) AS col0" at position 0 and "Int64\(30\) \* Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 * - + 88 * COUNT ( * ) - - + 27 AS col0, + 30 * - 78 AS col0 query I rowsort @@ -20372,7 +20372,7 @@ SELECT + 56, + 95 * 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(\-12\) / \(\- \(\- CASE Int64\(\-5\) WHEN \(\- count\(\*\)\) \- \(\- Int64\(\-8\)\) \+ Int64\(\-36\) \+ count\(\*\) \+ min\(DISTINCT \(\- Int64\(49\)\)\) \* Int64\(75\) / Int64\(88\) \* Int64\(2\) \* Int64\(\-55\) \* count\(DISTINCT Int64\(37\)\) THEN Int64\(\-62\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(\-12\) / \(\- \(\- CASE Int64\(\-5\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-8\)\) \+ Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ min\(DISTINCT \(\- Int64\(49\)\)\) \* Int64\(75\) / Int64\(88\) \* Int64\(2\) \* Int64\(\-55\) \* count\(DISTINCT Int64\(37\)\) THEN Int64\(\-62\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 AS col1, - 12 / - - CASE - 5 WHEN - COUNT ( * ) - - - 8 + - 36 + COUNT ( * ) + + ( MIN ( DISTINCT - + 49 ) ) * 75 / + 88 * + 2 * - 55 * + COUNT ( DISTINCT + + 37 ) THEN - 62 ELSE NULL END col1 query I rowsort @@ -21783,7 +21783,7 @@ SELECT SUM ( ALL + COALESCE ( - 46, + 5 * + 67 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-94\) AS col2" at position 0 and "Int64\(62\) / \(\- \(\- count\(\*\)\)\) / CASE Int64\(68\) WHEN Int64\(32\) \+ Int64\(92\) / Int64\(72\) THEN NULL WHEN Int64\(76\) THEN Int64\(4\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-94\) AS col2" at position 0 and "Int64\(62\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / CASE Int64\(68\) WHEN Int64\(32\) \+ Int64\(92\) / Int64\(72\) THEN NULL WHEN Int64\(76\) THEN Int64\(4\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) + - 94 col2, 62 / - - COUNT ( * ) / + CASE 68 WHEN + 32 + + 92 / + 72 THEN NULL WHEN + 76 THEN 4 END AS col2 query I rowsort @@ -21919,7 +21919,7 @@ SELECT - + COALESCE ( COUNT ( * ), + + 45 ) + + - SUM ( + 26 ) - ( 64 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "count\(\*\) / \(\- min\(\(\- Int64\(\-68\)\)\)\) \- min\(CAST\(Int64\(82\) AS Int32\)\) \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(\(\- Int64\(\-68\)\)\)\) \- min\(CAST\(Int64\(82\) AS Int32\)\) \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 30 AS col2, + COUNT ( * ) / - MIN ( ALL - - 68 ) - + MIN ( + CAST ( 82 AS INTEGER ) ) + + 6 AS col2 query I rowsort @@ -22379,7 +22379,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\(\*\) 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 @@ -22755,7 +22755,7 @@ SELECT DISTINCT - - 55 * + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) AS col1" at position 0 and "nullif\(Int64\(\-33\), \(\- count\(\*\)\)\) AS col1" at position 1 have the 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 "nullif\(Int64\(\-33\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 95 AS col1, NULLIF ( - 33, - + COUNT ( * ) ) AS col1 query I rowsort label-4340 @@ -22859,7 +22859,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\(\*\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -23798,7 +23798,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\(51\) \+ CAST\(Int64\(\-88\) AS Int32\) \- Int64\(68\) \+ \(\- 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\(\*\) AS col2" at position 1 have the 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 @@ -25892,7 +25892,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\(\*\) AS col0" at position 1 have the 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 @@ -26306,7 +26306,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- count\(\(\- \(\- Int64\(\-3\)\)\)\)\) WHEN \(\- count\(\*\)\) THEN NULL ELSE Int64\(91\) END\) AS col0" at position 0 and "CASE Int64\(\-23\) WHEN Int64\(71\) THEN count\(\*\) WHEN Int64\(17\) \+ Int64\(\-98\) THEN \(\- Int64\(\-32\)\) ELSE NULL END \* \(\- Int64\(\-74\)\) \- Int64\(86\) \- Int64\(\-77\) \+ Int64\(\-41\) \* 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 "\(\- CASE \(\- count\(\(\- \(\- Int64\(\-3\)\)\)\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(91\) END\) AS col0" at position 0 and "CASE Int64\(\-23\) WHEN Int64\(71\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(17\) \+ Int64\(\-98\) THEN \(\- Int64\(\-32\)\) ELSE NULL END \* \(\- Int64\(\-74\)\) \- Int64\(86\) \- Int64\(\-77\) \+ Int64\(\-41\) \* Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE - COUNT ( ALL - - ( - 3 ) ) WHEN + ( - COUNT ( * ) ) THEN NULL ELSE + 91 END AS col0, CASE + - 23 WHEN 71 THEN + COUNT ( * ) WHEN 17 + + - 98 THEN - ( - 32 ) ELSE NULL END * + - ( + - 74 ) - + 86 - + - 77 + - 41 * + - 92 AS col0 query I rowsort label-5021 @@ -27057,7 +27057,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\(\*\) 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 @@ -27431,7 +27431,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\(\*\) 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 @@ -29872,7 +29872,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\(\*\) 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 @@ -31866,7 +31866,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\(\*\) WHEN \(\- Int64\(\-21\)\) THEN \(\- nullif\(Int64\(\-2\), Int64\(57\)\)\) WHEN Int64\(26\) THEN NULL END / 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 @@ -32475,7 +32475,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\(72\) \* Int64\(\-29\) THEN NULL ELSE Int64\(84\) \+ Int64\(\-16\) END\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have 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 @@ -32803,7 +32803,7 @@ SELECT + 96 / - 88 AS col2, + 28 + 70 / - 54 + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4488 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(55\) \* Int64\(\-81\) \+ Int64\(\-33\) 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\(\*\) \* Int64\(55\) \* Int64\(\-81\) \+ Int64\(\-33\) 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 ( * ) * + 55 * - 81 + + - 33 AS col0, - 4 AS col0 query I rowsort label-6266 @@ -34649,7 +34649,7 @@ SELECT + 30, - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- CASE Int64\(42\) WHEN \(\- sum\(CAST\(NULL AS Int32\)\)\) THEN NULL WHEN \(\- count\(\*\)\) THEN \(\- max\(Int64\(82\)\)\) END\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- CASE CAST\(Int64\(50\) AS Int32\) WHEN Int64\(45\) THEN NULL WHEN \(\- Int64\(\-6\)\) THEN Int64\(51\) WHEN Int64\(24\) \* Int64\(0\) THEN sum\(\(\- Int64\(\-71\)\)\) \* Int64\(19\) \+ Int64\(36\) \+ Int64\(40\) \+ Int64\(1\) \+ Int64\(\-72\) \+ Int64\(\-71\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- CASE Int64\(42\) WHEN \(\- sum\(CAST\(NULL AS Int32\)\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- max\(Int64\(82\)\)\) END\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- CASE CAST\(Int64\(50\) AS Int32\) WHEN Int64\(45\) THEN NULL WHEN \(\- Int64\(\-6\)\) THEN Int64\(51\) WHEN Int64\(24\) \* Int64\(0\) THEN sum\(\(\- Int64\(\-71\)\)\) \* Int64\(19\) \+ Int64\(36\) \+ Int64\(40\) \+ Int64\(1\) \+ Int64\(\-72\) \+ Int64\(\-71\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 12 + - CASE 42 WHEN - + SUM ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - ( COUNT ( * ) ) THEN - MAX ( ALL + 82 ) END / - + CAST ( NULL AS INTEGER ) col0, - CASE + CAST ( + 50 AS INTEGER ) WHEN + 45 THEN NULL WHEN - ( + - 6 ) THEN 51 WHEN + 24 * 0 THEN SUM ( - - 71 ) * + 19 + + 36 + 40 + 1 + - 72 + - 71 END AS col0 query I rowsort label-6619 @@ -35059,7 +35059,7 @@ SELECT - COUNT ( * ), + 95 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 3479 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- \(\- count\(\*\)\)\) \* sum\(\(\- Int64\(0\)\)\) \+ \(\- \(\- max\(DISTINCT nullif\(Int64\(\-49\), Int64\(87\) \* Int64\(64\)\)\)\)\) \+ Int64\(98\) \* sum\(Int64\(36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* sum\(\(\- Int64\(0\)\)\) \+ \(\- \(\- max\(DISTINCT nullif\(Int64\(\-49\), Int64\(87\) \* Int64\(64\)\)\)\)\) \+ Int64\(98\) \* sum\(Int64\(36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 31 AS col2, - ( - COUNT ( * ) ) * SUM ( ALL - + 0 ) + + ( - - MAX ( DISTINCT + NULLIF ( - 49, 87 * + 64 ) ) ) + + + 98 * + SUM ( ALL 36 ) AS col2 query I rowsort @@ -35104,7 +35104,7 @@ SELECT + 76 + 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(55\) \- CAST\(Int64\(79\) AS Int32\) \+ max\(\(\- Int64\(0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(55\) \- CAST\(Int64\(79\) AS Int32\) \+ max\(\(\- Int64\(0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) col0, 55 - + + CAST ( + 79 AS INTEGER ) + + MAX ( ( - - 0 ) ) AS col0 # Datafusion - Datafusion expected results: @@ -36874,7 +36874,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3203 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(42\) \+ \(\- count\(\*\)\) \+ Int64\(12\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(42\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(12\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 * 42 + + - COUNT ( * ) + + + 12 AS col2, 73 AS col2 query II rowsort label-7045 @@ -37426,7 +37426,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 "coalesce\(Int64\(2\), Int64\(35\) \* Int64\(70\)\) \* Int64\(\-76\) / Int64\(\-61\) \+ \(\- 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 "coalesce\(Int64\(2\), Int64\(35\) \* Int64\(70\)\) \* Int64\(\-76\) / Int64\(\-61\) \+ \(\- 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 COALESCE ( 2, 35 * + 70 ) * - 76 / - 61 + - COUNT ( * ) AS col0, 6 AS col0 query I rowsort @@ -37694,7 +37694,7 @@ SELECT ALL + 66 * 85 * - 77 + - MIN ( DISTINCT - 28 ) AS col2 # 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 "CASE \(\- Int64\(\-37\)\) WHEN Int64\(\-72\) \* Int64\(61\) \+ Int64\(89\) THEN min\(Int64\(83\)\) \* Int64\(\-42\) \+ count\(\*\) \- Int64\(57\) / Int64\(59\) END AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-37\)\) WHEN Int64\(\-72\) \* Int64\(61\) \+ Int64\(89\) THEN min\(Int64\(83\)\) \* Int64\(\-42\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(57\) / Int64\(59\) END AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE - - 37 WHEN - 72 * 61 + + + 89 THEN MIN ( ALL 83 ) * - 42 + COUNT ( * ) - 57 / 59 END AS col1, + 44 AS col1 query I rowsort @@ -39064,7 +39064,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\(\*\) AS col0" at position 0 and "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 @@ -39973,7 +39973,7 @@ SELECT 11 * - - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -2271 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(55\) \* Int64\(\-41\) \+ \(\- 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\(55\) \* Int64\(\-41\) \+ \(\- Int64\(16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, + 55 * + - 41 + - + 16 AS col1 query I rowsort @@ -42543,7 +42543,7 @@ SELECT + - 81 AS col1, 78 * + MIN ( + - 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3367 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* \(\- \(\- \(\- coalesce\(\(\- CASE Int64\(\-62\) WHEN \(\- count\(\*\)\) \* Int64\(82\) / Int64\(19\) THEN NULL ELSE \(\- coalesce\(CASE Int64\(\-9\) WHEN min\(Int64\(94\)\) THEN Int64\(12\) \+ Int64\(99\) \- Int64\(\-88\) \* Int64\(\-30\) END, Int64\(37\)\)\) END\), Int64\(7\), \(\- Int64\(69\)\) / Int64\(29\)\)\)\)\) 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\(91\) \* \(\- \(\- \(\- coalesce\(\(\- CASE Int64\(\-62\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(82\) / Int64\(19\) THEN NULL ELSE \(\- coalesce\(CASE Int64\(\-9\) WHEN min\(Int64\(94\)\) THEN Int64\(12\) \+ Int64\(99\) \- Int64\(\-88\) \* Int64\(\-30\) END, Int64\(37\)\)\) END\), Int64\(7\), \(\- Int64\(69\)\) / Int64\(29\)\)\)\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 91 * - - ( - COALESCE ( + - CASE + - 62 WHEN - COUNT ( * ) * + 82 / + + 19 THEN NULL ELSE - + COALESCE ( + CASE - 9 WHEN MIN ( + 94 ) THEN 12 + + 99 - - 88 * - 30 END, + + 37 ) END, + 7, - + 69 / 29 ) ) AS col2, 30 AS col2 query II rowsort @@ -42587,7 +42587,7 @@ SELECT ALL 78 * - 65 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -115 # Datafusion - Expected - 2052 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(\*\), Int64\(74\) \* Int64\(67\) \+ \(\- count\(\*\)\) \- count\(\*\)\)\) \* Int64\(87\) \+ Int64\(\-26\) \- \(\- Int64\(\-2\)\) AS col2" at position 0 and "Int64\(12\) \+ Int64\(\-34\) \* \(\- nullif\(Int64\(60\), Int64\(35\) \+ \(\- 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 "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(74\) \* Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(87\) \+ Int64\(\-26\) \- \(\- Int64\(\-2\)\) AS col2" at position 0 and "Int64\(12\) \+ Int64\(\-34\) \* \(\- nullif\(Int64\(60\), Int64\(35\) \+ \(\- Int64\(\-43\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( + ( COUNT ( * ) ), 74 * 67 + + - COUNT ( * ) - COUNT ( * ) ) * + 87 + - 26 - - - 2 AS col2, 12 + + - 34 * - NULLIF ( + + 60, + 35 + - - 43 ) col2 query I rowsort @@ -42604,7 +42604,7 @@ SELECT DISTINCT 96 * - 67 AS col0, - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -1727 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(93\), Int64\(27\) \+ count\(\*\)\)\) AS col2" at position 0 and "Int64\(73\) \+ Int64\(\-24\) \* 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 "\(\- nullif\(Int64\(93\), Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(73\) \+ Int64\(\-24\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( 93, ( 27 ) + COUNT ( * ) ) col2, + 73 + + - 24 * 75 AS col2 query I rowsort @@ -43054,7 +43054,7 @@ SELECT ALL 55 / - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(27\)\) \* count\(\*\) \+ Int64\(\-51\) \- Int64\(\-3\) / Int64\(\-9\) 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 "sum\(Int64\(27\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-51\) \- Int64\(\-3\) / Int64\(\-9\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( 27 ) * + COUNT ( * ) + - 51 - - 3 / - 9 AS col0, 61 AS col0 query II rowsort @@ -43640,7 +43640,7 @@ SELECT + 39 * - 83 + + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1509 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ Int64\(36\) \* Int64\(42\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(94\) \+ \(\- 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\(3\) \+ Int64\(36\) \* Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(94\) \+ \(\- Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 + 36 * + 42 * - COUNT ( * ) AS col1, 94 + - ( 47 ) col1 query II rowsort @@ -43674,7 +43674,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\(\*\) AS col2" at position 1 have the 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 @@ -44382,7 +44382,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\(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\(\-97\) END\) AS Int32\) \- Int64\(33\) / count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -44518,7 +44518,7 @@ SELECT 93 * - 68 * 94 * 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-66\) \+ Int64\(17\) 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\(\*\) \* Int64\(\-66\) \+ Int64\(17\) 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 ( * ) * - 66 + + 17 col1, + 6 AS col1 query I rowsort label-8507 @@ -44529,7 +44529,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\(\*\) 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 @@ -44723,7 +44723,7 @@ SELECT + MIN ( - 58 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -1716 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(30\) AS col1" at position 0 and "Int64\(78\) \* \(\- 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\(\*\)\) \* Int64\(30\) AS col1" at position 0 and "Int64\(78\) \* \(\- Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * 30 AS col1, 78 * - + 22 AS col1 query I rowsort @@ -46328,7 +46328,7 @@ SELECT ALL NULLIF ( - COUNT ( + 94 ), - + MAX ( DISTINCT 26 ) ) * 29 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(\-44\)\)\) WHEN Int64\(63\) THEN Int64\(\-67\) WHEN count\(\*\) THEN NULL WHEN CAST\(NULL AS Int32\) \+ count\(Int64\(80\)\) THEN NULL END \* Int64\(59\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(\-44\)\)\) WHEN Int64\(63\) THEN Int64\(\-67\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN CAST\(NULL AS Int32\) \+ count\(Int64\(80\)\) THEN NULL END \* Int64\(59\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - ( + COUNT ( ALL - 44 ) ) WHEN + ( 63 ) THEN - 67 WHEN + COUNT ( * ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) + + COUNT ( 80 ) THEN NULL END * + + 59 AS col1, + 29 AS col1 query I rowsort label-8851 @@ -46485,7 +46485,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\(\*\) 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 @@ -47608,7 +47608,7 @@ SELECT 99 * - + 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(77\), Int64\(34\)\) \+ Int64\(\-66\) AS col0" at position 0 and "Int64\(40\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(77\), Int64\(34\)\) \+ Int64\(\-66\) 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 NULLIF ( 77, + 34 ) + - 66 col0, 40 * - COUNT ( * ) AS col0 query II rowsort label-9100 @@ -48074,7 +48074,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\(\*\) AS col0" at position 1 have 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 @@ -50715,7 +50715,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 cd45bd5..64a5508 100644 --- a/data/sqlite/random/expr/slt_good_78.slt +++ b/data/sqlite/random/expr/slt_good_78.slt @@ -787,7 +787,7 @@ SELECT ALL + NULLIF ( - + 6, + - 90 + + 34 ) + + 66 * - 35 * + + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -110678 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(63\) \* Int64\(48\) \* CASE Int64\(63\) WHEN Int64\(48\) / \(\- nullif\(coalesce\(CASE nullif\(Int64\(39\), Int64\(\-69\)\) WHEN \(\- \(\- nullif\(CASE Int64\(58\) WHEN Int64\(\-4\) \* Int64\(\-22\) \+ count\(\*\) THEN NULL ELSE Int64\(\-87\) END, Int64\(36\) \+ Int64\(2\) \* Int64\(99\) \* Int64\(42\) \- \(\- count\(\*\)\)\)\)\) THEN \(\- count\(\*\)\) WHEN Int64\(\-54\) \+ \(\- max\(Int64\(13\)\)\) THEN NULL END, Int64\(66\) \+ Int64\(78\) \+ Int64\(64\) \+ Int64\(38\) \* Int64\(37\)\), \(\- sum\(Int64\(\-81\)\)\) \- Int64\(\-4\) \+ count\(\*\)\)\) \* min\(Int64\(73\)\) THEN Int64\(\-99\) WHEN CAST\(NULL AS Int32\) \+ Int64\(\-41\) THEN Int64\(72\) ELSE Int64\(\-37\) END \+ Int64\(55\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(63\) \* Int64\(48\) \* CASE Int64\(63\) WHEN Int64\(48\) / \(\- nullif\(coalesce\(CASE nullif\(Int64\(39\), Int64\(\-69\)\) WHEN \(\- \(\- nullif\(CASE Int64\(58\) WHEN Int64\(\-4\) \* Int64\(\-22\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(\-87\) END, Int64\(36\) \+ Int64\(2\) \* Int64\(99\) \* Int64\(42\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-54\) \+ \(\- max\(Int64\(13\)\)\) THEN NULL END, Int64\(66\) \+ Int64\(78\) \+ Int64\(64\) \+ Int64\(38\) \* Int64\(37\)\), \(\- sum\(Int64\(\-81\)\)\) \- Int64\(\-4\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* min\(Int64\(73\)\) THEN Int64\(\-99\) WHEN CAST\(NULL AS Int32\) \+ Int64\(\-41\) THEN Int64\(72\) ELSE Int64\(\-37\) END \+ Int64\(55\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 AS col2, + 63 * + 48 * + CASE 63 WHEN + 48 / - + NULLIF ( + + COALESCE ( CASE + + NULLIF ( + 39, - 69 ) WHEN - - NULLIF ( + CASE + 58 WHEN - 4 * - 22 + COUNT ( * ) THEN NULL ELSE - 87 END, + 36 + + ( 2 ) * 99 * + + 42 - - + COUNT ( * ) ) THEN - COUNT ( * ) WHEN - 54 + - MAX ( + 13 ) THEN NULL END, + 66 + + 78 + + 64 + + 38 * + 37 ), - SUM ( - 81 ) - - 4 + + COUNT ( * ) ) * + MIN ( ALL + ( 73 ) ) THEN - 99 WHEN + CAST ( NULL AS INTEGER ) + - 41 THEN + 72 ELSE - 37 END + 55 * 22 AS col2 query I rowsort @@ -906,7 +906,7 @@ SELECT 88 / - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-32\) AS col2" at position 0 and "Int64\(46\) \+ 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\(\*\) / Int64\(\-32\) AS col2" at position 0 and "Int64\(46\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / - 32 AS col2, 46 + 95 AS col2 query I rowsort @@ -4156,7 +4156,7 @@ SELECT 27 + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(96\) \* \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) / Int64\(50\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(96\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) / Int64\(50\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 AS col1, 96 * ( - CAST ( - COUNT ( * ) AS INTEGER ) ) / + + 50 + 91 AS col1 query I rowsort @@ -6143,7 +6143,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\(\-81\) \+ Int64\(\-87\) \* Int64\(\-71\) \* \(\- count\(\*\)\) \* Int64\(71\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -6452,7 +6452,7 @@ SELECT ALL + 2 * - 74 + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(58\) \+ coalesce\(Int64\(23\), Int64\(36\) \- \(\- count\(\*\)\) \+ Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(58\) \+ coalesce\(Int64\(23\), Int64\(36\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 58 + + COALESCE ( + 23, + 36 - - COUNT ( * ) + + + ( 57 ) ) AS col2 query I rowsort @@ -6528,7 +6528,7 @@ SELECT ALL COUNT ( * ) AS col2, - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -11 -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\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 0 AS col1, - COUNT ( * ) * - - 11 AS col1 query I rowsort label-1240 @@ -7247,7 +7247,7 @@ SELECT - 1 / - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 175 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(1\) \+ Int64\(89\) \+ count\(\*\) \+ Int64\(82\) AS col1" at position 0 and "\(\- CASE CASE Int64\(52\) WHEN \(\- \(\- \(\- count\(\*\)\)\)\) \* \(\- count\(\*\)\) \* nullif\(min\(DISTINCT Int64\(\-69\)\), Int64\(52\) \+ Int64\(\-22\)\) THEN NULL ELSE \(\- count\(\*\)\) \+ \(\- count\(Int64\(14\)\)\) END WHEN \(\- Int64\(\-87\)\) \* Int64\(\-8\) THEN \(\- Int64\(39\)\) WHEN Int64\(\-72\) THEN NULL END\) / Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(1\) \+ Int64\(89\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(82\) AS col1" at position 0 and "\(\- CASE CASE Int64\(52\) WHEN \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(min\(DISTINCT Int64\(\-69\)\), Int64\(52\) \+ Int64\(\-22\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(14\)\)\) END WHEN \(\- Int64\(\-87\)\) \* Int64\(\-8\) THEN \(\- Int64\(39\)\) WHEN Int64\(\-72\) THEN NULL END\) / Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 3 * + 1 + 89 + + + COUNT ( * ) + 82 AS col1, - CASE + CASE 52 WHEN - - ( - COUNT ( * ) ) * ( - + COUNT ( * ) ) * NULLIF ( + MIN ( DISTINCT - 69 ), + 52 + - 22 ) THEN NULL ELSE - COUNT ( * ) + + ( - COUNT ( ALL 14 ) ) END WHEN - - 87 * - 8 THEN - + 39 WHEN - 72 THEN NULL END / + 45 AS col1 query I rowsort label-1378 @@ -7258,7 +7258,7 @@ SELECT DISTINCT - ( ( 9 ) ) * + - 54 + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-84\), Int64\(67\) \* 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 "coalesce\(Int64\(\-84\), Int64\(67\) \* 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 ALL COALESCE ( + ( + - 84 ), + + 67 * COUNT ( * ) ) AS col0, 84 AS col0 query I rowsort @@ -8285,7 +8285,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\(\*\) 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 @@ -8648,7 +8648,7 @@ SELECT DISTINCT + COUNT ( ALL - + 12 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5514 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \- Int64\(30\) \+ max\(Int64\(\-59\)\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \- Int64\(30\) \+ max\(Int64\(\-59\)\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 - + 30 + MAX ( + ( - 59 ) ) * - - 93 AS col2, + CAST ( + - COUNT ( * ) AS INTEGER ) + 49 AS col2 query I rowsort label-1643 @@ -8671,7 +8671,7 @@ SELECT ALL - - 67, + 90 - 58 + - - 40 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\(\*\)\) AS col1" at position 0 and "nullif\(\(\- Int64\(25\)\), 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 "nullif\(\(\- Int64\(25\)\), Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, + NULLIF ( - + 25, + 9 ) AS col1 query I rowsort label-1647 @@ -10446,7 +10446,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\(\*\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -10672,7 +10672,7 @@ SELECT 31 + + 34 + - 8 * - - 32 * 57, 24 * + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 - + COUNT ( * ) col1, 18 AS col1 # Datafusion - Types were automatically converted from: @@ -12747,7 +12747,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\(\*\) AS col0" at position 1 have the same 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 @@ -13000,7 +13000,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\(\*\) 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: @@ -13337,7 +13337,7 @@ SELECT - 61 + - 66 + - 62 AS col1 # 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 "Int64\(47\) AS col1" at position 0 and "Int64\(11\) \+ \(\- \(\- coalesce\(Int64\(\-17\), Int64\(\-6\), count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(11\) \+ \(\- \(\- coalesce\(Int64\(\-17\), Int64\(\-6\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col1, + 11 + - - COALESCE ( - 17, - 6, + + COUNT ( * ) ) AS col1 query I rowsort label-2539 @@ -14874,7 +14874,7 @@ SELECT + - 9 / COUNT ( ALL 73 ) + - + 7 col0, - COUNT ( * ) * + + 47 # 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 "nullif\(\(\- Int64\(72\)\), Int64\(89\) \+ \(\- Int64\(80\)\) \+ Int64\(\-70\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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\(72\)\), Int64\(89\) \+ \(\- Int64\(80\)\) \+ Int64\(\-70\)\) AS col0" at 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 ( - + 72, 89 + - + 80 + - 70 ) AS col0, - COUNT ( * ) AS col0 query I rowsort label-2829 @@ -15343,7 +15343,7 @@ SELECT + 49 * - + 15, 15 AS col2, - ( + SUM ( 79 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(5\) \- Int64\(\-61\) AS col2" at position 0 and "\(\- CASE \(\- \(\- count\(\*\)\)\) WHEN Int64\(\-89\) THEN \(\- Int64\(\-14\)\) \* \(\- Int64\(\-25\)\) \+ \(\- coalesce\(Int64\(\-61\), Int64\(\-36\) \* Int64\(62\)\)\) \* \(\- CAST\(Int64\(31\) AS Int32\)\) \+ Int64\(15\) \* min\(Int64\(72\)\) WHEN Int64\(90\) THEN Int64\(40\) END\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(5\) \- Int64\(\-61\) AS col2" at position 0 and "\(\- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-89\) THEN \(\- Int64\(\-14\)\) \* \(\- Int64\(\-25\)\) \+ \(\- coalesce\(Int64\(\-61\), Int64\(\-36\) \* Int64\(62\)\)\) \* \(\- CAST\(Int64\(31\) AS Int32\)\) \+ Int64\(15\) \* min\(Int64\(72\)\) WHEN Int64\(90\) THEN Int64\(40\) END\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 54 + 5 - - 61 AS col2, - CASE - - COUNT ( * ) WHEN - 89 THEN - - 14 * - - 25 + - COALESCE ( + - 61, - 36 * + 62 ) * - CAST ( + + 31 AS INTEGER ) + 15 * + MIN ( + 72 ) WHEN 90 THEN + 40 END + 4 col2 # Datafusion - Types were automatically converted from: @@ -15583,7 +15583,7 @@ SELECT DISTINCT - COUNT ( * ) / 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 0 -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\(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\(\-20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 AS col1, COUNT ( * ) / + 68 AS col1 query I rowsort label-2962 @@ -16397,7 +16397,7 @@ SELECT 41 * - + 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5248 # Datafusion - Expected - 187 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* count\(\*\) \* Int64\(82\) AS col1" at position 0 and "Int64\(85\) \- \(\- sum\(\(\- Int64\(59\)\)\)\) \+ Int64\(95\) \+ Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(82\) AS col1" at position 0 and "Int64\(85\) \- \(\- sum\(\(\- Int64\(59\)\)\)\) \+ Int64\(95\) \+ Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 64 * + COUNT ( * ) * + 82 col1, + 85 - - SUM ( ALL - + 59 ) + + ( + + 95 ) + + 66 AS col1 query I rowsort @@ -16839,7 +16839,7 @@ SELECT - SUM ( DISTINCT - - NULLIF ( 74, ( - 95 ) + - 66 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- CASE \(\- Int64\(\-23\)\) WHEN Int64\(45\) THEN NULL WHEN Int64\(7\) \* Int64\(5\) \* Int64\(\-51\) \+ \(\- CAST\(Int64\(\-73\) AS Float64\)\) \+ Int64\(\-95\) / \(\- min\(DISTINCT Int64\(74\)\)\) THEN NULL ELSE count\(\*\) END AS col0" at position 0 and "Int64\(16\) \* \(\- 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\(\*\)\) \- CASE \(\- Int64\(\-23\)\) WHEN Int64\(45\) THEN NULL WHEN Int64\(7\) \* Int64\(5\) \* Int64\(\-51\) \+ \(\- CAST\(Int64\(\-73\) AS Float64\)\) \+ Int64\(\-95\) / \(\- min\(DISTINCT Int64\(74\)\)\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 0 and "Int64\(16\) \* \(\- Int64\(\-37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - + CASE - ( + + ( + - 23 ) ) WHEN 45 THEN NULL WHEN + 7 * + + 5 * + - 51 + - CAST ( - 73 AS FLOAT8 ) + - 95 / - MIN ( DISTINCT + ( 74 ) ) THEN NULL ELSE COUNT ( * ) END AS col0, 16 * - - 37 col0 query I rowsort @@ -17726,7 +17726,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\(\*\) 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 @@ -17846,7 +17846,7 @@ SELECT ALL ( + 6 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \- Int64\(\-40\) / \(\- Int64\(82\)\) \* Int64\(89\) AS col1" at position 0 and "coalesce\(Int64\(\-89\), sum\(Int64\(34\)\), \(\- count\(\*\)\) \+ coalesce\(Int64\(63\), count\(\*\), 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\(87\) \- Int64\(\-40\) / \(\- Int64\(82\)\) \* Int64\(89\) AS col1" at position 0 and "coalesce\(Int64\(\-89\), sum\(Int64\(34\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ coalesce\(Int64\(63\), count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 87 - - 40 / - + 82 * ( + 89 ) AS col1, + COALESCE ( - 89, SUM ( + 34 ), - COUNT ( * ) + + COALESCE ( + + 63, + COUNT ( * ), - 81 ) ) AS col1 query I rowsort label-3393 @@ -20057,7 +20057,7 @@ SELECT - 62 * + COUNT ( * ) + - + 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 540 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(14\) \+ Int64\(12\) \* Int64\(10\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(14\) \+ Int64\(12\) \* 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 30 * 14 + 12 * + 10 AS col1, - COUNT ( * ) AS col1 query I rowsort label-3809 @@ -20096,7 +20096,7 @@ SELECT ALL COALESCE ( + 22, + 54 + - - 66, + - 27 + + 93 ) * 49 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* count\(\*\) \+ Int64\(65\) \* Int64\(12\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \* Int64\(12\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) + 65 * 12 AS col1, + 19 AS col1 query I rowsort @@ -20144,7 +20144,7 @@ SELECT ALL 39 * MAX ( DISTINCT + - 89 ) col1 # 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 "count\(\*\) / Int64\(44\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(44\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / + 44 AS col0, 65 AS col0 query I rowsort label-3825 @@ -22952,7 +22952,7 @@ SELECT DISTINCT - 55 - - + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5706 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ CAST\(Int64\(78\) AS Int32\) \- count\(\*\) \+ \(\- max\(Int64\(77\)\)\) \* Int64\(72\) / \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ CAST\(Int64\(78\) AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(Int64\(77\)\)\) \* Int64\(72\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 + + CAST ( 78 AS INTEGER ) - + COUNT ( * ) + - MAX ( + 77 ) * 72 / - COUNT ( * ) AS col0, 93 AS col0 query II rowsort label-4365 @@ -23714,7 +23714,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(89\), \(\- min\(Int64\(87\)\)\)\)\) \+ Int64\(20\) \+ \(\- count\(\*\)\) \* \(\- Int64\(99\)\) \+ Int64\(33\) 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 "\(\- nullif\(Int64\(89\), \(\- min\(Int64\(87\)\)\)\)\) \+ Int64\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(99\)\) \+ Int64\(33\) 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 - + NULLIF ( 89, - MIN ( ALL 87 ) ) + 20 + - COUNT ( * ) * - ( 99 ) + 33 AS col1, 85 AS col1 query I rowsort @@ -23765,7 +23765,7 @@ SELECT 29 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3601 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* count\(\*\) \- Int64\(98\) \* \(\- CAST\(Int64\(\-37\) AS Int32\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(98\) \* \(\- CAST\(Int64\(\-37\) AS Int32\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 25 * + + COUNT ( * ) - + 98 * - CAST ( + - 37 AS INTEGER ) AS col1, 9 AS col1 query I rowsort label-4521 @@ -24615,7 +24615,7 @@ SELECT - + COALESCE ( 59, + + 42 * + - 67 ) * + COUNT ( * ) * MAX ( DISTINCT 13 # Datafusion - Expected - 84 # Datafusion - Expected - -1 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* count\(\*\) / Int64\(84\) \+ Int64\(84\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(84\) \+ 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 + - 50 * COUNT ( * ) / + 84 + + 84 AS col1, ( + - ( + COUNT ( * ) ) ) AS col1, - - CAST ( - 64 AS INTEGER ) AS col2 query II rowsort label-4684 @@ -25481,7 +25481,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\(\*\) 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 @@ -25872,7 +25872,7 @@ SELECT ALL + CAST ( NULLIF ( 2, + + MIN ( DISTINCT 66 ) ) AS INTEGER ), + 69 * + # 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\(\*\)\) 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 query I rowsort @@ -26327,7 +26327,7 @@ SELECT - ( - 7 ) * - 6 * + COUNT ( * ) + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 12355 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(8\) AS col2" at position 0 and "Int64\(\-79\) \* Int64\(53\) \+ \(\- count\(\*\)\) \- Int64\(25\) \+ Int64\(\-2\) \* Int64\(10\) \* Int64\(\-19\) \+ Int64\(71\) \* \(\- Int64\(1\)\) \* Int64\(\-76\) \* 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\(\*\) \* Int64\(8\) AS col2" at position 0 and "Int64\(\-79\) \* Int64\(53\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(25\) \+ Int64\(\-2\) \* Int64\(10\) \* Int64\(\-19\) \+ Int64\(71\) \* \(\- Int64\(1\)\) \* Int64\(\-76\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 8 AS col2, - 79 * 53 + + ( - ( + + COUNT ( * ) ) ) - ( + + 25 ) + - 2 * + 10 * - 19 + + 71 * - + 1 * + + ( + - 76 ) * + + 3 AS col2 query I rowsort label-5009 @@ -27873,7 +27873,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\(\*\) AS col2" at position 1 have the 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 @@ -28029,7 +28029,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\(\*\) AS col1" at position 1 have the same 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 @@ -28566,7 +28566,7 @@ SELECT + 58 * 81 * + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / Int64\(30\) \+ Int64\(\-74\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(51\) \+ coalesce\(\(\- Int64\(14\)\), Int64\(\-9\) \* \(\- Int64\(95\)\) \- Int64\(60\) \* Int64\(\-11\) \* \(\- coalesce\(\(\- Int64\(27\)\), Int64\(\-67\) \* Int64\(64\) \- Int64\(77\) \+ Int64\(51\) \+ Int64\(\-47\) \- \(\- coalesce\(Int64\(11\), Int64\(18\) / \(\- nullif\(Int64\(59\), \(\- Int64\(67\)\) \+ Int64\(61\) \- CAST\(NULL AS Int32\)\)\), Int64\(\-97\)\)\) \* \(\- Int64\(34\)\)\)\) \* count\(\*\) \+ count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / Int64\(30\) \+ Int64\(\-74\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(51\) \+ coalesce\(\(\- Int64\(14\)\), Int64\(\-9\) \* \(\- Int64\(95\)\) \- Int64\(60\) \* Int64\(\-11\) \* \(\- coalesce\(\(\- Int64\(27\)\), Int64\(\-67\) \* Int64\(64\) \- Int64\(77\) \+ Int64\(51\) \+ Int64\(\-47\) \- \(\- coalesce\(Int64\(11\), Int64\(18\) / \(\- nullif\(Int64\(59\), \(\- Int64\(67\)\) \+ Int64\(61\) \- CAST\(NULL AS Int32\)\)\), Int64\(\-97\)\)\) \* \(\- Int64\(34\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 5 / + 30 + + - 74 AS col0, + 16 + 51 + COALESCE ( ( - + 14 ), - 9 * - ( + 95 ) - + 60 * + - 11 * - COALESCE ( - + 27, - 67 * + 64 - 77 + 51 + - 47 - - COALESCE ( + 11, + 18 / - NULLIF ( + 59, - + ( + 67 ) + + 61 - + CAST ( NULL AS INTEGER ) ), - 97 ) * - + 34 ) * COUNT ( * ) + + ( COUNT ( * ) ) ) AS col0 query I rowsort @@ -30257,7 +30257,7 @@ SELECT ALL + 89 / 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-87\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-87\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - CAST ( + 84 AS INTEGER ) AS col2, - 87 + + 88 AS col2 query I rowsort label-5763 @@ -30381,7 +30381,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\(\*\) AS col1" at position 1 have the 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 @@ -30904,7 +30904,7 @@ SELECT + 70 + + MAX ( ALL CAST ( + 80 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- nullif\(Int64\(54\), Int64\(67\)\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- nullif\(Int64\(54\), Int64\(67\)\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - NULLIF ( + + 54, 67 ) AS col0, 97 col0 query II rowsort @@ -31530,7 +31530,7 @@ SELECT ALL MAX ( ALL 21 ) # 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\(\-1\) \+ \(\- Int64\(73\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 ( - 1 ) + - ( 73 ) col1, - COUNT ( * ) AS col1 query I rowsort label-6004 @@ -32166,7 +32166,7 @@ SELECT - 30 / - 92 * - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -4182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(75\) \+ Int64\(14\) / Int64\(1\) AS col1" at position 0 and "Int64\(\-51\) \* 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\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(75\) \+ Int64\(14\) / Int64\(1\) AS col1" at position 0 and "Int64\(\-51\) \* Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - - COUNT ( * ) + + + 75 + + 14 / + 1 AS col1, - 51 * + 82 AS col1 query I rowsort @@ -33112,7 +33112,7 @@ SELECT COUNT ( * ) * - 76 * - - COALESCE ( - 30, 0, - NULLIF ( + SUM ( ALL + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3960 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- count\(\*\)\) \* Int64\(49\) \+ Int64\(\-89\) 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\(79\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(49\) \+ Int64\(\-89\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 * - COUNT ( * ) * + 49 + + - 89 AS col1, 22 AS col1 query II rowsort label-6308 @@ -33480,7 +33480,7 @@ SELECT - - 13 + + 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(85\) \+ CASE Int64\(22\) WHEN count\(\*\) THEN count\(\*\) ELSE NULL END \* Int64\(38\) \- Int64\(2\) AS col0" at position 0 and "sum\(DISTINCT \(\- 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\(8\) \* Int64\(85\) \+ CASE Int64\(22\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END \* Int64\(38\) \- Int64\(2\) AS col0" at position 0 and "sum\(DISTINCT \(\- Int64\(\-63\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 * + 85 + CASE 22 WHEN + COUNT ( * ) THEN + + COUNT ( * ) ELSE NULL END * + + 38 - 2 AS col0, SUM ( DISTINCT - - 63 ) col0 query I rowsort @@ -34157,7 +34157,7 @@ SELECT + ( - ( + 42 ) ) 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ), - COUNT ( * ) query I rowsort @@ -36427,7 +36427,7 @@ SELECT 44 / + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(81\), \(\- Int64\(22\)\), Int64\(\-91\) \- Int64\(20\) \* \(\- CASE \(\- Int64\(\-12\)\) WHEN Int64\(8\) THEN Int64\(46\) ELSE NULL END\) \* count\(\*\) \* \(\- Int64\(10\)\) \* Int64\(71\) \- \(\- Int64\(\-33\)\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-70\) AS Int32\) \+ \(\- CAST\(\(\- Int64\(\-19\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(81\), \(\- Int64\(22\)\), Int64\(\-91\) \- Int64\(20\) \* \(\- CASE \(\- Int64\(\-12\)\) WHEN Int64\(8\) THEN Int64\(46\) ELSE NULL END\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) \* Int64\(71\) \- \(\- Int64\(\-33\)\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-70\) AS Int32\) \+ \(\- CAST\(\(\- Int64\(\-19\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + 81, - + 22, - 91 - 20 * - CASE - - 12 WHEN 8 THEN + + 46 ELSE NULL END * + COUNT ( * ) * - + 10 * 71 - - - 33 ) AS col2, CAST ( + - 70 AS INTEGER ) + ( - CAST ( - ( ( + ( - 19 ) ) ) AS INTEGER ) ) col2 query I rowsort @@ -36602,7 +36602,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / Int64\(\-96\) \* \(\- count\(\*\)\) AS col1" at position 0 and "\(\- min\(DISTINCT \(\- 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\(14\) / Int64\(\-96\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- min\(DISTINCT \(\- Int64\(59\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 14 / - 96 * - COUNT ( * ) AS col1, - MIN ( DISTINCT - + 59 ) AS col1 query I rowsort label-6972 @@ -36722,7 +36722,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\(\*\) AS col1" at position 1 have the 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 @@ -37077,7 +37077,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\(\*\) 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 @@ -37421,7 +37421,7 @@ SELECT + + COUNT ( - 52 ) * - 18 + + 88 col0, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -192 # Datafusion - Expected - -53105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ Int64\(\-93\) AS col0" at position 0 and "Int64\(88\) \* Int64\(9\) \* Int64\(\-67\) \+ Int64\(\-41\) / \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ Int64\(\-93\) AS col0" at position 0 and "Int64\(88\) \* Int64\(9\) \* Int64\(\-67\) \+ Int64\(\-41\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 99 + - 93 AS col0, 88 * 9 * - 67 + + - 41 / - ( ( - COUNT ( * ) ) ) AS col0 query I rowsort @@ -39127,7 +39127,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\(\*\) AS col2" at position 1 have the 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 @@ -39549,7 +39549,7 @@ SELECT ALL 96 * - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(74\) \+ coalesce\(Int64\(\-13\), Int64\(64\) \* Int64\(\-30\), Int64\(17\) \+ Int64\(27\) \+ coalesce\(Int64\(69\), coalesce\(Int64\(99\), Int64\(\-35\) \* Int64\(18\) \+ Int64\(23\), Int64\(3\) \+ \(\- nullif\(Int64\(9\), Int64\(33\) \+ Int64\(6\)\)\) \* Int64\(\-95\)\), Int64\(17\) \* Int64\(5\) \- Int64\(91\), Int64\(43\)\) / Int64\(90\)\) / nullif\(CAST\(NULL AS Int32\) \* Int64\(\-29\) \+ Int64\(10\) \* Int64\(14\), Int64\(48\) \* count\(\*\) \+ CAST\(Int64\(78\) \- Int64\(26\) AS Int32\) \* Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(74\) \+ coalesce\(Int64\(\-13\), Int64\(64\) \* Int64\(\-30\), Int64\(17\) \+ Int64\(27\) \+ coalesce\(Int64\(69\), coalesce\(Int64\(99\), Int64\(\-35\) \* Int64\(18\) \+ Int64\(23\), Int64\(3\) \+ \(\- nullif\(Int64\(9\), Int64\(33\) \+ Int64\(6\)\)\) \* Int64\(\-95\)\), Int64\(17\) \* Int64\(5\) \- Int64\(91\), Int64\(43\)\) / Int64\(90\)\) / nullif\(CAST\(NULL AS Int32\) \* Int64\(\-29\) \+ Int64\(10\) \* Int64\(14\), Int64\(48\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(78\) \- Int64\(26\) AS Int32\) \* Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 96 AS col2, ( 74 ) + + COALESCE ( - 13, 64 * - 30, + 17 + + + 27 + + COALESCE ( + 69, COALESCE ( + 99, - 35 * 18 + 23, 3 + - NULLIF ( 9, 33 + 6 ) * - 95 ), 17 * 5 - 91, + 43 ) / 90 ) / NULLIF ( + CAST ( NULL AS INTEGER ) * - 29 + + 10 * 14, 48 * COUNT ( * ) + + CAST ( 78 - 26 AS INTEGER ) * 86 ) AS col2 query I rowsort label-7538 @@ -40072,7 +40072,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\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(88\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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 @@ -41408,7 +41408,7 @@ SELECT ALL 7 * + COUNT ( * ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 95 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / avg\(Int64\(89\)\) / coalesce\(nullif\(\(\- count\(\*\)\), Int64\(0\)\), Int64\(\-12\) \* Int64\(86\)\) / Int64\(\-22\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-71\) AS col1" at position 0 and "\(\- Int64\(\-95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / avg\(Int64\(89\)\) / coalesce\(nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(0\)\), Int64\(\-12\) \* Int64\(86\)\) / Int64\(\-22\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-71\) AS col1" at position 0 and "\(\- Int64\(\-95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 43 / + AVG ( + 89 ) / COALESCE ( NULLIF ( - + COUNT ( * ), + 0 ), + - 12 * + 86 ) / + - 22 + - CAST ( NULL AS INTEGER ) - + - 71 AS col1, - ( - 95 ) AS col1, + 46 - - 50 - + + 34 AS col0 query II rowsort label-7892 @@ -42209,7 +42209,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\(\*\) AS col0" at position 1 have the 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 @@ -43015,7 +43015,7 @@ SELECT + SUM ( ALL + 36 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 77 -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\(\-81\) \+ Int64\(79\) \+ Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-81\) \+ Int64\(79\) \+ Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 17 AS col2, - COUNT ( * ) + - 81 + + 79 + + 80 AS col2 query I rowsort label-8198 @@ -43720,7 +43720,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\(\*\) AS col2" at position 1 have the 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 @@ -44861,7 +44861,7 @@ SELECT ALL - - 21 AS col1, 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 7877 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col2" at position 0 and "CASE count\(\*\) WHEN coalesce\(CAST\(\(\- sum\(\(\- Int64\(61\)\)\)\) AS Int32\), Int64\(3\), Int64\(\-8\) \- count\(\*\)\) THEN \(\- count\(\*\)\) \* \(\- Int64\(\-93\)\) WHEN \(\- \(\- count\(\*\)\)\) \+ Int64\(93\) THEN NULL ELSE \(\- count\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-97\) \* Int64\(82\) END \+ sum\(Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(CAST\(\(\- sum\(\(\- Int64\(61\)\)\)\) AS Int32\), Int64\(3\), Int64\(\-8\) \- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-93\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(93\) THEN NULL ELSE \(\- count\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-97\) \* Int64\(82\) END \+ sum\(Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 95 AS col2, ( CASE COUNT ( * ) WHEN + COALESCE ( + CAST ( + ( - ( + + SUM ( - + 61 ) ) ) AS INTEGER ), 3, - 8 - + COUNT ( * ) ) THEN - COUNT ( * ) * - - 93 WHEN - - COUNT ( * ) + 93 THEN NULL ELSE + - COUNT ( DISTINCT - + 2 ) * + - 97 * + 82 END ) + + SUM ( - 77 ) AS col2 query I rowsort label-8552 @@ -45506,7 +45506,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\(\*\) 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 @@ -47171,7 +47171,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -2255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / \(\- Int64\(67\)\) \+ Int64\(38\) AS col1" at position 0 and "Int64\(41\) \* 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\(\*\)\) / \(\- Int64\(67\)\) \+ Int64\(38\) AS col1" at position 0 and "Int64\(41\) \* Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) / - + 67 + 38 col1, + 41 * + - 55 AS col1 query I rowsort @@ -47398,7 +47398,7 @@ SELECT ALL - MIN ( DISTINCT 42 ) - + 95 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -85 -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\(\-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\(\-69\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 69 AS col1, COUNT ( * ) * - 85 AS col1 query I rowsort label-9038 @@ -48635,7 +48635,7 @@ SELECT DISTINCT - + NULLIF ( - COUNT ( + - 3 ), + + MIN ( 49 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3773 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-76\) \+ Int64\(\-89\) \* Int64\(41\) \+ \(\- Int64\(49\)\) AS col1" at position 0 and "count\(\*\) \+ \(\- count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(\*\)\) \* count\(\*\) \- count\(\*\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-76\) \+ Int64\(\-89\) \* Int64\(41\) \+ \(\- Int64\(49\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) + - 76 + - 89 * 41 + - ( + 49 ) AS col1, + COUNT ( * ) + - ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * ( - + COUNT ( * ) ) * COUNT ( * ) - + COUNT ( * ) * - 66 AS col1 query II rowsort label-9272 @@ -49325,7 +49325,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\(\*\) 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 @@ -49624,7 +49624,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\(\*\)\)\) AS col1" at position 0 and "Int64\(\-28\) \* count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -49832,7 +49832,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\(\*\) AS col2" at position 1 have the 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 @@ -49908,7 +49908,7 @@ SELECT 27 col2, 61 # 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\(\*\)\) AS col1" at position 0 and "Int64\(33\) \+ \(\- 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\(33\) \+ \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, 33 + - + 9 AS col1 query I rowsort @@ -50554,7 +50554,7 @@ SELECT ALL 94 + + - 73 - - + ( - - 71 ) + + 55 + 37 / + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(24\) \+ nullif\(\(\- Int64\(50\)\), Int64\(37\)\) \+ \(\- \(\- count\(\*\)\)\) / Int64\(31\) \* Int64\(21\) AS col0" at position 0 and "Int64\(43\) \- 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\(6\) \+ Int64\(24\) \+ nullif\(\(\- Int64\(50\)\), Int64\(37\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(31\) \* Int64\(21\) AS col0" at position 0 and "Int64\(43\) \- Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 + 24 + + NULLIF ( - + 50, + 37 ) + - - COUNT ( * ) / + + 31 * + 21 AS col0, + 43 - + 79 AS col0 query I rowsort label-9636 @@ -51439,7 +51439,7 @@ SELECT DISTINCT - + CAST ( 20 AS INTEGER ) - CAST ( - 54 AS INTEGER ) + + 95 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -208 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ Int64\(\-79\) \+ count\(\*\) \* \(\- nullif\(min\(Int64\(93\)\), \(\- count\(Int64\(99\)\)\)\)\) 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 "Int64\(\-36\) \+ Int64\(\-79\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- nullif\(min\(Int64\(93\)\), \(\- count\(Int64\(99\)\)\)\)\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 + - 79 + COUNT ( * ) * - NULLIF ( MIN ( ALL ( 93 ) ), - COUNT ( ALL 99 ) ) AS col1, - 49 AS col1 query I rowsort label-9804 @@ -51921,7 +51921,7 @@ NULL # 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\(\*\)\) AS col1" at position 0 and "count\(\*\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + COUNT ( * ) ) AS col1, + COUNT ( * ) * 89 AS col1 # Datafusion - Datafusion expected results: @@ -52175,7 +52175,7 @@ SELECT ALL NULLIF ( + COUNT ( * ), CAST ( + - 40 AS INTEGER ) + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3432 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-44\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-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 DISTINCT + 78 * - 44 AS col0, - COUNT ( * ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_79.slt b/data/sqlite/random/expr/slt_good_79.slt index daeca2c..3bbaa7b 100644 --- a/data/sqlite/random/expr/slt_good_79.slt +++ b/data/sqlite/random/expr/slt_good_79.slt @@ -508,7 +508,7 @@ SELECT + 1 * - ( + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2301 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-84\) \* \(\- count\(\*\)\) \+ CAST\(\(\- coalesce\(Int64\(51\), Int64\(\-29\)\)\) AS Int32\) AS col2" at position 0 and "count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(\(\- coalesce\(Int64\(51\), Int64\(\-29\)\)\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 28 ) * + - 84 * - COUNT ( * ) + CAST ( - + COALESCE ( 51, - 29 ) AS INTEGER ) AS col2, COUNT ( * ) + - 72 col2 query I rowsort @@ -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\(\*\) AS col1" at position 1 have the 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 @@ -3460,7 +3460,7 @@ SELECT - 2 * + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- 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\(8\) \* \(\- 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 + 8 * - + COUNT ( * ) AS col2, - 12 AS col2 query I rowsort label-655 @@ -4189,7 +4189,7 @@ SELECT 9 col2, - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2513 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(70\) \+ Int64\(7\) AS col1" at position 0 and "Int64\(\-55\) / \(\- max\(Int64\(\-62\)\)\) \+ \(\- count\(\*\)\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(70\) \+ Int64\(7\) AS col1" at position 0 and "Int64\(\-55\) / \(\- max\(Int64\(\-62\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 36 * 70 + + 7 AS col1, - 55 / - + MAX ( + - 62 ) + ( - COUNT ( * ) ) * + - 56 AS col1 query I rowsort label-795 @@ -4748,7 +4748,7 @@ SELECT ALL - 85 + CAST ( + 75 AS INTEGER ) + - 73 * - 45 # 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\(15\) AS col1" at position 0 and "Int64\(70\) \* CASE Int64\(33\) WHEN Int64\(23\) \+ Int64\(\-75\) THEN Int64\(34\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(15\) AS col1" at position 0 and "Int64\(70\) \* CASE Int64\(33\) WHEN Int64\(23\) \+ Int64\(\-75\) THEN Int64\(34\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / 15 AS col1, 70 * + CASE + + 33 WHEN 23 + - 75 THEN + 34 END AS col1 query II rowsort @@ -8291,7 +8291,7 @@ SELECT ALL - - CAST ( + + 5 AS INTEGER ) 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 "min\(Int64\(\-31\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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\(\-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 MIN ( ALL - 31 ) AS col2, - COUNT ( * ) AS col2 query I rowsort label-1579 @@ -12892,7 +12892,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(86\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(86\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 26 AS col0, 86 * - COUNT ( * ) col0 query I rowsort label-2462 @@ -13414,7 +13414,7 @@ SELECT ( - 20 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(59\) / \(\- \(\- \(\- count\(\*\)\)\)\) AS col1" at position 1 have the 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\(59\) / \(\- \(\- \(\- 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, + 59 / - - ( - COUNT ( * ) ) AS col1 query I rowsort label-2563 @@ -14269,7 +14269,7 @@ SELECT + 91 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 0 -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\(\-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\(46\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 46 AS col1, COUNT ( * ) / + - 40 col1 query I rowsort label-2728 @@ -14663,7 +14663,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\(\*\) AS col1" at position 1 have the same 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 @@ -15366,7 +15366,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3952 # Datafusion - Expected - -1411 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(52\)\) \* coalesce\(nullif\(\(\- Int64\(\-76\)\), \(\- Int64\(61\)\)\), \(\- \(\- count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(83\) \* 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 "max\(DISTINCT Int64\(52\)\) \* coalesce\(nullif\(\(\- Int64\(\-76\)\), \(\- Int64\(61\)\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(83\) \* Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( DISTINCT + 52 ) * COALESCE ( NULLIF ( - - 76, - + 61 ), - - COUNT ( * ) ) AS col0, 83 * - 17 AS col0 query I rowsort @@ -16274,7 +16274,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\(\*\) \* 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 @@ -17076,7 +17076,7 @@ SELECT ALL ( 14 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(3\) \* count\(\*\) \* Int64\(27\) \+ \(\- Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(27\) \+ \(\- Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 AS col2, 3 * COUNT ( * ) * + 27 + - + 19 AS col2 query I rowsort label-3266 @@ -17759,7 +17759,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\(\*\) AS col2" at position 1 have the 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 @@ -17927,7 +17927,7 @@ SELECT ALL + CAST ( - NULLIF ( - 73, + COUNT ( * ) * - 82 ) AS INTEGER ) + 80 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "nullif\(Int64\(\-17\), \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "nullif\(Int64\(\-17\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 73 AS col2, + NULLIF ( - 17, - COUNT ( * ) ) col2 query I rowsort @@ -18624,7 +18624,7 @@ SELECT ALL - 82 - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(36\) 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\(\*\) \+ Int64\(36\) 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 ( * ) + + 36 AS col1, 39 AS col1 query I rowsort label-3561 @@ -20670,7 +20670,7 @@ SELECT ALL + 53, 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 84412 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(\-48\) \+ Int64\(68\) \* \(\- Int64\(\-17\)\) \* count\(\*\) \* \(\- Int64\(\-73\)\) \+ Int64\(71\) \- CAST\(Int64\(90\) AS Int32\) / Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(\-48\) \+ Int64\(68\) \* \(\- Int64\(\-17\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-73\)\) \+ Int64\(71\) \- CAST\(Int64\(90\) AS Int32\) / Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 31 AS col1, - 48 + + 68 * - - 17 * COUNT ( * ) * - - 73 + 71 - + CAST ( 90 AS INTEGER ) / - 46 AS col1 query I rowsort label-3955 @@ -20772,7 +20772,7 @@ SELECT ALL 22 * + 30 - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 546 # Datafusion - Expected - -713 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(78\)\) \* count\(\*\) \* Int64\(7\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-89\) \+ 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 "min\(Int64\(78\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(7\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-89\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( + + 78 ) * + COUNT ( * ) * 7 AS col1, + 7 * - 89 + - 90 AS col1 query I rowsort label-3975 @@ -21241,7 +21241,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\(\*\) AS col2" at position 1 have the 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 @@ -21945,7 +21945,7 @@ SELECT 44 * 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2319 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / \(\- count\(\*\)\) \+ Int64\(\-38\) \* Int64\(57\) \+ count\(\*\) \+ \(\- \(\- nullif\(Int64\(\-72\), sum\(Int64\(73\)\) \* max\(Int64\(\-32\)\)\)\)\) 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 "Int64\(82\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-38\) \* Int64\(57\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- nullif\(Int64\(\-72\), sum\(Int64\(73\)\) \* max\(Int64\(\-32\)\)\)\)\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 / - COUNT ( * ) + + - 38 * + + 57 + + COUNT ( * ) + - - NULLIF ( + - 72, + + SUM ( ALL + 73 ) * + MAX ( - 32 ) ) AS col0, 29 AS col0 query II rowsort @@ -22087,7 +22087,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\(\*\) 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 @@ -22172,7 +22172,7 @@ SELECT 75, 21 + 30 + - 6 * COUNT ( * ) AS col1 # 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\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(3\), count\(DISTINCT Int64\(99\)\), Int64\(97\) \* \(\- min\(\(\- \(\- 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 "coalesce\(Int64\(3\), count\(DISTINCT Int64\(99\)\), Int64\(97\) \* \(\- min\(\(\- \(\- Int64\(54\)\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col0, COALESCE ( 3, + + COUNT ( DISTINCT 99 ), 97 * - MIN ( - ( - + 54 ) ) ) AS col0 # Datafusion - Datafusion expected results: @@ -22715,7 +22715,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\(\*\) AS col1" at position 1 have the 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 @@ -22810,7 +22810,7 @@ SELECT DISTINCT 22 * + - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ \(\- \(\- min\(DISTINCT Int64\(98\)\)\)\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(44\) \+ \(\- \(\- CASE Int64\(85\) WHEN \(\- count\(\*\)\) THEN Int64\(16\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(\-47\) THEN Int64\(\-18\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ \(\- \(\- min\(DISTINCT Int64\(98\)\)\)\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(44\) \+ \(\- \(\- CASE Int64\(85\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(16\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(\-47\) THEN Int64\(\-18\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 78 ) + - - MIN ( DISTINCT 98 ) + + 53 AS col1, 44 + - - CASE + 85 WHEN - COUNT ( * ) THEN + 16 WHEN - - CAST ( NULL AS INTEGER ) / - 47 THEN - 18 END AS col1 query I rowsort label-4361 @@ -23320,7 +23320,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\(49\) \+ Int64\(\-12\) \+ \(\- count\(\*\)\) \* \(\- Int64\(86\)\) \* Int64\(\-55\) \* Int64\(90\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -23331,7 +23331,7 @@ SELECT ALL - ( + - 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5818 # Datafusion - Expected - 342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(\*\), Int64\(\-50\) \+ Int64\(73\) \+ \(\- Int64\(\-13\)\)\)\) \* Int64\(15\) \+ Int64\(\-18\) \* Int64\(49\) \+ Int64\(67\) \* \(\- Int64\(\-74\)\) \* \(\- count\(\*\)\) \+ Int64\(37\) AS col2" at position 0 and "Int64\(18\) \* 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 "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-50\) \+ Int64\(73\) \+ \(\- Int64\(\-13\)\)\)\) \* Int64\(15\) \+ Int64\(\-18\) \* Int64\(49\) \+ Int64\(67\) \* \(\- Int64\(\-74\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(37\) AS col2" at position 0 and "Int64\(18\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( + COUNT ( * ), - 50 + + 73 + - - 13 ) * 15 + - 18 * + 49 + + 67 * - - 74 * - COUNT ( * ) + 37 AS col2, 18 * + 19 col2 query III rowsort label-4460 @@ -26106,7 +26106,7 @@ SELECT ALL COUNT ( * ) * + + 55 + - - 25 / - + MAX ( ALL - 55 ) + 48 # Datafusion - Expected - 4 # Datafusion - Expected - 37 # Datafusion - Expected - 50220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) \* Int64\(\-3\) \- \(\- 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-3\) \- \(\- 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 COUNT ( * ) * - COUNT ( * ) * - 3 - - COUNT ( * ) AS col0, 37 AS col0, + 62 * + - ( 54 ) * - 15 query I rowsort label-4985 @@ -28612,7 +28612,7 @@ SELECT CAST ( MIN ( 60 ) AS INTEGER ) * ( + ( + 56 ) ) # 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\(\*\)\) AS col0" at position 0 and "nullif\(Int64\(\-67\), Int64\(7\)\) \+ 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 "nullif\(Int64\(\-67\), Int64\(7\)\) \+ Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col0, NULLIF ( - 67, 7 ) + 21 AS col0 # Datafusion - Datafusion expected results: @@ -29355,7 +29355,7 @@ SELECT - CAST ( - 50 AS INTEGER ) + ( + 74 ) 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\(\*\)\) 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 II rowsort label-5609 @@ -30649,7 +30649,7 @@ SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * - 46 + - + 52 * + + 6 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 59 -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\(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\(44\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + ( + 44 ) col0, + COUNT ( * ) * + 59 col0 query I rowsort @@ -31089,7 +31089,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -4914 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(54\) \* Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(54\) \* Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 * - COUNT ( * ) col1, + 54 * + - 91 AS col1 query I rowsort label-5937 @@ -31792,7 +31792,7 @@ SELECT 91 * 70 / 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 325 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(5\) AS col2" at position 0 and "Int64\(62\) / nullif\(\(\- coalesce\(Int64\(\-66\), avg\(Int64\(\-99\)\) / Int64\(85\) \* Int64\(\-97\) \+ Int64\(\-43\) \- \(\- nullif\(Int64\(78\), nullif\(Int64\(16\), min\(Int64\(15\)\)\) \* \(\- coalesce\(\(\- Int64\(43\)\), Int64\(97\) / count\(DISTINCT Int64\(9\) \+ Int64\(\-67\)\) \+ Int64\(67\), Int64\(97\) \+ Int64\(\-51\)\)\) \+ Int64\(82\)\)\) \- count\(\*\) \* Int64\(15\), Int64\(12\) \+ Int64\(42\), min\(Int64\(20\)\)\)\), Int64\(91\)\) \+ Int64\(83\) \* \(\- CASE \(\- max\(Int64\(65\)\)\) \* Int64\(56\) WHEN Int64\(37\) THEN Int64\(44\) \* \(\- count\(\*\)\) 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\(65\) \* Int64\(5\) AS col2" at position 0 and "Int64\(62\) / nullif\(\(\- coalesce\(Int64\(\-66\), avg\(Int64\(\-99\)\) / Int64\(85\) \* Int64\(\-97\) \+ Int64\(\-43\) \- \(\- nullif\(Int64\(78\), nullif\(Int64\(16\), min\(Int64\(15\)\)\) \* \(\- coalesce\(\(\- Int64\(43\)\), Int64\(97\) / count\(DISTINCT Int64\(9\) \+ Int64\(\-67\)\) \+ Int64\(67\), Int64\(97\) \+ Int64\(\-51\)\)\) \+ Int64\(82\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(15\), Int64\(12\) \+ Int64\(42\), min\(Int64\(20\)\)\)\), Int64\(91\)\) \+ Int64\(83\) \* \(\- CASE \(\- max\(Int64\(65\)\)\) \* Int64\(56\) WHEN Int64\(37\) THEN Int64\(44\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 65 * 5 AS col2, + 62 / + NULLIF ( - ( + COALESCE ( - 66, + AVG ( - 99 ) / + 85 * - 97 + - 43 - - NULLIF ( 78, NULLIF ( 16, + MIN ( 15 ) ) * - COALESCE ( - + 43, + 97 / COUNT ( DISTINCT 9 + - 67 ) + 67, 97 + - 51 ) + + 82 ) - COUNT ( * ) * 15, + 12 + 42, + MIN ( ALL 20 ) ) ), 91 ) + + 83 * - CASE - MAX ( ALL + 65 ) * 56 WHEN 37 THEN + 44 * - COUNT ( * ) ELSE NULL END AS col2 query I rowsort label-6070 @@ -33410,7 +33410,7 @@ SELECT DISTINCT 3 * + 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- sum\(\(\- CASE Int64\(\-42\) WHEN Int64\(42\) THEN nullif\(Int64\(\-26\), Int64\(42\) \+ Int64\(\-50\) \+ Int64\(46\) \* Int64\(\-99\)\) WHEN Int64\(\-69\) THEN Int64\(\-87\) END\)\)\) AS col2" at position 0 and "Int64\(98\) \* \(\- CAST\(CASE count\(\*\) WHEN Int64\(\-63\) THEN \(\- nullif\(Int64\(96\), \(\- Int64\(\-20\)\)\)\) \- Int64\(\-48\) END AS Int32\)\) \* Int64\(\-8\) \* \(\- Int64\(32\)\) \* Int64\(92\) \+ \(\- count\(\*\)\) \+ Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- sum\(\(\- CASE Int64\(\-42\) WHEN Int64\(42\) THEN nullif\(Int64\(\-26\), Int64\(42\) \+ Int64\(\-50\) \+ Int64\(46\) \* Int64\(\-99\)\) WHEN Int64\(\-69\) THEN Int64\(\-87\) END\)\)\) AS col2" at position 0 and "Int64\(98\) \* \(\- CAST\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-63\) THEN \(\- nullif\(Int64\(96\), \(\- Int64\(\-20\)\)\)\) \- Int64\(\-48\) END AS Int32\)\) \* Int64\(\-8\) \* \(\- Int64\(32\)\) \* Int64\(92\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 61 * - SUM ( - + CASE - 42 WHEN + 42 THEN NULLIF ( + - 26, 42 + - 50 + 46 * + - 99 ) WHEN - 69 THEN + + ( - 87 ) END ) AS col2, 98 * - + CAST ( + CASE COUNT ( * ) WHEN + - 63 THEN - NULLIF ( 96, - - 20 ) - - 48 END AS INTEGER ) * + - 8 * - + 32 * 92 + + - COUNT ( * ) + - 38 col2 query I rowsort label-6378 @@ -34005,7 +34005,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -251 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(43\) WHEN Int64\(65\) \* Int64\(22\) \+ \(\- Int64\(62\)\) THEN NULL WHEN Int64\(\-45\) \+ Int64\(54\) \+ Int64\(59\) / Int64\(42\) THEN Int64\(70\) ELSE Int64\(36\) END\) \* Int64\(7\) \+ Int64\(1\) AS col0" at position 0 and "Int64\(\-24\) \+ Int64\(77\) \* \(\- count\(\*\)\) AS col0" at position 1 have 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\(43\) WHEN Int64\(65\) \* Int64\(22\) \+ \(\- Int64\(62\)\) THEN NULL WHEN Int64\(\-45\) \+ Int64\(54\) \+ Int64\(59\) / Int64\(42\) THEN Int64\(70\) ELSE Int64\(36\) END\) \* Int64\(7\) \+ Int64\(1\) AS col0" at position 0 and "Int64\(\-24\) \+ Int64\(77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CASE 43 WHEN 65 * 22 + - ( + 62 ) THEN NULL WHEN - 45 + + 54 + + 59 / 42 THEN 70 ELSE + 36 END * + 7 + 1 AS col0, - 24 + + 77 * - + COUNT ( * ) AS col0 query I rowsort label-6489 @@ -41553,7 +41553,7 @@ SELECT DISTINCT - ( 85 ) # Datafusion - Expected - -1 # Datafusion - Expected - -3481 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(59\) \* 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\(59\) \* Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - COUNT ( * ) ) AS col2, 59 * + ( - 59 ) AS col2, CASE 85 WHEN + NULLIF ( + COUNT ( * ), - 80 * + + 32 + 13 ) + 19 * + 13 * + COUNT ( * ) THEN + 97 * - 63 / + 45 + - 53 + 0 WHEN - 54 + - 81 THEN CASE - + 17 WHEN 81 / - 90 * 56 * + 51 THEN NULL WHEN - ( - NULLIF ( + 61, + 99 + 29 * 46 ) ) THEN NULL ELSE - 44 END ELSE - 7 END / + 25 query I rowsort label-7935 @@ -42102,7 +42102,7 @@ SELECT DISTINCT 83 * + 71 AS col0 # Datafusion - Expected - 72 # Datafusion - Expected - 38 # 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\(\*\)\) 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\(72\) 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 + 72 AS col0, 38 col1, + - COUNT ( * ) col0 query II rowsort @@ -42382,7 +42382,7 @@ SELECT + 49 * + 43 * 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -253 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(11\) AS col1" at position 0 and "Int64\(\-29\) / Int64\(61\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(11\) AS col1" at position 0 and "Int64\(\-29\) / Int64\(61\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 * 11 AS col1, - 29 / + 61 + - + COUNT ( * ) AS col1 query I rowsort @@ -42862,7 +42862,7 @@ SELECT + 92 * 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -88 -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\(\-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\(81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 81 AS col0, COUNT ( * ) + - 89 AS col0 query I rowsort label-8185 @@ -43881,7 +43881,7 @@ SELECT - 71 / 98 * + 71 / - 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1551 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-49\), \(\- count\(\*\)\) \+ Int64\(4\), Int64\(68\) \* Int64\(\-47\) \+ Int64\(16\) \+ \(\- Int64\(92\)\) \* Int64\(\-45\)\) \- Int64\(\-25\) \* \(\- Int64\(\-64\)\) 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 "coalesce\(Int64\(\-49\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(4\), Int64\(68\) \* Int64\(\-47\) \+ Int64\(16\) \+ \(\- Int64\(92\)\) \* Int64\(\-45\)\) \- Int64\(\-25\) \* \(\- Int64\(\-64\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - 49, - ( + + COUNT ( * ) ) + + 4, 68 * - 47 + + 16 + - + 92 * - 45 ) - - 25 * - - 64 col0, + 13 AS col0 query I rowsort label-8379 @@ -44960,7 +44960,7 @@ SELECT 0 + - - 35 - + 14 * + 67 * + 17 # 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\(71\)\) WHEN count\(\(\- Int64\(\-52\)\)\) THEN Int64\(\-62\) \* Int64\(77\) \+ Int64\(\-62\) \- Int64\(\-47\) \+ count\(DISTINCT Int64\(\-95\)\) ELSE NULL END \* Int64\(\-72\) \* Int64\(44\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have 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\(71\)\) WHEN count\(\(\- Int64\(\-52\)\)\) THEN Int64\(\-62\) \* Int64\(77\) \+ Int64\(\-62\) \- Int64\(\-47\) \+ count\(DISTINCT Int64\(\-95\)\) ELSE NULL END \* Int64\(\-72\) \* 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 CASE AVG ( 71 ) WHEN + COUNT ( ALL - - 52 ) THEN - 62 * + 77 + - 62 - + - 47 + COUNT ( DISTINCT - 95 ) ELSE NULL END * + - 72 * 44 col0, - COUNT ( * ) AS col0 query I rowsort label-8587 @@ -45182,7 +45182,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\(\*\) AS col1" at position 1 have the 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 @@ -45905,7 +45905,7 @@ SELECT + 97 * - + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(1\) AS col2" at position 0 and "Int64\(26\) \* \(\- 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\(\*\) \+ Int64\(1\) AS col2" at position 0 and "Int64\(26\) \* \(\- Int64\(\-60\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + 1 AS col2, 26 * - - 60 AS col2 query I rowsort label-8771 @@ -47062,7 +47062,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\(\*\) 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 @@ -48402,7 +48402,7 @@ SELECT ALL 1 - + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(\-38\) \+ \(\- count\(\*\)\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(\-38\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 32 AS col0, - 38 + - COUNT ( * ) * + 53 AS col0 query II rowsort @@ -50489,7 +50489,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\(\*\) AS col0" at position 1 have the 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 @@ -50919,7 +50919,7 @@ SELECT + + COUNT ( * ), + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-86\) \+ Int64\(78\) \+ Int64\(77\) \+ count\(\*\) \* Int64\(61\) / coalesce\(Int64\(39\), \(\- count\(\*\)\), Int64\(\-64\) \* \(\- \(\- max\(\(\- \(\- Int64\(\-48\)\)\)\)\)\)\) 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\(\*\)\) \+ Int64\(\-86\) \+ Int64\(78\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) / coalesce\(Int64\(39\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-64\) \* \(\- \(\- max\(\(\- \(\- Int64\(\-48\)\)\)\)\)\)\) 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 ( * ) + - 86 + 78 + 77 + + COUNT ( * ) * + 61 / + COALESCE ( 39, - COUNT ( * ), + - 64 * - - MAX ( ALL - - ( + - 48 ) ) ) AS col1, + 0 AS col1 query I rowsort @@ -51083,7 +51083,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\(\*\) AS col0" at position 1 have the 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 @@ -51308,7 +51308,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\(\*\) 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 @@ -51608,7 +51608,7 @@ SELECT DISTINCT - 87 + - 89 + 97 + - + 45 + - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-13\) 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\(\*\) \+ Int64\(\-13\) AS col0" at position 0 and "Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + ( - 13 ) AS col0, ( - 2 ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_8.slt b/data/sqlite/random/expr/slt_good_8.slt index bda04a6..93e1e52 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\(\*\) 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 @@ -3005,7 +3005,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\(\*\) AS col1" at position 1 have the 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 @@ -3628,7 +3628,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\(\*\) AS col0" at position 1 have 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 @@ -3778,7 +3778,7 @@ NULL # 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 "nullif\(Int64\(0\), Int64\(73\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \* 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 "nullif\(Int64\(0\), Int64\(73\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + 0, 73 ) AS col1, - COUNT ( * ) * + 37 AS col1 # Datafusion - Types were automatically converted from: @@ -5718,7 +5718,7 @@ SELECT DISTINCT + 71 * + COALESCE ( - 57, - + MAX ( DISTINCT + CAST ( 22 AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66602 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Float64\)\) AS Int32\) AS col0" at position 0 and "\(\- nullif\(\(\- count\(\*\)\), \(\- Int64\(22\)\) \* Int64\(\-60\) \- Int64\(69\) \+ \(\- \(\- coalesce\(\(\- \(\- Int64\(\-3\)\)\), Int64\(5\) \* Int64\(\-55\)\)\)\) \+ \(\- count\(\*\)\)\)\) \* count\(Int64\(68\)\) \* \(\- Int64\(27\)\) \* Int64\(32\) \* Int64\(77\) \- sum\(DISTINCT Int64\(74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Float64\)\) AS Int32\) AS col0" at position 0 and "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(22\)\) \* Int64\(\-60\) \- Int64\(69\) \+ \(\- \(\- coalesce\(\(\- \(\- Int64\(\-3\)\)\), Int64\(5\) \* Int64\(\-55\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* count\(Int64\(68\)\) \* \(\- Int64\(27\)\) \* Int64\(32\) \* Int64\(77\) \- sum\(DISTINCT Int64\(74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + - CAST ( NULL AS FLOAT8 ) AS INTEGER ) AS col0, - NULLIF ( - + COUNT ( * ), - + 22 * - 60 - + 69 + - - COALESCE ( - ( - - 3 ), + 5 * - 55 ) + + - COUNT ( * ) ) * + COUNT ( + 68 ) * - + 27 * 32 * + 77 - + + ( SUM ( DISTINCT + 74 ) ) AS col0 query I rowsort @@ -7207,7 +7207,7 @@ SELECT DISTINCT + - MIN ( ALL + 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "count\(\*\) \* Int64\(57\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(93\) \+ CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(93\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 82 AS col1, COUNT ( * ) * + 57 / - CAST ( NULL AS INTEGER ) * 93 + + CAST ( + - COUNT ( * ) AS INTEGER ) col1 query I rowsort label-1360 @@ -9741,7 +9741,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 179 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ count\(\*\) / Int64\(66\) \+ Int64\(97\) \+ Int64\(\-13\) 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\(95\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(66\) \+ Int64\(97\) \+ Int64\(\-13\) 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 ( 95 ) + COUNT ( * ) / 66 + + ( + + 97 ) + - 13 col0, 63 AS col0 query II rowsort @@ -9840,7 +9840,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ CAST\(Int64\(\-11\) AS Int32\) \+ Int64\(48\) / Int64\(98\) \+ min\(\(\- Int64\(94\)\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-10\)\) WHEN Int64\(\-94\) \+ Int64\(35\) THEN NULL WHEN Int64\(97\) THEN NULL ELSE \(\- count\(\*\)\) \* CAST\(NULL AS Float64\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ CAST\(Int64\(\-11\) AS Int32\) \+ Int64\(48\) / Int64\(98\) \+ min\(\(\- Int64\(94\)\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-10\)\) WHEN Int64\(\-94\) \+ Int64\(35\) THEN NULL WHEN Int64\(97\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Float64\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 + CAST ( - 11 AS INTEGER ) + 48 / 98 + + MIN ( ALL - + 94 ) AS col0, CASE + - ( - 10 ) WHEN - 94 + + + 35 THEN NULL WHEN 97 THEN NULL ELSE - COUNT ( * ) * + CAST ( NULL AS FLOAT8 ) END AS col0 query I rowsort label-1869 @@ -10363,7 +10363,7 @@ SELECT - SUM ( DISTINCT + 61 ) + 8 * - COUNT ( * ) / + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 717 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(31\) \- coalesce\(Int64\(15\), Int64\(\-26\) \- count\(\*\) \+ \(\- count\(\*\)\) \* \(\- Int64\(52\)\) \- \(\- \(\- Int64\(40\)\)\)\) \+ Int64\(46\) \- Int64\(\-67\) \+ \(\- max\(Int64\(\-14\)\)\) \* 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\(44\) AS col2" at position 0 and "Int64\(31\) \- coalesce\(Int64\(15\), Int64\(\-26\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(52\)\) \- \(\- \(\- Int64\(40\)\)\)\) \+ Int64\(46\) \- Int64\(\-67\) \+ \(\- max\(Int64\(\-14\)\)\) \* Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 col2, 31 - + COALESCE ( 15, - 26 - COUNT ( * ) + + - COUNT ( * ) * - + 52 - + ( - ( - + 40 ) ) ) + 46 - + ( + - 67 ) + - MAX ( - 14 ) * + 42 AS col2 query I rowsort @@ -11672,7 +11672,7 @@ SELECT DISTINCT - ( COUNT ( * ) ) + - COUNT ( DISTINCT - - 27 ) + - - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 3248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(97\) \+ \(\- Int64\(65\)\) AS col0" at position 0 and "Int64\(58\) \* 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\(\*\) \+ Int64\(97\) \+ \(\- Int64\(65\)\) AS col0" at position 0 and "Int64\(58\) \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + 97 + - + 65 AS col0, 58 * + 56 AS col0 query I rowsort @@ -12077,7 +12077,7 @@ SELECT + 90 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-58\) WHEN Int64\(98\) THEN NULL ELSE count\(\*\) END\) \* Int64\(\-37\) AS col0" at position 0 and "coalesce\(Int64\(90\), \(\- 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 "\(\- CASE Int64\(\-58\) WHEN Int64\(98\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(\-37\) AS col0" at position 0 and "coalesce\(Int64\(90\), \(\- Int64\(\-66\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CASE - 58 WHEN 98 THEN NULL ELSE COUNT ( * ) END * - 37 col0, + COALESCE ( 90, - ( + - 66 ) ) AS col0 query II rowsort label-2292 @@ -12221,7 +12221,7 @@ SELECT - 84 * - 17 * - 21 # 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\(\-89\) \* Int64\(42\) \* CASE \(\- Int64\(\-6\)\) WHEN Int64\(18\) THEN Int64\(40\) \* Int64\(\-66\) WHEN Int64\(1\) THEN Int64\(16\) / CASE Int64\(\-25\) WHEN CASE Int64\(60\) WHEN Int64\(96\) THEN Int64\(87\) END THEN NULL ELSE Int64\(13\) END \* \(\- count\(\*\)\) ELSE NULL END AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(42\) \* CASE \(\- Int64\(\-6\)\) WHEN Int64\(18\) THEN Int64\(40\) \* Int64\(\-66\) WHEN Int64\(1\) THEN Int64\(16\) / CASE Int64\(\-25\) WHEN CASE Int64\(60\) WHEN Int64\(96\) THEN Int64\(87\) END THEN NULL ELSE Int64\(13\) END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 89 * 42 * + CASE - - 6 WHEN + 18 THEN 40 * - 66 WHEN 1 THEN + 16 / CASE - 25 WHEN + + CASE + + 60 WHEN 96 THEN 87 END THEN NULL ELSE 13 END * - COUNT ( * ) ELSE NULL END col2, ( - 6 ) AS col2 query I rowsort label-2320 @@ -12793,7 +12793,7 @@ SELECT ALL 83 + - 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(14\)\)\) \+ min\(Int64\(\-23\)\) AS col1" at position 0 and "Int64\(\-40\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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\)\)\) \+ min\(Int64\(\-23\)\) 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 + ( - - ( 14 ) ) + + MIN ( ALL + - 23 ) AS col1, - 40 - - COUNT ( * ) AS col1 query I rowsort label-2429 @@ -13001,7 +13001,7 @@ SELECT ALL + + 29 * + 15 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91764 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-36\)\) / \(\- count\(\*\)\) \+ Int64\(63\) \* Int64\(\-26\) \* Int64\(56\) AS col0" at position 0 and "Int64\(8\) / Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-36\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(63\) \* Int64\(\-26\) \* Int64\(56\) AS col0" at position 0 and "Int64\(8\) / Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 36 / + + ( - COUNT ( * ) ) + 63 * - 26 * + 56 col0, + 8 / 96 AS col0 query I rowsort @@ -14214,7 +14214,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\(\*\) AS col1" at position 1 have the 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 @@ -14792,7 +14792,7 @@ SELECT ALL 8 + + + 13 + COUNT ( * ) * ( - - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 4628 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / Int64\(52\) \+ \(\- min\(Int64\(\-74\)\)\) AS col1" at position 0 and "Int64\(52\) \* \(\- \(\- nullif\(Int64\(89\), count\(\*\) \+ CAST\(NULL AS Int32\) \+ Int64\(3\) \* count\(\*\) \- \(\- nullif\(Int64\(16\), Int64\(26\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / Int64\(52\) \+ \(\- min\(Int64\(\-74\)\)\) AS col1" at position 0 and "Int64\(52\) \* \(\- \(\- nullif\(Int64\(89\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- nullif\(Int64\(16\), Int64\(26\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 / + 52 + - MIN ( ALL - 74 ) col1, 52 * + - ( - + NULLIF ( + 89, COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 3 * + COUNT ( * ) - - + NULLIF ( 16, + 26 ) ) ) col1 query I rowsort @@ -15203,7 +15203,7 @@ SELECT + COUNT ( * ) * - 55 * + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-90\), Int64\(\-33\) \* Int64\(\-60\) \* \(\- count\(\*\)\) \* Int64\(\-85\) \- count\(\*\) \+ Int64\(64\) \- \(\- Int64\(6\)\) \* Int64\(\-16\), sum\(DISTINCT CAST\(Int64\(7\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(52\) \+ CAST\(\(\- max\(CAST\(Int64\(73\) AS Int32\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-90\), Int64\(\-33\) \* Int64\(\-60\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-85\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- \(\- Int64\(6\)\) \* Int64\(\-16\), sum\(DISTINCT CAST\(Int64\(7\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(52\) \+ CAST\(\(\- max\(CAST\(Int64\(73\) AS Int32\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - 90, - 33 * - 60 * - COUNT ( * ) * + - 85 - + COUNT ( * ) + 64 - ( - + 6 ) * - 16, + SUM ( DISTINCT + CAST ( + 7 AS INTEGER ) ) ) AS col2, ( 52 ) + + CAST ( - MAX ( + CAST ( + 73 AS INTEGER ) ) AS INTEGER ) AS col2 query I rowsort @@ -15498,7 +15498,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\(\*\) AS col2" at position 1 have the 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 @@ -17736,7 +17736,7 @@ SELECT + 10 / 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) / CASE \(\- count\(\*\)\) WHEN \(\- CAST\(Int64\(10\) AS Int32\)\) THEN \(\- \(\- count\(\*\)\)\) ELSE NULL END AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(10\) AS Int32\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) ELSE NULL END AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 / CASE - COUNT ( * ) WHEN + - CAST ( 10 AS INTEGER ) THEN - - COUNT ( * ) ELSE NULL END AS col1, 83 AS col1 query I rowsort label-3378 @@ -17799,7 +17799,7 @@ SELECT ALL 17 * + 52 + - 31 * + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "\(\- CASE WHEN NULL != count\(\*\) THEN Int64\(80\) / count\(\*\) END\) \+ Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "\(\- CASE WHEN NULL != count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(80\) / count\(Int64\(1\)\) AS count\(\*\) END\) \+ Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 14 AS col0, - CASE WHEN NULL <> + COUNT ( * ) THEN 80 / COUNT ( * ) END + + - 73 col0 # Datafusion - Types were automatically converted from: @@ -18348,7 +18348,7 @@ SELECT - 9 * - 81 - - 9 + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "count\(\*\) \* \(\- \(\- count\(\*\)\)\) \+ nullif\(Int64\(71\), count\(\*\)\) AS col1" at position 1 have the 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\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ nullif\(Int64\(71\), 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 ( * ) * - - COUNT ( * ) + + NULLIF ( 71, COUNT ( * ) ) AS col1 query I rowsort label-3491 @@ -18469,7 +18469,7 @@ SELECT + + SUM ( DISTINCT - 93 ) + - 66 * + + 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) AS col1" at position 0 and "CASE Int64\(45\) WHEN Int64\(57\) / \(\- Int64\(66\)\) / \(\- Int64\(\-23\)\) \+ Int64\(\-89\) \+ Int64\(62\) \* \(\- Int64\(8\)\) THEN Int64\(56\) \* \(\- CASE nullif\(Int64\(\-74\), \(\- CAST\(Int64\(22\) AS Int32\)\) / \(\- avg\(CAST\(NULL AS Float64\) \- Int64\(78\)\)\) \+ Int64\(13\) \* count\(\*\)\) \* Int64\(48\) WHEN Int64\(\-22\) \+ Int64\(\-53\) \* Int64\(23\) \* sum\(Int64\(99\)\) THEN Int64\(\-18\) ELSE Int64\(\-34\) END\) \+ Int64\(\-65\) \* Int64\(58\) WHEN Int64\(7\) \* Int64\(\-77\) THEN NULL WHEN Int64\(\-16\) THEN Int64\(67\) ELSE \(\- CAST\(\(\- max\(DISTINCT Int64\(0\)\)\) AS Int32\)\) \* Int64\(\-46\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) AS col1" at position 0 and "CASE Int64\(45\) WHEN Int64\(57\) / \(\- Int64\(66\)\) / \(\- Int64\(\-23\)\) \+ Int64\(\-89\) \+ Int64\(62\) \* \(\- Int64\(8\)\) THEN Int64\(56\) \* \(\- CASE nullif\(Int64\(\-74\), \(\- CAST\(Int64\(22\) AS Int32\)\) / \(\- avg\(CAST\(NULL AS Float64\) \- Int64\(78\)\)\) \+ Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(48\) WHEN Int64\(\-22\) \+ Int64\(\-53\) \* Int64\(23\) \* sum\(Int64\(99\)\) THEN Int64\(\-18\) ELSE Int64\(\-34\) END\) \+ Int64\(\-65\) \* Int64\(58\) WHEN Int64\(7\) \* Int64\(\-77\) THEN NULL WHEN Int64\(\-16\) THEN Int64\(67\) ELSE \(\- CAST\(\(\- max\(DISTINCT Int64\(0\)\)\) AS Int32\)\) \* Int64\(\-46\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 13 ) AS col1, CASE + 45 WHEN 57 / - + ( + 66 ) / - - 23 + - 89 + + 62 * - + 8 THEN + 56 * - CASE NULLIF ( - 74, - CAST ( 22 AS INTEGER ) / - AVG ( ALL CAST ( NULL AS FLOAT8 ) - 78 ) + 13 * + COUNT ( * ) ) * 48 WHEN - 22 + - 53 * + ( 23 * SUM ( ALL + 99 ) ) THEN - 18 ELSE - 34 END + - 65 * + 58 WHEN 7 * - 77 THEN NULL WHEN - 16 THEN + 67 ELSE - CAST ( - MAX ( DISTINCT 0 ) AS INTEGER ) * - 46 END AS col1 query I rowsort label-3513 @@ -19266,7 +19266,7 @@ SELECT DISTINCT 60, - 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "Int64\(\-11\) \* \(\- count\(\*\)\) \+ 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\(32\) AS col1" at position 0 and "Int64\(\-11\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 32 AS col1, - 11 * + - ( COUNT ( * ) ) + 29 AS col1 query I rowsort label-3665 @@ -20038,7 +20038,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\(\*\) AS col0" at position 1 have the same name\. 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 @@ -20667,7 +20667,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\(\*\) AS col0" at position 1 have the 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 @@ -22634,7 +22634,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\(\*\) AS col0" at position 1 have the 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 @@ -23820,7 +23820,7 @@ SELECT ALL + 76 - + - NULLIF ( + + NULLIF ( 17, + CASE 75 WHEN 19 / + 89 + + CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(11\) \* count\(\*\) \+ max\(DISTINCT 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\(17\) AS col1" at position 0 and "Int64\(11\) \* count\(Int64\(1\)\) AS count\(\*\) \+ max\(DISTINCT Int64\(\-69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 AS col1, + 11 * + COUNT ( * ) + ( MAX ( DISTINCT + - 69 ) ) col1 query I rowsort @@ -24525,7 +24525,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ coalesce\(Int64\(47\), \(\- Int64\(0\)\)\) \+ \(\- \(\- 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 "Int64\(\-76\) \+ coalesce\(Int64\(47\), \(\- Int64\(0\)\)\) \+ \(\- \(\- 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 - 76 + + COALESCE ( 47, - - 0 ) + - - COUNT ( * ) AS col1, 4 AS col1 query I rowsort @@ -25484,7 +25484,7 @@ SELECT - SUM ( ALL 11 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -75 -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\(\-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\(74\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 74 AS col2, COUNT ( * ) * - 75 AS col2 query I rowsort label-4845 @@ -26768,7 +26768,7 @@ SELECT ALL CASE + 39 WHEN + 38 THEN + - COUNT ( * ) WHEN 4 - 23 THEN + + 43 + - # 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\(\*\)\) AS col1" at position 0 and "Int64\(\-9\) / 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\(\-9\) / Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, - 9 / + 78 AS col1 query I rowsort label-5089 @@ -26987,7 +26987,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\(\*\) 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 @@ -27444,7 +27444,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -225 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / Int64\(73\) \* Int64\(55\) \+ nullif\(Int64\(15\), Int64\(58\) / Int64\(60\) \+ Int64\(80\)\) \* Int64\(\-15\) AS col0" at position 0 and "Int64\(\-25\) \* Int64\(82\) / \(\- CAST\(nullif\(Int64\(\-21\), Int64\(12\) \+ Int64\(46\) \* count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / Int64\(73\) \* Int64\(55\) \+ nullif\(Int64\(15\), Int64\(58\) / Int64\(60\) \+ Int64\(80\)\) \* Int64\(\-15\) AS col0" at position 0 and "Int64\(\-25\) \* Int64\(82\) / \(\- CAST\(nullif\(Int64\(\-21\), Int64\(12\) \+ Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 / + 73 * 55 + + NULLIF ( 15, 58 / + 60 + 80 ) * - 15 AS col0, - 25 * 82 / - CAST ( NULLIF ( - 21, 12 + + 46 * + COUNT ( * ) ) AS INTEGER ) AS col0 query II rowsort label-5216 @@ -28039,7 +28039,7 @@ SELECT ALL + 52 * - 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 128191 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(4\)\) \* \(\- Int64\(61\)\) \* \(\- Int64\(\-79\)\) \+ Int64\(66\) \* Int64\(38\) \* Int64\(59\) \- Int64\(\-90\) \+ Int64\(49\) \+ Int64\(14\) \* Int64\(\-46\) AS col1" at position 0 and "nullif\(count\(\*\), Int64\(\-23\) \* Int64\(\-66\) \- Int64\(54\)\) \* 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 "max\(Int64\(4\)\) \* \(\- Int64\(61\)\) \* \(\- Int64\(\-79\)\) \+ Int64\(66\) \* Int64\(38\) \* Int64\(59\) \- Int64\(\-90\) \+ Int64\(49\) \+ Int64\(14\) \* Int64\(\-46\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-23\) \* Int64\(\-66\) \- Int64\(54\)\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( 4 ) * - ( + 61 ) * - - 79 + + + 66 * + ( + + 38 ) * + + 59 - - 90 + 49 + 14 * - 46 AS col1, NULLIF ( + COUNT ( * ), - 23 * - 66 - 54 ) * 86 AS col1 query I rowsort label-5328 @@ -28288,7 +28288,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - -196264 -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\(81\) \- \(\- nullif\(Int64\(84\), Int64\(\-52\) \- Int64\(84\) \- Int64\(\-42\) \* \(\- \(\- count\(\*\)\)\)\)\) \+ Int64\(30\) \+ \(\- Int64\(38\)\) \* Int64\(55\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\) \- \(\- nullif\(Int64\(84\), Int64\(\-52\) \- Int64\(84\) \- Int64\(\-42\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \+ Int64\(30\) \+ \(\- Int64\(38\)\) \* Int64\(55\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 89 col0, COUNT ( * ) + 81 - - ( + + NULLIF ( 84, - 52 - 84 - + - 42 * - ( - COUNT ( * ) ) ) ) + + 30 + - + 38 * + + 55 * + 94 AS col0 query I rowsort label-5376 @@ -28758,7 +28758,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\(\*\)\) 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 label-5466 @@ -29821,7 +29821,7 @@ SELECT - + 16 + + ( 22 ) + 17 * + MAX ( ALL 10 ) * + COUNT ( * ) + + 32 * - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(84\) \+ 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\(84\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col0, 84 + + + 86 AS col0 query I rowsort label-5668 @@ -30948,7 +30948,7 @@ SELECT DISTINCT 51, + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \- Int64\(39\) \+ Int64\(\-76\) \+ Int64\(63\) AS col0" at position 0 and "Int64\(98\) \- Int64\(32\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(39\) \+ Int64\(\-76\) \+ Int64\(63\) AS col0" at position 0 and "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 78 - 39 + - 76 + 63 AS col0, ( + + 98 ) - 32 * - - COUNT ( * ) AS col0 query I rowsort label-5883 @@ -32641,7 +32641,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\(\*\) 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 @@ -33160,7 +33160,7 @@ SELECT 23 * + + ( 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 356 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(5\) \- \(\- count\(\*\)\) AS col2" at position 0 and "max\(Int64\(16\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(5\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(Int64\(16\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * + 5 - - ( + COUNT ( * ) ) AS col2, MAX ( + 16 ) * 0 AS col2 query II rowsort label-6301 @@ -34451,7 +34451,7 @@ SELECT + COUNT ( - + 99 ) + + 21 - + 41 * - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1232 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(88\) AS col0" at position 0 and "count\(\*\) \* \(\- nullif\(\(\- Int64\(42\)\), \(\- \(\- nullif\(Int64\(48\), Int64\(71\)\)\)\) \+ 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\(14\) \* Int64\(88\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- nullif\(\(\- Int64\(42\)\), \(\- \(\- nullif\(Int64\(48\), Int64\(71\)\)\)\) \+ Int64\(42\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 14 * 88 col0, + COUNT ( * ) * + - NULLIF ( - + 42, - - NULLIF ( + 48, 71 ) + 42 ) AS col0 query I rowsort @@ -34478,7 +34478,7 @@ SELECT - 86 AS col1, + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) / Int64\(56\) AS col2" at position 0 and "Int64\(26\) \- \(\- count\(\*\)\) \* 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\(\*\)\)\) / Int64\(56\) AS col2" at position 0 and "Int64\(26\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - ( - COUNT ( * ) ) ) / 56 col2, 26 - - ( COUNT ( * ) ) * - 39 AS col2 query I rowsort @@ -34537,7 +34537,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\(\*\)\) AS col1" at position 0 and "Int64\(\-35\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-91\) \* \(\- Int64\(\-63\)\) \* avg\(nullif\(Int64\(8\), Int64\(13\)\)\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-35\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-91\) \* \(\- Int64\(\-63\)\) \* avg\(nullif\(Int64\(8\), Int64\(13\)\)\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col1, - 35 * - CAST ( NULL AS INTEGER ) * - 91 * - - 63 * AVG ( + NULLIF ( 8, 13 ) ) + + 12 AS col1 query I rowsort label-6567 @@ -34996,7 +34996,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* \(\- 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\(47\) \* \(\- 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 + 47 * - + COUNT ( * ) AS col2, + 34 col2 query I rowsort label-6656 @@ -35503,7 +35503,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-40\)\) \+ Int64\(\-34\) \* CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-40\)\) \+ Int64\(\-34\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( ALL - 40 ) + - 34 * + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, 79 AS col0 query I rowsort @@ -36421,7 +36421,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\(\*\) AS col0" at position 1 have the 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 @@ -37655,7 +37655,7 @@ SELECT - 53 AS col2, MIN ( + + 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(\-60\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(\-60\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 AS col0, - 60 + - COUNT ( * ) AS col0 query I rowsort label-7160 @@ -37752,7 +37752,7 @@ SELECT ALL + 39 AS col2, 72 * - - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "nullif\(Int64\(\-19\), coalesce\(\(\- Int64\(\-43\)\), Int64\(98\), 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 "Int64\(26\) AS col2" at position 0 and "nullif\(Int64\(\-19\), coalesce\(\(\- Int64\(\-43\)\), Int64\(98\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-81\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 26 AS col2, + NULLIF ( - 19, COALESCE ( - - 43, + 98, COUNT ( * ) - - 81 ) ) AS col2 query I rowsort label-7178 @@ -38407,7 +38407,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\(\*\) 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 @@ -39300,7 +39300,7 @@ SELECT ALL - 72 * - 66 * - + 75 * 8 AS col1 # Datafusion - Expected - 89 # Datafusion - Expected - 91 # Datafusion - Expected - -1672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 1 and "\(\- max\(DISTINCT Int64\(\-9\)\)\) \* Int64\(90\) \+ Int64\(48\) \+ CAST\(min\(Int64\(75\)\) AS Int32\) \+ Int64\(84\) \* \(\- max\(Int64\(31\)\)\) \+ \(\- count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 1 and "\(\- max\(DISTINCT Int64\(\-9\)\)\) \* Int64\(90\) \+ Int64\(48\) \+ CAST\(min\(Int64\(75\)\) AS Int32\) \+ Int64\(84\) \* \(\- max\(Int64\(31\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 89, + 91 AS col1, - + MAX ( DISTINCT - 9 ) * + 90 + 48 + + CAST ( + MIN ( 75 ) AS INTEGER ) + 84 * - MAX ( + 31 ) + + - COUNT ( * ) AS col1 query I rowsort label-7474 @@ -39783,7 +39783,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\(\*\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -40246,7 +40246,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\(\*\) AS col0" at position 1 have the 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 @@ -40587,7 +40587,7 @@ SELECT DISTINCT - ( - COUNT ( * ) ) / 37 + + NULLIF ( + + MIN ( DISTINCT - 87 ), # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) / Int64\(\-95\) \* nullif\(Int64\(85\), Int64\(54\) \+ Int64\(40\)\) \+ nullif\(\(\- Int64\(29\)\), avg\(Int64\(32\)\) \* Int64\(56\) \* \(\- Int64\(\-47\)\) \* \(\- Int64\(41\)\) \+ Int64\(14\) \* Int64\(87\) \+ \(\- count\(\*\)\) \+ \(\- nullif\(Int64\(\-10\), \(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-76\) \+ \(\- count\(\*\)\) \* Int64\(\-40\)\)\)\) \+ Int64\(79\) \+ Int64\(\-39\) \- Int64\(20\) \- Int64\(3\) \- Int64\(69\) \* Int64\(\-2\)\)\) \+ Int64\(\-5\) \+ Int64\(3\) \+ Int64\(75\)\) \- max\(Int64\(\-23\)\) / Int64\(\-52\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) / Int64\(\-95\) \* nullif\(Int64\(85\), Int64\(54\) \+ Int64\(40\)\) \+ nullif\(\(\- Int64\(29\)\), avg\(Int64\(32\)\) \* Int64\(56\) \* \(\- Int64\(\-47\)\) \* \(\- Int64\(41\)\) \+ Int64\(14\) \* Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- nullif\(Int64\(\-10\), \(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-76\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-40\)\)\)\) \+ Int64\(79\) \+ Int64\(\-39\) \- Int64\(20\) \- Int64\(3\) \- Int64\(69\) \* Int64\(\-2\)\)\) \+ Int64\(\-5\) \+ Int64\(3\) \+ Int64\(75\)\) \- max\(Int64\(\-23\)\) / Int64\(\-52\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 84 / - 95 * + NULLIF ( + 85, 54 + 40 ) + + NULLIF ( - + 29, AVG ( ALL 32 ) * 56 * - - 47 * - + 41 + + + 14 * + 87 + - COUNT ( * ) + + - NULLIF ( - 10, - - COALESCE ( - - CAST ( NULL AS INTEGER ), + - 76 + - COUNT ( * ) * - 40 ) + 79 + - 39 - 20 - + 3 - 69 * - 2 ) + - 5 + + 3 + + 75 ) - + MAX ( + - 23 ) / - 52 AS col2, 85 AS col2 query I rowsort @@ -40954,7 +40954,7 @@ SELECT 37 * - MAX ( + 74 ) * + - COALESCE ( + 59, - 65 ) + - 10 + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "count\(\*\) \+ \(\- \(\- count\(\*\)\)\) \* 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\(51\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 51 AS col1, COUNT ( * ) + - - COUNT ( * ) * - 41 AS col1 query I rowsort @@ -41134,13 +41134,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\(\*\) AS col0" at position 1 have the 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\(\*\) AS col2" at position 1 have the 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 @@ -43613,7 +43613,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\(\*\) AS col0" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) \+ count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -46542,7 +46542,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 1555 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(62\) \* Int64\(66\) \+ \(\- Int64\(39\)\) \+ \(\- \(\- count\(\*\)\)\) \- Int64\(49\) / count\(\*\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(62\) \* Int64\(66\) \+ \(\- Int64\(39\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(49\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 AS col2, 62 * + 66 + - + 39 + - - COUNT ( * ) - 49 / COUNT ( * ) * 51 AS col2 query I rowsort @@ -46977,7 +46977,7 @@ SELECT 23 + COUNT ( * ) # 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\(\*\) \* \(\- coalesce\(\(\- count\(\*\)\), Int64\(67\) \- Int64\(1\) \* Int64\(14\), Int64\(6\) \- 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\(93\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(67\) \- Int64\(1\) \* Int64\(14\), Int64\(6\) \- Int64\(\-40\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 93 AS col1, COUNT ( * ) * - COALESCE ( + - COUNT ( * ), + 67 - 1 * ( 14 ), 6 - - 40 ) AS col1 query I rowsort @@ -47013,7 +47013,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\(\*\) AS col2" at position 1 have the 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 @@ -48683,7 +48683,7 @@ SELECT DISTINCT + 20 * 73 # Datafusion - Expected - -1 # Datafusion - Expected - -3910 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(\-85\) AS col2" at position 1 and "\(\- CASE CAST\(Int64\(68\) AS Int32\) WHEN count\(\*\) \* min\(Int64\(\-12\)\) THEN NULL WHEN \(\- Int64\(65\)\) THEN Int64\(\-14\) \* \(\- Int64\(\-10\)\) \* Int64\(8\) \- Int64\(84\) END\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(\-85\) AS col2" at position 1 and "\(\- CASE CAST\(Int64\(68\) AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(\-12\)\) THEN NULL WHEN \(\- Int64\(65\)\) THEN Int64\(\-14\) \* \(\- Int64\(\-10\)\) \* Int64\(8\) \- Int64\(84\) END\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ), + 46 * - 85 AS col2, - CASE CAST ( + 68 AS INTEGER ) WHEN + COUNT ( * ) * + MIN ( - 12 ) THEN NULL WHEN - + 65 THEN ( + - 14 ) * - - 10 * + 8 - 84 END col2 query I rowsort label-9256 @@ -49661,7 +49661,7 @@ SELECT ALL COUNT ( ALL + - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -127 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-71\) \+ Int64\(\-56\) 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\(\*\) \* Int64\(\-71\) \+ Int64\(\-56\) 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 ( * ) * - 71 + - 56 AS col1, + 56 AS col1 query I rowsort label-9437 @@ -52235,7 +52235,7 @@ SELECT COUNT ( * ) + - - 6 # Datafusion - Expected - 2 # Datafusion - Expected - 34 # Datafusion - Expected - -136803 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 1 and "Int64\(\-49\) \+ Int64\(\-2\) \+ \(\- \(\- Int64\(21\)\)\) \* \(\- nullif\(CAST\(Int64\(74\) AS Int32\), \(\- sum\(Int64\(22\)\)\) \* \(\- count\(\*\)\) \+ CAST\(coalesce\(Int64\(40\), Int64\(54\) \+ Int64\(\-30\)\) \+ Int64\(17\) AS Int32\) \* Int64\(\-46\)\)\) \* Int64\(88\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 1 and "Int64\(\-49\) \+ Int64\(\-2\) \+ \(\- \(\- Int64\(21\)\)\) \* \(\- nullif\(CAST\(Int64\(74\) AS Int32\), \(\- sum\(Int64\(22\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(coalesce\(Int64\(40\), Int64\(54\) \+ Int64\(\-30\)\) \+ Int64\(17\) AS Int32\) \* Int64\(\-46\)\)\) \* Int64\(88\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 2 AS col2, + 34 AS col1, - 49 + - 2 + + - ( - + 21 ) * - NULLIF ( + CAST ( 74 AS INTEGER ), - SUM ( 22 ) * - COUNT ( * ) + CAST ( ( COALESCE ( + 40, 54 + - 30 ) ) + + 17 AS INTEGER ) * - 46 ) * 88 col1 query I rowsort @@ -52383,7 +52383,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\(\*\) 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 269310c..2d3f922 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\(\*\) 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 @@ -7339,7 +7339,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(21\) \* \(\- count\(\*\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-99\) AS col1" at position 0 and "coalesce\(Int64\(47\), Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-99\) AS col1" at position 0 and "coalesce\(Int64\(47\), Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 / 21 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + - 99 AS col1, COALESCE ( + 47, 61 ) AS col1 query I rowsort @@ -7568,7 +7568,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\(\*\) 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 @@ -8050,7 +8050,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -610 # Datafusion - Expected - -4725 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-19\) \- count\(\*\) \- Int64\(\-18\) AS col1" at position 0 and "Int64\(50\) \* \(\- count\(\*\)\) \* Int64\(94\) \+ 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\(33\) \* Int64\(\-19\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-18\) AS col1" at position 0 and "Int64\(50\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(94\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 33 * - 19 - + COUNT ( * ) - - 18 AS col1, 50 * + ( + - ( COUNT ( * ) ) ) * 94 + - 25 AS col1 query I rowsort label-1537 @@ -8107,7 +8107,7 @@ SELECT MAX ( - CAST ( 57 AS INTEGER ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1610 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* max\(Int64\(32\)\) \+ Int64\(10\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\) \* max\(Int64\(32\)\) \+ 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 50 * MAX ( ALL 32 ) + + 10 AS col1, - COUNT ( * ) AS col1 query I rowsort label-1547 @@ -8740,7 +8740,7 @@ SELECT + - 34 + - 22 / - ( - - 14 ) # Datafusion - Expected - 51 # Datafusion - Expected - 1 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(\*\), CASE CAST\(NULL AS Int32\) WHEN Int64\(9\) \* Int64\(82\) \+ \(\- Int64\(14\)\) THEN Int64\(\-91\) END\) AS col1" at position 1 and "Int64\(61\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(1\)\) AS count\(\*\), CASE CAST\(NULL AS Int32\) WHEN Int64\(9\) \* Int64\(82\) \+ \(\- Int64\(14\)\) THEN Int64\(\-91\) END\) AS col1" at position 1 and "Int64\(61\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 51 AS col0, NULLIF ( + COUNT ( * ), + CASE CAST ( NULL AS INTEGER ) WHEN + ( 9 ) * 82 + ( - + 14 ) THEN - 91 END ) AS col1, + 61 AS col1 query II rowsort @@ -11106,7 +11106,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\(\*\) AS col0" at position 1 have the 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 @@ -12842,7 +12842,7 @@ SELECT ALL ( 86 ) 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\(\*\)\) 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 @@ -13833,7 +13833,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\(\*\) AS col1" at position 0 and "\(\- CASE Int64\(8\) WHEN \(\- count\(\*\)\) \* Int64\(40\) \+ nullif\(Int64\(18\), Int64\(59\) \+ Int64\(86\)\) THEN \(\- Int64\(49\)\) ELSE \(\- 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 @@ -14035,7 +14035,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\(\*\) AS col2" at position 1 have the 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 @@ -14623,7 +14623,7 @@ SELECT 87 AS col1, + 54 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 col1" at position 0 and "nullif\(Int64\(1\), \(\- count\(\*\)\) \* Int64\(\-49\) \* 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\(0\) AS col1" at position 0 and "nullif\(Int64\(1\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-49\) \* Int64\(\-20\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 0 AS col1, + NULLIF ( 1, - COUNT ( * ) * + - 49 * - 20 ) AS col1 query II rowsort label-2789 @@ -15789,7 +15789,7 @@ SELECT ( 0 ) + - + 21 - COUNT ( * ) / 2 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(70\) AS Int32\)\)\) AS col0" at position 0 and "count\(\*\) \* CASE WHEN NULL != Int64\(49\) THEN NULL ELSE Int64\(\-46\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(70\) AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE WHEN NULL != Int64\(49\) THEN NULL ELSE Int64\(\-46\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( 70 AS INTEGER ) AS col0, COUNT ( * ) * CASE WHEN NULL <> 49 THEN NULL ELSE - 46 END AS col0 # Datafusion - Datafusion expected results: @@ -16194,7 +16194,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\(\*\) AS col0" at position 1 have the 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 @@ -18689,7 +18689,7 @@ SELECT - 98 / + + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5820 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(62\), \(\- \(\- coalesce\(Int64\(75\), Int64\(\-59\) \+ \(\- count\(\*\)\)\)\)\) / count\(\*\) \- Int64\(83\)\) \* Int64\(95\) \+ Int64\(\-70\) AS col1" at position 0 and "Int64\(34\) \- 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 "nullif\(Int64\(62\), \(\- \(\- coalesce\(Int64\(75\), Int64\(\-59\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(83\)\) \* Int64\(95\) \+ Int64\(\-70\) AS col1" at position 0 and "Int64\(34\) \- Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( 62, - - COALESCE ( 75, + - 59 + - COUNT ( * ) ) / + COUNT ( * ) - 83 ) * + 95 + - 70 AS col1, + 34 - + 98 AS col1 query I rowsort label-3563 @@ -19706,7 +19706,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\(\*\) AS col1" at position 1 have the 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 @@ -21233,7 +21233,7 @@ NULL # Datafusion - Expected - 446 # Datafusion - Expected - 11 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- Int64\(\-74\)\) \+ Int64\(55\) \+ Int64\(95\) AS col0" at position 0 and "\(\- \(\- count\(\*\)\)\) \* \(\- 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\(4\) \* \(\- Int64\(\-74\)\) \+ Int64\(55\) \+ Int64\(95\) AS col0" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 4 * - - 74 + + 55 + + 95 col0, 11, - - COUNT ( * ) * - COUNT ( * ) AS col0 query I rowsort label-4055 @@ -21244,7 +21244,7 @@ SELECT DISTINCT - 29 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(\*\) \+ Int64\(\-33\) \+ \(\- nullif\(\(\- Int64\(72\)\), Int64\(41\)\)\) / Int64\(\-58\) \+ Int64\(53\) AS col2" at position 0 and "Int64\(7\) / \(\- 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) \+ \(\- nullif\(\(\- Int64\(72\)\), Int64\(41\)\)\) / Int64\(\-58\) \+ Int64\(53\) AS col2" at position 0 and "Int64\(7\) / \(\- Int64\(60\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * COUNT ( * ) + - 33 + - NULLIF ( - + 72, + + 41 ) / ( + - 58 ) + 53 col2, 7 / - + 60 AS col2 query I rowsort @@ -21438,7 +21438,7 @@ SELECT DISTINCT ( - 35 ) + + 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(17\) / Int64\(55\) AS col1" at position 0 and "CASE Int64\(2\) WHEN nullif\(CASE \(\- Int64\(\-64\)\) WHEN Int64\(23\) THEN NULL WHEN Int64\(67\) THEN \(\- coalesce\(Int64\(\-25\), count\(Int64\(83\)\)\)\) \* Int64\(62\) WHEN Int64\(16\) \- min\(Int64\(58\)\) / count\(\*\) THEN Int64\(51\) ELSE NULL END, Int64\(\-68\)\) THEN Int64\(42\) ELSE NULL END \- Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(17\) / Int64\(55\) AS col1" at position 0 and "CASE Int64\(2\) WHEN nullif\(CASE \(\- Int64\(\-64\)\) WHEN Int64\(23\) THEN NULL WHEN Int64\(67\) THEN \(\- coalesce\(Int64\(\-25\), count\(Int64\(83\)\)\)\) \* Int64\(62\) WHEN Int64\(16\) \- min\(Int64\(58\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(51\) ELSE NULL END, Int64\(\-68\)\) THEN Int64\(42\) ELSE NULL END \- Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 + + 17 / 55 AS col1, CASE + + 2 WHEN + + NULLIF ( ( CASE - - 64 WHEN 23 THEN NULL WHEN + 67 THEN - + COALESCE ( - 25, + + COUNT ( + + 83 ) ) * + 62 WHEN 16 - MIN ( ALL 58 ) / + COUNT ( * ) THEN + 51 ELSE NULL END ), - 68 ) THEN + ( 42 ) ELSE NULL END - + 36 AS col1 query I rowsort label-4095 @@ -21523,7 +21523,7 @@ SELECT ALL + 82 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(47\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col1, 47 + + - COUNT ( * ) AS col1 query I rowsort @@ -21589,7 +21589,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\(\*\) 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 @@ -21742,7 +21742,7 @@ SELECT + ( - + ( - - 63 ) ) + + - 7 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 414 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(46\) AS col1" at position 0 and "coalesce\(CASE \(\- count\(\*\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- count\(\*\)\) \+ \(\- \(\- coalesce\(Int64\(54\), Int64\(43\) \- \(\- Int64\(62\)\) \* Int64\(\-72\)\)\)\) WHEN Int64\(31\) \* \(\- Int64\(4\)\) \* \(\- Int64\(17\)\) \* CAST\(NULL AS Int32\) \+ Int64\(12\) THEN Int64\(\-14\) \+ Int64\(4\) END, Int64\(\-27\)\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(46\) AS col1" at position 0 and "coalesce\(CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- coalesce\(Int64\(54\), Int64\(43\) \- \(\- Int64\(62\)\) \* Int64\(\-72\)\)\)\) WHEN Int64\(31\) \* \(\- Int64\(4\)\) \* \(\- Int64\(17\)\) \* CAST\(NULL AS Int32\) \+ Int64\(12\) THEN Int64\(\-14\) \+ Int64\(4\) END, Int64\(\-27\)\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 9 * 46 col1, + COALESCE ( CASE + - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + - ( - + COALESCE ( + 54, + 43 - - + 62 * - 72 ) ) WHEN 31 * + - ( + + 4 ) * - + 17 * + CAST ( NULL AS INTEGER ) + 12 THEN - 14 + 4 END, - 27 ) + ( 22 ) AS col1 query I rowsort label-4152 @@ -21981,7 +21981,7 @@ SELECT ALL + - CAST ( 67 AS INTEGER ) # 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 col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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 query I rowsort label-4197 @@ -23050,7 +23050,7 @@ SELECT ALL - COUNT ( * ) + - + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 134 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ Int64\(91\) AS col2" at position 0 and "\(\- 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 "Int64\(43\) \+ Int64\(91\) 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 + 43 + + 91 AS col2, - COUNT ( * ) + 21 AS col2 query I rowsort label-4401 @@ -23633,7 +23633,7 @@ SELECT ALL ( + + 16 ) + - CASE - AVG ( ALL - + 20 ) WHEN 71 THEN + CAST ( NULL A # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- count\(\*\)\) \+ Int64\(47\) AS col2" at position 0 and "\(\- Int64\(\-46\)\) \- 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\(85\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(47\) AS col2" at position 0 and "\(\- Int64\(\-46\)\) \- Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 85 + - COUNT ( * ) + + 47 AS col2, - ( ( - 46 ) ) - 42 AS col2 query I rowsort label-4510 @@ -23890,7 +23890,7 @@ SELECT + + COUNT ( DISTINCT - ( 0 ) ) + 38 + + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* CASE Int64\(49\) WHEN Int64\(\-26\) THEN Int64\(63\) \* sum\(\(\- Int64\(\-40\)\)\) ELSE NULL END AS col2" at position 0 and "Int64\(66\) \+ 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\(\*\) \* CASE Int64\(49\) WHEN Int64\(\-26\) THEN Int64\(63\) \* sum\(\(\- Int64\(\-40\)\)\) ELSE NULL END AS col2" at position 0 and "Int64\(66\) \+ Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + CASE 49 WHEN + - 26 THEN + 63 * + + SUM ( ALL - - 40 ) ELSE NULL END AS col2, 66 + - 15 AS col2 query II rowsort label-4559 @@ -24896,7 +24896,7 @@ SELECT - MAX ( ALL + 75 ) * - + 0 AS col2 # Datafusion - Expected - -2442 # Datafusion - Expected - 40 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) \* Int64\(\-54\) \+ Int64\(60\) \* \(\- Int64\(\-29\)\) / \(\- 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\(\-13\)\) \* Int64\(\-54\) \+ Int64\(60\) \* \(\- Int64\(\-29\)\) / \(\- 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 - - 13 * - 54 + + 60 * - - 29 / - COUNT ( * ) col1, 40 col1, - 38 + + 79 query I rowsort label-4750 @@ -25834,7 +25834,7 @@ SELECT ALL CAST ( 9 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 81 -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\(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\(\-5\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 5 AS col2, - COUNT ( * ) + + 82 AS col2 query I rowsort @@ -25845,7 +25845,7 @@ SELECT 86 + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 19 -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\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 18 col1, COUNT ( * ) + 18 AS col1 query II rowsort label-4929 @@ -26153,7 +26153,7 @@ SELECT + SUM ( ALL - ( 25 ) ) / 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-95\), Int64\(\-23\)\) \* count\(DISTINCT Int64\(37\)\) \+ Int64\(99\) \+ Int64\(94\) AS col2" at position 0 and "\(\- coalesce\(Int64\(27\), Int64\(21\) / count\(\*\) \+ max\(DISTINCT \(\- 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 "coalesce\(Int64\(\-95\), Int64\(\-23\)\) \* count\(DISTINCT Int64\(37\)\) \+ Int64\(99\) \+ Int64\(94\) AS col2" at position 0 and "\(\- coalesce\(Int64\(27\), Int64\(21\) / count\(Int64\(1\)\) AS count\(\*\) \+ max\(DISTINCT \(\- Int64\(16\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COALESCE ( - 95, - 23 ) * COUNT ( DISTINCT 37 ) + + 99 + 94 AS col2, - COALESCE ( + 27, + 21 / + COUNT ( * ) + MAX ( DISTINCT - + 16 ) ) AS col2 query I rowsort @@ -29105,7 +29105,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(41\) \+ nullif\(\(\- count\(\*\)\), Int64\(32\) \* 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\(34\) AS col1" at position 0 and "Int64\(41\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(32\) \* Int64\(40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 34 AS col1, 41 + + + NULLIF ( - + COUNT ( * ), + + 32 * 40 ) AS col1 query II rowsort @@ -29254,7 +29254,7 @@ SELECT - 81 AS col0, - 90 * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 167 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "\(\- coalesce\(nullif\(Int64\(\-78\), Int64\(99\)\), count\(\*\) \- 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 "Int64\(85\) AS col2" at position 0 and "\(\- coalesce\(nullif\(Int64\(\-78\), Int64\(99\)\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-37\)\)\) \+ Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 AS col2, - COALESCE ( + NULLIF ( - 78, + 99 ), + COUNT ( * ) - - 37 ) + 89 AS col2 query I rowsort label-5582 @@ -29311,7 +29311,7 @@ SELECT DISTINCT 90 / - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE count\(\*\) WHEN Int64\(56\) \* Int64\(44\) THEN Int64\(\-46\) END\) \* \(\- Int64\(70\)\) AS col2" at position 0 and "CAST\(\(\- \(\- nullif\(Int64\(4\), CAST\(NULL AS Float64\)\)\)\) AS Int32\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(56\) \* Int64\(44\) THEN Int64\(\-46\) END\) \* \(\- Int64\(70\)\) AS col2" at position 0 and "CAST\(\(\- \(\- nullif\(Int64\(4\), CAST\(NULL AS Float64\)\)\)\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE + COUNT ( * ) WHEN 56 * + 44 THEN - 46 END * - + 70 AS col2, CAST ( - ( - + NULLIF ( + 4, CAST ( NULL AS FLOAT8 ) ) ) AS INTEGER ) * - COUNT ( * ) AS col2 query I rowsort label-5592 @@ -29501,7 +29501,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\(\*\) AS col0" at position 0 and "Int64\(\-26\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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 @@ -30710,7 +30710,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\(\*\) AS col0" at position 1 have the 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 @@ -31004,7 +31004,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\(\*\)\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -31165,7 +31165,7 @@ SELECT SUM ( DISTINCT - 85 ) + + 30 * - 67 # 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\(1\) \- Int64\(4\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(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 1 - + 4 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -32082,7 +32082,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -55671300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-76\) WHEN Int64\(24\) THEN Int64\(71\) \+ Int64\(\-36\) \* Int64\(83\) WHEN CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) THEN NULL END \- Int64\(\-97\) \* Int64\(\-43\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(29\) \* Int64\(79\) \* Int64\(6\) \* \(\- Int64\(54\)\) \* \(\- \(\- nullif\(Int64\(75\), \(\- count\(\*\)\) \+ Int64\(18\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-76\) WHEN Int64\(24\) THEN Int64\(71\) \+ Int64\(\-36\) \* Int64\(83\) WHEN CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) THEN NULL END \- Int64\(\-97\) \* Int64\(\-43\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(29\) \* Int64\(79\) \* Int64\(6\) \* \(\- Int64\(54\)\) \* \(\- \(\- nullif\(Int64\(75\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(18\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - 76 WHEN 24 THEN + 71 + - 36 * + 83 WHEN CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN NULL END - - 97 * - 43 + - + 74 AS col0, 29 * + + 79 * 6 * - + 54 * - - NULLIF ( 75, - COUNT ( * ) + + + 18 ) col0 query I rowsort label-6118 @@ -32882,7 +32882,7 @@ SELECT 6 * + 37 + - 89 * 96 col0 # Datafusion - Expected - 29 # Datafusion - Expected - 18 # Datafusion - Expected - 818 -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\(\-20\) \+ count\(\*\) \+ Int64\(40\) \* Int64\(22\) \+ Int64\(\-42\) 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\(29\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-20\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(40\) \* Int64\(22\) \+ Int64\(\-42\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 AS col1, MAX ( DISTINCT 96 ) + - 78 AS col2, - COUNT ( * ) + + - 20 + COUNT ( * ) + 40 * 22 + + - 42 AS col1 query I rowsort @@ -33799,7 +33799,7 @@ SELECT ALL 87 / - 16, SUM ( - - 42 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-23\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-23\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - 23 AS col0, 93 AS col0 query I rowsort @@ -33951,7 +33951,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\(\*\) 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 @@ -34157,7 +34157,7 @@ SELECT ALL + COALESCE ( + 96, 41 * - + 10 * - ( - - COUNT ( 98 ) ) * 12 + + + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -32 -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\(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\(34\)\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( - + 34 ) AS col2, - COUNT ( * ) + - + 31 col2 query II rowsort label-6513 @@ -34407,7 +34407,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* \(\- nullif\(Int64\(\-1\), Int64\(\-31\) \+ \(\- 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 "Int64\(36\) \* \(\- nullif\(Int64\(\-1\), Int64\(\-31\) \+ \(\- 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 DISTINCT 36 * - NULLIF ( + ( - 1 ), - 31 + - COUNT ( * ) ) AS col0, + 19 AS col0 query I rowsort @@ -35019,7 +35019,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\(\*\) AS col0" at position 1 have 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 @@ -35359,7 +35359,7 @@ SELECT + 40 - 22 # 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 "Int64\(64\) \+ \(\- CASE Int64\(\-31\) WHEN \(\- coalesce\(max\(Int64\(72\)\), \(\- Int64\(\-15\)\) \* min\(Int64\(6\)\) \+ \(\- \(\- \(\- count\(\*\)\)\)\) \* \(\- Int64\(58\)\) \+ Int64\(40\) \+ Int64\(33\) \+ Int64\(65\) \+ Int64\(4\) \* \(\- Int64\(\-57\)\) / Int64\(\-17\) \* Int64\(89\) \+ CAST\(Int64\(28\) AS Float64\) \* \(\- Int64\(\-65\)\) / \(\- Int64\(86\)\)\)\) THEN Int64\(\-80\) END\) \* \(\- \(\- min\(Int64\(\-74\)\)\)\) / Int64\(19\) \+ \(\- coalesce\(Int64\(14\), sum\(Int64\(94\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(64\) \+ \(\- CASE Int64\(\-31\) WHEN \(\- coalesce\(max\(Int64\(72\)\), \(\- Int64\(\-15\)\) \* min\(Int64\(6\)\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* \(\- Int64\(58\)\) \+ Int64\(40\) \+ Int64\(33\) \+ Int64\(65\) \+ Int64\(4\) \* \(\- Int64\(\-57\)\) / Int64\(\-17\) \* Int64\(89\) \+ CAST\(Int64\(28\) AS Float64\) \* \(\- Int64\(\-65\)\) / \(\- Int64\(86\)\)\)\) THEN Int64\(\-80\) END\) \* \(\- \(\- min\(Int64\(\-74\)\)\)\) / Int64\(19\) \+ \(\- coalesce\(Int64\(14\), sum\(Int64\(94\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 48 AS col0, 64 + + - CASE + - 31 WHEN - + COALESCE ( + MAX ( + + 72 ), + - ( + - 15 ) * + MIN ( ALL + 6 ) + - ( - - COUNT ( * ) ) * - + 58 + 40 + 33 + 65 + 4 * - - 57 / + - 17 * 89 + CAST ( 28 AS FLOAT8 ) * - ( - 65 ) / - + 86 ) THEN + - 80 END * - - MIN ( - 74 ) / + 19 + - COALESCE ( + 14, SUM ( 94 ) ) AS col0 query I rowsort label-6743 @@ -35626,7 +35626,7 @@ SELECT ALL - 33, 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2280 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-79\) \* Int64\(62\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-79\) \* Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 30 * ( 76 ) AS col1, CAST ( NULL AS INTEGER ) * + - 79 * + 62 * + - COUNT ( * ) AS col1 query I rowsort label-6794 @@ -35998,7 +35998,7 @@ SELECT + NULLIF ( 41, + - 52 * 52 * COUNT ( * ) * + + 7 * - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / min\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / min\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2, 24 AS col2 query I rowsort @@ -36432,7 +36432,7 @@ SELECT DISTINCT - 44 * COUNT ( * ) * 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(81\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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\(81\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 2 AS col2, + 81 + - - ( COUNT ( * ) ) AS col2 query I rowsort label-6952 @@ -38617,7 +38617,7 @@ SELECT ALL + 7 * + + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "\(\- CAST\(avg\(DISTINCT CAST\(Int64\(92\) AS Int32\)\) AS Int32\)\) \* \(\- count\(\*\)\) / \(\- Int64\(93\)\) \+ Int64\(99\) \+ count\(\*\) / Int64\(83\) \* \(\- Int64\(15\)\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "\(\- CAST\(avg\(DISTINCT CAST\(Int64\(92\) AS Int32\)\) AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(93\)\) \+ Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(83\) \* \(\- Int64\(15\)\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 58 AS col0, - CAST ( AVG ( DISTINCT + CAST ( + + 92 AS INTEGER ) ) AS INTEGER ) * - COUNT ( * ) / - + 93 + 99 + + COUNT ( * ) / 83 * - ( 15 ) * 77 AS col0 query I rowsort label-7371 @@ -38918,7 +38918,7 @@ SELECT DISTINCT + + 29 - 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) / Int64\(87\) AS col0" at position 0 and "count\(\*\) \* count\(\*\) \* count\(\*\) / Int64\(85\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) / Int64\(87\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(85\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 8 / 87 AS col0, COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) / + 85 + + 96 AS col0 query I rowsort @@ -39109,7 +39109,7 @@ NULL # 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\(\*\)\) 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 "\(\- 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 - COUNT ( * ) AS col0, 64 col0 query I rowsort label-7463 @@ -40650,7 +40650,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3906 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-98\) WHEN sum\(Int64\(92\)\) \* CAST\(CAST\(Int64\(\-25\) AS Int32\) AS Int32\) THEN count\(\*\) WHEN Int64\(\-36\) THEN NULL END \+ Int64\(45\) \* Int64\(\-79\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-98\) WHEN sum\(Int64\(92\)\) \* CAST\(CAST\(Int64\(\-25\) AS Int32\) AS Int32\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-36\) THEN NULL END \+ Int64\(45\) \* Int64\(\-79\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE - 98 WHEN SUM ( ALL + 92 ) * + CAST ( + CAST ( - 25 AS INTEGER ) AS INTEGER ) THEN COUNT ( * ) WHEN - 36 THEN NULL END + + 45 * - 79 AS col0, - 93 * + 42 col0 query I rowsort @@ -40697,7 +40697,7 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -3672 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(33\)\) / \(\- Int64\(\-52\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-7\) \- count\(\*\) \* Int64\(\-92\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(33\)\) / \(\- Int64\(\-52\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-7\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-92\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( DISTINCT + 33 ) / - - 52 * + - COUNT ( * ) AS col0, 51 * - + 72 * + + COUNT ( * ), - 7 - COUNT ( * ) * - 92 AS col0 query I rowsort label-7765 @@ -40937,7 +40937,7 @@ SELECT DISTINCT - 28 * - - 60 * + - 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 0 -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\(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\(60\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 60 AS col0, - COUNT ( * ) / 29 AS col0 query I rowsort label-7811 @@ -41620,7 +41620,7 @@ SELECT ALL ( 33 ) * - 49 + - 20 + + 56 / 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(44\) \+ Int64\(\-52\) \- \(\- Int64\(\-28\)\) \+ Int64\(65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) \+ Int64\(\-52\) \- \(\- Int64\(\-28\)\) \+ Int64\(65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 44 + + - 52 - - - 28 + + 65 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-7941 @@ -42218,7 +42218,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\(\*\) 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 @@ -42267,7 +42267,7 @@ SELECT 20 / - 91 * + - 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5509 # Datafusion - Expected - 1001 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(59\) \+ Int64\(62\) \+ Int64\(26\) \* count\(\*\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(13\) \* 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\(92\) \* Int64\(59\) \+ Int64\(62\) \+ Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(13\) \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 * + + 59 + + 62 + 26 * COUNT ( * ) + - 7 AS col2, 13 * + 77 AS col2 query I rowsort @@ -43529,7 +43529,7 @@ SELECT 35 / + CAST ( - MIN ( ( - 10 ) ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 179359 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* count\(\*\) \+ \(\- coalesce\(Int64\(73\), count\(\*\) \+ \(\- Int64\(83\)\) \+ Int64\(22\) \* Int64\(32\) \* \(\- CAST\(Int64\(22\) AS Int32\)\)\)\) \* Int64\(\-39\) \* Int64\(63\) \+ Int64\(63\) AS col1" at position 0 and "\(\- count\(\*\)\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(Int64\(73\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(83\)\) \+ Int64\(22\) \* Int64\(32\) \* \(\- CAST\(Int64\(22\) AS Int32\)\)\)\) \* Int64\(\-39\) \* Int64\(63\) \+ Int64\(63\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 65 * COUNT ( * ) + - COALESCE ( + 73, + COUNT ( * ) + - + 83 + + 22 * + 32 * + - CAST ( 22 AS INTEGER ) ) * - 39 * 63 + + 63 AS col1, - COUNT ( * ) * + 69 col1 query I rowsort label-8306 @@ -45443,7 +45443,7 @@ SELECT COALESCE ( 12, - + COALESCE ( 45, + 86 / + 17 - + 82, 31 ) ) - + 60 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -70 -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\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 87 AS col1, COUNT ( * ) * - 70 AS col1 query I rowsort @@ -47138,7 +47138,7 @@ SELECT ALL - 29 * 42 * 29 - - 20 + + 64 / + ( + - 75 ) + + + COALESCE ( - + 22, # 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 "sum\(Int64\(24\)\) / Int64\(\-86\) \* \(\- Int64\(28\)\) AS col1" at position 0 and "count\(\*\) / 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 "sum\(Int64\(24\)\) / Int64\(\-86\) \* \(\- Int64\(28\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( + 24 ) / - 86 * - + 28 AS col1, + COUNT ( * ) / + - 42 AS col1 query I rowsort @@ -47996,7 +47996,7 @@ SELECT ALL + 4 * + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 11 -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\(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\(75\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 AS col1, COUNT ( * ) * 11 AS col1 query I rowsort @@ -48053,7 +48053,7 @@ SELECT ALL COUNT ( * ) + 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3003 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ Int64\(36\) \* \(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(1\) \* min\(DISTINCT Int64\(86\)\) \* \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the 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\(36\) \* \(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(1\) \* min\(DISTINCT Int64\(86\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 21 + 36 * - + 84 AS col2, + 1 * + MIN ( DISTINCT + + 86 ) * - - COUNT ( * ) col2 query I rowsort label-9175 @@ -48548,7 +48548,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\(\*\)\)\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -50657,7 +50657,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\(\*\) AS col1" at position 0 and "Int64\(33\) \- count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -51358,7 +51358,7 @@ SELECT ALL + COUNT ( * ) * - + 34 * 23 * 78 # Datafusion - Expected - 56 # Datafusion - Expected - 87 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(56\)\) AS col1" at position 0 and "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 "min\(DISTINCT Int64\(56\)\) 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 MIN ( DISTINCT 56 ) AS col1, COUNT ( * ) * + 87 col1, - COUNT ( - - 64 ) query I rowsort diff --git a/data/sqlite/random/expr/slt_good_81.slt b/data/sqlite/random/expr/slt_good_81.slt index 85836ad..ce377e9 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\(\*\) AS Int32\)\) / 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 @@ -1575,7 +1575,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -1688,7 +1688,7 @@ SELECT ALL ( - - 42 ) * 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -485 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-35\) \+ \(\- min\(Int64\(\-31\)\)\) \+ Int64\(60\) AS col2" at position 0 and "max\(DISTINCT Int64\(97\)\) \* \(\- Int64\(5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-35\) \+ \(\- min\(Int64\(\-31\)\)\) \+ Int64\(60\) AS col2" at position 0 and "max\(DISTINCT Int64\(97\)\) \* \(\- Int64\(5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / - 35 + - MIN ( - 31 ) + + + 60 AS col2, MAX ( DISTINCT 97 ) * - ( 5 ) AS col2 query I rowsort label-323 @@ -2123,7 +2123,7 @@ SELECT DISTINCT + - NULLIF ( + 53, + COUNT ( DISTINCT - + 37 ) * - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "nullif\(Int64\(87\), 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\(66\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "nullif\(Int64\(87\), Int64\(\-23\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 66 + - - COUNT ( * ) AS col0, NULLIF ( 87, - 23 ) AS col0 query I rowsort label-405 @@ -2291,7 +2291,7 @@ SELECT + - ( + NULLIF ( 41, + 2 + - 20 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 520 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(13\)\) \* Int64\(\-40\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-29\)\), Int64\(\-80\) \* \(\- Int64\(\-90\)\) \* CASE Int64\(75\) WHEN Int64\(64\) THEN Int64\(64\) WHEN Int64\(\-84\) \* count\(\*\) THEN Int64\(\-36\) END \* Int64\(9\)\) \+ \(\- \(\- 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\(13\)\) \* Int64\(\-40\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-29\)\), Int64\(\-80\) \* \(\- Int64\(\-90\)\) \* CASE Int64\(75\) WHEN Int64\(64\) THEN Int64\(64\) WHEN Int64\(\-84\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-36\) END \* Int64\(9\)\) \+ \(\- \(\- Int64\(\-24\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - + 13 ) * - 40 col1, COALESCE ( - - 29, - 80 * - - 90 * + + CASE 75 WHEN + 64 THEN + ( 64 ) WHEN - 84 * ( COUNT ( * ) ) THEN - 36 END * 9 ) + - ( ( - ( - 24 ) ) ) col1 query I rowsort @@ -2871,7 +2871,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\(\*\)\) AS col0" at position 0 and "Int64\(\-17\) \+ \(\- count\(CAST\(Int64\(\-57\) AS Int32\)\)\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -3483,7 +3483,7 @@ SELECT - NULLIF ( + 14, - SUM ( ALL 74 ) ) + + - 82, 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "count\(Int64\(32\)\) / max\(CAST\(NULL AS Float64\)\) \- nullif\(\(\- CAST\(\(\- Int64\(98\)\) AS Int32\)\), Int64\(8\) / \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(32\)\) / max\(CAST\(NULL AS Float64\)\) \- nullif\(\(\- CAST\(\(\- Int64\(98\)\) AS Int32\)\), Int64\(8\) / \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + COUNT ( * ) ) AS col2, COUNT ( + 32 ) / + MAX ( CAST ( NULL AS FLOAT8 ) ) - + NULLIF ( - CAST ( - + 98 AS INTEGER ), + 8 / - CAST ( NULL AS FLOAT8 ) ) + - - 59 AS col2 query I rowsort label-666 @@ -3902,7 +3902,7 @@ SELECT + 10 * + - 58 + + 89 AS col0, 10 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -254389 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(68\) \* Int64\(87\) \* \(\- min\(Int64\(43\)\)\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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 "Int64\(68\) \* Int64\(87\) \* \(\- min\(Int64\(43\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 col1, 68 * + 87 * - MIN ( + 43 ) + - + COUNT ( * ) AS col1 query I rowsort label-746 @@ -4004,7 +4004,7 @@ SELECT ALL 42 / + + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -182934 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(\*\), \(\- count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(21\) \* Int64\(56\) \+ Int64\(38\) \* \(\- \(\- coalesce\(Int64\(\-95\), Int64\(18\), Int64\(60\)\)\)\) \* 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 "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(21\) \* Int64\(56\) \+ Int64\(38\) \* \(\- \(\- coalesce\(Int64\(\-95\), Int64\(18\), Int64\(60\)\)\)\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( + COUNT ( * ), + + ( - COUNT ( * ) ) ) AS col1, ( 21 ) * + 56 + ( 38 ) * - - COALESCE ( - 95, 18, + 60 ) * + 51 AS col1 query II rowsort @@ -5712,7 +5712,7 @@ SELECT DISTINCT 87 AS col0, - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "count\(\*\) \+ \(\- nullif\(CAST\(Int64\(\-50\) AS Int32\), \(\- Int64\(36\)\) \* Int64\(41\) \- \(\- Int64\(43\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(CAST\(Int64\(\-50\) AS Int32\), \(\- Int64\(36\)\) \* Int64\(41\) \- \(\- Int64\(43\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 AS col0, COUNT ( * ) + - + NULLIF ( CAST ( - 50 AS INTEGER ), - ( 36 ) * + 41 - - + 43 ) AS col0 query I rowsort @@ -6205,7 +6205,7 @@ SELECT ALL + 15 / + 60 * + 23 + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(\-10\) \* 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\(\-10\) \* Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, - 10 * - 23 AS col1 query I rowsort label-1182 @@ -6314,7 +6314,7 @@ NULL # Datafusion - Expected - 70 # Datafusion - Expected - 85 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(\-40\)\) \- Int64\(\-70\) \+ Int64\(\-41\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-40\)\) \- Int64\(\-70\) \+ Int64\(\-41\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - - 40 - - 70 + + - 41 AS col1, ( + MAX ( + + 85 ) ), 94 AS col1 query II rowsort @@ -7958,7 +7958,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\(\*\) AS col0" at position 1 have the 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 @@ -10576,7 +10576,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\(\*\) AS col1" at position 1 have the 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 @@ -10924,7 +10924,7 @@ SELECT + 69 AS col2, + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(\-44\) \- \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(\-44\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 AS col1, - 44 - - - COUNT ( * ) AS col1 query I rowsort label-2090 @@ -11068,7 +11068,7 @@ SELECT DISTINCT - 36 * + 11 # 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\(\*\)\) 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 ALL - COUNT ( * ) col1, + 57 AS col1 query I rowsort @@ -13015,7 +13015,7 @@ SELECT + 99 * - 41 AS col0, + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CASE Int64\(53\) WHEN \(\- Int64\(96\)\) \* Int64\(\-57\) \+ Int64\(56\) \+ \(\- Int64\(66\)\) THEN Int64\(6\) ELSE NULL END \+ \(\- Int64\(\-63\)\) \- Int64\(84\) \* coalesce\(Int64\(\-69\), sum\(Int64\(50\)\) \* Int64\(18\) \* coalesce\(Int64\(19\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(23\) \+ count\(\*\) \- Int64\(\-47\) \* Int64\(99\)\) \* Int64\(18\)\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CASE Int64\(53\) WHEN \(\- Int64\(96\)\) \* Int64\(\-57\) \+ Int64\(56\) \+ \(\- Int64\(66\)\) THEN Int64\(6\) ELSE NULL END \+ \(\- Int64\(\-63\)\) \- Int64\(84\) \* coalesce\(Int64\(\-69\), sum\(Int64\(50\)\) \* Int64\(18\) \* coalesce\(Int64\(19\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-47\) \* Int64\(99\)\) \* Int64\(18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 51 AS col2, CASE + + 53 WHEN - + 96 * - 57 + + + 56 + - ( 66 ) THEN + 6 ELSE NULL END + - - 63 - 84 * COALESCE ( - 69, SUM ( ALL + 50 ) * + ( 18 ) * COALESCE ( 19, + - CAST ( NULL AS INTEGER ) * 23 + COUNT ( * ) - - 47 * + 99 ) * + 18 ) + - COUNT ( * ) AS col2 query I rowsort label-2487 @@ -14044,7 +14044,7 @@ SELECT DISTINCT ( + - 88 ) / + 90 + ( + ( + 3 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 561 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* \(\- Int64\(51\)\) AS col2" at position 0 and "count\(\*\) \+ Int64\(34\) \- Int64\(79\) / \(\- 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\(\-11\) \* \(\- Int64\(51\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(34\) \- Int64\(79\) / \(\- Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 11 * + - ( 51 ) AS col2, + COUNT ( * ) + + 34 - 79 / - - 50 AS col2 query I rowsort @@ -14743,7 +14743,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\(\*\) AS col2" at position 1 have 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 @@ -14765,7 +14765,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\(\*\) 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 @@ -14786,7 +14786,7 @@ SELECT ALL + 45 + 95 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 781 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(93\), Int64\(\-21\), Int64\(82\) / Int64\(46\) \* \(\- CASE Int64\(38\) WHEN Int64\(98\) \+ Int64\(98\) THEN Int64\(90\) END\) \* Int64\(45\) / \(\- count\(\*\)\)\) / Int64\(8\) \+ Int64\(14\) \* count\(Int64\(64\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \- count\(\*\) \+ coalesce\(\(\- Int64\(\-50\)\), \(\- Int64\(\-70\)\) \+ CASE count\(\*\) WHEN Int64\(19\) \+ Int64\(\-75\) \+ Int64\(82\) \* \(\- count\(\*\)\) \+ count\(Int64\(8\)\) \+ Int64\(\-19\) THEN Int64\(\-38\) ELSE Int64\(8\) \+ Int64\(8\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(93\), Int64\(\-21\), Int64\(82\) / Int64\(46\) \* \(\- CASE Int64\(38\) WHEN Int64\(98\) \+ Int64\(98\) THEN Int64\(90\) END\) \* Int64\(45\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(8\) \+ Int64\(14\) \* count\(Int64\(64\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(\(\- Int64\(\-50\)\), \(\- Int64\(\-70\)\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(19\) \+ Int64\(\-75\) \+ Int64\(82\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(8\)\) \+ Int64\(\-19\) THEN Int64\(\-38\) ELSE Int64\(8\) \+ Int64\(8\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( 93, - 21, + 82 / + 46 * - + CASE 38 WHEN 98 + 98 THEN + ( + 90 ) END * + 45 / - COUNT ( * ) ) / + 8 + 14 * COUNT ( ALL 64 ) * - - 55 AS col1, - COUNT ( * ) - + COUNT ( * ) + + + COALESCE ( - - 50, - - 70 + CASE COUNT ( * ) WHEN 19 + + - 75 + + 82 * - COUNT ( * ) + + + COUNT ( ALL 8 ) + + - 19 THEN - 38 ELSE 8 + 8 END ) AS col1 query I rowsort label-2823 @@ -14841,7 +14841,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\(\*\) AS col0" at position 1 have 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 @@ -15083,7 +15083,7 @@ SELECT + 22 - 57 * - ( 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 140008 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(40\) / Int64\(\-58\) \+ Int64\(35\) \* \(\- Int64\(46\)\) \* coalesce\(\(\- Int64\(87\)\), Int64\(\-35\)\) \- Int64\(38\) \- \(\- count\(\*\)\) \+ \(\- Int64\(64\)\) 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 "Int64\(39\) \+ Int64\(40\) / Int64\(\-58\) \+ Int64\(35\) \* \(\- Int64\(46\)\) \* coalesce\(\(\- Int64\(87\)\), Int64\(\-35\)\) \- Int64\(38\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(64\)\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 + 40 / - 58 + + 35 * - ( + 46 ) * + + COALESCE ( - ( + 87 ), - 35 ) - + + 38 - - + COUNT ( * ) + - ( 64 ) AS col2, 18 col2 query I rowsort @@ -16519,7 +16519,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the 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 @@ -18497,7 +18497,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\(\*\) 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 @@ -18835,7 +18835,7 @@ SELECT ALL 56 * CAST ( 74 AS INTEGER ) / ( - + 37 ) - - + 97 * - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(50\) \+ Int64\(49\) \* 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\(50\) \+ Int64\(49\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 50 + + 49 * + + 6 AS col2 query II rowsort label-3600 @@ -19074,7 +19074,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\(\*\) AS Int32\) AS col0" at position 1 have the 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 @@ -19412,7 +19412,7 @@ SELECT + NULLIF ( + 74, + + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \+ Int64\(\-66\) AS col1" at position 0 and "CASE \(\- Int64\(4\)\) WHEN \(\- count\(\*\)\) \* CAST\(NULL AS Int32\) \+ Int64\(33\) / CAST\(NULL AS Int32\) \+ Int64\(24\) THEN Int64\(\-25\) \* Int64\(\-65\) WHEN Int64\(33\) THEN NULL END \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \+ Int64\(\-66\) AS col1" at position 0 and "CASE \(\- Int64\(4\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) \+ Int64\(33\) / CAST\(NULL AS Int32\) \+ Int64\(24\) THEN Int64\(\-25\) \* Int64\(\-65\) WHEN Int64\(33\) THEN NULL END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 + - 66 AS col1, ( + CASE - ( + 4 ) WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) + 33 / CAST ( NULL AS INTEGER ) + 24 THEN - 25 * - 65 WHEN 33 THEN NULL END ) * - COUNT ( * ) AS col1 query I rowsort @@ -20288,7 +20288,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\(14\)\) / Int64\(52\) / max\(Int64\(53\)\) \* \(\- count\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the 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 @@ -20920,7 +20920,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\(\*\) 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 @@ -22270,7 +22270,7 @@ SELECT - 19 * 52 + + - 43 * 89 * - COUNT ( * ) # 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\(11\) \* \(\- \(\- count\(\*\)\)\) \- Int64\(21\) 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\(11\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(21\) AS col1" at position 0 and "Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 * - - COUNT ( * ) - + 21 AS col1, - 59 AS col1 query I rowsort @@ -23066,7 +23066,7 @@ SELECT ALL + 6 + ( + - 44 ) # 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 "nullif\(count\(\*\), \(\- Int64\(\-79\)\) \* \(\- coalesce\(\(\- \(\- CAST\(Int64\(\-59\) AS Float64\)\)\), Int64\(53\)\)\)\) \+ Int64\(\-87\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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\(\-79\)\) \* \(\- coalesce\(\(\- \(\- CAST\(Int64\(\-59\) AS Float64\)\)\), Int64\(53\)\)\)\) \+ 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 NULLIF ( + COUNT ( * ), - - 79 * - + COALESCE ( - - CAST ( - 59 AS FLOAT8 ), 53 ) ) + - 87 AS col2, - COUNT ( * ) AS col2 query I rowsort @@ -23449,7 +23449,7 @@ SELECT ALL + COALESCE ( + ( + COUNT ( + - 36 ) ), - + 75, + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- CASE count\(\*\) WHEN Int64\(29\) THEN Int64\(29\) \* \(\- Int64\(\-43\)\) \* Int64\(\-50\) \* Int64\(61\) WHEN count\(\*\) THEN NULL ELSE NULL END\), Int64\(\-21\)\)\) \+ Int64\(\-47\) \+ Int64\(47\) \+ Int64\(98\) \* Int64\(58\) \* count\(\*\) / CASE \(\- avg\(\(\- Int64\(\-87\)\)\)\) WHEN Int64\(86\) \+ Int64\(46\) THEN Int64\(\-89\) ELSE Int64\(34\) END \+ Int64\(\-34\) \+ sum\(Int64\(58\)\) 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 "\(\- nullif\(\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(29\) THEN Int64\(29\) \* \(\- Int64\(\-43\)\) \* Int64\(\-50\) \* Int64\(61\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE NULL END\), Int64\(\-21\)\)\) \+ Int64\(\-47\) \+ Int64\(47\) \+ Int64\(98\) \* Int64\(58\) \* count\(Int64\(1\)\) AS count\(\*\) / CASE \(\- avg\(\(\- Int64\(\-87\)\)\)\) WHEN Int64\(86\) \+ Int64\(46\) THEN Int64\(\-89\) ELSE Int64\(34\) END \+ Int64\(\-34\) \+ sum\(Int64\(58\)\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - CASE + COUNT ( * ) WHEN + 29 THEN + 29 * - - 43 * + - 50 * 61 WHEN + COUNT ( * ) THEN NULL ELSE NULL END, - 21 ) + - 47 + + + 47 + + ( + 98 ) * 58 * + COUNT ( * ) / + CASE - AVG ( ( - - 87 ) ) WHEN 86 + + + 46 THEN - 89 ELSE 34 END + - 34 + SUM ( + 58 ) AS col0, 58 AS col0 query I rowsort label-4479 @@ -24048,7 +24048,7 @@ SELECT 95 * 26 + - 49 * + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(24\) WHEN Int64\(19\) \+ Int64\(71\) \- Int64\(63\) \* Int64\(41\) THEN \(\- Int64\(35\)\) \* Int64\(\-31\) \+ Int64\(17\) WHEN Int64\(\-42\) THEN NULL END AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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\(24\) WHEN Int64\(19\) \+ Int64\(71\) \- Int64\(63\) \* Int64\(41\) THEN \(\- Int64\(35\)\) \* Int64\(\-31\) \+ Int64\(17\) WHEN Int64\(\-42\) THEN 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 + 24 WHEN + 19 + 71 - + 63 * + 41 THEN - + 35 * - 31 + + 17 WHEN - 42 THEN NULL END ) AS col2, - COUNT ( * ) AS col2 query II rowsort @@ -25775,7 +25775,7 @@ SELECT DISTINCT - 16 + + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 58 -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\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 88 AS col1, COUNT ( * ) + 57 AS col1 query I rowsort label-4920 @@ -27720,7 +27720,7 @@ SELECT - - MIN ( ALL + ( - - ( + 34 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 180 -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\(96\) \+ Int64\(96\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) \+ Int64\(96\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 70 col1, COUNT ( * ) + 96 + 96 + - 13 AS col1 query II rowsort @@ -27922,7 +27922,7 @@ SELECT ALL NULLIF ( ( MAX ( 32 ) ), + + 98 + + 58 ) * + 50 + + ( 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \- Int64\(22\) / \(\- 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\(65\) \- Int64\(22\) / \(\- 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 + 65 - 22 / - + COUNT ( * ) AS col2, - 30 col2 query I rowsort label-5335 @@ -29415,7 +29415,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\(\*\) AS col2" at position 1 have the 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 @@ -29539,7 +29539,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\(\*\) AS col2" at position 1 have the 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 @@ -29883,7 +29883,7 @@ SELECT 73 * + 29 * + COALESCE ( + - COUNT ( * ), + - COUNT ( * ) * MAX ( + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* count\(\*\) \+ Int64\(91\) 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\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) 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 ( * ) * COUNT ( * ) + + 91 col0, 62 AS col0 query I rowsort @@ -30326,7 +30326,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\(\*\) AS col2" at position 1 have the 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 @@ -31686,7 +31686,7 @@ SELECT ALL ( 41 ) AS col2, 7 + - 49 # 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 "Int64\(89\) / Int64\(49\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / Int64\(49\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 / + 49 col2, - COUNT ( * ) + 46 AS col2 query I rowsort label-6048 @@ -32799,7 +32799,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\(\*\) AS col0" at position 1 have the 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 @@ -32881,7 +32881,7 @@ SELECT ALL - 11 + ( + COALESCE ( 89, + - COUNT ( * ) + - + 65, - SUM ( ALL - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- max\(Int64\(69\)\)\) AS col2" at position 0 and "Int64\(8\) / Int64\(\-4\) \* \(\- min\(DISTINCT Int64\(\-57\)\)\) \* Int64\(\-45\) \+ \(\- CASE Int64\(\-67\) WHEN Int64\(\-49\) \+ Int64\(5\) THEN Int64\(\-50\) \* Int64\(\-14\) \* \(\- Int64\(\-38\)\) \* Int64\(28\) \- Int64\(\-13\) \+ Int64\(34\) \* Int64\(37\) \+ Int64\(98\) \* Int64\(78\) \- Int64\(99\) END\) \+ coalesce\(\(\- count\(\*\)\), Int64\(\-86\), coalesce\(Int64\(66\), Int64\(52\) \* Int64\(84\) \* \(\- \(\- Int64\(75\)\)\) \* Int64\(83\) / count\(\*\)\)\) \+ \(\- \(\- max\(DISTINCT Int64\(\-95\)\)\)\) \- Int64\(\-61\) / CASE Int64\(79\) WHEN \(\- max\(Int64\(60\)\)\) THEN NULL ELSE Int64\(28\) \* count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- max\(Int64\(69\)\)\) AS col2" at position 0 and "Int64\(8\) / Int64\(\-4\) \* \(\- min\(DISTINCT Int64\(\-57\)\)\) \* Int64\(\-45\) \+ \(\- CASE Int64\(\-67\) WHEN Int64\(\-49\) \+ Int64\(5\) THEN Int64\(\-50\) \* Int64\(\-14\) \* \(\- Int64\(\-38\)\) \* Int64\(28\) \- Int64\(\-13\) \+ Int64\(34\) \* Int64\(37\) \+ Int64\(98\) \* Int64\(78\) \- Int64\(99\) END\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-86\), coalesce\(Int64\(66\), Int64\(52\) \* Int64\(84\) \* \(\- \(\- Int64\(75\)\)\) \* Int64\(83\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- \(\- max\(DISTINCT Int64\(\-95\)\)\)\) \- Int64\(\-61\) / CASE Int64\(79\) WHEN \(\- max\(Int64\(60\)\)\) THEN NULL ELSE Int64\(28\) \* count\(Int64\(1\)\) AS count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 57 + + - MAX ( 69 ) AS col2, + 8 / - 4 * - MIN ( DISTINCT - 57 ) * - 45 + + - CASE - 67 WHEN + - 49 + 5 THEN + - 50 * - 14 * + ( - ( - 38 ) ) * + + 28 - - 13 + + 34 * 37 + 98 * + 78 - 99 END + + + COALESCE ( - COUNT ( * ), - 86, + + COALESCE ( + 66, + 52 * 84 * - - ( + 75 ) * + 83 / + COUNT ( * ) ) ) + - ( + - MAX ( DISTINCT - 95 ) ) - - 61 / CASE 79 WHEN - MAX ( ALL 60 ) THEN NULL ELSE 28 * + COUNT ( * ) END col2 query I rowsort label-6276 @@ -32947,7 +32947,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\(\*\) 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 @@ -33116,7 +33116,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\(\*\) 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 @@ -34753,7 +34753,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(\-19\) 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\(\*\)\) / Int64\(\-19\) 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 ( * ) / - 19 AS col0, 5 AS col0 query I rowsort label-6632 @@ -34780,7 +34780,7 @@ NULL # Datafusion - Expected - -73 # Datafusion - Expected - 94 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \- \(\- min\(Int64\(58\)\)\) AS col0" at position 1 and "Int64\(63\) \* \(\- 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\(36\) \- \(\- min\(Int64\(58\)\)\) AS col0" at position 1 and "Int64\(63\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 22 - + 95, + 36 - - MIN ( + 58 ) AS col0, 63 * - COUNT ( * ) AS col0 query I rowsort @@ -35259,7 +35259,7 @@ SELECT DISTINCT - 27 / - 80 + - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 77 -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\(\-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\(37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 37 AS col1, COUNT ( * ) * + ( - - 77 ) AS col1 # Datafusion - Types were automatically converted from: @@ -36123,7 +36123,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\(79\) \+ count\(\*\) AS col1" at position 0 and "\(\- nullif\(Int64\(62\), 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 @@ -37485,7 +37485,7 @@ SELECT 20 - + - CASE NULLIF ( - 7, + - 32 ) WHEN + COUNT ( * ) / 74 / + 85 + + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / \(\- Int64\(\-38\)\) \* \(\- 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\(\*\) / \(\- Int64\(\-38\)\) \* \(\- 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 COUNT ( * ) / - - 38 * + - COUNT ( * ) AS col1, 9 AS col1 query I rowsort @@ -38289,7 +38289,7 @@ SELECT - - COUNT ( * ) - 13 * NULLIF ( - CAST ( - + 89 AS INTEGER ), NULLIF ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3242 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(64\), Int64\(\-88\)\)\) \* Int64\(52\) \- Int64\(\-86\) AS col2" at position 0 and "Int64\(\-25\) \- \(\- CASE count\(\*\) WHEN Int64\(88\) THEN NULL WHEN \(\- count\(\*\)\) THEN Int64\(95\) \+ Int64\(41\) WHEN Int64\(\-98\) \+ \(\- Int64\(26\)\) THEN NULL WHEN Int64\(\-68\) 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 "\(\- nullif\(Int64\(64\), Int64\(\-88\)\)\) \* Int64\(52\) \- Int64\(\-86\) AS col2" at position 0 and "Int64\(\-25\) \- \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(88\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(95\) \+ Int64\(41\) WHEN Int64\(\-98\) \+ \(\- Int64\(26\)\) THEN NULL WHEN Int64\(\-68\) THEN NULL ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( 64, - 88 ) * + 52 - - 86 AS col2, - 25 - + - CASE COUNT ( * ) WHEN 88 THEN NULL WHEN - COUNT ( * ) THEN + 95 + + 41 WHEN - 98 + ( - + 26 ) THEN NULL WHEN + - 68 THEN NULL ELSE NULL END AS col2 query I rowsort @@ -38593,7 +38593,7 @@ SELECT - 52 * - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(66\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 64 - + CAST ( NULL AS INTEGER ) AS col2, 66 * - + COUNT ( * ) AS col2 query I rowsort @@ -39056,7 +39056,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(93\), \(\- count\(\*\)\) \* Int64\(\-37\)\)\) AS col1" at position 0 and "CASE Int64\(19\) WHEN \(\- Int64\(91\)\) THEN NULL WHEN Int64\(11\) THEN \(\- Int64\(\-88\)\) \+ Int64\(89\) \* \(\- CAST\(Int64\(73\) AS Int32\)\) WHEN \(\- nullif\(Int64\(10\), \(\- Int64\(\-82\)\) \- \(\- \(\- CASE Int64\(11\) WHEN \(\- Int64\(74\)\) \* Int64\(44\) THEN Int64\(66\) \* Int64\(41\) WHEN Int64\(51\) THEN Int64\(8\) ELSE NULL END\)\)\)\) THEN NULL ELSE Int64\(60\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(93\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-37\)\)\) AS col1" at position 0 and "CASE Int64\(19\) WHEN \(\- Int64\(91\)\) THEN NULL WHEN Int64\(11\) THEN \(\- Int64\(\-88\)\) \+ Int64\(89\) \* \(\- CAST\(Int64\(73\) AS Int32\)\) WHEN \(\- nullif\(Int64\(10\), \(\- Int64\(\-82\)\) \- \(\- \(\- CASE Int64\(11\) WHEN \(\- Int64\(74\)\) \* Int64\(44\) THEN Int64\(66\) \* Int64\(41\) WHEN Int64\(51\) THEN Int64\(8\) ELSE NULL END\)\)\)\) THEN NULL ELSE Int64\(60\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - NULLIF ( 93, - COUNT ( * ) * - 37 ) AS col1, CASE 19 WHEN - + 91 THEN NULL WHEN 11 THEN ( - - 88 ) + + 89 * - + CAST ( + 73 AS INTEGER ) WHEN + - NULLIF ( ( + 10 ), - - 82 - - - CASE 11 WHEN - + ( + 74 ) * 44 THEN 66 * 41 WHEN 51 THEN + 8 ELSE NULL END ) THEN NULL ELSE 60 END AS col1 query I rowsort @@ -39186,7 +39186,7 @@ SELECT + 45 / + + 97 # 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 "count\(\*\) \* Int64\(\-52\) AS col1" at position 0 and "count\(\*\) / Int64\(43\) \+ count\(DISTINCT 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\(\*\) \* Int64\(\-52\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(43\) \+ count\(DISTINCT Int64\(\-45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + - 52 AS col1, + COUNT ( * ) / + + 43 + COUNT ( DISTINCT - 45 ) AS col1 query I rowsort @@ -39197,7 +39197,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\(\*\) AS col0" at position 1 have the same 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 @@ -39671,7 +39671,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\(\*\) 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 @@ -41946,7 +41946,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\(\*\) AS col1" at position 1 have the 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 @@ -43311,7 +43311,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(48\) \+ Int64\(31\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(68\) / \(\- nullif\(CAST\(NULL AS Float64\), \(\- coalesce\(\(\- Int64\(74\)\), CAST\(Int64\(\-87\) AS Int32\) \* count\(DISTINCT Int64\(77\)\) \+ Int64\(42\) \+ Int64\(80\) \+ Int64\(\-75\) / count\(\*\) \* \(\- Int64\(92\)\) \* Int64\(14\) \+ \(\- nullif\(\(\- sum\(Int64\(\-18\)\)\), Int64\(85\)\)\) \- Int64\(27\) \* Int64\(85\) \* Int64\(10\), Int64\(75\) \+ Int64\(98\) \* Int64\(\-40\) \* \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(64\) \+ Int64\(\-80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) \+ Int64\(31\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(68\) / \(\- nullif\(CAST\(NULL AS Float64\), \(\- coalesce\(\(\- Int64\(74\)\), CAST\(Int64\(\-87\) AS Int32\) \* count\(DISTINCT Int64\(77\)\) \+ Int64\(42\) \+ Int64\(80\) \+ Int64\(\-75\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(92\)\) \* Int64\(14\) \+ \(\- nullif\(\(\- sum\(Int64\(\-18\)\)\), Int64\(85\)\)\) \- Int64\(27\) \* Int64\(85\) \* Int64\(10\), Int64\(75\) \+ Int64\(98\) \* Int64\(\-40\) \* \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(64\) \+ Int64\(\-80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * 48 + + 31 + + 62 AS col2, 68 / - NULLIF ( + CAST ( NULL AS FLOAT8 ), + - COALESCE ( ( - + 74 ), CAST ( - 87 AS INTEGER ) * COUNT ( DISTINCT + 77 ) + 42 + + 80 + - 75 / + COUNT ( * ) * - + 92 * + 14 + - NULLIF ( - SUM ( - 18 ), 85 ) - 27 * + 85 * + + 10, ( 75 ) + + 98 * - 40 * - + CAST ( NULL AS INTEGER ) ) * + 64 + - 80 ) AS col2 query I rowsort @@ -45235,7 +45235,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\(\*\) AS col1" at position 1 have the 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 @@ -45432,7 +45432,7 @@ SELECT - + ( + 2 ) * - MAX ( + ( - 13 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -304 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(43\)\) \+ count\(\*\) \+ max\(Int64\(27\)\) \* \(\- Int64\(13\)\) \+ \(\- Int64\(\-89\)\) AS col0" at position 0 and "min\(Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(43\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(27\)\) \* \(\- Int64\(13\)\) \+ \(\- Int64\(\-89\)\) AS col0" at position 0 and "min\(Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 43 + COUNT ( * ) + + MAX ( ALL + 27 ) * - + 13 + - - 89 AS col0, MIN ( ALL - 93 ) AS col0 query I rowsort label-8677 @@ -46874,7 +46874,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\(\*\) 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 @@ -47024,7 +47024,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2190 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(35\) \+ Int64\(50\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(35\) \+ 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 ALL - 64 * + + 35 + + 50 col1, - COUNT ( * ) AS col1 query II rowsort @@ -47452,7 +47452,7 @@ SELECT DISTINCT 8 * + 25 * + 42 * - 58 AS col2, 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-3\) / Int64\(20\) \+ Int64\(70\) \+ Int64\(30\) \* 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\(\*\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-3\) / Int64\(20\) \+ Int64\(70\) \+ Int64\(30\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - COUNT ( * ) + - + COUNT ( * ) AS col0, - 3 / + ( 20 ) + 70 + 30 * 12 AS col0 query I rowsort label-9060 @@ -48534,7 +48534,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\(\*\) AS col2" at position 1 have the 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 @@ -49759,7 +49759,7 @@ SELECT 9 * COALESCE ( - + 81, 0 * 0 * - ( - 5 ) ) * - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4613 # Datafusion - Expected - -3630 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* Int64\(93\) \+ Int64\(37\) AS col1" at position 0 and "nullif\(Int64\(\-55\), Int64\(54\) \* \(\- 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 "Int64\(\-50\) \* Int64\(93\) \+ Int64\(37\) AS col1" at position 0 and "nullif\(Int64\(\-55\), Int64\(54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 50 * + 93 + + 37 AS col1, + NULLIF ( + - 55, 54 * + - COUNT ( * ) ) * - - 66 AS col1 query I rowsort @@ -50322,7 +50322,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\(\*\) AS col1" at position 1 have the 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 @@ -51015,7 +51015,7 @@ SELECT + 38 + + NULLIF ( - 34, - MAX ( - - 60 ) + CAST ( - + 46 AS FLOAT8 ) + + # 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 "\(\- nullif\(count\(\*\), Int64\(38\)\)\) AS col2" at position 0 and "Int64\(58\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(38\)\)\) AS col2" at position 0 and "Int64\(58\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( COUNT ( * ), + 38 ) AS col2, + 58 - + - 33 AS col2 query I rowsort @@ -51260,7 +51260,7 @@ SELECT ALL - 63 + 18 AS col2 # 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\(\*\)\) AS col1" at position 0 and "max\(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 "max\(Int64\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col1, MAX ( ALL - 21 ) col1 query II rowsort @@ -52310,7 +52310,7 @@ SELECT DISTINCT - + ( + 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -1809 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(27\) \* 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\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(27\) \* Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 80 * + - ( - COUNT ( * ) ) AS col0, + 27 * - 67 AS col0 query II rowsort label-9986 diff --git a/data/sqlite/random/expr/slt_good_82.slt b/data/sqlite/random/expr/slt_good_82.slt index a05e380..8a16e0d 100644 --- a/data/sqlite/random/expr/slt_good_82.slt +++ b/data/sqlite/random/expr/slt_good_82.slt @@ -3645,7 +3645,7 @@ SELECT 59 - + 82 * - - 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -2592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "CASE Int64\(\-2\) WHEN Int64\(\-65\) \+ Int64\(\-31\) \* Int64\(19\) \* \(\- count\(\*\)\) \* Int64\(\-93\) / Int64\(34\) THEN Int64\(36\) \+ max\(Int64\(36\)\) \- Int64\(\-24\) \+ \(\- count\(\*\)\) / Int64\(61\) ELSE Int64\(39\) \* \(\- Int64\(69\)\) \+ Int64\(99\) 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\(12\) AS col1" at position 0 and "CASE Int64\(\-2\) WHEN Int64\(\-65\) \+ Int64\(\-31\) \* Int64\(19\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-93\) / Int64\(34\) THEN Int64\(36\) \+ max\(Int64\(36\)\) \- Int64\(\-24\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(61\) ELSE Int64\(39\) \* \(\- Int64\(69\)\) \+ Int64\(99\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 12 AS col1, CASE - 2 WHEN - 65 + - 31 * + + 19 * - COUNT ( * ) * - 93 / + + 34 THEN + 36 + ( + MAX ( ALL + 36 ) ) - + - 24 + + - COUNT ( * ) / + 61 ELSE 39 * - ( 69 ) + + 99 END AS col1 # Datafusion - Types were automatically converted from: @@ -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\(\*\) AS col1" at position 1 have the 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\(\*\) AS col2" at position 0 and "Int64\(\-36\) / Int64\(\-17\) \+ \(\- 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 @@ -6515,7 +6515,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "\(\- CASE Int64\(15\) WHEN Int64\(\-55\) THEN Int64\(61\) WHEN count\(Int64\(23\)\) THEN count\(\*\) \* Int64\(\-72\) 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\(66\) AS col2" at position 0 and "\(\- CASE Int64\(15\) WHEN Int64\(\-55\) THEN Int64\(61\) WHEN count\(Int64\(23\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-72\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 66 AS col2, - CASE + + 15 WHEN - 55 THEN + 61 WHEN COUNT ( + 23 ) THEN COUNT ( * ) * - 72 END AS col2 query I rowsort @@ -6573,7 +6573,7 @@ NULL # 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 "Int64\(\-96\) \* 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 "Int64\(95\) AS col1" at position 0 and "Int64\(\-96\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 col1, - 96 * COUNT ( * ) / - ( + 66 ) AS col1 query II rowsort @@ -9996,7 +9996,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\(\*\) AS col2" at position 1 have the 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 @@ -11297,7 +11297,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have 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 @@ -11324,7 +11324,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\(\*\) 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 @@ -11806,7 +11806,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\(\*\) AS col1" at position 1 have the 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 @@ -12249,7 +12249,7 @@ SELECT 16 + 12 + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(36\) WHEN Int64\(\-74\) \* Int64\(\-72\) THEN NULL ELSE min\(DISTINCT CASE Int64\(47\) WHEN Int64\(92\) \* Int64\(\-91\) THEN NULL ELSE CAST\(NULL AS Int32\) END\) \+ \(\- count\(\*\)\) END AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(36\) WHEN Int64\(\-74\) \* Int64\(\-72\) THEN NULL ELSE min\(DISTINCT CASE Int64\(47\) WHEN Int64\(92\) \* Int64\(\-91\) THEN NULL ELSE CAST\(NULL AS Int32\) END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE 36 WHEN - 74 * - 72 THEN NULL ELSE MIN ( DISTINCT + + CASE + + 47 WHEN 92 * - 91 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) + ( - COUNT ( * ) ) END AS col1, - 0 col1 # Datafusion - Types were automatically converted from: @@ -13566,7 +13566,7 @@ SELECT ALL 9, - 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34277 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(80\) \* Int64\(39\) \+ \(\- \(\- count\(\*\)\)\) / \(\- max\(DISTINCT Int64\(39\)\)\) \+ \(\- Int64\(\-43\)\) AS col1" at position 0 and "Int64\(37\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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\(80\) \* Int64\(39\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / \(\- max\(DISTINCT Int64\(39\)\)\) \+ \(\- Int64\(\-43\)\) 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 DISTINCT - 11 * + 80 * + 39 + - - COUNT ( * ) / + - MAX ( DISTINCT + 39 ) + - - 43 AS col1, ( + + 37 ) + - - COUNT ( * ) AS col1 query II rowsort label-2586 @@ -13874,7 +13874,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\(\*\) AS col1" at position 0 and "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 @@ -13900,7 +13900,7 @@ SELECT - - 19 + - 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "Int64\(\-64\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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 col2" at position 0 and "Int64\(\-64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 60 AS col2, - 64 + - COUNT ( * ) AS col2 query II rowsort @@ -13917,7 +13917,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\(\*\) 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 @@ -15932,7 +15932,7 @@ SELECT + 58 * - COUNT ( * ) * + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78623 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(78\) \* Int64\(\-24\) \* Int64\(42\) AS col0" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(78\) \* Int64\(\-24\) \* Int64\(42\) AS col0" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 78 * - 24 * + 42 AS col0, 29 - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-3040 @@ -17038,7 +17038,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\(\*\) AS col0" at position 0 and "Int64\(\-76\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -18347,7 +18347,7 @@ SELECT ALL + ( - - NULLIF ( + 77, MAX ( - 73 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(\-34\) \+ Int64\(30\) \+ nullif\(Int64\(59\) \- \(\- count\(\*\)\) \* Int64\(59\), Int64\(8\)\) / count\(\*\) \* Int64\(\-8\) \* 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\(1\) AS col1" at position 0 and "Int64\(\-34\) \+ Int64\(30\) \+ nullif\(Int64\(59\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(59\), Int64\(8\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 col1, - 34 + + + 30 + NULLIF ( 59 - - COUNT ( * ) * 59, + 8 ) / ( COUNT ( * ) * - 8 ) * 19 AS col1 query I rowsort @@ -18979,7 +18979,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\(\*\) AS col2" at position 1 have the same 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 @@ -20837,7 +20837,7 @@ SELECT ALL 91 * + + 57 AS col1, - 76 * + 85 * - 19 - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3513 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* CAST\(Int64\(\-56\) AS Int32\) \* count\(\*\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* CAST\(Int64\(\-56\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 61 * + + CAST ( + - 56 AS INTEGER ) * + COUNT ( * ) + + + 97 AS col0, + 1 AS col0 query I rowsort label-3982 @@ -21737,7 +21737,7 @@ SELECT DISTINCT + 76 + - 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CAST\(CASE Int64\(17\) WHEN \(\- avg\(Int64\(\-33\)\)\) \* count\(\*\) \+ Int64\(5\) THEN \(\- CASE Int64\(2\) WHEN \(\- Int64\(\-34\)\) \* Int64\(21\) \* \(\- count\(Int64\(54\)\)\) THEN NULL ELSE Int64\(35\) \+ Int64\(50\) END\) / Int64\(74\) \+ count\(Int64\(\-60\)\) / Int64\(62\) WHEN Int64\(15\) \* Int64\(3\) \* Int64\(20\) \+ Int64\(16\) \* avg\(CAST\(Int64\(92\) AS Int32\)\) THEN NULL END AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CAST\(CASE Int64\(17\) WHEN \(\- avg\(Int64\(\-33\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(5\) THEN \(\- CASE Int64\(2\) WHEN \(\- Int64\(\-34\)\) \* Int64\(21\) \* \(\- count\(Int64\(54\)\)\) THEN NULL ELSE Int64\(35\) \+ Int64\(50\) END\) / Int64\(74\) \+ count\(Int64\(\-60\)\) / Int64\(62\) WHEN Int64\(15\) \* Int64\(3\) \* Int64\(20\) \+ Int64\(16\) \* avg\(CAST\(Int64\(92\) AS Int32\)\) THEN NULL END AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 25 AS col1, CAST ( + CASE 17 WHEN - + AVG ( + - 33 ) * + COUNT ( * ) + 5 THEN - CASE + ( 2 ) WHEN - - 34 * + 21 * - COUNT ( ALL + + 54 ) THEN NULL ELSE + 35 + 50 END / + 74 + + COUNT ( ALL - 60 ) / + + 62 WHEN + + 15 * + 3 * + 20 + 16 * AVG ( CAST ( 92 AS INTEGER ) ) THEN NULL END AS INTEGER ) AS col1 query I rowsort @@ -22728,7 +22728,7 @@ SELECT ALL 92 col2, MIN ( ALL - 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-32\)\) \* coalesce\(count\(\*\), Int64\(92\), Int64\(\-20\) \* \(\- Int64\(8\)\) \+ count\(\*\) \+ Int64\(90\) / nullif\(\(\- Int64\(11\)\), \(\- \(\- max\(Int64\(54\)\)\)\) / Int64\(\-30\)\) \+ Int64\(40\)\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-32\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(92\), Int64\(\-20\) \* \(\- Int64\(8\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(90\) / nullif\(\(\- Int64\(11\)\), \(\- \(\- max\(Int64\(54\)\)\)\) / Int64\(\-30\)\) \+ Int64\(40\)\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - 32 ) * + COALESCE ( + COUNT ( * ), + 92, - 20 * - + 8 + COUNT ( * ) + + 90 / + NULLIF ( ( - + 11 ), - - MAX ( 54 ) / - 30 ) + + + 40 ) AS col0, CAST ( 18 AS INTEGER ) AS col0 query I rowsort label-4343 @@ -22814,7 +22814,7 @@ SELECT - + 5 AS col2, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3008 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) \* Int64\(47\) \* \(\- count\(\*\)\) AS col0" at position 0 and "coalesce\(count\(\*\), Int64\(\-78\) \+ Int64\(2\) \+ Int64\(56\)\) \+ 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\(\-64\)\) \* Int64\(47\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-78\) \+ Int64\(2\) \+ Int64\(56\)\) \+ Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 64 * + 47 * - COUNT ( * ) AS col0, + COALESCE ( + + COUNT ( * ), - 78 + 2 + + 56 ) + - 4 AS col0 query I rowsort label-4359 @@ -23142,7 +23142,7 @@ SELECT MIN ( DISTINCT + 48 ) + + SUM ( DISTINCT + + 33 ) + - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(33\) \+ max\(Int64\(44\)\) \+ \(\- \(\- coalesce\(Int64\(49\), Int64\(39\), \(\- \(\- CAST\(\(\- avg\(DISTINCT Int64\(87\)\)\) AS Int32\)\)\)\)\)\) \+ Int64\(22\) \* count\(\*\) / CAST\(NULL AS Int32\) \* Int64\(66\) \* nullif\(Int64\(\-96\), Int64\(35\)\) \- \(\- CAST\(Int64\(\-63\) AS Int32\)\) \+ Int64\(19\) AS col0" at position 0 and "\(\- count\(\*\)\) \- \(\- Int64\(92\)\) \+ count\(\*\) \* Int64\(91\) \+ Int64\(0\) \+ Int64\(\-47\) \+ Int64\(\-67\) / Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(33\) \+ max\(Int64\(44\)\) \+ \(\- \(\- coalesce\(Int64\(49\), Int64\(39\), \(\- \(\- CAST\(\(\- avg\(DISTINCT Int64\(87\)\)\) AS Int32\)\)\)\)\)\) \+ Int64\(22\) \* count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) \* Int64\(66\) \* nullif\(Int64\(\-96\), Int64\(35\)\) \- \(\- CAST\(Int64\(\-63\) AS Int32\)\) \+ Int64\(19\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(92\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \+ Int64\(0\) \+ Int64\(\-47\) \+ Int64\(\-67\) / Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 24 + + 33 + + MAX ( + 44 ) + - - COALESCE ( + 49, + 39, - ( - CAST ( + - AVG ( DISTINCT 87 ) AS INTEGER ) ) ) + + + 22 * + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + 66 * + NULLIF ( - 96, + 35 ) - - CAST ( + - 63 AS INTEGER ) + + 19 AS col0, - COUNT ( * ) - - + 92 + + COUNT ( * ) * 91 + 0 + - 47 + - 67 / - 85 AS col0 query I rowsort label-4422 @@ -23548,7 +23548,7 @@ SELECT ALL + 56 + 51 + - COUNT ( * ) + + 1 + + 10 + - 76 * + 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -2296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(92\)\)\) AS col1" at position 0 and "\(\- max\(\(\- Int64\(82\)\)\)\) \* Int64\(28\) \* \(\- count\(\*\)\) AS col1" at position 1 have 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 col1" at position 0 and "\(\- max\(\(\- Int64\(82\)\)\)\) \* Int64\(28\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( ALL + 92 ) AS col1, - MAX ( - + 82 ) * 28 * - + COUNT ( * ) col1 query I rowsort label-4498 @@ -24144,7 +24144,7 @@ SELECT 77 + 15 # Datafusion - Expected - 1 # Datafusion - Expected - 137 # Datafusion - Expected - 3960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-42\) \* \(\- count\(\*\)\) \- Int64\(4\) / Int64\(72\) \* Int64\(14\) AS col2" at position 1 and "Int64\(88\) \* Int64\(45\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(4\) / Int64\(72\) \* Int64\(14\) AS col2" at position 1 and "Int64\(88\) \* Int64\(45\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 1 AS col0, + 95 + + - 42 * + + ( - ( COUNT ( * ) ) ) - 4 / + 72 * + + 14 AS col2, + 88 * 45 AS col2 query I rowsort @@ -24821,7 +24821,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\(\*\) \+ count\(\*\) AS col1" at position 0 and "Int64\(4\) \* \(\- \(\- Int64\(44\)\)\) \* \(\- CASE Int64\(34\) WHEN count\(\*\) THEN \(\- 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 @@ -28225,7 +28225,7 @@ SELECT ALL + 45, + COUNT ( DISTINCT + 6 ) * 25 + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -26 -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\(\-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\(\-17\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 17 AS col1, COUNT ( * ) + - 27 AS col1 query I rowsort label-5392 @@ -31458,7 +31458,7 @@ SELECT 43 - - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* \(\- \(\- 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 "Int64\(74\) \* \(\- \(\- 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 74 * - - COUNT ( * ) AS col0, 44 AS col0 query I rowsort @@ -31827,7 +31827,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\(\*\) 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 @@ -32106,7 +32106,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\(\*\) AS col2" at position 1 have the 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 @@ -32218,7 +32218,7 @@ SELECT ( + 16 ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -791 # Datafusion - Expected - 333216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* Int64\(\-2\) \* Int64\(\-18\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(39\) \* Int64\(96\) \* 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\(\-22\) \* Int64\(\-2\) \* Int64\(\-18\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(39\) \* Int64\(96\) \* Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 22 * - 2 * - 18 + - - COUNT ( * ) AS col2, 39 * + 96 * + + 89 AS col2 query I rowsort label-6153 @@ -32635,7 +32635,7 @@ SELECT DISTINCT 62 / + - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -2808 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-98\)\) AS col1" at position 0 and "Int64\(72\) \* Int64\(39\) / \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-98\)\) AS col1" at position 0 and "Int64\(72\) \* Int64\(39\) / \(\- 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, 72 * 39 / - COUNT ( * ) col1 query I rowsort label-6233 @@ -33250,7 +33250,7 @@ SELECT 78 - 55 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3784 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-43\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-43\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 * - - COUNT ( * ) * - 43 col2, 71 AS col2 query II rowsort @@ -34704,7 +34704,7 @@ SELECT DISTINCT + 72 + - ( 86 ) + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -964320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "CASE nullif\(\(\- avg\(DISTINCT Int64\(\-61\)\)\), Int64\(23\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(72\) \+ \(\- Int64\(38\)\)\) WHEN count\(\*\) \* \(\- Int64\(\-80\)\) THEN \(\- Int64\(\-52\)\) \+ Int64\(2\) \+ avg\(DISTINCT nullif\(Int64\(33\), Int64\(45\)\)\) \* \(\- nullif\(Int64\(95\), Int64\(\-83\)\)\) ELSE Int64\(10\) \* Int64\(\-41\) \* Int64\(\-49\) \* \(\- Int64\(48\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "CASE nullif\(\(\- avg\(DISTINCT Int64\(\-61\)\)\), Int64\(23\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(72\) \+ \(\- Int64\(38\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-80\)\) THEN \(\- Int64\(\-52\)\) \+ Int64\(2\) \+ avg\(DISTINCT nullif\(Int64\(33\), Int64\(45\)\)\) \* \(\- nullif\(Int64\(95\), Int64\(\-83\)\)\) ELSE Int64\(10\) \* Int64\(\-41\) \* Int64\(\-49\) \* \(\- Int64\(48\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 34 AS col2, + CASE NULLIF ( - + AVG ( DISTINCT - 61 ), + 23 / - + CAST ( NULL AS INTEGER ) + + 72 + - + 38 ) WHEN COUNT ( * ) * - - 80 THEN - - 52 + + 2 + + AVG ( DISTINCT NULLIF ( + 33, + 45 ) ) * - NULLIF ( + 95, - 83 ) ELSE + 10 * + ( + - 41 ) * - 49 * ( - + 48 ) END AS col2 query I rowsort label-6624 @@ -35870,7 +35870,7 @@ SELECT DISTINCT 18 * - 10 + + 47 * 69 * + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1562 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) / Int64\(40\) AS col2" at position 0 and "Int64\(22\) \* Int64\(\-71\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(40\) AS col2" at position 0 and "Int64\(22\) \* Int64\(\-71\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 / + + 40 col2, 22 * - 71 * - COUNT ( * ) col2 query I rowsort label-6853 @@ -37447,7 +37447,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\(\*\) 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 @@ -39403,7 +39403,7 @@ SELECT + 8 - 21 # Datafusion - Expected - 96 # Datafusion - Expected - 40 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(16\) AS col0" at position 0 and "Int64\(40\) \- \(\- 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 "Int64\(6\) \* Int64\(16\) AS col0" at position 0 and "Int64\(40\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(\-30\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 6 * 16 col0, + 40 - - COUNT ( * ) / - - 30 AS col0, + 69 query I rowsort label-7520 @@ -39837,7 +39837,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\(\*\) AS col2" at position 1 have the 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 @@ -40592,7 +40592,7 @@ SELECT DISTINCT + ( + COUNT ( DISTINCT + + 74 ) ) + COALESCE ( 9, + - 62, - COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 2039 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(96\) \- \(\- count\(\*\)\) \+ \(\- \(\- Int64\(82\)\)\) \- Int64\(\-93\) \* 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\(13\) AS col1" at position 0 and "Int64\(96\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(82\)\)\) \- Int64\(\-93\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 13 AS col1, + 96 - - + COUNT ( * ) + - - ( 82 ) - - 93 * 20 col1 query I rowsort @@ -41694,7 +41694,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-58\) AS Int32\) \+ Int64\(1\) \+ Int64\(\-45\) \* \(\- Int64\(\-42\)\) \* nullif\(Int64\(\-68\), Int64\(\-26\) \- Int64\(19\) \* count\(\*\) \* Int64\(85\)\) \+ CAST\(NULL AS Float64\) \* Int64\(\-20\) AS col0" at position 0 and "coalesce\(Int64\(77\), \(\- Int64\(44\)\) / Int64\(\-8\) \- Int64\(54\) \+ Int64\(70\), Int64\(\-11\) \* Int64\(5\) \+ Int64\(\-84\) / Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-58\) AS Int32\) \+ Int64\(1\) \+ Int64\(\-45\) \* \(\- Int64\(\-42\)\) \* nullif\(Int64\(\-68\), Int64\(\-26\) \- Int64\(19\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\)\) \+ CAST\(NULL AS Float64\) \* Int64\(\-20\) AS col0" at position 0 and "coalesce\(Int64\(77\), \(\- Int64\(44\)\) / Int64\(\-8\) \- Int64\(54\) \+ Int64\(70\), Int64\(\-11\) \* Int64\(5\) \+ Int64\(\-84\) / Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - 58 AS INTEGER ) + 1 + - 45 * - - 42 * + ( + NULLIF ( - 68, ( + - 26 ) - 19 * COUNT ( * ) * + 85 ) ) + + CAST ( NULL AS FLOAT8 ) * - 20 AS col0, COALESCE ( + 77, - ( + + 44 ) / + - 8 - 54 + + 70, - 11 * + 5 + - 84 / + - 69 ) AS col0 query I rowsort @@ -41895,7 +41895,7 @@ SELECT 61 * + + 0, 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72883 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \- Int64\(\-1\) \+ count\(\*\) \+ Int64\(48\) \* Int64\(33\) \* Int64\(\-46\) \- Int64\(95\) AS col2" at position 0 and "\(\- Int64\(62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \- Int64\(\-1\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(48\) \* Int64\(33\) \* Int64\(\-46\) \- Int64\(95\) AS col2" at position 0 and "\(\- Int64\(62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 74 - - 1 + + + COUNT ( * ) + + + 48 * + 33 * - 46 - + 95 AS col2, - ( + 62 ) AS col2 query I rowsort @@ -43318,7 +43318,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(58\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(58\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / + + 58 AS col1, 47 AS col1 # Datafusion - Types were automatically converted from: @@ -43530,7 +43530,7 @@ SELECT NULLIF ( + MIN ( + + 48 ), - 36 / 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(DISTINCT \(\- Int64\(72\)\)\)\)\) / Int64\(36\) AS col1" at position 0 and "Int64\(48\) \* count\(\*\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(DISTINCT \(\- Int64\(72\)\)\)\)\) / Int64\(36\) AS col1" at position 0 and "Int64\(48\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - MAX ( DISTINCT - + 72 ) / 36 AS col1, 48 * + COUNT ( * ) + + ( 96 ) AS col1 query I rowsort label-8301 @@ -44269,7 +44269,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "count\(\*\) / Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) 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 ALL 30 AS col0, COUNT ( * ) / + + 7 col0 query II rowsort @@ -44901,7 +44901,7 @@ SELECT ALL + 45 * 7 * + 33 + + + 94 + + COUNT ( * ) AS col2 # Datafusion - Expected - -90 # Datafusion - Expected - -60 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 1 and "\(\- Int64\(\-60\)\) \* \(\- 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\(\-90\) AS col0" at position 1 and "\(\- Int64\(\-60\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, - 90 AS col0, - - 60 * - COUNT ( * ) AS col0, - + 34 AS col1 query II rowsort @@ -47125,7 +47125,7 @@ SELECT 88 * - 47 - - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "Int64\(84\) \- 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 "Int64\(\-76\) AS col0" at position 0 and "Int64\(84\) \- 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 ALL - 76 AS col0, 84 - + COUNT ( * ) + - - 52 - + + 30 AS col0 query I rowsort label-8990 @@ -47653,7 +47653,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\(\*\) 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 @@ -48995,7 +48995,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE \(\- Int64\(\-39\)\) WHEN Int64\(\-18\) THEN \(\- CAST\(NULL AS Float64\)\) / Int64\(16\) END AS Float64\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(94\) 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\(CASE \(\- Int64\(\-39\)\) WHEN Int64\(\-18\) THEN \(\- CAST\(NULL AS Float64\)\) / Int64\(16\) END AS Float64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(94\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + CASE - - 39 WHEN - 18 THEN - CAST ( NULL AS FLOAT8 ) / 16 END AS FLOAT8 ) AS col2, - CAST ( NULL AS INTEGER ) * + + CASE - NULLIF ( 25, 0 + + 99 + 33 + 22 * - COUNT ( * ) * - 8 / SUM ( 66 ) * 32 ) WHEN + 10 / - - ( - - 94 ) THEN - - 41 + - 66 * - 60 END * + 42, - COUNT ( * ) + + 94 AS col2 query I rowsort label-9347 @@ -50746,7 +50746,7 @@ SELECT 64, + 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(45\) \+ \(\- 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 "Int64\(\-84\) AS col1" at position 0 and "Int64\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 84 AS col1, 45 + - COUNT ( * ) + 54 AS col1 query I rowsort label-9681 @@ -52053,7 +52053,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\(3\) / count\(\*\) AS col1" at position 1 have the 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 @@ -52338,7 +52338,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\(\*\) AS col0" at position 1 have the 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 ada91ef..11face4 100644 --- a/data/sqlite/random/expr/slt_good_83.slt +++ b/data/sqlite/random/expr/slt_good_83.slt @@ -40,7 +40,7 @@ INSERT INTO tab2 VALUES(46,51,23) # Datafusion - Datafusion expected results: # Datafusion - Expected - 207 # Datafusion - Expected - -210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* count\(\*\) \+ Int64\(2\) \* Int64\(74\) AS col0" at position 0 and "Int64\(\-41\) \* Int64\(\-3\) \+ \(\- count\(\*\)\) \+ count\(\(\- Int64\(61\)\)\) \+ Int64\(67\) \+ nullif\(Int64\(53\), Int64\(\-94\)\) \* \(\- coalesce\(\(\- Int64\(10\)\), count\(\*\) \* Int64\(\-77\) \* \(\- Int64\(38\)\) \* Int64\(37\) \+ \(\- Int64\(\-22\)\) \* Int64\(\-45\) \* Int64\(29\) \- Int64\(62\)\)\) / Int64\(\-1\) \+ Int64\(47\) \+ Int64\(\-83\) \* \(\- count\(Int64\(\-52\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(2\) \* Int64\(74\) AS col0" at position 0 and "Int64\(\-41\) \* Int64\(\-3\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(\(\- Int64\(61\)\)\) \+ Int64\(67\) \+ nullif\(Int64\(53\), Int64\(\-94\)\) \* \(\- coalesce\(\(\- Int64\(10\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-77\) \* \(\- Int64\(38\)\) \* Int64\(37\) \+ \(\- Int64\(\-22\)\) \* Int64\(\-45\) \* Int64\(29\) \- Int64\(62\)\)\) / Int64\(\-1\) \+ Int64\(47\) \+ Int64\(\-83\) \* \(\- count\(Int64\(\-52\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 59 * + + COUNT ( * ) + 2 * + 74 AS col0, - 41 * - 3 + - + COUNT ( * ) + COUNT ( - + 61 ) + 67 + + + NULLIF ( 53, - 94 ) * - + COALESCE ( - ( + + 10 ), + COUNT ( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) / - 1 + 47 + ( - 83 ) * - COUNT ( - 52 ) AS col0 query II rowsort label-1 @@ -69,7 +69,7 @@ SELECT SUM ( + 60 ), - 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 467 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \- Int64\(\-87\) \* Int64\(\-5\) \* \(\- count\(\*\)\) \+ \(\- Int64\(14\)\) 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 "Int64\(46\) \- Int64\(\-87\) \* Int64\(\-5\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(14\)\) 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 + 46 - - 87 * - 5 * - COUNT ( * ) + - + 14 AS col2, 98 col2 query I rowsort label-6 @@ -1541,7 +1541,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 720 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* CAST\(Int64\(\-72\) AS Int32\) AS col1" at position 0 and "CASE Int64\(\-17\) WHEN \(\- Int64\(40\)\) THEN NULL ELSE Int64\(96\) END \- \(\- count\(\*\)\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* CAST\(Int64\(\-72\) AS Int32\) AS col1" at position 0 and "CASE Int64\(\-17\) WHEN \(\- Int64\(40\)\) THEN NULL ELSE Int64\(96\) END \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 * + CAST ( - 72 AS INTEGER ) AS col1, CASE - 17 WHEN - + 40 THEN NULL ELSE + + 96 END - - COUNT ( * ) * + 86 AS col1 query I rowsort label-292 @@ -1763,7 +1763,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\(\*\) AS col1" at position 1 have the 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 @@ -3184,7 +3184,7 @@ SELECT 79 - - - 20 + + - CAST ( - SUM ( + 13 ) AS INTEGER ) * 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(58\) \* CASE \(\- \(\- Int64\(\-27\)\)\) WHEN Int64\(45\) / avg\(Int64\(91\)\) THEN \(\- Int64\(89\)\) ELSE count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(58\) \* CASE \(\- \(\- Int64\(\-27\)\)\) WHEN Int64\(45\) / avg\(Int64\(91\)\) THEN \(\- Int64\(89\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 46 AS col1, + 58 * + CASE + - ( - - 27 ) WHEN ( + 45 ) / + + AVG ( 91 ) THEN - + 89 ELSE + COUNT ( * ) END AS col1 query III rowsort @@ -3704,7 +3704,7 @@ SELECT ALL 71 * + 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2032 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-48\) \+ \(\- coalesce\(\(\- count\(\*\)\), \(\- count\(\*\)\)\)\) \+ Int64\(\-17\) 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 "Int64\(42\) \* Int64\(\-48\) \+ \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(\-17\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 42 * - 48 + + - COALESCE ( + - COUNT ( * ), - COUNT ( * ) ) + - 17 col2, ( 36 ) col2 query I rowsort label-704 @@ -4033,7 +4033,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\(\*\) 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 @@ -4146,7 +4146,7 @@ SELECT + 12, - 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(89\)\) AS col2" at position 0 and "count\(\*\) \* \(\- 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 "min\(DISTINCT Int64\(89\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MIN ( DISTINCT + 89 ) AS col2, COUNT ( * ) * - - 23 AS col2 query I rowsort label-787 @@ -5602,7 +5602,7 @@ SELECT DISTINCT MIN ( + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "Int64\(61\) \- \(\- CASE Int64\(2\) WHEN Int64\(33\) \- Int64\(65\) THEN count\(\*\) WHEN Int64\(\-43\) \- \(\- Int64\(70\)\) \- Int64\(15\) \* Int64\(96\) \* Int64\(65\) \* \(\- Int64\(80\)\) / Int64\(\-25\) \* \(\- \(\- count\(\*\)\)\) THEN NULL ELSE NULL END\) \+ Int64\(64\) \+ Int64\(71\) \* \(\- count\(\*\)\) / \(\- CASE Int64\(\-36\) WHEN Int64\(30\) THEN NULL ELSE Int64\(57\) \+ \(\- Int64\(\-61\)\) \* \(\- Int64\(51\)\) END\) \* Int64\(66\) \* Int64\(\-71\) \- nullif\(nullif\(Int64\(66\), Int64\(\-1\)\), Int64\(86\) \* 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\(7\) AS col1" at position 0 and "Int64\(61\) \- \(\- CASE Int64\(2\) WHEN Int64\(33\) \- Int64\(65\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-43\) \- \(\- Int64\(70\)\) \- Int64\(15\) \* Int64\(96\) \* Int64\(65\) \* \(\- Int64\(80\)\) / Int64\(\-25\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL ELSE NULL END\) \+ Int64\(64\) \+ Int64\(71\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- CASE Int64\(\-36\) WHEN Int64\(30\) THEN NULL ELSE Int64\(57\) \+ \(\- Int64\(\-61\)\) \* \(\- Int64\(51\)\) END\) \* Int64\(66\) \* Int64\(\-71\) \- nullif\(nullif\(Int64\(66\), Int64\(\-1\)\), Int64\(86\) \* Int64\(82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 7 AS col1, 61 - - CASE 2 WHEN + 33 - 65 THEN + COUNT ( * ) WHEN + - 43 - - + 70 - 15 * + 96 * 65 * - + 80 / - 25 * - - COUNT ( * ) THEN NULL ELSE NULL END + + 64 + + 71 * + + ( - COUNT ( * ) ) / - CASE - 36 WHEN 30 THEN NULL ELSE 57 + - ( - 61 ) * - + 51 END * + 66 * - 71 - + NULLIF ( + NULLIF ( + 66, - 1 ), + 86 * 82 ) AS col1 query I rowsort @@ -5720,7 +5720,7 @@ SELECT ALL ( + - COUNT ( * ) ) + - 19 * 58, + 18 * + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(57\) \+ \(\- count\(\*\)\) \* Int64\(68\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(68\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 AS col0, 57 + - COUNT ( * ) * ( 68 ) + + + CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-1090 @@ -6316,7 +6316,7 @@ SELECT ALL + 35 * COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(\*\)\), Int64\(\-53\) \* Int64\(20\)\) \* \(\- Int64\(52\)\) AS col2" at position 0 and "Int64\(52\) \* \(\- Int64\(43\)\) \+ \(\- Int64\(\-27\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-53\) \* Int64\(20\)\) \* \(\- Int64\(52\)\) AS col2" at position 0 and "Int64\(52\) \* \(\- Int64\(43\)\) \+ \(\- Int64\(\-27\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( - COUNT ( * ), - 53 * 20 ) * - + 52 AS col2, 52 * - + 43 + - - 27 + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -7466,7 +7466,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\(\*\) 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 @@ -7504,7 +7504,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- \(\- min\(\(\- Int64\(49\)\)\)\)\) WHEN \(\- CASE Int64\(\-36\) WHEN Int64\(21\) \* \(\- \(\- count\(\*\)\)\) \+ count\(\*\) THEN Int64\(97\) END\) \* Int64\(44\) THEN Int64\(\-78\) \* Int64\(\-18\) \* Int64\(78\) \+ Int64\(80\) \* count\(\*\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \+ Int64\(\-38\) \* Int64\(34\) THEN NULL END\) \* Int64\(\-26\) \+ Int64\(61\) AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- \(\- min\(\(\- Int64\(49\)\)\)\)\) WHEN \(\- CASE Int64\(\-36\) WHEN Int64\(21\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(97\) END\) \* Int64\(44\) THEN Int64\(\-78\) \* Int64\(\-18\) \* Int64\(78\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \+ Int64\(\-38\) \* Int64\(34\) THEN NULL END\) \* Int64\(\-26\) \+ Int64\(61\) AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE - - MIN ( - + 49 ) WHEN - + CASE - 36 WHEN + 21 * - - COUNT ( * ) + + COUNT ( * ) THEN 97 END * + 44 THEN - 78 * + - 18 * 78 + + 80 * COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + - 33 + + - 38 * 34 THEN NULL END * - 26 + 61 AS col2, - 9 AS col2 query I rowsort label-1431 @@ -7525,7 +7525,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -226 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ Int64\(\-27\) \- count\(\*\) \+ count\(\*\) \+ Int64\(88\) \* \(\- CAST\(Int64\(2\) AS Int32\)\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ Int64\(\-27\) \- count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \* \(\- CAST\(Int64\(2\) AS Int32\)\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 23 + - 27 - + + COUNT ( * ) + + COUNT ( * ) + 88 * - + CAST ( + 2 AS INTEGER ) AS col1, + 36 AS col1 query I rowsort @@ -10820,7 +10820,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "count\(\*\) \* CAST\(NULL AS Int32\) \+ Int64\(\-96\) / Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \+ Int64\(\-96\) / Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 98 AS col0, COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - 96 / 41 AS col0 query I rowsort label-2071 @@ -10954,7 +10954,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-97\) 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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - 97 AS col0, 7 AS col0 query I rowsort @@ -12313,7 +12313,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\(\*\) 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 @@ -12796,7 +12796,7 @@ SELECT + COUNT ( * ) + - 30 / MIN ( + 31 ) + + + 63 AS col0, 49 + + 93 + 87 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* CASE Int64\(68\) WHEN Int64\(76\) \+ Int64\(3\) \* Int64\(\-33\) \* Int64\(\-43\) \* Int64\(\-71\) \* Int64\(7\) THEN Int64\(\-32\) \+ Int64\(26\) \+ Int64\(\-12\) END \+ Int64\(0\) \* \(\- max\(DISTINCT Int64\(0\)\)\) AS col1" at position 0 and "Int64\(52\) \+ 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\(\*\)\) \* CASE Int64\(68\) WHEN Int64\(76\) \+ Int64\(3\) \* Int64\(\-33\) \* Int64\(\-43\) \* Int64\(\-71\) \* Int64\(7\) THEN Int64\(\-32\) \+ Int64\(26\) \+ Int64\(\-12\) END \+ Int64\(0\) \* \(\- max\(DISTINCT Int64\(0\)\)\) AS col1" at position 0 and "Int64\(52\) \+ Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * + CASE 68 WHEN + 76 + + 3 * - 33 * - 43 * - 71 * 7 THEN - 32 + 26 + - 12 END + - 0 * - MAX ( DISTINCT + 0 ) col1, 52 + + 3 AS col1 # Datafusion - Datafusion expected results: @@ -14800,7 +14800,7 @@ SELECT ALL + 43 * - 82 AS col2 # 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\(\-16\) \+ Int64\(21\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 ALL - 16 + + 21 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -15211,7 +15211,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\(\*\) \+ 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 @@ -15565,7 +15565,7 @@ SELECT - - CAST ( - 23 AS INTEGER ) / + - 40 / + + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(\-89\) \+ count\(\*\) \- 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\(88\) AS col2" at position 0 and "Int64\(\-89\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 88 AS col2, - 89 + COUNT ( * ) - 76 AS col2 query II rowsort label-2976 @@ -16046,7 +16046,7 @@ SELECT 47 + + ( + 26 ) # Datafusion - Expected - 82 # Datafusion - Expected - 39 # Datafusion - Expected - 3655 -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\)\) \+ Int64\(87\) / Int64\(67\) \* \(\- min\(Int64\(43\)\)\) \* \(\- Int64\(85\)\) 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\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(1\)\) \+ Int64\(87\) / Int64\(67\) \* \(\- min\(Int64\(43\)\)\) \* \(\- Int64\(85\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 82 AS col1, 39, COUNT ( * ) + - + ( + 1 ) + + + 87 / 67 * - MIN ( 43 ) * - + 85 AS col1 query II rowsort label-3068 @@ -17119,7 +17119,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\(\*\) AS col2" at position 1 have the 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 @@ -18017,7 +18017,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -18736,7 +18736,7 @@ SELECT ALL - COUNT ( * ) * + NULLIF ( - + 80, + 88 * + 46 * + 84 ) col2 # Datafusion - Expected - -25 # Datafusion - Expected - 60 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- count\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-38\), Int64\(53\) \* min\(Int64\(72\)\)\)\) \+ Int64\(\-23\) 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\(25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-38\), Int64\(53\) \* min\(Int64\(72\)\)\)\) \+ Int64\(\-23\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 * - COUNT ( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN ( ALL 72 ) ) + - 23 AS col1 query II rowsort label-3585 @@ -19515,7 +19515,7 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \+ Int64\(\-30\) \* \(\- Int64\(\-67\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \+ Int64\(\-30\) \* \(\- Int64\(\-67\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) AS col1, + 81 AS col0, + + ( - CAST ( NULL AS INTEGER ) ) + + + ( + - 33 ) + - 30 * - ( + - 67 ) * + - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -19848,7 +19848,7 @@ SELECT ALL 40 + - 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(42\)\), Int64\(\-42\)\) \+ Int64\(98\) AS col0" at position 0 and "\(\- 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 "nullif\(\(\- Int64\(42\)\), Int64\(\-42\)\) \+ Int64\(98\) 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 NULLIF ( - + 42, - 42 ) + 98 AS col0, - COUNT ( * ) + + ( 51 ) AS col0 query I rowsort @@ -20611,7 +20611,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\(\*\) THEN NULL END AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have 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 @@ -22085,7 +22085,7 @@ SELECT DISTINCT - 31 * + - 7 + + 84 + - MAX ( - 35 ) / + 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\)\) AS Int32\) \* \(\- Int64\(28\)\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS Int32\) \* \(\- Int64\(28\)\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) AS col0, CAST ( - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + 28 + 12 AS col0 query I rowsort label-4224 @@ -22398,7 +22398,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( DISTINCT + 16 ) col2, CAST ( - COUNT ( * ) AS INTEGER ) col2 query I rowsort @@ -25655,7 +25655,7 @@ SELECT DISTINCT - + SUM ( - + 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 0 -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\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 12 AS col1, + COUNT ( * ) / + + ( - 10 ) AS col1 query I rowsort label-4899 @@ -26034,7 +26034,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* \(\- count\(\*\)\) \- Int64\(\-61\) AS col1" at position 0 and "Int64\(19\) \+ 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\(53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-61\) AS col1" at position 0 and "Int64\(19\) \+ Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 53 * - COUNT ( * ) - - 61 AS col1, 19 + + 48 AS col1 query I rowsort label-4971 @@ -26065,7 +26065,7 @@ SELECT ALL + 68 * - + 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(4\)\)\) AS col1" at position 0 and "Int64\(45\) \+ 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 "\(\- sum\(Int64\(4\)\)\) AS col1" at position 0 and "Int64\(45\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + SUM ( ALL 4 ) ) AS col1, + 45 + COUNT ( * ) * 53 AS col1 # Datafusion - Types were automatically converted from: @@ -27138,7 +27138,7 @@ SELECT ALL - 14 + + CAST ( - 13 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-26\) 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\(\*\) \+ Int64\(\-26\) 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 ( * ) + - 26 AS col0, - 97 AS col0 query I rowsort @@ -29333,7 +29333,7 @@ SELECT ALL - ( - 59 ) * - COUNT ( DISTINCT 54 ) / 21 / + 16 + - COUNT ( ALL 12 ) # Datafusion - Expected - -3627 # Datafusion - Expected - -1 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(\-39\) AS col1" at position 0 and "\(\- count\(\*\)\) \- Int64\(\-10\) / 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\(93\) \* Int64\(\-39\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-10\) / Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 93 * - 39 AS col1, - COUNT ( * ) - - 10 / - 92 AS col1, - 61 - - COUNT ( * ) * + 42 query II rowsort @@ -29372,7 +29372,7 @@ SELECT + 10 / - 89 AS col1 # Datafusion - Expected - -66 # Datafusion - Expected - NULL # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* nullif\(\(\- \(\- count\(\*\)\)\), Int64\(59\)\) \+ Int64\(\-77\) AS col0" at position 0 and "avg\(Int64\(\-95\)\) \* \(\- \(\- CASE Int64\(\-93\) WHEN Int64\(54\) \* count\(\*\) THEN Int64\(8\) END\)\) \+ 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\(11\) \* nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(59\)\) \+ Int64\(\-77\) AS col0" at position 0 and "avg\(Int64\(\-95\)\) \* \(\- \(\- CASE Int64\(\-93\) WHEN Int64\(54\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(8\) END\)\) \+ Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 11 * + NULLIF ( - - COUNT ( * ), + 59 ) + - 77 col0, + AVG ( ALL - 95 ) * - - CASE - 93 WHEN 54 * + + COUNT ( * ) THEN 8 END + - 66 AS col0, - 22 query I rowsort label-5608 @@ -30635,7 +30635,7 @@ SELECT - COALESCE ( 17, + + 67 * + ( - COUNT ( * ) ), CASE - 45 WHEN 47 / - 60 T # Datafusion - Datafusion expected results: # Datafusion - Expected - 224 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ count\(\*\) \+ Int64\(\-39\) \* \(\- Int64\(4\)\) \+ \(\- Int64\(\-11\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-39\) \* \(\- Int64\(4\)\) \+ \(\- Int64\(\-11\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 56 + COUNT ( * ) + - 39 * - + ( + 4 ) + ( - - 11 ) col1, 91 AS col1 query I rowsort label-5849 @@ -30844,7 +30844,7 @@ SELECT ALL - 73 - COUNT ( * ) * - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -54 -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\(56\)\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\*\) \+ \(\- Int64\(56\)\) \- \(\- 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 ( * ) + + - ( + 56 ) - - COUNT ( * ) AS col2 query I rowsort @@ -30973,7 +30973,7 @@ SELECT ALL + COUNT ( * ) + - 9 AS col2 # 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 "nullif\(count\(\*\), Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 col2, + NULLIF ( + COUNT ( * ), 57 ) AS col2 query I rowsort label-5912 @@ -31763,7 +31763,7 @@ SELECT + 38 + + 50 - - 7 / + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 1211 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- coalesce\(Int64\(34\), \(\- count\(\*\)\), \(\- count\(\*\)\)\) AS col0" at position 0 and "min\(Int64\(22\)\) \* nullif\(Int64\(59\), \(\- Int64\(\-11\)\) \* Int64\(37\) \* \(\- count\(\*\)\) \* Int64\(43\) \* Int64\(\-25\) \+ Int64\(77\) \+ count\(\*\)\) \+ \(\- CAST\(Int64\(87\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- coalesce\(Int64\(34\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "min\(Int64\(22\)\) \* nullif\(Int64\(59\), \(\- Int64\(\-11\)\) \* Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \* Int64\(\-25\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(87\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 7 - + + COALESCE ( 34, - COUNT ( * ), - + COUNT ( * ) ) AS col0, + MIN ( ( + + 22 ) ) * NULLIF ( 59, - - 11 * 37 * - COUNT ( * ) * 43 * - 25 + 77 + COUNT ( * ) ) + - CAST ( 87 AS INTEGER ) AS col0 query I rowsort @@ -31959,7 +31959,7 @@ SELECT 66 / COUNT ( * ) - - - 8 + - - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-31\) AS Int32\) AS col0" at position 0 and "nullif\(nullif\(Int64\(\-98\), Int64\(30\)\), Int64\(24\)\) \* Int64\(96\) \+ \(\- Int64\(1\)\) \* CASE Int64\(\-32\) WHEN Int64\(50\) \* count\(\*\) THEN NULL WHEN Int64\(\-8\) THEN \(\- count\(\*\)\) \- coalesce\(\(\- count\(\*\)\), Int64\(\-98\) \* Int64\(34\) \+ Int64\(18\) \+ Int64\(\-51\) / Int64\(64\) \* \(\- avg\(Int64\(3\)\)\)\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-65\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-31\) AS Int32\) AS col0" at position 0 and "nullif\(nullif\(Int64\(\-98\), Int64\(30\)\), Int64\(24\)\) \* Int64\(96\) \+ \(\- Int64\(1\)\) \* CASE Int64\(\-32\) WHEN Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-8\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-98\) \* Int64\(34\) \+ Int64\(18\) \+ Int64\(\-51\) / Int64\(64\) \* \(\- avg\(Int64\(3\)\)\)\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-65\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 31 AS INTEGER ) AS col0, NULLIF ( NULLIF ( - 98, + + 30 ), + 24 ) * + 96 + + - ( + 1 ) * + CASE - 32 WHEN 50 * + ( + COUNT ( * ) ) THEN NULL WHEN - 8 THEN - COUNT ( * ) - + COALESCE ( - COUNT ( * ), + - 98 * + 34 + 18 + - 51 / 64 * ( - AVG ( + 3 ) ) ) * + + CAST ( NULL AS INTEGER ) * - - 65 END AS col0 query II rowsort label-6098 @@ -32724,7 +32724,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\(\*\) 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 @@ -32883,7 +32883,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\(\*\) 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 @@ -33046,7 +33046,7 @@ SELECT ALL 99 / 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(43\) \* 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\(43\) \* Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - COUNT ( * ) AS col1, 43 * 90 AS col1 query II rowsort @@ -33247,7 +33247,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(18\)\)\) \* Int64\(\-5\) AS col1" at position 0 and "CASE Int64\(92\) WHEN \(\- count\(\*\)\) THEN Int64\(64\) WHEN Int64\(96\) THEN Int64\(99\) END \+ 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 "\(\- min\(Int64\(18\)\)\) \* Int64\(\-5\) AS col1" at position 0 and "CASE Int64\(92\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(64\) WHEN Int64\(96\) THEN Int64\(99\) END \+ Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( + 18 ) * ( - 5 ) AS col1, + CASE + 92 WHEN + - COUNT ( * ) THEN 64 WHEN + 96 THEN + + 99 END + + 11 AS col1 query I rowsort label-6344 @@ -36794,7 +36794,7 @@ SELECT ALL - ( - - 14 ) * 91 * - - CAST ( + + 76 AS INTEGER ) + + ( 13 ) - 89 / # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "\(\- Int64\(81\)\) \+ Int64\(22\) \+ \(\- \(\- CASE \(\- Int64\(\-33\)\) WHEN Int64\(23\) THEN NULL WHEN \(\- \(\- nullif\(Int64\(\-79\), Int64\(74\) \+ Int64\(37\)\)\)\) THEN NULL WHEN Int64\(86\) THEN NULL ELSE \(\- coalesce\(Int64\(\-46\), \(\- count\(\*\)\) / Int64\(43\)\)\) 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\(36\) AS col1" at position 0 and "\(\- Int64\(81\)\) \+ Int64\(22\) \+ \(\- \(\- CASE \(\- Int64\(\-33\)\) WHEN Int64\(23\) THEN NULL WHEN \(\- \(\- nullif\(Int64\(\-79\), Int64\(74\) \+ Int64\(37\)\)\)\) THEN NULL WHEN Int64\(86\) THEN NULL ELSE \(\- coalesce\(Int64\(\-46\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(43\)\)\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 36 AS col1, ( - + 81 ) + 22 + - - CASE - - 33 WHEN + 23 THEN NULL WHEN - - NULLIF ( - 79, 74 + + 37 ) THEN NULL WHEN ( + 86 ) THEN NULL ELSE - ( COALESCE ( - 46, - COUNT ( * ) / 43 ) ) END AS col1 query I rowsort label-7029 @@ -36810,7 +36810,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\(\*\) 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 @@ -37276,7 +37276,7 @@ SELECT ALL - ( + 6 ) / - + CAST ( 10 AS INTEGER ) * - + CASE WHEN ( 83 ) > COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / count\(\*\) / \(\- 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 "Int64\(44\) / count\(Int64\(1\)\) AS count\(\*\) / \(\- 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 + 44 / + COUNT ( * ) / - COUNT ( * ) AS col0, - 34 col0 query I rowsort @@ -37554,7 +37554,7 @@ SELECT 57 * CAST ( - 81 AS INTEGER ) + - COUNT ( * ) # 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\(\*\)\) 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 II rowsort label-7175 @@ -37906,7 +37906,7 @@ SELECT DISTINCT 96 * - 92 + + 5 * ( + 56 ) AS col1, - 64 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\(\-79\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(6\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(6\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 + - COUNT ( * ) AS col0, - COUNT ( 6 ) AS col0 query I rowsort label-7240 @@ -38377,7 +38377,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\(\*\) AS Int32\) \* Int64\(\-28\)\)\) \* \(\- \(\- min\(Int64\(14\)\)\)\) AS col1" at position 0 and "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 @@ -38398,7 +38398,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\(\*\) 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 @@ -38917,7 +38917,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 1948 -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\(\-81\) \+ Int64\(68\) \* \(\- Int64\(13\)\) \* \(\- 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\(43\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-81\) \+ Int64\(68\) \* \(\- Int64\(13\)\) \* \(\- Int64\(2\)\) \+ Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 43 AS col0, - COUNT ( * ) * - 81 + + 68 * - + 13 * - + 2 + + 99 AS col0 query I rowsort label-7434 @@ -40286,7 +40286,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\(\*\) / 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: @@ -40762,7 +40762,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -42301,7 +42301,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\(\*\) AS col1" at position 1 have 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 @@ -42345,7 +42345,7 @@ SELECT + 18 / + + CAST ( + 57 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3053 # Datafusion - Expected - -107327 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-43\) AS col0" at position 0 and "count\(\*\) \+ Int64\(96\) \* Int64\(43\) \* \(\- sum\(Int64\(26\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-43\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) \* Int64\(43\) \* \(\- sum\(Int64\(26\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * - 43 AS col0, COUNT ( * ) + 96 * 43 * - ( + + ( + SUM ( + 26 ) ) ) AS col0 query I rowsort label-8087 @@ -42489,7 +42489,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\(\*\) AS col1" at position 1 have the 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 @@ -42611,7 +42611,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\(98\) \+ 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 @@ -46948,7 +46948,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\(\*\) 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 @@ -48149,7 +48149,7 @@ SELECT - - CASE 41 WHEN + 0 + + 40 * - 23 + - 23 THEN + + ( - 14 ) WHEN 40 + - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -115 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(60\) \+ Int64\(\-98\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(60\) \+ Int64\(\-98\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 77 + + 60 + - 98 col0, ( - COUNT ( * ) ) + + 91 AS col0 query I rowsort label-9191 @@ -49713,7 +49713,7 @@ SELECT DISTINCT SUM ( ALL - ( + 9 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) / \(\- 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\(56\) / \(\- 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 + 56 / - COUNT ( * ) AS col1, + 85 AS col1 query I rowsort label-9490 @@ -49851,7 +49851,7 @@ SELECT ALL + 67 * - + 0 AS col1, 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ count\(\*\) \+ Int64\(\-91\) \- \(\- Int64\(\-62\)\) / Int64\(\-35\) \+ Int64\(34\) \+ Int64\(74\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-91\) \- \(\- Int64\(\-62\)\) / Int64\(\-35\) \+ Int64\(34\) \+ Int64\(74\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 + + COUNT ( * ) + + - 91 - + ( - - 62 ) / - 35 + + 34 + + + 74 AS col1, 67 AS col1 query I rowsort @@ -49926,7 +49926,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\(\*\) AS col1" at position 1 have the 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 @@ -51831,7 +51831,7 @@ SELECT ALL + COUNT ( * ) * 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(83\) AS col1" at position 0 and "Int64\(10\) \* 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\(\*\) \* Int64\(83\) AS col1" at position 0 and "Int64\(10\) \* Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + 83 col1, + 10 * + + 68 AS col1 query I rowsort label-9891 diff --git a/data/sqlite/random/expr/slt_good_84.slt b/data/sqlite/random/expr/slt_good_84.slt index b17befd..aab61b8 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\(\*\) 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 @@ -3626,7 +3626,7 @@ SELECT - - 80 * ( + 42 ) # 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\(\-22\) \+ Int64\(\-22\) \+ Int64\(74\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-22\) \+ 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 - 22 + - 22 + 74 col0, - COUNT ( * ) AS col0 query I rowsort @@ -4146,7 +4146,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\(\*\) AS col1" at position 1 have the 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 @@ -4579,7 +4579,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\(\*\) 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 @@ -5864,7 +5864,7 @@ SELECT + + 2 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-71\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ count\(\*\) \* Int64\(\-3\) \+ Int64\(38\) \+ Int64\(\-83\) \+ 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\(\*\) \+ Int64\(\-71\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-3\) \+ Int64\(38\) \+ Int64\(\-83\) \+ Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) + - 71 AS col0, - COUNT ( * ) + COUNT ( * ) * - 3 + + 38 + - 83 + + + 4 col0 query I rowsort label-1112 @@ -10187,7 +10187,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\(\*\) AS col0" at position 1 have the 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 @@ -10466,7 +10466,7 @@ SELECT ALL MIN ( - + 93 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- count\(\*\)\) \* Int64\(\-59\) 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\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-59\) 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 ( * ) * + - COUNT ( * ) * - 59 col2, + 29 AS col2 query I rowsort label-1994 @@ -10686,7 +10686,7 @@ SELECT ALL 42 * 3 AS col1, 31 / - 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 2044 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(66\) \+ Int64\(\-86\) \* Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(66\) \+ Int64\(\-86\) \* Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 48 + + - COUNT ( * ) AS col2, 66 + - 86 * - 23 AS col2 query I rowsort label-2035 @@ -11434,7 +11434,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\(\*\) 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 @@ -12378,7 +12378,7 @@ SELECT - NULLIF ( - NULLIF ( + 80, - 27 * + - COUNT ( * ) ), + 30 + - + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 296 # Datafusion - Expected - 3520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- nullif\(\(\- min\(Int64\(8\)\)\), \(\- count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(40\) \* 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\(37\) \* \(\- nullif\(\(\- min\(Int64\(8\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(40\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 * - NULLIF ( - MIN ( + 8 ), - COUNT ( * ) ) col1, + 40 * + + 88 AS col1 query I rowsort @@ -14003,7 +14003,7 @@ SELECT ALL ( + - ( - 59 ) ) + + + NULLIF ( + COALESCE ( - ( COUNT ( * ) ), - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 663 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "max\(Int64\(44\)\) \+ Int64\(32\) \+ Int64\(\-21\) \* Int64\(\-28\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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 "max\(Int64\(44\)\) \+ Int64\(32\) \+ Int64\(\-21\) \* Int64\(\-28\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 76 AS col0, + MAX ( + 44 ) + 32 + - 21 * - 28 + - + COUNT ( * ) col0 query I rowsort label-2666 @@ -15953,7 +15953,7 @@ SELECT 72 * - 56 col0 # Datafusion - Expected - 39 # Datafusion - Expected - 7238 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(94\) AS col2" at position 1 and "\(\- count\(\*\)\) \* \(\- count\(\*\)\) \* Int64\(\-13\) \+ Int64\(0\) \- Int64\(13\) \+ Int64\(83\) \* avg\(DISTINCT CAST\(NULL AS Float64\)\) \* Int64\(33\) / Int64\(38\) 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\(77\) \* Int64\(94\) AS col2" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-13\) \+ Int64\(0\) \- Int64\(13\) \+ Int64\(83\) \* avg\(DISTINCT CAST\(NULL AS Float64\)\) \* Int64\(33\) / Int64\(38\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39, + 77 * + + 94 AS col2, - + COUNT ( * ) * - + COUNT ( * ) * + - 13 + + 0 - + 13 + + 83 * + + AVG ( DISTINCT + CAST ( NULL AS FLOAT8 ) ) * 33 / + 38 col2 query I rowsort label-3039 @@ -15970,7 +15970,7 @@ SELECT DISTINCT + + MAX ( DISTINCT ( + ( 51 ) ) ) + - 83 * 24 AS col1, + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -3813 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-65\) AS col0" at position 0 and "Int64\(41\) \* 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\(\*\)\) \+ Int64\(\-65\) AS col0" at position 0 and "Int64\(41\) \* Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - COUNT ( * ) ) + - 65 AS col0, 41 * - 93 AS col0 query I rowsort @@ -16191,7 +16191,7 @@ SELECT + - 22 * - MAX ( ALL ( 54 ) ), 84 * - - 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(31\) 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\(\*\) \* Int64\(31\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * + 31 AS col0, - 57 AS col0 query II rowsort @@ -18983,7 +18983,7 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - -1 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 1 and "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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 and "Int64\(9\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ), - COUNT ( * ) AS col2, ( 9 ) AS col2 # Datafusion - Types were automatically converted from: @@ -19145,7 +19145,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-14\) 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\(\*\)\) \+ Int64\(\-14\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + - 14 AS col2, + 37 AS col2 query I rowsort @@ -19809,7 +19809,7 @@ SELECT COUNT ( * ) * - 8 * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 67 -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\(24\) \+ count\(\*\) \- nullif\(Int64\(\-41\), 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\(\-49\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(24\) \+ count\(Int64\(1\)\) AS count\(\*\) \- nullif\(Int64\(\-41\), Int64\(\-97\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 49 AS col2, COUNT ( * ) + 24 + + COUNT ( * ) - NULLIF ( - 41, - 97 ) AS col2 query II rowsort @@ -19900,7 +19900,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 613 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-40\) \* Int64\(38\) / \(\- \(\- count\(\*\)\)\) \- \(\- Int64\(\-27\)\) \* 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\(98\) AS col0" at position 0 and "Int64\(\-40\) \* Int64\(38\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- \(\- Int64\(\-27\)\) \* Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 98 AS col0, - 40 * 38 / - - COUNT ( * ) - - - 27 * - 79 AS col0 query I rowsort @@ -20478,7 +20478,7 @@ SELECT - - 85 * + - 37 + 81 - - + 71 + 55 - ( + 24 ) + 66 * + 9 * - 75 AS col0, # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(10\) 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\(\*\)\) \* Int64\(10\) AS col0" at position 0 and "\(\- Int64\(71\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - COUNT ( * ) ) * + 10 AS col0, ( - ( 71 ) ) AS col0 query I rowsort @@ -20960,7 +20960,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\(\*\) 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 @@ -21078,7 +21078,7 @@ SELECT DISTINCT + - COALESCE ( - - 33, - 99, - 90 ) / 98 # 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\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(77\) / \(\- Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(77\) / \(\- Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 95 AS col2, + COUNT ( * ) * + 77 / - - 19 AS col2 query I rowsort @@ -21195,7 +21195,7 @@ SELECT - ( - - 43 ) - COUNT ( * ) + - 92 - - + 45 AS 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\(DISTINCT \(\- Int64\(\-76\)\)\) AS col2" at position 0 and "count\(\*\) \- \(\- Int64\(\-25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- Int64\(\-76\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( DISTINCT - - 76 ) AS col2, COUNT ( * ) - - - 25 AS col2 query I rowsort @@ -21415,7 +21415,7 @@ SELECT ALL 90 - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 0 -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\(\-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\(39\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 39 AS col1, + COUNT ( * ) / - 71 AS col1 query I rowsort label-4083 @@ -23393,7 +23393,7 @@ SELECT ALL 74 * - COUNT ( * ) * + - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(32\) \* 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\(23\) AS col1" at position 0 and "Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 23 AS col1, 32 * COUNT ( * ) / - + 76 AS col1 query I rowsort @@ -23726,7 +23726,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\(\*\) AS col0" at position 1 have the 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 @@ -24219,7 +24219,7 @@ SELECT ALL 92 + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - 2561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(87\) AS col2" at position 0 and "Int64\(\-79\) \- Int64\(\-33\) \* count\(\*\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(87\) AS col2" at position 0 and "Int64\(\-79\) \- Int64\(\-33\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 + 87 AS col2, - 79 - - 33 * + COUNT ( * ) * 80 AS col2 query I rowsort label-4610 @@ -24643,7 +24643,7 @@ SELECT ALL - - COUNT ( * ) * 48 + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5093 # Datafusion - Expected - 22275 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \* Int64\(83\) \+ Int64\(63\) \+ Int64\(73\) AS col1" at position 0 and "count\(\*\) / Int64\(\-37\) \+ Int64\(15\) \* Int64\(15\) \* 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\(63\)\) \* Int64\(83\) \+ Int64\(63\) \+ Int64\(73\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-37\) \+ Int64\(15\) \* Int64\(15\) \* Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 63 * 83 + 63 + + 73 col1, COUNT ( * ) / + - 37 + + 15 * + 15 * 99 AS col1 # Datafusion - Types were automatically converted from: @@ -25448,7 +25448,7 @@ SELECT + 67 + 72 + - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 655 # Datafusion - Expected - -3455 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(81\) \+ Int64\(\-74\) AS col1" at position 0 and "Int64\(20\) \+ count\(\*\) \+ CAST\(Int64\(\-79\) AS Int32\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(81\) \+ Int64\(\-74\) AS col1" at position 0 and "Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-79\) AS Int32\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 9 * + ( + 81 ) + - 74 AS col1, + 20 + + COUNT ( * ) + + CAST ( - 79 AS INTEGER ) * + ( 44 ) AS col1 query I rowsort label-4840 @@ -27592,7 +27592,7 @@ SELECT ALL - - COUNT ( * ) AS col2, 35 * 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* \(\- 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\(46\) \* \(\- 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 46 * - COUNT ( * ) AS col2, 61 AS col2 query I rowsort label-5254 @@ -30977,7 +30977,7 @@ SELECT - 61 + + 74 * + 17 * - + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-23\), count\(\*\) / Int64\(\-28\)\) 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 "nullif\(Int64\(\-23\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-28\)\) 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 NULLIF ( - 23, COUNT ( * ) / - 28 ) AS col0, ( 11 ) AS col0 query I rowsort label-5895 @@ -32845,7 +32845,7 @@ SELECT ALL SUM ( - - 33 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-19\) \* Int64\(\-22\) \+ Int64\(50\) 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\(\*\) / Int64\(\-19\) \* Int64\(\-22\) \+ Int64\(50\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) / - 19 * - 22 + 50 AS col1, 81 AS col1 query I rowsort label-6249 @@ -32887,7 +32887,7 @@ SELECT + 18 * + - ( COUNT ( * ) ) / - 65 + 74 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - COUNT ( * ) query II rowsort label-6257 @@ -33591,7 +33591,7 @@ SELECT DISTINCT - 31 * CASE 63 WHEN CAST ( NULL AS FLOAT8 ) THEN - - 12 / - 59 + # 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\(\*\) AS Int32\) AS col2" at position 0 and "Int64\(\-60\) \+ Int64\(37\) \+ CAST\(NULL AS Int32\) \- Int64\(82\) / \(\- 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 @@ -35568,7 +35568,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\(\*\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -36552,7 +36552,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\(\*\) 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 @@ -37104,7 +37104,7 @@ SELECT + 69 AS col1, + 48 + + + 20 * + 94 * 79 # 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\(\*\)\) AS col1" at position 1 have the 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 41 col1, - COUNT ( * ) AS col1 query I rowsort @@ -38523,7 +38523,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\(\*\) 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 @@ -39758,7 +39758,7 @@ SELECT ALL 78 + 0 * + 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-31\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(69\) THEN count\(\*\) \- \(\- Int64\(89\)\) \+ Int64\(83\) END\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-31\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(69\) THEN count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(89\)\) \+ Int64\(83\) END\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) + - - 31 AS col1, - COUNT ( * ) * - CASE - 84 WHEN + 69 THEN + COUNT ( * ) - + - ( + 89 ) + 83 END + 79 AS col1 query I rowsort label-7572 @@ -40828,7 +40828,7 @@ SELECT DISTINCT + 81 + - 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "avg\(Int64\(\-57\)\) \* CASE count\(\*\) WHEN Int64\(59\) THEN NULL WHEN Int64\(80\) THEN NULL WHEN Int64\(\-82\) \* Int64\(\-90\) \- \(\- Int64\(\-1\)\) THEN CAST\(NULL AS Int32\) END \- Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "avg\(Int64\(\-57\)\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(59\) THEN NULL WHEN Int64\(80\) THEN NULL WHEN Int64\(\-82\) \* Int64\(\-90\) \- \(\- Int64\(\-1\)\) THEN CAST\(NULL AS Int32\) END \- Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 43 AS col1, + AVG ( ALL - 57 ) * CASE + + COUNT ( * ) WHEN + 59 THEN NULL WHEN 80 THEN NULL WHEN - 82 * - 90 - - - 1 THEN + CAST ( NULL AS INTEGER ) END - 61 AS col1 query I rowsort label-7774 @@ -41721,7 +41721,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\(\*\) AS col1" at position 1 have the 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 @@ -41965,7 +41965,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\(\*\) AS col1" at position 0 and "count\(\*\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -41997,7 +41997,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\(\*\) AS col0" at position 1 have the 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 @@ -44321,7 +44321,7 @@ SELECT DISTINCT - 44 AS col2, 87 * COUNT ( * ) - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -118 -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\(16\) \+ Int64\(\-38\) \+ Int64\(\-7\) \* Int64\(\-95\) / Int64\(\-95\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(16\) \+ Int64\(\-38\) \+ Int64\(\-7\) \* Int64\(\-95\) / Int64\(\-95\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 18 AS col1, + COUNT ( * ) + + + 16 + + - 38 + - 7 * - 95 / - 95 + - 90 col1 query II rowsort @@ -44698,7 +44698,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\(\*\) AS col0" at position 1 have the 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 @@ -45439,7 +45439,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\(\*\) \- 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: @@ -47525,7 +47525,7 @@ SELECT 18 AS col1, 36 * 36 - + + COUNT ( * ) - + 52 * + + 37 + - + 71 / 55 * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* Int64\(53\) \* nullif\(Int64\(20\), \(\- count\(\*\)\)\) \+ Int64\(60\) \* coalesce\(Int64\(\-50\), count\(\*\)\) \+ \(\- CASE \(\- Int64\(26\)\) WHEN Int64\(34\) THEN count\(\*\) \* \(\- count\(\*\)\) \* Int64\(19\) END\) 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\(\-73\) \* Int64\(53\) \* nullif\(Int64\(20\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(60\) \* coalesce\(Int64\(\-50\), count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE \(\- Int64\(26\)\) WHEN Int64\(34\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(19\) END\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 73 * 53 * + ( + NULLIF ( 20, + - COUNT ( * ) ) ) + + 60 * COALESCE ( - 50, + COUNT ( * ) ) + - + CASE - + 26 WHEN 34 THEN + COUNT ( * ) * - COUNT ( * ) * + + 19 END AS col2, 75 AS col2 query I rowsort @@ -48934,7 +48934,7 @@ SELECT DISTINCT 25 AS col1, 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(\-35\) \* \(\- Int64\(\-95\)\) \+ CASE Int64\(85\) WHEN nullif\(Int64\(26\), Int64\(48\) / Int64\(45\) \- Int64\(\-4\) / Int64\(48\)\) \+ Int64\(47\) \* CASE Int64\(95\) WHEN Int64\(22\) \+ Int64\(\-21\) THEN \(\- Int64\(29\)\) END THEN Int64\(99\) \+ CAST\(NULL AS Int32\) \* Int64\(\-20\) \+ count\(\*\) END \+ Int64\(57\) \* \(\- Int64\(16\)\) \* Int64\(27\) AS col0" at position 0 and "nullif\(min\(\(\- Int64\(60\)\)\), Int64\(25\) / \(\- Int64\(88\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(\-35\) \* \(\- Int64\(\-95\)\) \+ CASE Int64\(85\) WHEN nullif\(Int64\(26\), Int64\(48\) / Int64\(45\) \- Int64\(\-4\) / Int64\(48\)\) \+ Int64\(47\) \* CASE Int64\(95\) WHEN Int64\(22\) \+ Int64\(\-21\) THEN \(\- Int64\(29\)\) END THEN Int64\(99\) \+ CAST\(NULL AS Int32\) \* Int64\(\-20\) \+ count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(57\) \* \(\- Int64\(16\)\) \* Int64\(27\) AS col0" at position 0 and "nullif\(min\(\(\- Int64\(60\)\)\), Int64\(25\) / \(\- Int64\(88\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 46 / - 35 * - - 95 + + + CASE 85 WHEN + + NULLIF ( + 26, 48 / 45 - - 4 / + + 48 ) + 47 * CASE + 95 WHEN + 22 + + ( - 21 ) THEN - + 29 END THEN 99 + CAST ( NULL AS INTEGER ) * - 20 + COUNT ( * ) END + 57 * - ( 16 ) * 27 col0, + NULLIF ( + MIN ( ALL - + 60 ), 25 / - ( + 88 ) ) AS col0 query I rowsort @@ -48969,7 +48969,7 @@ SELECT - 34 / + COALESCE ( 57, + + 9 ) * 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 100646 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* max\(\(\- \(\- Int64\(41\)\)\)\) AS col0" at position 0 and "Int64\(98\) \* Int64\(13\) \* 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\(\*\) \* max\(\(\- \(\- Int64\(41\)\)\)\) AS col0" at position 0 and "Int64\(98\) \* Int64\(13\) \* Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + MAX ( - - ( 41 ) ) col0, 98 * 13 * + 79 AS col0 query II rowsort label-9327 @@ -49885,7 +49885,7 @@ SELECT ( + 43 ) * 78 + 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 16920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-18\) AS col0" at position 0 and "sum\(DISTINCT Int64\(47\)\) \* coalesce\(\(\- Int64\(\-40\)\), \(\- Int64\(95\)\) \+ Int64\(50\) \* Int64\(89\)\) \* 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\(\*\) \+ Int64\(\-18\) AS col0" at position 0 and "sum\(DISTINCT Int64\(47\)\) \* coalesce\(\(\- Int64\(\-40\)\), \(\- Int64\(95\)\) \+ Int64\(50\) \* Int64\(89\)\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - 18 AS col0, SUM ( DISTINCT 47 ) * COALESCE ( - ( - 40 ), - + 95 + 50 * 89 ) * + + 9 AS col0 query I rowsort label-9503 diff --git a/data/sqlite/random/expr/slt_good_85.slt b/data/sqlite/random/expr/slt_good_85.slt index dcb8d73..9c70655 100644 --- a/data/sqlite/random/expr/slt_good_85.slt +++ b/data/sqlite/random/expr/slt_good_85.slt @@ -891,7 +891,7 @@ SELECT ALL - 86 AS col2, 48 + + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 1950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) / \(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(64\) \+ \(\- Int64\(\-46\)\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(64\) \+ \(\- Int64\(\-46\)\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 89 / - + COUNT ( * ) * + - COUNT ( * ) col2, 64 + - - 46 * ( 41 ) AS col2 query II rowsort label-165 @@ -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\(\-35\) THEN \(\- Int64\(97\)\) ELSE NULL END\) \+ 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 @@ -1817,7 +1817,7 @@ SELECT DISTINCT + + ( 56 ) AS col2, 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- count\(\*\)\) \+ Int64\(29\) \* \(\- Int64\(5\)\) AS col1" at position 0 and "\(\- Int64\(\-25\)\) \+ CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) \* \(\- Int64\(5\)\) AS col1" at position 0 and "\(\- Int64\(\-25\)\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 48 * + - COUNT ( * ) + 29 * - + 5 AS col1, - ( - 25 ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 query I rowsort label-340 @@ -2340,7 +2340,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\(\*\) AS col0" at position 1 have the 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 @@ -2483,7 +2483,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\(\*\) AS col0" at position 1 have the 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 @@ -2894,7 +2894,7 @@ SELECT NULLIF ( 35, + 28 ) col0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-96\) WHEN Int64\(39\) \* count\(\*\) \+ \(\- max\(Int64\(53\)\)\) THEN Int64\(0\) \* Int64\(\-72\) WHEN Int64\(46\) THEN NULL END \* Int64\(83\) \* \(\- sum\(Int64\(97\)\)\) AS col2" at position 1 and "Int64\(\-16\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-96\) WHEN Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(Int64\(53\)\)\) THEN Int64\(0\) \* Int64\(\-72\) WHEN Int64\(46\) THEN NULL END \* Int64\(83\) \* \(\- sum\(Int64\(97\)\)\) AS col2" at position 1 and "Int64\(\-16\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + + 53 / - CAST ( NULL AS INTEGER ) + - COALESCE ( + - 56, 29 * - COUNT ( * ) + + 15 ) + - 67 * 57 + - - 53 + - + 51, CASE - 96 WHEN 39 * + COUNT ( * ) + + - MAX ( 53 ) THEN - 0 * - 72 WHEN + 46 THEN NULL END * + 83 * - SUM ( 97 ) col2, - 16 AS col2 query I rowsort label-546 @@ -3007,7 +3007,7 @@ SELECT - + 99 * - + 43 # Datafusion - Expected - 141 # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-19\) WHEN Int64\(\-67\) \* \(\- Int64\(29\)\) \- Int64\(49\) THEN Int64\(28\) \* \(\- Int64\(57\)\) \+ CAST\(Int64\(\-88\) AS Float64\) WHEN Int64\(79\) \+ count\(Int64\(24\)\) / \(\- CAST\(Int64\(54\) AS Int32\)\) \- Int64\(52\) THEN Int64\(\-82\) ELSE NULL END AS col2" at position 1 and "\(\- count\(\*\)\) \* Int64\(\-7\) \- Int64\(59\) / \(\- Int64\(52\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-19\) WHEN Int64\(\-67\) \* \(\- Int64\(29\)\) \- Int64\(49\) THEN Int64\(28\) \* \(\- Int64\(57\)\) \+ CAST\(Int64\(\-88\) AS Float64\) WHEN Int64\(79\) \+ count\(Int64\(24\)\) / \(\- CAST\(Int64\(54\) AS Int32\)\) \- Int64\(52\) THEN Int64\(\-82\) ELSE NULL END AS col2" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) \- Int64\(59\) / \(\- Int64\(52\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 + 43 AS col0, CASE + - 19 WHEN - 67 * - + 29 - + + 49 THEN 28 * - ( 57 ) + + CAST ( + - 88 AS FLOAT8 ) WHEN + 79 + + COUNT ( + + 24 ) / - CAST ( 54 AS INTEGER ) - + + 52 THEN - 82 ELSE NULL END AS col2, - COUNT ( * ) * + - 7 - + 59 / - + 52 col2 query II rowsort label-567 @@ -3825,7 +3825,7 @@ SELECT + 76 col2, 33 # 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\(\*\)\) 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 ( * ) col2, + 37 AS col2 query I rowsort label-723 @@ -6058,7 +6058,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\(\*\) 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\(\*\) \* 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 @@ -6205,7 +6205,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1105 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* CASE Int64\(\-4\) WHEN Int64\(72\) THEN \(\- \(\- count\(Int64\(6\)\)\)\) WHEN Int64\(27\) \- Int64\(6\) THEN \(\- Int64\(19\)\) ELSE count\(\*\) \* CAST\(Int64\(\-2\) AS Int32\) END \+ Int64\(\-7\) \+ count\(\*\) \* Int64\(\-21\) \* Int64\(56\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* CASE Int64\(\-4\) WHEN Int64\(72\) THEN \(\- \(\- count\(Int64\(6\)\)\)\) WHEN Int64\(27\) \- Int64\(6\) THEN \(\- Int64\(19\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-2\) AS Int32\) END \+ Int64\(\-7\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\) \* Int64\(56\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 39 * + CASE + - 4 WHEN 72 THEN - - COUNT ( + 6 ) WHEN + 27 - 6 THEN - + 19 ELSE COUNT ( * ) * + CAST ( ( - 2 ) AS INTEGER ) END + + - 7 + + COUNT ( * ) * ( - 21 ) * + 56 col2, 99 AS col2 query I rowsort label-1181 @@ -8103,7 +8103,7 @@ SELECT DISTINCT ( 77 ) * - - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(11\) \+ coalesce\(\(\- count\(\*\)\), Int64\(72\), 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\(81\) AS col0" at position 0 and "Int64\(11\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(72\), Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 81 AS col0, + 11 + + COALESCE ( + ( - COUNT ( * ) ), ( 72 ), - 69 ) AS col0 query I rowsort label-1547 @@ -8602,7 +8602,7 @@ SELECT ALL - 57 - - 90 * 21 + + - 25 * + - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8415 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-85\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-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 + 99 * - 85 AS col2, - COUNT ( * ) col2 query I rowsort @@ -8740,7 +8740,7 @@ SELECT ALL - 45 * - 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "count\(\*\) \* \(\- nullif\(Int64\(6\), Int64\(71\)\)\) \+ nullif\(\(\- Int64\(73\)\), \(\- \(\- count\(\*\)\)\) \+ Int64\(58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- nullif\(Int64\(6\), Int64\(71\)\)\) \+ nullif\(\(\- Int64\(73\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 70 AS col2, COUNT ( * ) * - NULLIF ( + 6, + 71 ) + + + NULLIF ( - + 73, - - COUNT ( * ) + 58 ) col2 query I rowsort @@ -9325,7 +9325,7 @@ SELECT + 67 col1, 23 AS col2 # 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 36 AS col2, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -9585,7 +9585,7 @@ SELECT 59 * + 48 + - + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-36\)\) \* \(\- count\(\*\)\) \+ Int64\(90\) 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\(\-36\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(90\) 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 ( - 36 ) * - + ( + COUNT ( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2 query I rowsort @@ -9845,7 +9845,7 @@ SELECT 30 - + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(10\) 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\(\*\)\) \* Int64\(10\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * + 10 AS col1, - 0 AS col1 query II rowsort label-1879 @@ -12060,7 +12060,7 @@ SELECT ALL 94 - + 82 * + 85, 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ coalesce\(count\(\*\), Int64\(6\) \+ Int64\(8\)\) 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 "Int64\(32\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(6\) \+ Int64\(8\)\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 32 + COALESCE ( COUNT ( * ), 6 + + 8 ) AS col1, 52 AS col1 query I rowsort label-2300 @@ -12097,7 +12097,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\(\*\) AS col2" at position 1 have the 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 @@ -12243,7 +12243,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\(\*\) 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 @@ -13094,7 +13094,7 @@ SELECT ALL + 28 - + - 89, 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(86\) 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\(\*\) \* Int64\(86\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * 86 AS col2, + 72 AS col2 query I rowsort label-2499 @@ -13674,7 +13674,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\(\*\) AS col2" at position 1 have the 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 @@ -13868,7 +13868,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -915 # Datafusion - Expected - -28276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-61\), Int64\(17\) \* Int64\(21\), \(\- count\(Int64\(21\)\)\) \* Int64\(31\) \+ \(\- \(\- count\(\*\)\)\), count\(\*\) \+ Int64\(72\) \+ Int64\(\-82\) \* Int64\(33\) \* count\(\*\) \* \(\- CASE Int64\(\-68\) WHEN Int64\(\-94\) \* \(\- CAST\(Int64\(\-22\) AS Int32\)\) THEN NULL ELSE Int64\(32\) END\)\)\) \* CAST\(Int64\(\-15\) AS Int32\) AS col0" at position 0 and "Int64\(74\) \+ Int64\(70\) \* Int64\(\-5\) \* \(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-61\), Int64\(17\) \* Int64\(21\), \(\- count\(Int64\(21\)\)\) \* Int64\(31\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) \+ Int64\(\-82\) \* Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(\-68\) WHEN Int64\(\-94\) \* \(\- CAST\(Int64\(\-22\) AS Int32\)\) THEN NULL ELSE Int64\(32\) END\)\)\) \* CAST\(Int64\(\-15\) AS Int32\) AS col0" at position 0 and "Int64\(74\) \+ Int64\(70\) \* Int64\(\-5\) \* \(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - 61, + 17 * 21, - + COUNT ( + 21 ) * 31 + - - COUNT ( * ), + COUNT ( * ) + + 72 + - 82 * + 33 * + COUNT ( * ) * - CASE - 68 WHEN - 94 * - + ( CAST ( - 22 AS INTEGER ) ) THEN NULL ELSE + 32 END ) * + + CAST ( - 15 AS INTEGER ) AS col0, 74 + 70 * - 5 * - - 81 AS col0 query II rowsort label-2646 @@ -13940,7 +13940,7 @@ SELECT + MAX ( + ( + 70 ) ) + - 61 * + - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \- Int64\(\-41\) AS col1" at position 0 and "\(\- CAST\(\(\- CASE Int64\(19\) WHEN \(\- nullif\(\(\- Int64\(50\)\), CAST\(Int64\(\-13\) AS Int32\) / Int64\(56\) \* Int64\(\-90\) \* Int64\(1\) \+ \(\- Int64\(\-81\)\) \* Int64\(29\) \* count\(\*\)\)\) \* count\(\*\) \* Int64\(31\) \+ Int64\(\-82\) \* Int64\(37\) \+ Int64\(83\) THEN Int64\(6\) END\) AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \- Int64\(\-41\) AS col1" at position 0 and "\(\- CAST\(\(\- CASE Int64\(19\) WHEN \(\- nullif\(\(\- Int64\(50\)\), CAST\(Int64\(\-13\) AS Int32\) / Int64\(56\) \* Int64\(\-90\) \* Int64\(1\) \+ \(\- Int64\(\-81\)\) \* Int64\(29\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \+ Int64\(\-82\) \* Int64\(37\) \+ Int64\(83\) THEN Int64\(6\) END\) AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + + 67 ) - - 41 AS col1, - ( + CAST ( + - CASE + 19 WHEN - NULLIF ( - + 50, + CAST ( - 13 AS INTEGER ) / 56 * - 90 * + 1 + - - 81 * + 29 * COUNT ( * ) ) * COUNT ( * ) * 31 + ( - 82 ) * 37 + + 83 THEN + ( + 6 ) END AS FLOAT8 ) ) AS col1 query I rowsort @@ -15493,7 +15493,7 @@ SELECT 0 + 18 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\(\*\)\) 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\(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 ( * ) AS col1, 89 AS col1 query I rowsort @@ -15926,7 +15926,7 @@ SELECT - 3 * 65 + - 26 * + COUNT ( * ) * - 77 - 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -4702 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "Int64\(88\) \* Int64\(\-59\) \- \(\- Int64\(14\)\) \* \(\- nullif\(Int64\(\-35\), Int64\(73\) \- \(\- count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "Int64\(88\) \* Int64\(\-59\) \- \(\- Int64\(14\)\) \* \(\- nullif\(Int64\(\-35\), Int64\(73\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 9 AS col2, + 88 * + - 59 - - + 14 * - ( NULLIF ( - 35, 73 - - COUNT ( * ) ) ) AS col2 query II rowsort @@ -16004,7 +16004,7 @@ SELECT DISTINCT + - 81 + + + 45 * 14 + 12 + 11 + CASE 74 + + 70 WHEN 67 THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(4\) \* Int64\(\-18\) AS col2" at position 0 and "Int64\(47\) \* Int64\(18\) \* Int64\(0\) \+ Int64\(\-68\) \* Int64\(54\) / 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\(\*\) \* Int64\(4\) \* Int64\(\-18\) AS col2" at position 0 and "Int64\(47\) \* Int64\(18\) \* Int64\(0\) \+ Int64\(\-68\) \* Int64\(54\) / Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 4 * ( - 18 ) AS col2, 47 * 18 * - 0 + - 68 * ( + 54 / + 92 ) AS col2 # Datafusion - Types were automatically converted from: @@ -17140,7 +17140,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\(\*\)\) AS col0" at position 0 and "Int64\(66\) \* count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -17665,7 +17665,7 @@ SELECT 79 * + NULLIF ( + 56, - + 95 ) col2 # 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\(\-29\) \+ \(\- coalesce\(\(\- Int64\(27\)\), Int64\(54\) \* Int64\(75\) \- Int64\(77\)\)\) AS col0" at position 0 and "coalesce\(Int64\(\-20\), count\(\*\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the 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\) \+ \(\- coalesce\(\(\- Int64\(27\)\), Int64\(54\) \* Int64\(75\) \- Int64\(77\)\)\) AS col0" at position 0 and "coalesce\(Int64\(\-20\), 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 - 29 + ( - COALESCE ( - + 27, 54 * 75 - + 77 ) ) AS col0, + COALESCE ( + - 20, + COUNT ( * ) ) + - COUNT ( * ) AS col0 query I rowsort @@ -17846,7 +17846,7 @@ SELECT + COUNT ( ALL + - 54 ) + + ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -561792 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(33\) \* \(\- \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-43\) THEN NULL WHEN \(\- count\(\*\)\) THEN NULL ELSE Int64\(76\) \* Int64\(\-28\) END\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(33\) \* \(\- \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-43\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(76\) \* Int64\(\-28\) END\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 8 * 33 * - - CASE CAST ( NULL AS INTEGER ) WHEN + - 43 THEN NULL WHEN + ( ( - COUNT ( * ) ) ) THEN NULL ELSE 76 * - 28 END col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -18231,7 +18231,7 @@ SELECT ALL ( - 99 ) + - 66 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 "Int64\(32\) / Int64\(\-26\) AS col2" at position 0 and "count\(Int64\(\-30\)\) \* \(\- Int64\(\-82\)\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-26\) AS col2" at position 0 and "count\(Int64\(\-30\)\) \* \(\- Int64\(\-82\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 / - 26 AS col2, + COUNT ( - 30 ) * - - 82 - - + COUNT ( * ) AS col2 query II rowsort label-3478 @@ -18510,7 +18510,7 @@ SELECT + 27 / - - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CASE WHEN NOT Int64\(\-79\) BETWEEN Int64\(9\) AND \(\- \(\- count\(\*\)\)\) \* nullif\(Int64\(28\), \(\- Int64\(21\)\) \+ \(\- count\(\*\)\)\) THEN Int64\(\-85\) 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\(15\) AS col2" at position 0 and "\(\- CASE WHEN NOT Int64\(\-79\) BETWEEN Int64\(9\) AND \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* nullif\(Int64\(28\), \(\- Int64\(21\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(\-85\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 15 AS col2, - CASE WHEN NOT - 79 BETWEEN 9 AND - - COUNT ( * ) * NULLIF ( + 28, - + 21 + - COUNT ( * ) ) THEN - 85 END AS col2 query I rowsort @@ -19411,7 +19411,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\(\*\) AS col1" at position 1 have the 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 @@ -19706,7 +19706,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\(\*\) 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 @@ -19724,7 +19724,7 @@ SELECT - 42 AS col2, - 42 # 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\(\*\)\) AS col2" at position 1 have the 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 26 AS col2, ( - COUNT ( * ) ) AS col2 query I rowsort @@ -19786,7 +19786,7 @@ SELECT - 56 / 79 AS col1, MAX ( ALL - 65 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(89\) \+ \(\- CASE CAST\(CAST\(NULL AS Int32\) AS Int32\) WHEN count\(\*\) THEN Int64\(\-27\) ELSE NULL END\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(89\) \+ \(\- CASE CAST\(CAST\(NULL AS Int32\) AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-27\) ELSE NULL END\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 65 * 89 + - CASE + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + COUNT ( * ) THEN - 27 ELSE NULL END col2, 94 AS col2 # Datafusion - Types were automatically converted from: @@ -20735,7 +20735,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\(\*\) AS col0" at position 1 have the 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 @@ -20807,7 +20807,7 @@ SELECT ALL 75 * + + 86 AS col2, 80 AS col1, - 26 / - NULLIF ( ( + 13 ), + 3 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3634 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(46\) AS col0" at position 0 and "Int64\(\-54\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(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 DISTINCT - 79 * + 46 AS col0, - 54 * - COUNT ( * ) AS col0 query I rowsort @@ -20853,7 +20853,7 @@ SELECT ALL COUNT ( ALL - + CAST ( + 26 AS INTEGER ) ) * - - 13 * + + 18 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 "count\(\*\) / Int64\(\-98\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("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\(\-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 COUNT ( * ) / + - 98 AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -20983,7 +20983,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\(\*\) AS col1" at position 0 and "Int64\(\-41\) \- nullif\(\(\- Int64\(\-53\)\), Int64\(89\)\) / coalesce\(Int64\(46\), Int64\(43\) \* count\(\*\) \+ count\(\*\), max\(DISTINCT Int64\(15\)\) \- Int64\(\-37\) / CASE Int64\(\-27\) WHEN Int64\(74\) \+ \(\- count\(\*\)\) THEN Int64\(78\) WHEN \(\- 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 @@ -22047,7 +22047,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\(\*\) AS col0" at position 1 have the 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 @@ -22430,7 +22430,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\(\*\) AS col2" at position 1 have the 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 @@ -23276,7 +23276,7 @@ SELECT 29 / 69 AS col2 # 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\(39\) \- \(\- Int64\(24\)\) AS col2" at position 0 and "count\(\*\) / CASE \(\- Int64\(\-51\)\) WHEN Int64\(\-31\) / \(\- \(\- avg\(Int64\(84\)\)\)\) \+ Int64\(26\) / Int64\(79\) \- Int64\(33\) \+ \(\- Int64\(52\)\) \* \(\- Int64\(\-13\)\) \* Int64\(26\) \- Int64\(33\) THEN NULL WHEN Int64\(64\) THEN \(\- Int64\(\-3\)\) \+ \(\- Int64\(\-91\)\) 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\(39\) \- \(\- Int64\(24\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CASE \(\- Int64\(\-51\)\) WHEN Int64\(\-31\) / \(\- \(\- avg\(Int64\(84\)\)\)\) \+ Int64\(26\) / Int64\(79\) \- Int64\(33\) \+ \(\- Int64\(52\)\) \* \(\- Int64\(\-13\)\) \* Int64\(26\) \- Int64\(33\) THEN NULL WHEN Int64\(64\) THEN \(\- Int64\(\-3\)\) \+ \(\- Int64\(\-91\)\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 - - + 24 AS col2, COUNT ( * ) / + CASE - - 51 WHEN - 31 / - ( - AVG ( ALL + ( + 84 ) ) ) + 26 / + 79 - + ( + 33 ) + - + 52 * - - 13 * + 26 - 33 THEN NULL WHEN 64 THEN - - 3 + - ( - 91 ) ELSE NULL END AS col2 query II rowsort label-4434 @@ -25356,7 +25356,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\(\*\) AS col0" at position 1 have the 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 @@ -25540,7 +25540,7 @@ SELECT ALL - 40 - - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(3\) \* count\(\*\) / \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 * + ( + 3 ) * + COUNT ( * ) / - + COUNT ( * ) AS col0, + 94 AS col0 query I rowsort @@ -25644,7 +25644,7 @@ SELECT + - MIN ( ( - 39 ) ) + - - 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* CAST\(Int64\(0\) AS Int32\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(0\) AS Int32\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) * CAST ( 0 AS INTEGER ) AS col0, - 60 AS col0 query I rowsort label-4890 @@ -26640,7 +26640,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\(\*\) AS col1" at position 0 and "coalesce\(min\(CAST\(NULL AS Int32\)\), \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -27333,7 +27333,7 @@ SELECT ALL - 97 * - MAX ( 69 ), 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(\-8\) \* Int64\(73\) / Int64\(96\) \* \(\- \(\- CASE Int64\(41\) WHEN Int64\(75\) THEN Int64\(62\) WHEN Int64\(23\) \* Int64\(\-77\) \* Int64\(\-50\) \+ Int64\(\-14\) \+ \(\- Int64\(59\)\) \* Int64\(72\) THEN NULL WHEN avg\(Int64\(16\)\) THEN Int64\(83\) END\)\) \+ count\(\*\) \+ Int64\(\-52\) \+ Int64\(\-6\) \* \(\- 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\(78\) AS col1" at position 0 and "Int64\(\-8\) \* Int64\(73\) / Int64\(96\) \* \(\- \(\- CASE Int64\(41\) WHEN Int64\(75\) THEN Int64\(62\) WHEN Int64\(23\) \* Int64\(\-77\) \* Int64\(\-50\) \+ Int64\(\-14\) \+ \(\- Int64\(59\)\) \* Int64\(72\) THEN NULL WHEN avg\(Int64\(16\)\) THEN Int64\(83\) END\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) \+ Int64\(\-6\) \* \(\- sum\(Int64\(54\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 78 AS col1, - 8 * + 73 / + 96 * - - CASE + 41 WHEN 75 THEN + 62 WHEN + + 23 * - 77 * - 50 + - 14 + - + 59 * + 72 THEN NULL WHEN AVG ( ALL + 16 ) THEN 83 END + COUNT ( * ) + - 52 + + - 6 * - SUM ( + 54 ) AS col1 query I rowsort label-5210 @@ -27506,7 +27506,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\(\*\) AS col0" at position 1 have the 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 @@ -27562,7 +27562,7 @@ SELECT + 79 + 20 / + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(\*\) \* \(\- \(\- CASE Int64\(73\) WHEN Int64\(\-98\) \+ Int64\(78\) / count\(\*\) \+ Int64\(\-19\) \* count\(\*\) THEN NULL WHEN Int64\(\-56\) \* \(\- Int64\(\-49\)\) \* Int64\(\-67\) \+ Int64\(79\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(\-77\) \* Int64\(29\) THEN Int64\(\-36\) END\)\) AS col2" at position 0 and "Int64\(8\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CASE Int64\(73\) WHEN Int64\(\-98\) \+ Int64\(78\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-56\) \* \(\- Int64\(\-49\)\) \* Int64\(\-67\) \+ Int64\(79\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(\-77\) \* Int64\(29\) THEN Int64\(\-36\) END\)\) AS col2" at position 0 and "Int64\(8\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 * + COUNT ( * ) * - - CASE + 73 WHEN - 98 + 78 / + + COUNT ( * ) + - 19 * + COUNT ( * ) THEN NULL WHEN - 56 * - - 49 * - 67 + 79 THEN NULL WHEN - 80 + - 77 * + 29 THEN - 36 END AS col2, + 8 + - CAST ( NULL AS INTEGER ) col2 query I rowsort label-5254 @@ -28007,7 +28007,7 @@ SELECT DISTINCT + + 40 * - - 75 AS col0 # 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\(78\) AS col2" at position 0 and "Int64\(7\) \* \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(78\) AS col2" at position 0 and "Int64\(7\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) / + 78 col2, + 7 * - + COUNT ( * ) AS col2 query I rowsort @@ -28839,13 +28839,13 @@ SELECT ALL + MAX ( - - 72 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(34\), 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 "\(\- nullif\(Int64\(34\), 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 - + NULLIF ( + 34, COUNT ( * ) ) AS col0, 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col2" at position 0 and "Int64\(98\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(98\) \* \(\- 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, + 98 * - + COUNT ( * ) AS col2 query I rowsort @@ -29997,7 +29997,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\(\*\) AS col0" at position 1 have the 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 @@ -30741,7 +30741,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\(\*\) 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 @@ -31922,7 +31922,7 @@ SELECT COALESCE ( - + 34, - - 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1855 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(53\)\) \* Int64\(35\) AS col2" at position 0 and "count\(\*\) \+ Int64\(37\) \+ \(\- count\(\*\)\) \* \(\- 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\(53\)\) \* Int64\(35\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(42\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 53 * + 35 AS col2, COUNT ( * ) + + 37 + + - COUNT ( * ) * - + 42 AS col2 query I rowsort label-6086 @@ -33617,7 +33617,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\(\*\) AS col2" at position 1 have the 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 @@ -33898,7 +33898,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\(\*\) 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 @@ -34458,7 +34458,7 @@ SELECT DISTINCT - 13 / + + MAX ( DISTINCT + 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(count\(\*\), Int64\(60\) \* Int64\(19\)\)\)\) \* \(\- Int64\(4\)\) \- Int64\(24\) AS col0" at position 0 and "\(\- min\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(60\) \* Int64\(19\)\)\)\) \* \(\- Int64\(4\)\) \- Int64\(24\) AS col0" at position 0 and "\(\- min\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - NULLIF ( COUNT ( * ), + 60 * + 19 ) * - + 4 - 24 col0, ( - MIN ( CAST ( NULL AS INTEGER ) ) ) col0 query I rowsort @@ -34939,7 +34939,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\(\-88\) \* Int64\(\-69\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -35022,7 +35022,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\(\*\) 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 @@ -37935,7 +37935,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\(\*\) AS col0" at position 1 have the 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 @@ -38103,7 +38103,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\(\*\) AS col2" at position 1 have the 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 @@ -39757,7 +39757,7 @@ SELECT ALL 6 / ( - - 18 ) * + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "CASE \(\- Int64\(40\)\) WHEN Int64\(\-83\) \+ CAST\(\(\- Int64\(\-34\)\) AS Float64\) \* Int64\(14\) THEN NULL WHEN Int64\(6\) / Int64\(70\) \* Int64\(\-4\) \* Int64\(24\) THEN Int64\(\-11\) END \+ min\(DISTINCT Int64\(\-7\)\) \+ \(\- coalesce\(Int64\(\-28\), count\(\*\)\)\) AS col0" at position 1 have the 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 "CASE \(\- Int64\(40\)\) WHEN Int64\(\-83\) \+ CAST\(\(\- Int64\(\-34\)\) AS Float64\) \* Int64\(14\) THEN NULL WHEN Int64\(6\) / Int64\(70\) \* Int64\(\-4\) \* Int64\(24\) THEN Int64\(\-11\) END \+ min\(DISTINCT Int64\(\-7\)\) \+ \(\- coalesce\(Int64\(\-28\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 col0, CASE - + 40 WHEN - 83 + CAST ( - - 34 AS FLOAT8 ) * 14 THEN NULL WHEN 6 / + + 70 * - 4 * 24 THEN + - 11 END + + MIN ( DISTINCT + - 7 ) + - COALESCE ( - 28, + COUNT ( * ) ) AS col0 query I rowsort label-7573 @@ -40464,7 +40464,7 @@ SELECT ALL 39 + + ( + ( - - 43 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-66\) 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\(\*\) \+ Int64\(\-66\) 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 ( * ) + - 66 AS col2, 57 AS col2 query I rowsort label-7706 @@ -42243,7 +42243,7 @@ SELECT - CAST ( - 55 AS INTEGER ) AS col2, - 41 AS col1, + 47 * 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-74\) 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\(\*\) \* Int64\(\-74\) 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 ( * ) * - 74 AS col0, 25 AS col0 query I rowsort @@ -42369,7 +42369,7 @@ SELECT - ( 35 ) * COUNT ( * ) - - - 1 + - + ( + - 11 ) - 19 + 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-8071 @@ -42449,7 +42449,7 @@ SELECT 2 + - + ( 53 ) AS col0, - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(\*\)\), Int64\(47\) \* Int64\(\-95\) \+ Int64\(34\)\) \* \(\- Int64\(\-55\)\) 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 "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(47\) \* Int64\(\-95\) \+ Int64\(34\)\) \* \(\- Int64\(\-55\)\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - + COUNT ( * ), 47 * - 95 + + 34 ) * - - 55 AS col2, 81 AS col2 query I rowsort label-8086 @@ -43770,7 +43770,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\(17\)\) \* Int64\(60\) \* Int64\(\-24\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -45062,7 +45062,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\(\*\) 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 @@ -46210,7 +46210,7 @@ SELECT - - ( + 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -127 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- Int64\(87\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- Int64\(87\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 40 - 87 AS col2, - COUNT ( * ) + + 9 AS col2 query II rowsort @@ -47480,7 +47480,7 @@ SELECT + 91 * 68 # Datafusion - Expected - NULL # Datafusion - Expected - 89 # Datafusion - Expected - -600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(37\) \* Int64\(\-87\) \+ count\(\*\) \* Int64\(76\) \+ \(\- CASE sum\(Int64\(86\)\) WHEN CAST\(NULL AS Int32\) \+ \(\- CASE Int64\(\-78\) WHEN Int64\(0\) \+ \(\- Int64\(\-99\)\) THEN NULL ELSE \(\- Int64\(\-85\)\) END\) THEN sum\(DISTINCT Int64\(\-51\)\) / Int64\(\-8\) END\) \+ Int64\(85\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(37\) \* Int64\(\-87\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\) \+ \(\- CASE sum\(Int64\(86\)\) WHEN CAST\(NULL AS Int32\) \+ \(\- CASE Int64\(\-78\) WHEN Int64\(0\) \+ \(\- Int64\(\-99\)\) THEN NULL ELSE \(\- Int64\(\-85\)\) END\) THEN sum\(DISTINCT Int64\(\-51\)\) / Int64\(\-8\) END\) \+ Int64\(85\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 42 * ( 37 ) * - 87 + + COUNT ( * ) * 76 + - CASE SUM ( + ( 86 ) ) WHEN CAST ( NULL AS INTEGER ) + + - CASE - 78 WHEN + 0 + - - 99 THEN NULL ELSE - - 85 END THEN + SUM ( DISTINCT - 51 ) / + - 8 END + + 85 AS col0, 89 AS col0, + - 10 * 60 query I rowsort @@ -47776,7 +47776,7 @@ SELECT ALL + 86 * 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(\-3\) \+ Int64\(2\) \* Int64\(\-60\) \+ \(\- count\(\*\)\) \* Int64\(\-44\) \+ sum\(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\(42\) AS col0" at position 0 and "Int64\(\-3\) \+ Int64\(2\) \* Int64\(\-60\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-44\) \+ sum\(Int64\(37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 AS col0, - 3 + + 2 * - 60 + - + COUNT ( * ) * - 44 + + SUM ( ALL 37 ) AS col0 query I rowsort @@ -48294,7 +48294,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\(\*\) 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 @@ -51454,7 +51454,7 @@ SELECT - + 95 / 2 + + + 34 + - NULLIF ( - 26, + + 52 * + - 16 + - - 11 * + - CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -95950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "Int64\(77\) / Int64\(\-26\) \- Int64\(\-52\) \+ count\(\*\) \* min\(Int64\(\-40\)\) \* max\(DISTINCT \(\- \(\- CAST\(Int64\(32\) AS Int32\)\)\)\) \* max\(Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "Int64\(77\) / Int64\(\-26\) \- Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(\-40\)\) \* max\(DISTINCT \(\- \(\- CAST\(Int64\(32\) AS Int32\)\)\)\) \* max\(Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + - 4 ) AS col1, + 77 / - 26 - + - 52 + COUNT ( * ) * + MIN ( - 40 ) * MAX ( DISTINCT - - CAST ( + + 32 AS INTEGER ) ) * MAX ( 75 ) AS col1 query I rowsort label-9807 @@ -51572,7 +51572,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 65772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) / \(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-81\) \* Int64\(28\) \* 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\(59\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-81\) \* Int64\(28\) \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 59 / - COUNT ( * ) * + - COUNT ( * ) AS col2, - 81 * 28 * - 29 AS col2 query II rowsort label-9829 @@ -52397,7 +52397,7 @@ SELECT MIN ( + - 4 ) AS col2, MAX ( + 13 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-52\) AS Int32\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-52\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 52 AS INTEGER ) AS col2, - COUNT ( * ) * - 37 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_86.slt b/data/sqlite/random/expr/slt_good_86.slt index db6e65c..e01f922 100644 --- a/data/sqlite/random/expr/slt_good_86.slt +++ b/data/sqlite/random/expr/slt_good_86.slt @@ -1137,7 +1137,7 @@ SELECT - 58 + - + 38 AS col1, 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2507 # Datafusion - Expected - 2652 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \- Int64\(\-74\) \- Int64\(57\) \* \(\- Int64\(\-46\)\) AS col2" at position 0 and "Int64\(66\) \* Int64\(40\) \+ Int64\(51\) \+ Int64\(67\) / Int64\(15\) \+ Int64\(\-42\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-74\) \- Int64\(57\) \* \(\- Int64\(\-46\)\) AS col2" at position 0 and "Int64\(66\) \* Int64\(40\) \+ Int64\(51\) \+ Int64\(67\) / Int64\(15\) \+ Int64\(\-42\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 41 - - 74 - + 57 * - - 46 AS col2, 66 * + 40 + 51 + 67 / + 15 + - 42 + - COUNT ( * ) AS col2 query I rowsort label-210 @@ -2511,7 +2511,7 @@ SELECT + + 1 * - 74 * 34 AS 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\(\*\)\) AS col0" at position 0 and "Int64\(35\) / \(\- 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\(35\) / \(\- Int64\(\-96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, 35 / - ( - 96 ) AS col0 query I rowsort label-472 @@ -2620,7 +2620,7 @@ SELECT DISTINCT - 92 * + - 38 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(89\) \+ Int64\(\-85\) \+ \(\- Int64\(20\)\) / \(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- Int64\(\-14\)\) \* \(\- count\(\*\)\) \+ count\(\*\) \+ Int64\(51\) AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(89\) \+ Int64\(\-85\) \+ \(\- Int64\(20\)\) / \(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- Int64\(\-14\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 27 * + 89 + - 85 + - + 20 / - SUM ( - CAST ( NULL AS INTEGER ) ) + - - 14 * - COUNT ( * ) + + COUNT ( * ) + 51 AS col0, - 52 AS col0 query II rowsort label-492 @@ -3020,7 +3020,7 @@ SELECT ALL + 15 + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-20\)\) AS col0" at position 0 and "\(\- coalesce\(Int64\(38\), CASE avg\(\(\- Int64\(\-87\)\)\) WHEN \(\- coalesce\(Int64\(86\), Int64\(28\), Int64\(86\), Int64\(\-33\) \* Int64\(\-69\)\)\) THEN NULL WHEN Int64\(\-95\) \* Int64\(12\) THEN \(\- Int64\(\-12\)\) \+ Int64\(39\) \* Int64\(7\) \* Int64\(64\) ELSE NULL END \* Int64\(\-40\) / Int64\(4\) \- \(\- count\(\*\)\) / sum\(DISTINCT \(\- Int64\(5\)\)\) \- max\(Int64\(49\)\) \+ Int64\(37\) \* Int64\(\-72\) \+ Int64\(\-19\)\)\) \+ 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\(\-20\)\) AS col0" at position 0 and "\(\- coalesce\(Int64\(38\), CASE avg\(\(\- Int64\(\-87\)\)\) WHEN \(\- coalesce\(Int64\(86\), Int64\(28\), Int64\(86\), Int64\(\-33\) \* Int64\(\-69\)\)\) THEN NULL WHEN Int64\(\-95\) \* Int64\(12\) THEN \(\- Int64\(\-12\)\) \+ Int64\(39\) \* Int64\(7\) \* Int64\(64\) ELSE NULL END \* Int64\(\-40\) / Int64\(4\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / sum\(DISTINCT \(\- Int64\(5\)\)\) \- max\(Int64\(49\)\) \+ Int64\(37\) \* Int64\(\-72\) \+ Int64\(\-19\)\)\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 20 AS col0, - COALESCE ( 38, + CASE + AVG ( - - 87 ) WHEN - COALESCE ( + + 86, + 28, + + 86, + - 33 * - 69 ) THEN NULL WHEN - 95 * + 12 THEN - - 12 + + ( + 39 ) * + + 7 * + 64 ELSE NULL END * - 40 / 4 - - COUNT ( * ) / + SUM ( DISTINCT - + 5 ) - + MAX ( ALL 49 ) + + 37 * - 72 + - 19 ) + 83 AS col0 query I rowsort label-567 @@ -3082,7 +3082,7 @@ SELECT ALL - 51 + SUM ( ALL - + 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(34\) \* CASE \(\- nullif\(avg\(\(\- nullif\(Int64\(\-42\), Int64\(81\)\)\)\), Int64\(34\)\)\) WHEN \(\- max\(Int64\(\-71\)\)\) THEN \(\- coalesce\(Int64\(88\), \(\- Int64\(\-51\)\) \* CAST\(Int64\(\-9\) AS Int32\), Int64\(70\)\)\) \+ \(\- count\(\*\)\) END \+ \(\- count\(\*\)\) \* \(\- Int64\(\-84\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(34\) \* CASE \(\- nullif\(avg\(\(\- nullif\(Int64\(\-42\), Int64\(81\)\)\)\), Int64\(34\)\)\) WHEN \(\- max\(Int64\(\-71\)\)\) THEN \(\- coalesce\(Int64\(88\), \(\- Int64\(\-51\)\) \* CAST\(Int64\(\-9\) AS Int32\), Int64\(70\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-84\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 17 * + + 34 * + CASE - NULLIF ( + AVG ( - NULLIF ( + - 42, 81 ) ), 34 ) WHEN - MAX ( ALL + - 71 ) THEN + - COALESCE ( + 88, - - 51 * + CAST ( - 9 AS INTEGER ), + + 70 ) + - COUNT ( * ) END + - COUNT ( * ) * - - 84 AS col0, 88 col0 query I rowsort @@ -3508,7 +3508,7 @@ SELECT ALL - 61 * 18 * COALESCE ( - 40, 18 + + CAST ( NULL AS INTEGER ), + ( + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(37\) AS col0" at position 0 and "Int64\(7\) / 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\(\*\)\) \+ Int64\(37\) AS col0" at position 0 and "Int64\(7\) / Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 37 AS col0, 7 / + + 93 AS col0 query I rowsort label-661 @@ -3577,7 +3577,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(72\) \- \(\- \(\- count\(\*\)\)\) \* Int64\(\-71\) \* 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\(\-25\) AS col0" at position 0 and "Int64\(72\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-71\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 25 AS col0, 72 - - ( - COUNT ( * ) ) * - 71 * - 0 AS col0 query I rowsort @@ -3686,7 +3686,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\(\*\) / count\(\*\) AS col1" at position 1 have the 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 @@ -3939,7 +3939,7 @@ SELECT + - ( - 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -390 -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\(\-78\) \* 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\(21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-78\) \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 AS col0, COUNT ( * ) * - 78 * 5 AS col0 query II rowsort @@ -4287,7 +4287,7 @@ SELECT 66 * - - 87 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 2381 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(87\) AS col0" at position 0 and "count\(\*\) \+ \(\- Int64\(34\)\) \* coalesce\(count\(\*\), Int64\(\-7\) \+ Int64\(\-58\) \+ Int64\(\-44\), Int64\(30\), \(\- \(\- count\(\*\)\)\) / count\(\*\), CAST\(NULL AS Int32\) \+ Int64\(\-35\) \* Int64\(89\)\) \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(87\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(34\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-7\) \+ Int64\(\-58\) \+ Int64\(\-44\), Int64\(30\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int32\) \+ Int64\(\-35\) \* Int64\(89\)\) \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 30 + 87 AS col0, COUNT ( * ) + - + 34 * COALESCE ( COUNT ( * ), + - 7 + - 58 + - 44, 30, - ( - COUNT ( * ) ) / + COUNT ( * ), + + CAST ( NULL AS INTEGER ) + - 35 * + 89 ) * - 70 col0 query I rowsort label-809 @@ -5830,7 +5830,7 @@ SELECT - 40 * + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -1258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(\-8\) \* count\(\*\) \+ CAST\(Int64\(94\) \- Int64\(96\) \* Int64\(14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(\-8\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(94\) \- Int64\(96\) \* Int64\(14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 87 AS col2, - 8 * + ( COUNT ( * ) ) + + CAST ( + 94 - 96 * 14 AS INTEGER ) AS col2 query I rowsort label-1105 @@ -6287,7 +6287,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\(\*\) AS col2" at position 1 have 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: @@ -7264,7 +7264,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\(\*\) AS col1" at position 0 and "Int64\(61\) / \(\- count\(\*\)\) AS col1" at position 1 have the 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 @@ -7627,7 +7627,7 @@ SELECT ALL 83 AS col2, - 62 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ( * ) col1 query I rowsort @@ -8225,7 +8225,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\(\*\) AS col1" at position 1 have the 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 @@ -8263,7 +8263,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\(\*\) 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 @@ -9056,7 +9056,7 @@ SELECT ALL + 20 / 3 * + 47 + - ( + 45 ) AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 87 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 1 and "count\(\*\) \* min\(Int64\(99\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(99\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COALESCE ( COALESCE ( COUNT ( * ), - 71 ), + - 29, + 21 ) AS col2, 87 AS col0, + COUNT ( * ) * MIN ( + 99 ) AS col0 query I rowsort @@ -9872,7 +9872,7 @@ SELECT DISTINCT 47 - + ( 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(\-73\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 AS col0, - 73 * - + COUNT ( * ) AS col0 query II rowsort label-1870 @@ -10517,7 +10517,7 @@ SELECT DISTINCT COUNT ( + 78 ) + - 72 * 91 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 count\(Int64\(\-47\)\) WHEN Int64\(2\) THEN NULL WHEN Int64\(9\) \+ \(\- count\(\*\)\) THEN NULL WHEN Int64\(80\) \* coalesce\(Int64\(\-23\), coalesce\(\(\- sum\(Int64\(35\)\)\), Int64\(43\) \* Int64\(\-45\)\), Int64\(\-77\)\) THEN \(\- Int64\(74\)\) \- Int64\(98\) END \+ \(\- Int64\(\-70\)\) AS col2" at position 0 and "count\(Int64\(\-60\)\) \* count\(\*\) \- count\(\*\) \* Int64\(\-19\) / 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 "CASE count\(Int64\(\-47\)\) WHEN Int64\(2\) THEN NULL WHEN Int64\(9\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(80\) \* coalesce\(Int64\(\-23\), coalesce\(\(\- sum\(Int64\(35\)\)\), Int64\(43\) \* Int64\(\-45\)\), Int64\(\-77\)\) THEN \(\- Int64\(74\)\) \- Int64\(98\) END \+ \(\- Int64\(\-70\)\) AS col2" at position 0 and "count\(Int64\(\-60\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-19\) / Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE COUNT ( ALL + ( - 47 ) ) WHEN + 2 THEN NULL WHEN 9 + - COUNT ( * ) THEN NULL WHEN + 80 * + COALESCE ( - 23, + ( COALESCE ( - + SUM ( + 35 ), 43 * - 45 ) ), - 77 ) THEN - + 74 - 98 END + - - 70 AS col2, + ( COUNT ( + - 60 ) ) * + COUNT ( * ) - COUNT ( * ) * - 19 / - 61 AS col2 query I rowsort label-1994 @@ -11044,7 +11044,7 @@ SELECT 43 * - + NULLIF ( - 5, AVG ( - 55 ) * + 7 - CAST ( 87 AS INTEGER ) ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 109 -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\(17\) \- 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\(\-69\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) \- Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 69 AS col0, COUNT ( * ) * + 17 - - 92 AS col0 query II rowsort @@ -12134,7 +12134,7 @@ SELECT NULLIF ( 36, - 30 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(\-59\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(\-59\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 + - COUNT ( * ) AS col0, ( - - 59 ) AS col0 query I rowsort @@ -12299,7 +12299,7 @@ SELECT - 88 / 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7980 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(14\) \* Int64\(38\) AS col2" at position 0 and "count\(\*\) \* \(\- 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\(\-15\) \* Int64\(14\) \* Int64\(38\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(43\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 15 * 14 * 38 AS col2, + COUNT ( * ) * - + 43 col2 query I rowsort @@ -14615,7 +14615,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\(\*\) AS col2" at position 1 have 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 @@ -15876,7 +15876,7 @@ SELECT - MIN ( ALL + + ( 34 ) ) col0, NULLIF ( 88, - - 79 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CASE Int64\(49\) WHEN Int64\(90\) THEN NULL ELSE Int64\(\-16\) END\)\) AS Int32\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CASE Int64\(49\) WHEN Int64\(90\) THEN NULL ELSE Int64\(\-16\) END\)\) AS 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 + 49 WHEN 90 THEN NULL ELSE - 16 END AS INTEGER ) col1, - COUNT ( * ) AS col1 query I rowsort @@ -16574,7 +16574,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\(\*\) AS col1" at position 0 and "Int64\(\-8\) \* Int64\(\-62\) \+ Int64\(94\) / \(\- count\(\*\)\) AS col1" at position 1 have the 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 @@ -16811,7 +16811,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\(\*\) 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 @@ -16949,7 +16949,7 @@ SELECT - - 3 + - 99 + + 16 * 4 AS col0 # 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\(\*\)\) 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 ( * ) col1, - 71 AS col1 query I rowsort @@ -17354,7 +17354,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\(\-72\) \- 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 @@ -18405,7 +18405,7 @@ SELECT ALL - + COUNT ( * ) + - + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5760 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(90\), \(\- sum\(DISTINCT Int64\(\-85\)\)\) \* count\(\*\)\) \* Int64\(64\) AS col0" at position 0 and "Int64\(98\) \* \(\- count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(90\), \(\- sum\(DISTINCT Int64\(\-85\)\)\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(64\) AS col0" at position 0 and "Int64\(98\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + + 90, - SUM ( DISTINCT + - 85 ) * COUNT ( * ) ) * 64 AS col0, 98 * - COUNT ( * ) + 11 col0 query I rowsort label-3508 @@ -18534,7 +18534,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\(\*\) 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 @@ -18658,7 +18658,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\(\*\) AS col1" at position 1 have the same 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 @@ -18711,7 +18711,7 @@ SELECT ALL + 91 + + 82, + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / \(\- Int64\(99\)\) AS col0" at position 0 and "Int64\(\-89\) \- Int64\(18\) \* Int64\(66\) \+ CASE \(\- \(\- count\(Int64\(\-61\)\)\)\) WHEN Int64\(\-29\) \* Int64\(21\) \* Int64\(\-52\) \+ Int64\(37\) THEN max\(Int64\(46\)\) \* 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\(99\)\) AS col0" at position 0 and "Int64\(\-89\) \- Int64\(18\) \* Int64\(66\) \+ CASE \(\- \(\- count\(Int64\(\-61\)\)\)\) WHEN Int64\(\-29\) \* Int64\(21\) \* Int64\(\-52\) \+ Int64\(37\) THEN max\(Int64\(46\)\) \* Int64\(\-20\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / - ( 99 ) AS col0, - 89 - 18 * + 66 + CASE - - COUNT ( ALL - 61 ) WHEN - 29 * 21 * - 52 + 37 THEN + MAX ( + 46 ) * - 20 END AS col0 query I rowsort label-3566 @@ -20750,7 +20750,7 @@ SELECT DISTINCT + 12 / + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98560 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(80\) \* Int64\(\-56\) \* \(\- Int64\(22\)\) AS col1" at position 0 and "max\(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\(\*\) \* Int64\(80\) \* Int64\(\-56\) \* \(\- Int64\(22\)\) AS col1" at position 0 and "max\(Int64\(69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 80 * + - 56 * - + 22 AS col1, MAX ( 69 ) AS col1 query II rowsort @@ -21081,7 +21081,7 @@ SELECT + COALESCE ( 35, - + 60, 38 ) AS col0, + 70 * + + COUNT ( * ) * - COALESC # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 2105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) AS col1" at position 0 and "Int64\(80\) \* Int64\(74\) \+ Int64\(88\) \* Int64\(44\) \* \(\- count\(\*\)\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) AS col1" at position 0 and "Int64\(80\) \* Int64\(74\) \+ Int64\(88\) \* Int64\(44\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 41 AS col1, 80 * + 74 + 88 * 44 * + - COUNT ( * ) + + + 57 AS col1 query I rowsort @@ -21180,7 +21180,7 @@ SELECT - 8 * 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-4037 @@ -21191,7 +21191,7 @@ SELECT + CAST ( + 7 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* CASE Int64\(79\) WHEN count\(\*\) THEN Int64\(78\) END \* Int64\(80\) \- Int64\(91\) \+ \(\- min\(Int64\(\-74\)\)\) 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 "\(\- Int64\(\-80\)\) \* CASE Int64\(79\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(78\) END \* Int64\(80\) \- Int64\(91\) \+ \(\- min\(Int64\(\-74\)\)\) 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 + ( - - 80 ) * CASE + 79 WHEN + + COUNT ( * ) THEN + + 78 END * 80 - + 91 + - MIN ( ALL - 74 ) AS col1, - 49 AS col1 query I rowsort label-4039 @@ -21258,7 +21258,7 @@ SELECT DISTINCT - 87 + + 21 * + 71 * - 88 # 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - COUNT ( * ) ), - COUNT ( * ) query I rowsort @@ -21321,7 +21321,7 @@ SELECT COUNT ( * ) * + 33 - CASE 78 WHEN + 92 + - 40 THEN + NULLIF ( 51, - 71 - # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(85\) \+ \(\- count\(\*\)\) \+ 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\(\-99\) AS col2" at position 0 and "Int64\(85\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 99 col2, 85 + + - COUNT ( * ) + 30 AS col2 query I rowsort @@ -21459,7 +21459,7 @@ SELECT 57 * - 33 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(19\)\) \* \(\- sum\(Int64\(\-91\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(19\)\) \* \(\- sum\(Int64\(\-91\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 * - COUNT ( * ) AS col0, - ( 19 ) * - SUM ( - 91 ) + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -22013,7 +22013,7 @@ SELECT COUNT ( * ) - - - COALESCE ( + - 81, - 93, + 12 ) + 13 * + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \- Int64\(60\) AS col0" at position 0 and "Int64\(85\) \+ Int64\(56\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(60\) AS col0" at position 0 and "Int64\(85\) \+ Int64\(56\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 - + 60 AS col0, 85 + + 56 + - - COUNT ( * ) AS col0 query II rowsort label-4195 @@ -24315,7 +24315,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\(\*\) AS col1" at position 1 have the 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 @@ -24939,7 +24939,7 @@ SELECT ALL + MAX ( - + 16 ) * 70 * + 58 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 59 ) col1, - CAST ( - COUNT ( * ) AS INTEGER ) * 88 AS col1 query I rowsort @@ -25218,7 +25218,7 @@ SELECT COUNT ( ALL CAST ( 5 AS INTEGER ) ) + + 3 - + + 17 # 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 "Int64\(\-3\) AS col0" at position 0 and "count\(\*\) \* Int64\(\-45\) \+ 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\(\-3\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-45\) \+ Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 AS col0, COUNT ( * ) * - 45 + + - 35 AS col0 query II rowsort @@ -25277,7 +25277,7 @@ SELECT + + ( + - 23 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "CAST\(CASE Int64\(91\) WHEN Int64\(1\) THEN Int64\(3\) END AS Float64\) \+ Int64\(23\) \* \(\- count\(\*\)\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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 "CAST\(CASE Int64\(91\) WHEN Int64\(1\) THEN Int64\(3\) END AS Float64\) \+ Int64\(23\) \* \(\- 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 47 AS col2, CAST ( + CASE 91 WHEN 1 THEN 3 END AS FLOAT8 ) + + + 23 * - COUNT ( * ) * - COUNT ( * ) AS col2 query I rowsort label-4823 @@ -25340,7 +25340,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -26816,7 +26816,7 @@ SELECT ALL + - 38 - + + 93 AS col1, + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1484 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-53\) AS col0" at position 0 and "Int64\(42\) \+ 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\(28\) \* Int64\(\-53\) AS col0" at position 0 and "Int64\(42\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 28 * + - 53 AS col0, + 42 + + COUNT ( * ) + - 80 col0 query I rowsort label-5118 @@ -26973,7 +26973,7 @@ SELECT ALL - ( COUNT ( * ) ) - + - 0 + - 60 + 22 * - NULLIF ( 83, 44 ) + - - CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - 139 # Datafusion - Expected - -2269 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- max\(Int64\(67\)\)\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(\-74\) \* Int64\(31\) \+ \(\- 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\(\*\)\) \* \(\- max\(Int64\(67\)\)\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(\-74\) \* Int64\(31\) \+ \(\- Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) * - MAX ( + 67 ) + + ( + 72 ) AS col0, - 74 * 31 + - ( - 25 ) AS col0 query I rowsort @@ -26997,7 +26997,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- count\(\*\)\) \* Int64\(\-7\) AS col0" at position 0 and "\(\- CAST\(Int64\(21\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) AS col0" at position 0 and "\(\- CAST\(Int64\(21\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 21 * - COUNT ( * ) * - 7 AS col0, - CAST ( + 21 AS INTEGER ) col0 query I rowsort label-5152 @@ -30403,7 +30403,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\(\*\) 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 @@ -30710,7 +30710,7 @@ SELECT 11 * 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(94\) \* CASE Int64\(\-2\) WHEN Int64\(35\) THEN CAST\(\(\- nullif\(Int64\(\-96\), CASE Int64\(21\) WHEN \(\- Int64\(2\)\) THEN \(\- Int64\(\-46\)\) \- Int64\(\-6\) WHEN Int64\(\-25\) THEN Int64\(66\) \* \(\- \(\- CAST\(Int64\(68\) AS Int32\)\)\) \* CAST\(CASE Int64\(\-35\) WHEN count\(\*\) THEN Int64\(42\) END AS Int32\) \- Int64\(41\) ELSE Int64\(\-50\) END \+ Int64\(\-54\) / Int64\(\-86\) \* Int64\(\-17\) \* Int64\(8\) \* sum\(DISTINCT nullif\(Int64\(\-94\), Int64\(\-25\) \- Int64\(\-18\)\)\) \- \(\- Int64\(21\)\)\)\) AS Int32\) ELSE Int64\(80\) END \* Int64\(40\) / Int64\(43\) \+ \(\- count\(\*\)\) \+ CAST\(NULL AS Int32\) \+ Int64\(62\) \+ sum\(Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(94\) \* CASE Int64\(\-2\) WHEN Int64\(35\) THEN CAST\(\(\- nullif\(Int64\(\-96\), CASE Int64\(21\) WHEN \(\- Int64\(2\)\) THEN \(\- Int64\(\-46\)\) \- Int64\(\-6\) WHEN Int64\(\-25\) THEN Int64\(66\) \* \(\- \(\- CAST\(Int64\(68\) AS Int32\)\)\) \* CAST\(CASE Int64\(\-35\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(42\) END AS Int32\) \- Int64\(41\) ELSE Int64\(\-50\) END \+ Int64\(\-54\) / Int64\(\-86\) \* Int64\(\-17\) \* Int64\(8\) \* sum\(DISTINCT nullif\(Int64\(\-94\), Int64\(\-25\) \- Int64\(\-18\)\)\) \- \(\- Int64\(21\)\)\)\) AS Int32\) ELSE Int64\(80\) END \* Int64\(40\) / Int64\(43\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \+ Int64\(62\) \+ sum\(Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 60 AS col1, 94 * + CASE - 2 WHEN + 35 THEN CAST ( - NULLIF ( + - 96, + + CASE 21 WHEN - + 2 THEN - ( - 46 ) - + - 6 WHEN - 25 THEN + 66 * - - CAST ( + 68 AS INTEGER ) * + CAST ( CASE - 35 WHEN + COUNT ( * ) THEN 42 END AS INTEGER ) - 41 ELSE - 50 END + - 54 / - 86 * - 17 * + 8 * SUM ( DISTINCT NULLIF ( - 94, - 25 - + - 18 ) ) - - + 21 ) AS INTEGER ) ELSE 80 END * 40 / + ( 43 ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 62 + SUM ( + 32 ) AS col1 query I rowsort label-5860 @@ -30793,7 +30793,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\(\*\) AS col0" at position 1 have 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 @@ -31989,7 +31989,7 @@ SELECT 20 * 20 * 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(\-87\) AS col2" at position 0 and "Int64\(19\) \* Int64\(\-6\) \- \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-87\) AS col2" at position 0 and "Int64\(19\) \* Int64\(\-6\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 53 / - 87 AS col2, 19 * - 6 - - COUNT ( * ) AS col2 query II rowsort label-6108 @@ -32279,7 +32279,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1120 # Datafusion - Expected - -1854 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(\-35\) AS col2" at position 0 and "count\(\*\) \+ Int64\(35\) \* Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(\-35\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\) \* Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 32 * - 35 AS col2, + COUNT ( * ) + 35 * + - 53 AS col2 query I rowsort label-6163 @@ -32733,7 +32733,7 @@ SELECT 34 + 21 * NULLIF ( - 60, - 41 + - 0 ) * 64 + + 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 539648 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(50\) / Int64\(29\) \* Int64\(64\) \* Int64\(62\) AS col2" at position 0 and "count\(\*\) \+ Int64\(38\) \* Int64\(2\) \+ 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\(79\) \* Int64\(50\) / Int64\(29\) \* Int64\(64\) \* Int64\(62\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(38\) \* Int64\(2\) \+ Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 * 50 / 29 * + 64 * 62 AS col2, COUNT ( * ) + 38 * + 2 + - 66 AS col2 query I rowsort @@ -34323,7 +34323,7 @@ SELECT DISTINCT + 67 * + MIN ( - + 50 ) * + COUNT ( * ) * + - 66 + + 89 * - ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - -23317 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- coalesce\(Int64\(\-27\), Int64\(88\) \- Int64\(5\) \* \(\- \(\- CAST\(\(\- Int64\(15\)\) AS Int32\)\)\)\)\) \* Int64\(28\) \+ Int64\(\-5\) \+ count\(\*\) \+ Int64\(40\) \+ min\(Int64\(83\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- coalesce\(Int64\(\-27\), Int64\(88\) \- Int64\(5\) \* \(\- \(\- CAST\(\(\- Int64\(15\)\) AS Int32\)\)\)\)\) \* Int64\(28\) \+ Int64\(\-5\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(40\) \+ min\(Int64\(83\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 31 * - COALESCE ( - 27, 88 - + + 5 * - + ( + - CAST ( - + 15 AS INTEGER ) ) ) * 28 + - 5 + COUNT ( * ) + + 40 + MIN ( 83 ) AS col0, 18 AS col0 query I rowsort label-6550 @@ -34532,7 +34532,7 @@ SELECT + 48 + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1234 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col2" at position 0 and "Int64\(33\) / Int64\(\-79\) \* \(\- count\(\*\)\) \+ Int64\(\-83\) \* Int64\(\-14\) \- \(\- sum\(\(\- coalesce\(Int64\(\-72\), 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\(\-97\) AS col2" at position 0 and "Int64\(33\) / Int64\(\-79\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-83\) \* Int64\(\-14\) \- \(\- sum\(\(\- coalesce\(Int64\(\-72\), Int64\(57\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 97 AS col2, 33 / + - 79 * - + COUNT ( * ) + - 83 * - 14 - - + SUM ( - COALESCE ( - 72, 57 ) ) AS col2 query I rowsort label-6591 @@ -35466,7 +35466,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\(\*\) 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 @@ -35616,7 +35616,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -2772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(63\) \* 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\(63\) \* Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col2, 63 * - 44 col2 query I rowsort label-6797 @@ -36174,7 +36174,7 @@ SELECT DISTINCT 66 * + - 85 - + 91 + + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\*\), Int64\(91\) \- Int64\(2\) \* Int64\(6\) \* \(\- coalesce\(Int64\(\-80\), \(\- Int64\(6\)\)\)\), Int64\(15\)\) \* Int64\(86\) AS col2" at position 0 and "sum\(Int64\(1\)\) \+ \(\- 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 "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(91\) \- Int64\(2\) \* Int64\(6\) \* \(\- coalesce\(Int64\(\-80\), \(\- Int64\(6\)\)\)\), Int64\(15\)\) \* Int64\(86\) AS col2" at position 0 and "sum\(Int64\(1\)\) \+ \(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( COUNT ( * ), 91 - + 2 * 6 * - COALESCE ( - 80, - + 6 ), 15 ) * + 86 AS col2, SUM ( + 1 ) + - ( 14 ) AS col2 query II rowsort @@ -36458,7 +36458,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 1558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-88\)\), Int64\(\-70\) \* Int64\(86\)\)\) \+ Int64\(96\) \+ CAST\(\(\- CASE \(\- Int64\(68\)\) WHEN Int64\(42\) / sum\(DISTINCT Int64\(92\)\) / count\(\*\) THEN nullif\(Int64\(62\), Int64\(\-60\) \+ \(\- \(\- min\(Int64\(77\)\)\)\) \+ count\(\*\) \* Int64\(\-4\)\) \* Int64\(51\) ELSE Int64\(34\) END\) AS Int32\) AS col0" at position 0 and "Int64\(82\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-88\)\), Int64\(\-70\) \* Int64\(86\)\)\) \+ Int64\(96\) \+ CAST\(\(\- CASE \(\- Int64\(68\)\) WHEN Int64\(42\) / sum\(DISTINCT Int64\(92\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN nullif\(Int64\(62\), Int64\(\-60\) \+ \(\- \(\- min\(Int64\(77\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-4\)\) \* Int64\(51\) ELSE Int64\(34\) END\) AS Int32\) AS col0" at position 0 and "Int64\(82\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( - - 88, - 70 * + 86 ) + 96 + CAST ( - CASE - + 68 WHEN + + 42 / + SUM ( DISTINCT + 92 ) / + COUNT ( * ) THEN NULLIF ( 62, - 60 + - - MIN ( ALL 77 ) + + + COUNT ( * ) * - 4 ) * 51 ELSE ( 34 ) END AS INTEGER ) AS col0, 82 * 19 AS col0 query I rowsort label-6958 @@ -37539,7 +37539,7 @@ SELECT + COUNT ( ALL - 43 ) * 5 * + 34 * 21 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-31\), Int64\(\-13\) \* \(\- CASE \(\- Int64\(\-84\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(45\)\) \* \(\- \(\- max\(DISTINCT Int64\(54\)\)\)\) \+ count\(\*\) WHEN Int64\(37\) THEN \(\- Int64\(\-16\)\) END\) \- \(\- \(\- Int64\(2\)\)\) \+ Int64\(35\) \+ nullif\(count\(\*\), \(\- nullif\(Int64\(\-7\), Int64\(\-55\) / Int64\(10\) \* \(\- Int64\(\-49\)\)\)\) \+ Int64\(22\)\) \* \(\- Int64\(48\)\) \* CAST\(NULL AS Int32\) \* Int64\(14\) \+ Int64\(62\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-31\), Int64\(\-13\) \* \(\- CASE \(\- Int64\(\-84\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(45\)\) \* \(\- \(\- max\(DISTINCT Int64\(54\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(37\) THEN \(\- Int64\(\-16\)\) END\) \- \(\- \(\- Int64\(2\)\)\) \+ Int64\(35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- nullif\(Int64\(\-7\), Int64\(\-55\) / Int64\(10\) \* \(\- Int64\(\-49\)\)\)\) \+ Int64\(22\)\) \* \(\- Int64\(48\)\) \* CAST\(NULL AS Int32\) \* Int64\(14\) \+ Int64\(62\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + ( + ( - 31 ) ), - 13 * + - CASE - - 84 WHEN - CAST ( NULL AS INTEGER ) THEN - + 45 * - - MAX ( DISTINCT + 54 ) + COUNT ( * ) WHEN 37 THEN - - 16 END - - - ( + 2 ) + 35 + + NULLIF ( + COUNT ( * ), - NULLIF ( - 7, - 55 / 10 * - - 49 ) + + 22 ) * - + 48 * + CAST ( NULL AS INTEGER ) * + 14 + + 62 ) AS col1, ( - + COUNT ( * ) ) AS col1 query I rowsort label-7163 @@ -38402,7 +38402,7 @@ SELECT ALL ( + 23 ) * + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- Int64\(\-48\)\) \+ Int64\(61\) \+ Int64\(\-22\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-48\)\) \+ Int64\(61\) \+ Int64\(\-22\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - - - 48 + 61 + + - 22 AS col1, 86 AS col1 query I rowsort label-7326 @@ -41046,7 +41046,7 @@ SELECT ALL + NULLIF ( + 97, - 26 ) * - - 4 + 12 / - 35 * - - ( - 4 ) * - COALESC # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(82\) 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\(\*\)\) \* Int64\(82\) 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 ( * ) * + 82 AS col2, + 85 AS col2 query I rowsort @@ -43137,7 +43137,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\(\*\) AS col0" at position 1 have the 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 @@ -44732,7 +44732,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\(\*\) AS col2" at position 1 have the 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 @@ -45092,7 +45092,7 @@ SELECT + - COUNT ( * ) * 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-42\) \+ Int64\(\-24\) \* count\(\*\) \* Int64\(17\) / Int64\(67\) \+ Int64\(\-21\) AS col1" at position 0 and "count\(Int64\(\-2\)\) \+ \(\- sum\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-42\) \+ Int64\(\-24\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) / Int64\(67\) \+ Int64\(\-21\) AS col1" at position 0 and "count\(Int64\(\-2\)\) \+ \(\- sum\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) + + - 42 + - 24 * + + COUNT ( * ) * + 17 / + 67 + - 21 AS col1, COUNT ( + - 2 ) + ( - + SUM ( 89 ) ) AS col1 query I rowsort label-8609 @@ -47173,7 +47173,7 @@ SELECT - + COUNT ( - - 91 ) * COUNT ( DISTINCT + 50 ) + + 58 + 90 - + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -1103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(17\), \(\- Int64\(\-50\)\) \* Int64\(85\) \+ \(\- \(\- count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(41\) \* Int64\(\-49\) \+ \(\- Int64\(84\)\) \- Int64\(\-18\) \* 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 "coalesce\(Int64\(17\), \(\- Int64\(\-50\)\) \* Int64\(85\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(41\) \* Int64\(\-49\) \+ \(\- Int64\(84\)\) \- Int64\(\-18\) \* Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + 17, - + ( - 50 ) * + + 85 + - - COUNT ( * ) ) AS col1, 41 * - 49 + - + 84 - - 18 * + ( + 55 ) AS col1 query I rowsort label-9005 @@ -50095,7 +50095,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\(\*\) 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 @@ -50586,7 +50586,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\(\*\) 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 @@ -50602,7 +50602,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\(\*\) 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 b785b90..87c6aab 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\(\*\) 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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 1 have the 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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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\(\*\) AS col2" at position 1 have the 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 @@ -4382,7 +4382,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\(\*\) AS col0" at position 1 have the 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 @@ -4517,7 +4517,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\(\*\) 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 @@ -5736,7 +5736,7 @@ SELECT + 80 * 28 # 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\(\*\)\) 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 ( - COUNT ( * ) ) AS col0, 66 AS col0 query I rowsort @@ -7157,7 +7157,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -7971,7 +7971,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\(\*\) AS col1" at position 1 have the 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 @@ -8890,7 +8890,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -9297,7 +9297,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\(\*\) AS col2" at position 1 have the 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 @@ -9716,7 +9716,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\(\*\) 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 @@ -10922,7 +10922,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\(\*\) AS col1" at position 1 have the 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 @@ -11600,7 +11600,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -11652,7 +11652,7 @@ SELECT - 88 AS col2, - COUNT ( * ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) 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 @@ -11868,7 +11868,7 @@ SELECT ALL + COUNT ( DISTINCT - + 14 ) + + 15 / - + 44 + - + 77 # 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\(\*\)\) AS col2" at position 0 and "Int64\(18\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(18\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, 18 * + + 4 AS col2 query I rowsort @@ -13071,7 +13071,7 @@ SELECT ALL SUM ( - 90 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 54 col1, CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 query I rowsort label-2533 @@ -14406,7 +14406,7 @@ SELECT DISTINCT - 77 - 91 # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col2, 54 AS col2 query I rowsort label-2791 @@ -14703,7 +14703,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\(\*\) AS col1" at position 1 have the 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 @@ -15283,7 +15283,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\(\*\) AS col0" at position 0 and "Int64\(1\) \* Int64\(\-62\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -16422,7 +16422,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\(\*\) 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 @@ -17411,7 +17411,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\(\*\)\)\)\)\)\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have 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 @@ -17473,7 +17473,7 @@ SELECT ALL - 28, + 10 AS col1 # 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\(\*\)\) AS col2" at position 1 have the 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 label-3387 @@ -18776,7 +18776,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\(\*\) AS col1" at position 1 have the 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 @@ -19016,7 +19016,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\(\*\) AS col0" at position 1 have the 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 @@ -19378,7 +19378,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\(\*\) AS col2" at position 1 have the 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 @@ -21728,7 +21728,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\(\*\) 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: @@ -21927,7 +21927,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 @@ -24145,7 +24145,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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), + COUNT ( * ) query I rowsort @@ -25768,7 +25768,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\(\*\) 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 @@ -26159,7 +26159,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\(\*\) 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 @@ -27206,7 +27206,7 @@ SELECT DISTINCT ( + 68 ) * 79 # 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\(\*\) \* \(\- \(\- count\(\*\)\)\) / \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(3\) \+ 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\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(3\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - + ( - COUNT ( * ) ) / - + COUNT ( * ) AS col2, + 3 + + + 57 AS col2 query I rowsort @@ -27357,7 +27357,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\(\*\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -27915,7 +27915,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\(\*\) 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 @@ -28105,7 +28105,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\(\*\) 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 @@ -28620,7 +28620,7 @@ SELECT DISTINCT + ( - COALESCE ( + SUM ( + + 64 ), - - ( - + 68 ) ) ) * + 52 + + # 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\(\*\)\) 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-5545 @@ -29413,7 +29413,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\(\*\) AS col1" at position 1 have the 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 @@ -30722,7 +30722,7 @@ SELECT ALL + 56 / - - ( COUNT ( * ) ) AS col1 # 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\(\*\)\) AS col2" at position 1 have the 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 81 col2, - COUNT ( * ) AS col2 query III rowsort label-5953 @@ -33539,7 +33539,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\(\*\) 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 @@ -34997,7 +34997,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\(\*\) 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 @@ -35482,7 +35482,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\(\*\) AS col2" at position 1 have the 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 @@ -36926,7 +36926,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\(\*\) AS col2" at position 1 have the 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 @@ -37665,7 +37665,7 @@ SELECT ALL - MIN ( 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5079600 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(\-45\) \* Int64\(\-20\) \* Int64\(\-68\) AS col1" at position 0 and "count\(\*\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(\-45\) \* Int64\(\-20\) \* Int64\(\-68\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( 83 ) * - 45 * - 20 * + ( + - 68 ) AS col1, COUNT ( * ) * + 45 AS col1 query I rowsort @@ -37895,7 +37895,7 @@ SELECT DISTINCT + 8 * - 32 * - 90 * - COUNT ( * ) 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\(\*\)\) 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-7347 @@ -38054,7 +38054,7 @@ SELECT + COUNT ( * ) + COUNT ( * ) * - + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 328 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- count\(\*\) \+ Int64\(41\) \* Int64\(8\) 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\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) \* Int64\(8\) 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 ( * ) - COUNT ( * ) + 41 * 8 AS col1, - 48 AS col1 # Datafusion - Types were automatically converted from: @@ -38272,7 +38272,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -38943,7 +38943,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\(\*\) \+ \(\- count\(DISTINCT Int64\(\-27\)\)\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -39564,7 +39564,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-69\)\) 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\(\*\) \* \(\- Int64\(\-69\)\) 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 ( * ) * - - 69 AS col1, 36 AS col1 query I rowsort @@ -40124,7 +40124,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\(\*\) 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 @@ -41676,7 +41676,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-8078 @@ -43604,7 +43604,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\(\*\) 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 @@ -47155,7 +47155,7 @@ SELECT ( - 93 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-84\), Int64\(67\) \* 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 "coalesce\(Int64\(\-84\), Int64\(67\) \* 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 ALL COALESCE ( + ( + - 84 ), + + 67 * COUNT ( * ) ) AS col0, 84 AS col0 query I rowsort @@ -47897,7 +47897,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 169 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 0 and "count\(\*\) \* \(\- Int64\(\-13\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-13\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, COUNT ( * ) * - - 13 * 13 AS col0 query I rowsort @@ -48474,7 +48474,7 @@ SELECT DISTINCT - 20 * - + COALESCE ( 83, 80 * - 94 * CASE - - 17 WHEN - + SUM ( # 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 "nullif\(\(\- count\(\*\)\), Int64\(25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 col2, NULLIF ( - COUNT ( * ), 25 ) AS col2 query I rowsort label-9400 @@ -48802,7 +48802,7 @@ SELECT ALL - 75 / + COALESCE ( - ( COUNT ( * ) ), - 99 + - + 44 * + 72 * + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* count\(\*\) / Int64\(77\) AS col0" at position 0 and "\(\- CASE Int64\(\-59\) WHEN Int64\(81\) THEN \(\- Int64\(\-47\)\) \+ coalesce\(Int64\(76\), Int64\(\-97\)\) WHEN Int64\(\-3\) THEN CAST\(Int64\(92\) AS Int32\) \+ Int64\(59\) WHEN Int64\(61\) THEN NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(77\) AS col0" at position 0 and "\(\- CASE Int64\(\-59\) WHEN Int64\(81\) THEN \(\- Int64\(\-47\)\) \+ coalesce\(Int64\(76\), Int64\(\-97\)\) WHEN Int64\(\-3\) THEN CAST\(Int64\(92\) AS Int32\) \+ Int64\(59\) WHEN Int64\(61\) THEN NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 * COUNT ( * ) / + 77 AS col0, - CASE + - 59 WHEN + 81 THEN - - 47 + COALESCE ( 76, - 97 ) WHEN - 3 THEN CAST ( 92 AS INTEGER ) + 59 WHEN + 61 THEN NULL END AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_88.slt b/data/sqlite/random/expr/slt_good_88.slt index 220f0be..1b5d893 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\(\*\) AS col0" at position 1 have 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 @@ -1683,7 +1683,7 @@ SELECT ( 0 ) + - - COALESCE ( - 86, 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3026 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-89\) AS col1" at position 0 and "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\(34\) \* Int64\(\-89\) 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 ALL 34 * - 89 AS col1, COUNT ( * ) / 49 AS col1 query II rowsort label-315 @@ -2107,7 +2107,7 @@ SELECT + - MAX ( ALL + 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -208277 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(\*\), Int64\(87\) \* \(\- Int64\(23\)\)\) AS col1" at position 0 and "Int64\(57\) \* \(\- coalesce\(\(\- Int64\(\-58\)\), coalesce\(Int64\(7\), Int64\(\-27\) \* Int64\(21\) \+ Int64\(59\) \+ Int64\(\-9\)\)\)\) \* \(\- max\(DISTINCT Int64\(\-63\)\)\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have 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\(87\) \* \(\- Int64\(23\)\)\) AS col1" at position 0 and "Int64\(57\) \* \(\- coalesce\(\(\- Int64\(\-58\)\), coalesce\(Int64\(7\), Int64\(\-27\) \* Int64\(21\) \+ Int64\(59\) \+ Int64\(\-9\)\)\)\) \* \(\- max\(DISTINCT Int64\(\-63\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + COUNT ( * ), 87 * - + 23 ) AS col1, + 57 * + - COALESCE ( - - 58, ( + COALESCE ( + 7, - 27 * 21 + + 59 + - 9 ) ) ) * - MAX ( DISTINCT - 63 ) + - - COUNT ( * ) AS col1 query I rowsort label-397 @@ -3498,7 +3498,7 @@ SELECT ALL + 70 * + 60 * COALESCE ( + 64, - COUNT ( DISTINCT 0 ), 54 + - - 62 - # Datafusion - Expected - 13 # Datafusion - Expected - -38 # Datafusion - Expected - 93 -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\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 13 AS col1, - 38, - COUNT ( * ) + + 94 AS col1 query I rowsort @@ -5179,7 +5179,7 @@ SELECT - - COUNT ( DISTINCT 5 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 12 -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\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 84 AS col0, COUNT ( * ) * 12 AS col0 query I rowsort @@ -5693,7 +5693,7 @@ SELECT + + 85 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1470 # Datafusion - Expected - 3920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- Int64\(21\)\) \- \(\- \(\- count\(\*\)\)\) / Int64\(25\) AS col0" at position 0 and "Int64\(40\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- Int64\(21\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(25\) AS col0" at position 0 and "Int64\(40\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 70 * - + 21 - + - ( - COUNT ( * ) ) / + 25 AS col0, 40 * + 98 AS col0 query I rowsort @@ -6156,7 +6156,7 @@ SELECT ALL - - ( - 2 ) * + ( - 5 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2816 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(64\)\) \* Int64\(44\) \+ Int64\(0\) 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\(\*\) \* \(\- Int64\(64\)\) \* Int64\(44\) \+ Int64\(0\) 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 ( * ) * + - ( + 64 ) * 44 + 0 AS col0, + 97 AS col0 query I rowsort label-1168 @@ -6303,7 +6303,7 @@ SELECT ALL COALESCE ( 45, + - 80 ) - + 43 / 65 * + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -511 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(73\) \* 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\(73\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, 73 * + ( ( - 7 ) ) AS col2 query I rowsort @@ -6997,7 +6997,7 @@ NULL # Datafusion - Expected - 851620 # Datafusion - Expected - 34 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* count\(\*\) \* Int64\(\-79\) \* \(\- Int64\(77\)\) \* Int64\(\-28\) AS col1" at position 0 and "\(\- Int64\(6\)\) \+ \(\- CAST\(Int64\(\-76\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-79\) \* \(\- Int64\(77\)\) \* Int64\(\-28\) AS col1" at position 0 and "\(\- Int64\(6\)\) \+ \(\- CAST\(Int64\(\-76\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 5 * + COUNT ( * ) * - 79 * - + 77 * - 28 AS col1, 51 + - - 88 + + - 61 + ( - 44 ) AS col2, - + 6 + + - CAST ( - 76 AS INTEGER ) AS col1 query I rowsort @@ -7703,7 +7703,7 @@ SELECT ALL - 40 + - + 50 + - COUNT ( * ) - + - COALESCE ( + 83, + 60 ) * + 25, - # Datafusion - Expected - 3902 # Datafusion - Expected - -1 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-80\) \+ Int64\(43\) \* Int64\(\-91\) / \(\- count\(\*\)\) \- Int64\(8\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-80\) \+ Int64\(43\) \* Int64\(\-91\) / \(\- 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 + 77 + - 80 + 43 * - 91 / - COUNT ( * ) - 8 AS col2, - COUNT ( * ) AS col2, 61 + 72 query II rowsort label-1461 @@ -7746,7 +7746,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\(\*\) \+ count\(\*\) AS col1" at position 1 have the 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 @@ -7774,7 +7774,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\(\-7\)\) \* Int64\(0\) END \* \(\- CASE \(\- Int64\(13\)\) WHEN \(\- Int64\(16\)\) THEN NULL ELSE \(\- Int64\(\-2\)\) \* Int64\(\-57\) END\) \+ Int64\(97\) \- 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 @@ -7934,7 +7934,7 @@ SELECT - CASE 91 WHEN 63 - 86 THEN NULL ELSE + 35 * + 8 + + SUM ( 41 ) + - ( - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(38\) AS col0" at position 0 and "Int64\(44\) \+ Int64\(11\) \+ 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\(\*\)\) \+ Int64\(38\) AS col0" at position 0 and "Int64\(44\) \+ Int64\(11\) \+ Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 38 AS col0, + 44 + 11 + + 60 AS col0 query I rowsort @@ -8684,7 +8684,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 67707 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "nullif\(Int64\(57\), \(\- min\(\(\- Int64\(\-23\)\)\)\) \+ Int64\(\-17\) \+ \(\- count\(\*\)\) / Int64\(\-26\)\) \+ \(\- Int64\(30\)\) \* \(\- Int64\(\-55\)\) \* 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\(\-49\) AS col1" at position 0 and "nullif\(Int64\(57\), \(\- min\(\(\- Int64\(\-23\)\)\)\) \+ Int64\(\-17\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-26\)\) \+ \(\- Int64\(30\)\) \* \(\- Int64\(\-55\)\) \* Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 49 AS col1, NULLIF ( + 57, - MIN ( - - 23 ) + + - 17 + - COUNT ( * ) / - 26 ) + - + 30 * - - 55 * - 41 AS col1 query II rowsort @@ -9553,7 +9553,7 @@ SELECT ALL - ( - - 26 ) * - + MIN ( + 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(17\)\) AS Int32\) \- \(\- count\(\*\)\) \* Int64\(95\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(17\)\) AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(95\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - ( 17 ) AS INTEGER ) - - COUNT ( * ) * 95 AS col1, 10 AS col1 query I rowsort label-1812 @@ -9804,7 +9804,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) / \(\- \(\- 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 "Int64\(17\) / \(\- \(\- 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 + 17 / - - ( + COUNT ( * ) ) AS col1, - ( 58 ) AS col1 query I rowsort label-1860 @@ -10603,7 +10603,7 @@ SELECT 59 / - - 19 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "\(\- count\(\*\)\) \+ sum\(Int64\(\-17\)\) \+ 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\(7\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(Int64\(\-17\)\) \+ Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 col0, - COUNT ( * ) + + SUM ( - 17 ) + - 65 AS col0 query I rowsort label-2008 @@ -10882,7 +10882,7 @@ SELECT DISTINCT 66 + + 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 99 -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\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - ( ( + 68 ) ) ) col2, COUNT ( * ) + + + 98 AS col2 query I rowsort label-2062 @@ -11108,7 +11108,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\(\*\) AS col0" at position 1 have the 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 @@ -11969,7 +11969,7 @@ SELECT COUNT ( * ) * - MAX ( - 30 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "Int64\(34\) \* \(\- count\(\*\)\) \+ Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "Int64\(34\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 60 AS col1, 34 * - COUNT ( * ) + 90 AS col1 query II rowsort label-2270 @@ -13584,7 +13584,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\(\*\) AS col1" at position 1 have the 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: @@ -14199,7 +14199,7 @@ SELECT + MAX ( DISTINCT 97 ) + + + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -582 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(82\)\)\) \+ Int64\(\-45\) \+ \(\- Int64\(\-13\)\) \* count\(\*\) \* Int64\(\-35\) AS col2" at position 0 and "Int64\(8\) \* 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 "\(\- min\(Int64\(82\)\)\) \+ Int64\(\-45\) \+ \(\- Int64\(\-13\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-35\) AS col2" at position 0 and "Int64\(8\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( MIN ( + 82 ) ) + - 45 + - - 13 * + COUNT ( * ) * - 35 AS col2, ( + 8 ) * 12 AS col2 query II rowsort @@ -15700,7 +15700,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\(\*\) 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 @@ -16842,7 +16842,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\(\*\) AS col1" at position 1 have the 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 @@ -17360,7 +17360,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\(\*\) 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 @@ -19832,7 +19832,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(75\) \+ \(\- nullif\(\(\- coalesce\(Int64\(62\), Int64\(5\) \+ Int64\(0\) \* Int64\(\-58\), CASE Int64\(84\) WHEN \(\- \(\- avg\(\(\- Int64\(67\)\)\)\)\) \* Int64\(\-18\) THEN Int64\(37\) END \* Int64\(4\) \- Int64\(26\) \+ \(\- count\(\*\)\) \* Int64\(44\)\)\), Int64\(64\) \* \(\- 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 "Int64\(89\) AS col2" at position 0 and "Int64\(75\) \+ \(\- nullif\(\(\- coalesce\(Int64\(62\), Int64\(5\) \+ Int64\(0\) \* Int64\(\-58\), CASE Int64\(84\) WHEN \(\- \(\- avg\(\(\- Int64\(67\)\)\)\)\) \* Int64\(\-18\) THEN Int64\(37\) END \* Int64\(4\) \- Int64\(26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(44\)\)\), Int64\(64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(36\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 col2, 75 + - NULLIF ( - COALESCE ( + ( 62 ), + 5 + + + ( + 0 ) * - 58, CASE 84 WHEN - - AVG ( - + 67 ) * - 18 THEN 37 END * + 4 - + + 26 + - COUNT ( * ) * 44 ), 64 * - COUNT ( * ) + ( + + 36 ) ) col2 query I rowsort label-3767 @@ -20442,7 +20442,7 @@ SELECT ALL + - 93 * + + 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- Int64\(52\)\) \+ Int64\(70\) \+ Int64\(83\) AS col0" at position 0 and "Int64\(\-20\) \+ max\(Int64\(\-37\)\) \- Int64\(79\) \+ CASE count\(\*\) WHEN Int64\(12\) / Int64\(\-28\) THEN Int64\(68\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- Int64\(52\)\) \+ Int64\(70\) \+ Int64\(83\) AS col0" at position 0 and "Int64\(\-20\) \+ max\(Int64\(\-37\)\) \- Int64\(79\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(12\) / Int64\(\-28\) THEN Int64\(68\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) - - + 52 + 70 + 83 AS col0, - 20 + + ( + + MAX ( + - 37 ) ) - + 79 + + CASE + COUNT ( * ) WHEN + 12 / - 28 THEN + 68 END AS col0 query I rowsort label-3881 @@ -20491,7 +20491,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\(\*\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 @@ -20909,7 +20909,7 @@ SELECT 57 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -967 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(Int64\(47\)\) \+ count\(\*\) \* Int64\(\-81\) AS col2" at position 0 and "nullif\(Int64\(13\), Int64\(\-10\) \+ Int64\(\-79\) \+ CAST\(NULL AS Int32\) \- Int64\(69\) \* Int64\(37\) \* Int64\(99\) \+ \(\- coalesce\(Int64\(8\), Int64\(\-19\)\)\)\) \* Int64\(\-67\) \+ count\(\*\) / count\(\*\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(Int64\(47\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-81\) AS col2" at position 0 and "nullif\(Int64\(13\), Int64\(\-10\) \+ Int64\(\-79\) \+ CAST\(NULL AS Int32\) \- Int64\(69\) \* Int64\(37\) \* Int64\(99\) \+ \(\- coalesce\(Int64\(8\), Int64\(\-19\)\)\)\) \* Int64\(\-67\) \+ count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 + MIN ( + 47 ) + COUNT ( * ) * - 81 AS col2, + NULLIF ( 13, - 10 + - 79 + + CAST ( NULL AS INTEGER ) - + + 69 * + 37 * 99 + - + COALESCE ( + 8, - 19 ) ) * - 67 + COUNT ( * ) / COUNT ( * ) * - 96 AS col2 query I rowsort @@ -21242,7 +21242,7 @@ SELECT ( + 43 ) AS col2, - 59 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( COUNT ( * ) ), COUNT ( * ) query I rowsort label-4034 @@ -23527,7 +23527,7 @@ SELECT ALL 54 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(16\)\)\)\) AS col0" at position 0 and "CASE nullif\(\(\- count\(\*\)\), Int64\(13\) \- Int64\(43\)\) WHEN nullif\(\(\- nullif\(Int64\(\-10\), \(\- count\(\*\)\)\)\), Int64\(\-82\)\) THEN Int64\(41\) WHEN Int64\(7\) \* \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(16\)\)\)\) AS col0" at position 0 and "CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(13\) \- Int64\(43\)\) WHEN nullif\(\(\- nullif\(Int64\(\-10\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\), Int64\(\-82\)\) THEN Int64\(41\) WHEN Int64\(7\) \* \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( ALL - + 16 ) AS col0, CASE NULLIF ( - COUNT ( * ), 13 - + 43 ) WHEN NULLIF ( - + NULLIF ( - 10, - COUNT ( * ) ), - 82 ) THEN 41 WHEN 7 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END col0 query II rowsort label-4474 @@ -23705,7 +23705,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 109 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-47\), Int64\(\-37\)\) \+ \(\- Int64\(\-96\)\) \- Int64\(\-37\) / Int64\(30\) \+ Int64\(59\) AS col1" at position 0 and "max\(CAST\(Int64\(17\) AS Int32\)\) / Int64\(28\) \+ coalesce\(CASE CAST\(Int64\(\-92\) AS Float64\) WHEN Int64\(81\) THEN Int64\(\-77\) ELSE count\(\*\) END, Int64\(25\), Int64\(84\) \+ Int64\(39\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-47\), Int64\(\-37\)\) \+ \(\- Int64\(\-96\)\) \- Int64\(\-37\) / Int64\(30\) \+ Int64\(59\) AS col1" at position 0 and "max\(CAST\(Int64\(17\) AS Int32\)\) / Int64\(28\) \+ coalesce\(CASE CAST\(Int64\(\-92\) AS Float64\) WHEN Int64\(81\) THEN Int64\(\-77\) ELSE count\(Int64\(1\)\) AS count\(\*\) END, Int64\(25\), Int64\(84\) \+ Int64\(39\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( + NULLIF ( - 47, - 37 ) ) + - - 96 - - 37 / 30 + 59 AS col1, MAX ( + CAST ( + 17 AS INTEGER ) ) / + + 28 + + COALESCE ( CASE CAST ( - 92 AS FLOAT8 ) WHEN 81 THEN - 77 ELSE ( COUNT ( * ) ) END, 25, + 84 + 39 ) AS col1 query I rowsort @@ -24232,7 +24232,7 @@ SELECT 63 col0, - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* \(\- 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\(54\) \* \(\- 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 54 * - COUNT ( * ) AS col0, 58 col0 query I rowsort label-4608 @@ -25461,7 +25461,7 @@ SELECT + 34 * + 8 # Datafusion - Expected - 20 # Datafusion - Expected - -1505 # Datafusion - Expected - -2176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(66\) \+ \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) \+ Int64\(48\) \+ \(\- Int64\(30\)\) \* nullif\(Int64\(54\), Int64\(50\) \- \(\- count\(Int64\(\-6\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(66\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(48\) \+ \(\- Int64\(30\)\) \* nullif\(Int64\(54\), Int64\(50\) \- \(\- count\(Int64\(\-6\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 20 col0, 66 + - CAST ( - COUNT ( * ) AS INTEGER ) + 48 + - + 30 * + NULLIF ( 54, 50 - - COUNT ( + - 6 ) ) AS col0, 34 * - 64 query I rowsort @@ -26024,7 +26024,7 @@ SELECT ( - 22 ) + - - 10 * - - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -792 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* \(\- Int64\(\-33\)\) \* \(\- \(\- count\(\*\)\)\) \* \(\- 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\(24\) \* \(\- Int64\(\-33\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- 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 24 * - ( + - 33 ) * - - COUNT ( * ) * - COUNT ( * ) AS col1, + 75 AS col1 query I rowsort @@ -26980,7 +26980,7 @@ SELECT ALL MIN ( ALL - 2 ) * - 54 + + COUNT ( * ) * - - 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-49\) AS col1" at position 0 and "Int64\(74\) \* 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\(\-49\) AS col1" at position 0 and "Int64\(74\) \* Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * - 49 AS col1, 74 * 5 AS col1 query I rowsort label-5130 @@ -27228,7 +27228,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\(\*\) AS col0" at position 1 have the 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 @@ -27394,7 +27394,7 @@ SELECT 26 * - 97 - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 965 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-59\) / Int64\(\-15\) \- sum\(Int64\(37\)\) \+ Int64\(63\)\) \* CAST\(Int64\(20\) AS Int32\) \+ Int64\(\-44\) \- Int64\(52\) \* Int64\(\-7\) \+ Int64\(65\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-59\) / Int64\(\-15\) \- sum\(Int64\(37\)\) \+ Int64\(63\)\) \* CAST\(Int64\(20\) AS Int32\) \+ Int64\(\-44\) \- Int64\(52\) \* Int64\(\-7\) \+ Int64\(65\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - - ( + CAST ( NULL AS INTEGER ) ), - 59 / + - 15 - + SUM ( + 37 ) + + 63 ) * + CAST ( 20 AS INTEGER ) + + - 44 - + 52 * - 7 + + 65 AS col2, - COUNT ( * ) AS col2 query I rowsort label-5209 @@ -28498,7 +28498,7 @@ SELECT DISTINCT MAX ( + ( + 20 ) ) # 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\(\*\)\) AS col2" at position 0 and "Int64\(2\) \* \(\- sum\(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\(2\) \* \(\- sum\(Int64\(43\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) col2, + 2 * - SUM ( + 43 ) AS col2 query I rowsort label-5418 @@ -28957,7 +28957,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\(\*\) 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 @@ -29083,7 +29083,7 @@ SELECT 72 * - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 285 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(92\) \+ Int64\(95\) AS col0" at position 0 and "Int64\(19\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(92\) \+ 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 + 98 + + 92 + 95 col0, 19 * - COUNT ( * ) AS col0 query I rowsort label-5530 @@ -29196,7 +29196,7 @@ SELECT ALL + + 25 - - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-70\) \* \(\- nullif\(Int64\(\-21\), Int64\(54\) \* Int64\(48\) \+ Int64\(72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-70\) \* \(\- nullif\(Int64\(\-21\), Int64\(54\) \* Int64\(48\) \+ Int64\(72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 AS col1, COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 70 * + - NULLIF ( + - 21, 54 * 48 + 72 ) AS col1 query II rowsort label-5552 @@ -29356,7 +29356,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\(\*\) 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 @@ -29367,7 +29367,7 @@ SELECT ALL + + 89 * - + 72 + + + 57 # 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\(\*\)\) AS col1" at position 1 have the 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 ( * ) col1 query I rowsort label-5584 @@ -29604,7 +29604,7 @@ SELECT ALL 96 * + 82 + - 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-84\) \+ Int64\(32\) 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\(\*\) \* Int64\(\-84\) \+ Int64\(32\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - 84 + 32 AS col1, + 2 AS col1 query I rowsort label-5630 @@ -29697,7 +29697,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\(\*\) 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 @@ -30764,7 +30764,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\(\*\) 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 @@ -31851,7 +31851,7 @@ SELECT + + 70 col0 # 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 "Int64\(93\) / \(\- \(\- CASE \(\- Int64\(\-15\)\) WHEN Int64\(67\) \* Int64\(44\) THEN NULL ELSE count\(\*\) \* Int64\(\-78\) \- Int64\(86\) \- count\(\*\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) AS col1" at position 0 and "Int64\(93\) / \(\- \(\- CASE \(\- Int64\(\-15\)\) WHEN Int64\(67\) \* Int64\(44\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-78\) \- Int64\(86\) \- count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 35 col1, + 93 / - - CASE - - 15 WHEN 67 * 44 THEN NULL ELSE + COUNT ( * ) * - 78 - + + 86 - COUNT ( * ) END AS col1 query I rowsort label-6061 @@ -32606,7 +32606,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\(\*\) 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 @@ -32802,7 +32802,7 @@ SELECT ALL + 61 / NULLIF ( - 29, 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 49 AS col0, CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 query I rowsort @@ -34510,7 +34510,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\(\*\) AS col2" at position 1 have the 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 @@ -35381,7 +35381,7 @@ SELECT ALL CAST ( + MAX ( CAST ( - 19 AS INTEGER ) ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) / \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(15\) \+ \(\- 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\(\-25\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(15\) \+ \(\- Int64\(59\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 25 / + - COUNT ( * ) AS col0, 15 + - + 59 AS col0 query I rowsort label-6729 @@ -37739,7 +37739,7 @@ SELECT ALL + 94 AS col0, + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(\*\)\) WHEN CAST\(NULL AS Int32\) / \(\- Int64\(\-33\)\) \* \(\- Int64\(\-32\)\) \+ Int64\(27\) \* \(\- Int64\(88\)\) THEN nullif\(Int64\(85\), Int64\(\-49\)\) \+ \(\- min\(Int64\(61\)\)\) WHEN Int64\(87\) THEN Int64\(68\) ELSE NULL END AS col2" at position 0 and "Int64\(14\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CAST\(NULL AS Int32\) / \(\- Int64\(\-33\)\) \* \(\- Int64\(\-32\)\) \+ Int64\(27\) \* \(\- Int64\(88\)\) THEN nullif\(Int64\(85\), Int64\(\-49\)\) \+ \(\- min\(Int64\(61\)\)\) WHEN Int64\(87\) THEN Int64\(68\) ELSE NULL END AS col2" at position 0 and "Int64\(14\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE + - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) / - - 33 * - - 32 + + 27 * - + 88 THEN NULLIF ( 85, - 49 ) + - MIN ( ALL 61 ) WHEN 87 THEN + + 68 ELSE NULL END AS col2, 14 + - 95 AS col2 query I rowsort @@ -38288,7 +38288,7 @@ SELECT - 57 / + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(5\) \* 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\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(5\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 62 * - COUNT ( * ) AS col0, 5 * + + 70 AS col0 query I rowsort label-7282 @@ -39113,7 +39113,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\(\*\) AS col0" at position 1 have the 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 @@ -39864,7 +39864,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\(\*\) 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 @@ -39957,7 +39957,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\(\*\) AS col2" at position 1 have the 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 @@ -40026,7 +40026,7 @@ SELECT ( - NULLIF ( - COUNT ( ALL 97 ), + 44 * - 86 + 84 ) ) * - 41 * - COUNT ( # 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\(\*\)\) 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 "\(\- 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 - COUNT ( * ) AS col0, + 90 col0 query I rowsort @@ -40264,7 +40264,7 @@ SELECT ALL - 52 + 37 + 43 - - 12 * + 73 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(0\) \* Int64\(79\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(96\) \* CASE count\(\*\) WHEN \(\- CASE Int64\(16\) WHEN count\(\*\) THEN coalesce\(Int64\(42\), \(\- count\(Int64\(18\)\)\) \+ Int64\(74\) \* Int64\(2\) \* Int64\(51\)\) \* Int64\(\-80\) ELSE count\(\*\) \* Int64\(22\) \+ Int64\(71\) END\) THEN Int64\(94\) \- Int64\(\-31\) ELSE NULL END \+ count\(\*\) / Int64\(\-3\) \+ 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\(\*\)\) \+ Int64\(0\) \* Int64\(79\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(96\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- CASE Int64\(16\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(Int64\(42\), \(\- count\(Int64\(18\)\)\) \+ Int64\(74\) \* Int64\(2\) \* Int64\(51\)\) \* Int64\(\-80\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* Int64\(22\) \+ Int64\(71\) END\) THEN Int64\(94\) \- Int64\(\-31\) ELSE NULL END \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-3\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( COUNT ( * ) ) + + 0 * 79 + + 40 AS col2, + ( + 96 ) * + CASE COUNT ( * ) WHEN - + CASE + 16 WHEN COUNT ( * ) THEN COALESCE ( + 42, - COUNT ( + 18 ) + 74 * ( 2 * 51 ) ) * ( - 80 ) ELSE COUNT ( * ) * + 22 + 71 END THEN ( + 94 ) - - 31 ELSE NULL END + + COUNT ( * ) / - 3 + 79 col2 query I rowsort @@ -40841,7 +40841,7 @@ SELECT ALL - 25 * - - 48 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 15 -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\(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\(17\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 17 AS col2, + COUNT ( * ) * + 15 AS col2 query I rowsort @@ -41231,7 +41231,7 @@ SELECT - 58 * 94 + + - 18 * + 57 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66666 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(\-65\) \* count\(\*\) \* Int64\(\-93\) \* Int64\(11\) \+ Int64\(81\) AS col1" at position 0 and "avg\(DISTINCT CAST\(NULL AS Int32\)\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-93\) \* Int64\(11\) \+ Int64\(81\) AS col1" at position 0 and "avg\(DISTINCT CAST\(NULL AS Int32\)\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 90 + - 65 * + COUNT ( * ) * - 93 * 11 + + 81 AS col1, + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + 0 AS col1 query I rowsort @@ -41283,7 +41283,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\(\*\) AS col1" at position 1 have the 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 @@ -42132,7 +42132,7 @@ SELECT + 54 + + MIN ( + 92 ) * + + 20 col1, - COALESCE ( + 0, 49 ) AS col0 # Datafusion - Expected - 216 # Datafusion - Expected - 50 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- count\(\*\)\) / \(\- 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 "Int64\(\-24\) \* \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(29\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 24 * - + 9 col0, 50 * + COUNT ( * ), - COUNT ( * ) / - + 29 col0 query I rowsort label-8011 @@ -42396,7 +42396,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\(\*\)\) \* CASE nullif\(count\(\*\), Int64\(63\)\) WHEN count\(\*\) THEN NULL WHEN Int64\(\-74\) THEN Int64\(5\) / Int64\(79\) ELSE NULL END AS col0" at position 0 and "Int64\(20\) / count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("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 @@ -42447,7 +42447,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 2004 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(65\) \+ count\(\*\) \+ Int64\(57\) \* \(\- coalesce\(Int64\(\-34\), \(\- Int64\(68\)\) \* count\(\*\) / \(\- CASE Int64\(29\) WHEN Int64\(\-20\) THEN Int64\(56\) \+ Int64\(\-41\) \+ Int64\(46\) \* Int64\(5\) WHEN Int64\(\-89\) 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\(70\) AS col1" at position 0 and "Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(57\) \* \(\- coalesce\(Int64\(\-34\), \(\- Int64\(68\)\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE Int64\(29\) WHEN Int64\(\-20\) THEN Int64\(56\) \+ Int64\(\-41\) \+ Int64\(46\) \* Int64\(5\) WHEN Int64\(\-89\) THEN NULL END\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 70 AS col1, 65 + COUNT ( * ) + + 57 * - COALESCE ( - 34, - ( + 68 ) * COUNT ( * ) / - + CASE + 29 WHEN - 20 THEN 56 + - 41 + 46 * + 5 WHEN - 89 THEN NULL END ) AS col1 query I rowsort @@ -43166,7 +43166,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -43321,7 +43321,7 @@ SELECT ALL - COUNT ( * ) * - 59 * - COUNT ( * ) * + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3280 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- Int64\(97\) \* CASE Int64\(\-43\) WHEN Int64\(99\) / Int64\(27\) THEN NULL ELSE count\(\*\) END \* Int64\(34\) 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\(18\) \- Int64\(97\) \* CASE Int64\(\-43\) WHEN Int64\(99\) / Int64\(27\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(34\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 18 - 97 * + CASE - 43 WHEN + 99 / 27 THEN NULL ELSE + COUNT ( * ) END * 34 AS col2, 26 AS col2 query I rowsort @@ -43823,7 +43823,7 @@ SELECT + + COALESCE ( - 0, - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(92\), Int64\(89\) \* count\(\*\)\)\) AS col0" at position 0 and "Int64\(96\) \+ Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(92\), Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(96\) \+ Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COALESCE ( 92, + + 89 * + COUNT ( * ) ) AS col0, + 96 + ( - 61 ) AS col0 query II rowsort @@ -44060,7 +44060,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\(\*\) AS col1" at position 1 have the 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 @@ -44133,7 +44133,7 @@ SELECT + NULLIF ( 73, - 6 ) + - 36 + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* \(\- sum\(Int64\(32\)\)\) 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\(\*\)\)\) \* \(\- sum\(Int64\(32\)\)\) 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 ( * ) * - SUM ( 32 ) AS col0, + 75 AS col0 query I rowsort label-8393 @@ -44403,7 +44403,7 @@ SELECT 3 + - + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 5546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- Int64\(17\)\) AS col2" at position 0 and "Int64\(94\) \* 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\(\*\) \- \(\- Int64\(17\)\) AS col2" at position 0 and "Int64\(94\) \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - - ( + 17 ) AS col2, 94 * 59 AS col2 query II rowsort @@ -44632,7 +44632,7 @@ SELECT ALL - 7 AS col0, 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4876 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(85\) \* Int64\(57\) \- Int64\(23\) \* count\(\*\) \+ Int64\(\-1\) 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\(55\) \+ Int64\(85\) \* Int64\(57\) \- Int64\(23\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-1\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 55 + + 85 * + + 57 - 23 * + COUNT ( * ) + + - 1 AS col2, + 40 AS col2 query II rowsort label-8486 @@ -45129,7 +45129,7 @@ SELECT ALL NULLIF ( + + COUNT ( * ), - 40 * + 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "CASE \(\- avg\(Int64\(\-40\)\)\) WHEN Int64\(79\) \+ Int64\(17\) \+ Int64\(94\) THEN \(\- count\(\*\)\) WHEN Int64\(57\) THEN Int64\(61\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "CASE \(\- avg\(Int64\(\-40\)\)\) WHEN Int64\(79\) \+ Int64\(17\) \+ Int64\(94\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(57\) THEN Int64\(61\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 32 AS col2, CASE - + AVG ( ALL - 40 ) WHEN + 79 + + 17 + + 94 THEN + ( + - COUNT ( * ) ) WHEN + + 57 THEN + 61 END AS col2 query I rowsort @@ -45646,7 +45646,7 @@ SELECT 29 - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4562 # Datafusion - Expected - 4758 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(\-51\) \+ Int64\(\-74\) AS col0" at position 0 and "count\(\*\) \+ Int64\(71\) \* 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\(88\) \* Int64\(\-51\) \+ Int64\(\-74\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(71\) \* Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 * + - 51 + - 74 AS col0, COUNT ( * ) + + 71 * 67 AS col0 query I rowsort label-8678 @@ -45757,7 +45757,7 @@ SELECT ALL + 14 + + NULLIF ( 60, - 32 / + + 22 + COUNT ( * ) + - 93 + + + 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 query I rowsort label-8699 @@ -46333,7 +46333,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\(\*\) AS col0" at position 0 and "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 @@ -46652,7 +46652,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\(\*\) 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 @@ -48016,7 +48016,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\(\*\) AS col0" at position 1 have the 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 @@ -48584,7 +48584,7 @@ NULL # 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\(\-66\) 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\(\*\) / Int64\(\-66\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / + - 66 AS col2, 37 AS col2 query I rowsort label-9246 @@ -48975,7 +48975,7 @@ SELECT + COUNT ( * ) * - + NULLIF ( + + 79, COUNT ( * ) + + 98 + + 28 - - - SUM # Datafusion - Datafusion expected results: # Datafusion - Expected - -122 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* count\(\*\) \- Int64\(94\) 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 "Int64\(\-28\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(94\) AS col0" at position 0 and "Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 * + + COUNT ( * ) - 94 AS col0, - 75 col0 query II rowsort label-9320 @@ -50752,7 +50752,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\(\*\) AS col1" at position 0 and "\(\- 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 @@ -50885,7 +50885,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\(\*\) AS col2" at position 1 have the 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 @@ -51395,7 +51395,7 @@ SELECT 56 + + COUNT ( * ) AS col2 # 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 "Int64\(1\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(79\) \+ \(\- 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\(1\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(79\) \+ \(\- Int64\(54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 * - COUNT ( * ) AS col1, 79 + - + 54 AS col1 query I rowsort label-9780 @@ -51590,7 +51590,7 @@ SELECT - NULLIF ( + 11, COUNT ( * ) + + SUM ( DISTINCT 72 ) * - COUNT ( * ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(55\) \+ Int64\(\-57\) \+ \(\- CASE Int64\(11\) WHEN \(\- count\(\*\)\) THEN Int64\(5\) \* Int64\(21\) \* \(\- avg\(DISTINCT \(\- Int64\(28\)\)\)\) \* Int64\(33\) \+ \(\- Int64\(\-10\)\) WHEN Int64\(89\) THEN Int64\(83\) \+ count\(\*\) WHEN Int64\(\-73\) / Int64\(76\) \+ Int64\(\-93\) THEN NULL END\) \* 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\(\-95\) AS col1" at position 0 and "Int64\(55\) \+ Int64\(\-57\) \+ \(\- CASE Int64\(11\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(5\) \* Int64\(21\) \* \(\- avg\(DISTINCT \(\- Int64\(28\)\)\)\) \* Int64\(33\) \+ \(\- Int64\(\-10\)\) WHEN Int64\(89\) THEN Int64\(83\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-73\) / Int64\(76\) \+ Int64\(\-93\) THEN NULL END\) \* Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 AS col1, 55 + - 57 + - CASE 11 WHEN - COUNT ( * ) THEN ( + 5 ) * 21 * + - AVG ( DISTINCT - ( 28 ) ) * 33 + ( - ( - 10 ) ) WHEN + 89 THEN + 83 + + COUNT ( * ) WHEN + - 73 / + 76 + + - 93 THEN NULL END * - 62 AS col1 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_89.slt b/data/sqlite/random/expr/slt_good_89.slt index ad2a232..f3351e1 100644 --- a/data/sqlite/random/expr/slt_good_89.slt +++ b/data/sqlite/random/expr/slt_good_89.slt @@ -1369,7 +1369,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\(\*\) 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 @@ -2073,7 +2073,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\(\*\) AS col0" at position 1 have the 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 @@ -2593,7 +2593,7 @@ SELECT - COUNT ( * ) * + 1 + - - 16 AS col0, - 49 + - - 7 + 80 - + COUNT ( * ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -1411 # Datafusion - Expected - -18734 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* \(\- \(\- max\(DISTINCT Int64\(\-83\)\)\)\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(19\) \+ count\(\*\) \+ Int64\(\-98\) \* Int64\(\-64\) \* \(\- 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\(17\) \* \(\- \(\- max\(DISTINCT Int64\(\-83\)\)\)\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-98\) \* Int64\(\-64\) \* \(\- Int64\(3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 * - - MAX ( DISTINCT - 83 ) AS col2, 62 + 19 + + COUNT ( * ) + - 98 * ( - 64 ) * - ( ( 3 ) ) AS col2 query I rowsort label-486 @@ -4839,7 +4839,7 @@ SELECT COALESCE ( - + 30, + + 31 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) / Int64\(14\) \* \(\- count\(\*\)\) / \(\- sum\(Int64\(\-6\)\)\) \* Int64\(46\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) / Int64\(14\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- sum\(Int64\(\-6\)\)\) \* Int64\(46\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 26 / 14 * - COUNT ( * ) / - SUM ( - 6 ) * 46 AS col0, 59 AS col0 # Datafusion - Types were automatically converted from: @@ -5163,7 +5163,7 @@ SELECT ALL - SUM ( ALL - 35 ) * - - 51 * 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(37\), \(\- Int64\(98\)\) \+ Int64\(\-86\)\)\) AS col1" at position 0 and "count\(\*\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(37\), \(\- Int64\(98\)\) \+ Int64\(\-86\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( + 37, - + 98 + - 86 ) AS col1, + COUNT ( * ) * 70 AS col1 query I rowsort label-982 @@ -6215,7 +6215,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\(\*\) AS col0" at position 0 and "CAST\(Int64\(13\) AS Int32\) \* Int64\(41\) \* Int64\(14\) \+ 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 @@ -6780,7 +6780,7 @@ SELECT ALL COUNT ( * ) * 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1136 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-82\)\) \+ Int64\(13\) \* Int64\(81\) \+ Int64\(2\) \+ \(\- Int64\(\-87\)\) / Int64\(\-54\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-82\)\) \+ Int64\(13\) \* Int64\(81\) \+ Int64\(2\) \+ \(\- Int64\(\-87\)\) / Int64\(\-54\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 82 + 13 * + 81 + + 2 + - - 87 / + - 54 AS col0, - COUNT ( * ) * - 20 AS col0 query I rowsort label-1292 @@ -6925,7 +6925,7 @@ SELECT - - 94 + + 23 / - 40, + COALESCE ( - 7, 84 - - + 29 ) * - 87 * 26 * - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2604 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* count\(\*\) \+ \(\- \(\- count\(\*\)\)\) \- Int64\(\-28\) \* Int64\(90\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-28\) \* Int64\(90\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 83 * + COUNT ( * ) + - - COUNT ( * ) - - 28 * 90 AS col1, 84 AS col1 query I rowsort @@ -7562,7 +7562,7 @@ SELECT - 86 * - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* max\(Int64\(33\)\) / max\(Int64\(45\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* max\(Int64\(33\)\) / max\(Int64\(45\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 * MAX ( ALL 33 ) / MAX ( + + 45 ) * + - COUNT ( * ) AS col0, 7 + ( 98 ) AS col0 query I rowsort label-1440 @@ -7842,7 +7842,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\(\*\) AS col0" at position 1 have the 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 @@ -7988,7 +7988,7 @@ SELECT ALL + 41 - - + 40 AS col0, 7 * - + 57 * - 26 AS col1 # 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\(\*\)\) 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 ( * ) ) AS col1, 48 AS col1 query II rowsort label-1521 @@ -8232,7 +8232,7 @@ SELECT 84 - - - 6 + 12 * 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 20 -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\(96\)\) \- \(\- Int64\(25\)\) \- \(\- Int64\(\-6\)\) \+ count\(\*\) / Int64\(14\) \+ 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\(22\) AS col0" at position 0 and "count\(Int64\(96\)\) \- \(\- Int64\(25\)\) \- \(\- Int64\(\-6\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(14\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 22 col0, COUNT ( ALL 96 ) - - + 25 - - - 6 + COUNT ( * ) / + 14 + - 0 AS col0 # Datafusion - Types were automatically converted from: @@ -9519,7 +9519,7 @@ SELECT DISTINCT + 34 + + 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -8253504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-4\) \* Int64\(8\) \* \(\- count\(\*\)\) \* \(\- Int64\(63\)\) \* CASE Int64\(67\) WHEN \(\- \(\- count\(\*\)\)\) THEN NULL WHEN CASE \(\- min\(Int64\(\-7\)\)\) WHEN \(\- \(\- CASE \(\- Int64\(85\)\) WHEN \(\- Int64\(68\)\) THEN Int64\(15\) END\)\) THEN max\(Int64\(\-56\)\) / \(\- Int64\(94\)\) WHEN Int64\(8\) THEN NULL ELSE Int64\(74\) \* \(\- count\(\*\)\) \+ Int64\(\-54\) \+ \(\- Int64\(\-49\)\) \+ Int64\(50\) \- count\(\*\) \+ \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(86\) \* CASE Int64\(\-11\) WHEN Int64\(49\) THEN Int64\(\-95\) \+ Int64\(64\) \* Int64\(67\) END \+ Int64\(\-21\) END THEN NULL ELSE max\(Int64\(46\)\) \* Int64\(89\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-4\) \* Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(63\)\) \* CASE Int64\(67\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN CASE \(\- min\(Int64\(\-7\)\)\) WHEN \(\- \(\- CASE \(\- Int64\(85\)\) WHEN \(\- Int64\(68\)\) THEN Int64\(15\) END\)\) THEN max\(Int64\(\-56\)\) / \(\- Int64\(94\)\) WHEN Int64\(8\) THEN NULL ELSE Int64\(74\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-54\) \+ \(\- Int64\(\-49\)\) \+ Int64\(50\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(86\) \* CASE Int64\(\-11\) WHEN Int64\(49\) THEN Int64\(\-95\) \+ Int64\(64\) \* Int64\(67\) END \+ Int64\(\-21\) END THEN NULL ELSE max\(Int64\(46\)\) \* Int64\(89\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 20 AS col1, - 4 * + 8 * - + COUNT ( * ) * - + 63 * + + CASE 67 WHEN - - COUNT ( * ) THEN NULL WHEN CASE - MIN ( ALL - 7 ) WHEN - ( - + CASE - + 85 WHEN - + 68 THEN + 15 END ) THEN + MAX ( - 56 ) / - + 94 WHEN + 8 THEN NULL ELSE + 74 * - COUNT ( * ) + + - 54 + - - 49 + 50 - COUNT ( * ) + - COUNT ( - CAST ( NULL AS INTEGER ) ) * + 86 * CASE - 11 WHEN + 49 THEN - 95 + 64 * + 67 END + + - 21 END THEN NULL ELSE MAX ( + + 46 ) * 89 END col1 query I rowsort label-1814 @@ -9815,7 +9815,7 @@ SELECT + NULLIF ( - 80, + + COALESCE ( COUNT ( * ), 68 ) * - 0 ) + 45 + 65 AS co # 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\(\*\)\) 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 label-1870 @@ -9956,7 +9956,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\(\*\) AS col1" at position 1 have the 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 @@ -10070,7 +10070,7 @@ SELECT ALL + 22 - - 87 # Datafusion - Expected - 74 # Datafusion - Expected - NULL # Datafusion - Expected - -268 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "sum\(\(\- Int64\(\-57\)\)\) \+ Int64\(89\) \* count\(\*\) \+ \(\- CASE Int64\(50\) WHEN Int64\(\-8\) \* Int64\(\-78\) \+ Int64\(85\) \* \(\- CASE Int64\(99\) WHEN Int64\(\-90\) THEN Int64\(5\) END\) THEN CAST\(NULL AS Int32\) ELSE NULL END\) \- Int64\(61\) \* Int64\(\-79\) \* Int64\(30\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "sum\(\(\- Int64\(\-57\)\)\) \+ Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(50\) WHEN Int64\(\-8\) \* Int64\(\-78\) \+ Int64\(85\) \* \(\- CASE Int64\(99\) WHEN Int64\(\-90\) THEN Int64\(5\) END\) THEN CAST\(NULL AS Int32\) ELSE NULL END\) \- Int64\(61\) \* Int64\(\-79\) \* Int64\(30\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 74 AS col1, SUM ( ALL - - 57 ) + + + 89 * COUNT ( * ) + - CASE + 50 WHEN - 8 * - 78 + 85 * - CASE + 99 WHEN - 90 THEN 5 END THEN + CAST ( NULL AS INTEGER ) ELSE NULL END - + + 61 * - 79 * 30 * 51 AS col1, - + 4 * NULLIF ( 77, - 13 ) + + 40 query I rowsort @@ -10379,7 +10379,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\(\*\) 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 @@ -10406,7 +10406,7 @@ SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * - + ( - COUNT ( * ) ) AS col1, - # Datafusion - Datafusion expected results: # Datafusion - Expected - 4335 # Datafusion - Expected - 1179 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-39\) \+ \(\- Int64\(\-81\)\) \* Int64\(54\) AS col0" at position 0 and "Int64\(52\) \* Int64\(22\) \+ 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\(\*\) \* Int64\(\-39\) \+ \(\- Int64\(\-81\)\) \* Int64\(54\) AS col0" at position 0 and "Int64\(52\) \* Int64\(22\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - 39 + - - 81 * + 54 AS col0, 52 * + 22 + + 35 AS col0 query II rowsort label-1981 @@ -12739,7 +12739,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\(\*\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -12903,7 +12903,7 @@ SELECT - 99 * - 82 AS col2, COUNT ( DISTINCT 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- \(\- 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\(92\) \* \(\- \(\- 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 92 * - - COUNT ( * ) col2, + ( + 30 ) AS col2 query I rowsort @@ -13514,7 +13514,7 @@ SELECT - 60 * + 34 col1 # 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\(\*\)\) \+ count\(\*\) \+ \(\- nullif\(Int64\(54\), Int64\(21\)\)\) / Int64\(98\) AS col0" at position 0 and "nullif\(Int64\(32\), 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\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(54\), Int64\(21\)\)\) / Int64\(98\) AS col0" at position 0 and "nullif\(Int64\(32\), Int64\(58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + - NULLIF ( + 54, 21 ) / + 98 AS col0, NULLIF ( 32, 58 ) AS col0 query I rowsort @@ -14050,7 +14050,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\(\*\) \* \(\- count\(\*\)\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -14477,7 +14477,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\(\*\) AS col2" at position 1 have the 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 @@ -14898,7 +14898,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\(\*\) 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 @@ -15097,7 +15097,7 @@ SELECT + 35 + - 80 + + - CASE + 74 WHEN + - 99 * + 64 + - 38 THEN NULL ELSE + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 4900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) \* \(\- count\(\*\)\) \+ \(\- Int64\(20\)\) \+ Int64\(22\) AS col2" at position 0 and "Int64\(50\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(20\)\) \+ Int64\(22\) AS col2" at position 0 and "Int64\(50\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 69 ) * - COUNT ( * ) + - + 20 + 22 AS col2, 50 * + + 98 AS col2 query I rowsort label-2884 @@ -15582,7 +15582,7 @@ SELECT DISTINCT ( - - 88 ) * - - 82 + + 71 * - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-3\) 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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-3\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + - 3 AS col0, 7 col0 query I rowsort label-2977 @@ -15919,7 +15919,7 @@ SELECT ALL + + COUNT ( * ) / - 84 + - ( - + 20 ) - - - 24 + - - MIN ( - CAST ( 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) / Int64\(91\) \* count\(\*\) \+ Int64\(\-50\) AS col1" at position 0 and "sum\(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\(78\) / Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-50\) AS col1" at position 0 and "sum\(Int64\(24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 78 / 91 * COUNT ( * ) + + - 50 AS col1, SUM ( 24 ) AS col1 query II rowsort label-3040 @@ -16318,7 +16318,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -79250 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(80\) \* Int64\(22\) \+ count\(\*\) \+ \(\- min\(Int64\(51\)\)\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(80\) \* Int64\(22\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(Int64\(51\)\)\) 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 + - 45 * 80 * + + 22 + COUNT ( * ) + + - MIN ( 51 ) AS col1, - 21 AS col1 query II rowsort label-3116 @@ -16706,7 +16706,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 232 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ count\(\*\) \* Int64\(83\) \+ Int64\(73\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(83\) \+ Int64\(73\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 + COUNT ( * ) * + 83 + + + 73 AS col2, 80 AS col2 query I rowsort label-3188 @@ -17668,7 +17668,7 @@ SELECT DISTINCT - 59 * ( 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 494 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- Int64\(\-19\)\) AS col0" at position 0 and "count\(\*\) \+ 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\(26\) \* \(\- Int64\(\-19\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 26 * - - 19 AS col0, COUNT ( * ) + + - 95 col0 query I rowsort label-3371 @@ -18677,7 +18677,7 @@ SELECT ALL - 86 + + CAST ( 77 AS INTEGER ) # 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\(\*\)\)\)\)\) 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 ALL - + ( - - ( - COUNT ( * ) ) ) AS col0, 30 AS col0 query I rowsort @@ -18859,7 +18859,7 @@ SELECT ALL COUNT ( * ) * + 48 + ( - + 35 ) # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(4\) \* \(\- Int64\(8\)\) \+ Int64\(\-16\) \+ Int64\(\-42\) \+ sum\(\(\- Int64\(\-67\)\)\) \* CASE \(\- sum\(Int64\(41\)\)\) WHEN Int64\(\-41\) \* \(\- Int64\(\-71\)\) THEN NULL WHEN count\(\*\) THEN count\(\*\) ELSE NULL END \+ \(\- Int64\(\-52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(4\) \* \(\- Int64\(8\)\) \+ Int64\(\-16\) \+ Int64\(\-42\) \+ sum\(\(\- Int64\(\-67\)\)\) \* CASE \(\- sum\(Int64\(41\)\)\) WHEN Int64\(\-41\) \* \(\- Int64\(\-71\)\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END \+ \(\- Int64\(\-52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 47 col2, 4 * - ( + 8 ) + - 16 + - 42 + SUM ( ALL - - 67 ) * ( + CASE - + SUM ( + + 41 ) WHEN + - 41 * - - 71 THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END ) + - - 52 col2, - - 26 - 94 + - CASE - + 20 WHEN - + CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) * - 43 + + - CAST ( NULL AS INTEGER ) * - + 3 + + + 13 WHEN - 29 / - 38 + + + CASE 90 WHEN - 41 THEN - 77 * + + COUNT ( * ) END THEN NULL END query I rowsort label-3598 @@ -20696,7 +20696,7 @@ SELECT + ( 22 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 56 -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\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 28 AS col2, COUNT ( * ) + - - 55 AS col2 query I rowsort label-3951 @@ -21556,7 +21556,7 @@ SELECT - 60 + + 13 / - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1304 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* Int64\(17\) \+ \(\- Int64\(\-5\)\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-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 - 77 * + ( + + 17 ) + - - 5 AS col2, + COUNT ( * ) * - COUNT ( * ) AS col2 query I rowsort @@ -21597,7 +21597,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\(\*\) AS col0" at position 0 and "count\(\*\) \* \(\- Int64\(95\)\) \* count\(\(\- Int64\(\-41\)\)\) \* count\(\*\) AS col0" at position 1 have 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 @@ -24809,7 +24809,7 @@ SELECT 64 + + MAX ( DISTINCT + - 64 ) + - 77 * + + ( + - 67 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(\-42\), Int64\(\-37\), Int64\(29\) \+ Int64\(\-78\)\)\)\) AS col1" at position 0 and "count\(\*\) \+ \(\- Int64\(7\)\) / Int64\(72\) \* Int64\(\-74\) \+ 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 "\(\- \(\- coalesce\(Int64\(\-42\), Int64\(\-37\), Int64\(29\) \+ Int64\(\-78\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(7\)\) / Int64\(72\) \* Int64\(\-74\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( ( + COALESCE ( - 42, - 37, + 29 + - 78 ) ) ) AS col1, COUNT ( * ) + - ( 7 ) / + 72 * + - 74 + 56 AS col1 query I rowsort @@ -24944,7 +24944,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\(\*\) 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 @@ -26585,7 +26585,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\(\*\) AS col2" at position 1 have the same 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 @@ -29113,7 +29113,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\(\*\) AS col0" at position 1 have the 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 @@ -29919,7 +29919,7 @@ SELECT ALL COALESCE ( + 58, + 4, ( - 41 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -259863 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-77\) AS col1" at position 0 and "count\(\(\- Int64\(14\)\)\) \+ \(\- Int64\(96\)\) \* Int64\(41\) \* Int64\(66\) \+ Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-77\) AS col1" at position 0 and "count\(\(\- Int64\(14\)\)\) \+ \(\- Int64\(96\)\) \* Int64\(41\) \* Int64\(66\) \+ Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + - 77 AS col1, COUNT ( - ( 14 ) ) + - + 96 * 41 * 66 + - 88 AS col1 query I rowsort label-5714 @@ -30141,7 +30141,7 @@ SELECT DISTINCT COALESCE ( - 20, - 76 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 5643 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(86\) \* coalesce\(count\(\*\), Int64\(\-11\) \+ Int64\(84\)\) AS col0" at position 0 and "Int64\(\-99\) \* 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\(\-10\) \+ Int64\(86\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-11\) \+ Int64\(84\)\) AS col0" at position 0 and "Int64\(\-99\) \* Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 10 + + 86 * + COALESCE ( + COUNT ( * ), - 11 + + 84 ) col0, - 99 * - 57 AS col0 query I rowsort label-5757 @@ -32869,7 +32869,7 @@ SELECT CAST ( NULLIF ( + - 5, CASE + + COUNT ( * ) WHEN + ( + + COUNT ( * ) ) + # 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\(65\) WHEN Int64\(\-71\) THEN count\(\*\) WHEN Int64\(9\) \* Int64\(30\) \* \(\- avg\(Int64\(57\)\)\) \+ Int64\(36\) THEN avg\(Int64\(64\)\) \* Int64\(\-15\) \+ \(\- Int64\(25\)\) \- Int64\(\-51\) / \(\- count\(\*\)\) \- Int64\(64\) ELSE NULL END AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(65\) WHEN Int64\(\-71\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(9\) \* Int64\(30\) \* \(\- avg\(Int64\(57\)\)\) \+ Int64\(36\) THEN avg\(Int64\(64\)\) \* Int64\(\-15\) \+ \(\- Int64\(25\)\) \- Int64\(\-51\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(64\) ELSE NULL END AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE 65 WHEN - 71 THEN COUNT ( * ) WHEN 9 * + + 30 * - + AVG ( ALL + + 57 ) + + 36 THEN AVG ( 64 ) * - 15 + - + 25 - - 51 / ( - + COUNT ( * ) ) - + 64 ELSE NULL END AS col2, 88 col2 query I rowsort label-6279 @@ -32977,7 +32977,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(6\) \- CAST\(NULL AS Int32\) \* Int64\(\-55\) \* Int64\(39\) AS col1" at position 0 and "Int64\(28\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) \- CAST\(NULL AS Int32\) \* Int64\(\-55\) \* Int64\(39\) AS col1" at position 0 and "Int64\(28\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + 6 - + CAST ( NULL AS INTEGER ) * - 55 * 39 AS col1, 28 * + 80 AS col1 query I rowsort label-6300 @@ -33018,7 +33018,7 @@ SELECT ALL + 59 / + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE \(\- Int64\(\-1\)\) WHEN Int64\(49\) THEN Int64\(19\) END AS Int32\) \+ Int64\(29\) AS col1" at position 0 and "coalesce\(Int64\(31\), \(\- CASE Int64\(42\) WHEN Int64\(26\) THEN Int64\(0\) WHEN Int64\(\-46\) \* \(\- CAST\(Int64\(\-61\) AS Int32\)\) THEN \(\- count\(\*\)\) \* Int64\(\-55\) \+ Int64\(\-86\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE \(\- Int64\(\-1\)\) WHEN Int64\(49\) THEN Int64\(19\) END AS Int32\) \+ Int64\(29\) AS col1" at position 0 and "coalesce\(Int64\(31\), \(\- CASE Int64\(42\) WHEN Int64\(26\) THEN Int64\(0\) WHEN Int64\(\-46\) \* \(\- CAST\(Int64\(\-61\) AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-55\) \+ Int64\(\-86\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( CASE - - 1 WHEN + 49 THEN + 19 END AS INTEGER ) + 29 col1, + COALESCE ( 31, - CASE 42 WHEN 26 THEN 0 WHEN + - 46 * - CAST ( - 61 AS INTEGER ) THEN + ( - COUNT ( * ) ) * - 55 + - 86 ELSE NULL END ) AS col1 query I rowsort @@ -35411,7 +35411,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\(50\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have 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 @@ -35622,7 +35622,7 @@ SELECT 55 + + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "nullif\(Int64\(15\), \(\- count\(\*\)\)\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "nullif\(Int64\(15\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 21 AS col1, + NULLIF ( + + 15, - COUNT ( * ) ) * + - 12 AS col1 # Datafusion - Datafusion expected results: @@ -36422,7 +36422,7 @@ SELECT - 99 * + 41 + - + 24 # 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 "coalesce\(Int64\(41\), \(\- count\(\*\)\)\) AS col2" at position 0 and "max\(DISTINCT 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 "coalesce\(Int64\(41\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( 41, - COUNT ( * ) ) AS col2, MAX ( DISTINCT + 75 ) AS col2 query II rowsort @@ -36799,7 +36799,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\(\*\) WHEN Int64\(62\) \* \(\- count\(\*\)\) THEN \(\- \(\- Int64\(14\)\)\) \+ Int64\(32\) \+ Int64\(\-88\) WHEN Int64\(\-44\) \* Int64\(56\) \* Int64\(80\) / Int64\(36\) THEN NULL END\) \+ Int64\(\-80\) \+ CAST\(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: @@ -36875,7 +36875,7 @@ SELECT - 90 col0, 77 + - 20 AS col2 # Datafusion - Expected - 67 # Datafusion - Expected - 0 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\*\), CAST\(NULL AS Int32\) \* Int64\(\-72\) \+ Int64\(1\)\) \+ Int64\(66\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int32\) \* Int64\(\-72\) \+ Int64\(1\)\) \+ Int64\(66\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 72 + + 1 ) + 66 AS col0, + 2 / MAX ( 24 ) AS col2, - 18 col0 query I rowsort label-7045 @@ -37241,7 +37241,7 @@ SELECT DISTINCT 73 * - 49 + - 11 + - - COUNT ( * ) + 99 * + ( - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-1\) \+ coalesce\(Int64\(41\), Int64\(23\) \* Int64\(89\) \- Int64\(42\) \* count\(\*\), Int64\(87\)\) 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 "Int64\(79\) \* Int64\(\-1\) \+ coalesce\(Int64\(41\), Int64\(23\) \* Int64\(89\) \- Int64\(42\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(87\)\) AS col1" at position 0 and "\(\- Int64\(76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 * - 1 + + + COALESCE ( + ( 41 ), 23 * 89 - 42 * COUNT ( * ), + 87 ) col1, ( - ( + 76 ) ) AS col1 query I rowsort @@ -39621,7 +39621,7 @@ SELECT ALL - 22 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 612108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CASE \(\- count\(\*\)\) WHEN Int64\(\-87\) \* min\(Int64\(\-47\)\) THEN NULL ELSE \(\- \(\- Int64\(60\)\)\) \+ \(\- Int64\(\-73\)\) \* CAST\(Int64\(\-99\) AS Int32\) / \(\- count\(\*\)\) END\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-87\) \* min\(Int64\(\-47\)\) THEN NULL ELSE \(\- \(\- Int64\(60\)\)\) \+ \(\- Int64\(\-73\)\) \* CAST\(Int64\(\-99\) AS Int32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, - CASE + - COUNT ( * ) WHEN ( - 87 ) * MIN ( ALL - 47 ) THEN NULL ELSE - ( - + 60 ) + - ( + - 73 ) * + CAST ( + - 99 AS INTEGER ) / - COUNT ( * ) END * - 84 AS col0 query I rowsort @@ -41967,7 +41967,7 @@ SELECT - 52 + 66 - + 54 / - 42 + + - ( 73 ) + 77 # Datafusion - Expected - -1131 # Datafusion - Expected - NULL # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ CAST\(NULL AS Int32\) \+ Int64\(74\) \* CAST\(NULL AS Int32\) AS col0" at position 1 and "\(\- count\(\*\)\) / Int64\(42\) \+ Int64\(\-44\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ CAST\(NULL AS Int32\) \+ Int64\(74\) \* CAST\(NULL AS Int32\) AS col0" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(42\) \+ Int64\(\-44\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 85 * - + 13 + - 26, 2 + CAST ( NULL AS INTEGER ) + ( 74 ) * CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) / + 42 + - 44 AS col0 query I rowsort @@ -42136,7 +42136,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\(\*\) 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\(\-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: @@ -43610,7 +43610,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\(\*\) 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: @@ -44123,7 +44123,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\(\*\) AS col0" at position 0 and "nullif\(Int64\(85\), 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 @@ -44955,7 +44955,7 @@ SELECT ALL 86 + 86 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\(\*\)\)\) 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 query II rowsort label-8586 @@ -45478,7 +45478,7 @@ SELECT ALL + 3 + + COUNT ( * ) AS col2, - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ Int64\(\-75\) \+ Int64\(18\) \* CASE \(\- Int64\(\-38\)\) WHEN Int64\(62\) \* Int64\(72\) THEN NULL ELSE \(\- Int64\(80\)\) END \* Int64\(64\) AS col2" at position 0 and "\(\- \(\- Int64\(\-27\)\)\) \+ \(\- \(\- count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ Int64\(\-75\) \+ Int64\(18\) \* CASE \(\- Int64\(\-38\)\) WHEN Int64\(62\) \* Int64\(72\) THEN NULL ELSE \(\- Int64\(80\)\) END \* Int64\(64\) AS col2" at position 0 and "\(\- \(\- Int64\(\-27\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) + - 75 + + + 18 * + CASE - - 38 WHEN 62 * ( + 72 ) THEN NULL ELSE - + 80 END * 64 AS col2, - ( - - 27 ) + - - ( + COUNT ( * ) ) AS col2 query I rowsort @@ -47192,7 +47192,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 2849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) / Int64\(\-59\) \+ Int64\(70\) AS col0" at position 0 and "CASE Int64\(\-61\) WHEN Int64\(\-79\) THEN NULL WHEN CASE Int64\(18\) WHEN Int64\(37\) \+ Int64\(\-6\) / Int64\(89\) THEN Int64\(99\) \+ count\(\*\) END \+ count\(\*\) THEN \(\- Int64\(82\)\) \* CAST\(Int64\(\-43\) AS Int32\) ELSE Int64\(77\) END \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) / Int64\(\-59\) \+ Int64\(70\) AS col0" at position 0 and "CASE Int64\(\-61\) WHEN Int64\(\-79\) THEN NULL WHEN CASE Int64\(18\) WHEN Int64\(37\) \+ Int64\(\-6\) / Int64\(89\) THEN Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) END \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(82\)\) \* CAST\(Int64\(\-43\) AS Int32\) ELSE Int64\(77\) END \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 13 / - 59 + 70 col0, CASE - 61 WHEN - 79 THEN NULL WHEN CASE 18 WHEN 37 + - 6 / 89 THEN 99 + + COUNT ( * ) END + COUNT ( * ) THEN - ( + 82 ) * + CAST ( - 43 AS INTEGER ) ELSE 77 END * + 37 AS col0 # Datafusion - Types were automatically converted from: @@ -47343,7 +47343,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\(\*\) AS col1" at position 1 have the 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 @@ -48384,7 +48384,7 @@ SELECT 14 / + ( - 44 ) * + CASE 2 WHEN + COALESCE ( COUNT ( * ), 19 * + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(44\) AS col0" at position 0 and "Int64\(3\) \+ count\(\*\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(44\) AS col0" at position 0 and "Int64\(3\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) * 44 AS col0, 3 + COUNT ( * ) + + 96 AS col0 query I rowsort label-9241 @@ -48584,7 +48584,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\(\*\) 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 @@ -48791,7 +48791,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\(\*\) AS col0" at position 1 have the 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 @@ -49303,7 +49303,7 @@ SELECT + + 35 + 15 / + ( 26 ) 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\(\*\)\) AS col1" at position 0 and "Int64\(96\) \- \(\- 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\(96\) \- \(\- Int64\(\-58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col1, + 96 - - - 58 AS col1 query I rowsort label-9416 @@ -50063,7 +50063,7 @@ SELECT ( + 57 ) * + - COUNT ( ALL ( 94 ) ) + - 98 + - - CAST ( - ( - - 9 ) AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ coalesce\(\(\- count\(\*\)\), Int64\(59\)\) 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\(76\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(59\)\) 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 76 + COALESCE ( - COUNT ( * ), ( 59 ) ) AS col0, 31 col0 query I rowsort label-9564 @@ -51135,7 +51135,7 @@ SELECT + 14 * + ( - 95 ) AS col0 # Datafusion - Expected - -1 # Datafusion - Expected - 37 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 DISTINCT + - COUNT ( * ) AS col0, - ( - MAX ( ALL + 37 ) ) AS col0, - 29 query I rowsort label-9769 @@ -52062,7 +52062,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\(\*\) AS col1" at position 1 have the 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 03fe055..45f2401 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\(\*\) AS col2" at position 1 have the 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 @@ -845,7 +845,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 247 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- coalesce\(Int64\(\-89\), Int64\(\-61\) \- \(\- CASE \(\- count\(\*\)\) WHEN \(\- Int64\(30\)\) THEN NULL ELSE Int64\(\-86\) END\)\)\) \* Int64\(\-1\) \* \(\- count\(\*\)\) \+ \(\- Int64\(\-81\)\) 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\(77\) \+ \(\- coalesce\(Int64\(\-89\), Int64\(\-61\) \- \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(30\)\) THEN NULL ELSE Int64\(\-86\) END\)\)\) \* Int64\(\-1\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-81\)\) 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 77 + - + COALESCE ( + - 89, + - 61 - - + CASE + - COUNT ( * ) WHEN - ( + 30 ) THEN NULL ELSE + - 86 END ) * - 1 * - + COUNT ( * ) + - - 81 AS col0, + 89 AS col0 query I rowsort label-154 @@ -1528,7 +1528,7 @@ SELECT - 17 * - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(12\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 4 AS col1, + 12 + - COUNT ( * ) AS col1 query I rowsort @@ -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\(\*\) AS col2" at position 1 have the 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\(\*\) AS col1" at position 0 and "Int64\(53\) / CASE Int64\(\-61\) WHEN Int64\(73\) \+ count\(\*\) THEN count\(\*\) \* Int64\(\-10\) \+ \(\- Int64\(\-16\)\) \+ Int64\(38\) / count\(DISTINCT Int64\(78\)\) \+ Int64\(15\) \+ Int64\(1\) WHEN \(\- Int64\(91\)\) THEN 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 @@ -2435,7 +2435,7 @@ SELECT ALL + NULLIF ( - 39, 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* count\(\*\) / Int64\(98\) \+ \(\- count\(\*\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(98\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS 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 60 * COUNT ( * ) / 98 + + - ( ( COUNT ( * ) ) ) + + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query II rowsort label-456 @@ -3878,7 +3878,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\(\*\) 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 @@ -4484,7 +4484,7 @@ SELECT + NULLIF ( 37, 22 * 20 * - ( 88 ) ) - + - 61 # Datafusion - Expected - 72 # Datafusion - Expected - -1433 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* Int64\(53\) \+ Int64\(20\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(\-2\)\) \- Int64\(\-81\) \- Int64\(21\) \* 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\(\*\)\)\) \* Int64\(53\) \+ Int64\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(\-2\)\) \- Int64\(\-81\) \- Int64\(21\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + - ( - COUNT ( * ) ) ) * 53 + 20 + - COUNT ( * ) AS col2, + MAX ( DISTINCT - 2 ) - + - 81 - 21 * 72 AS col2, 57 AS col1 query I rowsort label-841 @@ -5101,7 +5101,7 @@ SELECT - + 43, - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 165116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(47\) / Int64\(32\) \* \(\- Int64\(\-77\)\) \* coalesce\(Int64\(72\), Int64\(4\)\) \+ Int64\(29\) \+ Int64\(11\) \* \(\- \(\- nullif\(nullif\(Int64\(28\), \(\- Int64\(76\)\)\), Int64\(\-66\) \+ Int64\(77\)\)\)\) \* Int64\(37\) \* \(\- sum\(DISTINCT Int64\(\-14\)\)\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(47\) / Int64\(32\) \* \(\- Int64\(\-77\)\) \* coalesce\(Int64\(72\), Int64\(4\)\) \+ Int64\(29\) \+ Int64\(11\) \* \(\- \(\- nullif\(nullif\(Int64\(28\), \(\- Int64\(76\)\)\), Int64\(\-66\) \+ Int64\(77\)\)\)\) \* Int64\(37\) \* \(\- sum\(DISTINCT Int64\(\-14\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 AS col0, 47 / 32 * ( - - 77 ) * COALESCE ( + 72, + 4 ) + 29 + 11 * - ( + - NULLIF ( + + NULLIF ( 28, - + 76 ), + - 66 + 77 ) ) * + 37 * - SUM ( DISTINCT + - 14 ) + - COUNT ( * ) AS col0 query I rowsort @@ -6144,7 +6144,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "CASE Int64\(84\) WHEN Int64\(34\) THEN Int64\(91\) WHEN count\(\*\) \* Int64\(2\) \* Int64\(\-40\) THEN Int64\(41\) \+ Int64\(27\) \* nullif\(\(\- count\(\*\)\), Int64\(27\) \+ Int64\(11\)\) \* Int64\(74\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "CASE Int64\(84\) WHEN Int64\(34\) THEN Int64\(91\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) \* Int64\(\-40\) THEN Int64\(41\) \+ Int64\(27\) \* nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(27\) \+ Int64\(11\)\) \* Int64\(74\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 col2, CASE + 84 WHEN 34 THEN 91 WHEN COUNT ( * ) * ( 2 ) * + - 40 THEN 41 + + 27 * NULLIF ( - COUNT ( * ), + 27 + 11 ) * + + 74 END AS col2 query I rowsort label-1154 @@ -6345,7 +6345,7 @@ SELECT ALL + 80 * + 4 * 38 * + + 93 * - 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -567 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(\-76\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(41\) AS col2" at position 0 and "\(\- count\(\*\)\) / Int64\(\-6\) \* 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\(8\) \* Int64\(\-76\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(41\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-6\) \* Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 * + - 76 * - - COUNT ( * ) + + 41 AS col2, - COUNT ( * ) / - 6 * + + 90 AS col2 query I rowsort label-1192 @@ -8109,7 +8109,7 @@ SELECT ALL - 36 + COUNT ( * ) 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 col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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-1535 @@ -9231,7 +9231,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\(\*\) AS col0" at position 0 and "Int64\(57\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 @@ -12164,7 +12164,7 @@ SELECT - 14 * 41 / 74 + 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -416075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* CASE Int64\(\-14\) WHEN Int64\(22\) THEN \(\- Int64\(\-14\)\) WHEN \(\- \(\- count\(\*\)\)\) THEN NULL WHEN Int64\(1\) \* Int64\(61\) THEN NULL END AS col2" at position 0 and "Int64\(55\) \* Int64\(89\) \* \(\- CAST\(Int64\(85\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(\-14\) WHEN Int64\(22\) THEN \(\- Int64\(\-14\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN Int64\(1\) \* Int64\(61\) THEN NULL END AS col2" at position 0 and "Int64\(55\) \* Int64\(89\) \* \(\- CAST\(Int64\(85\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * CASE - 14 WHEN + 22 THEN - - 14 WHEN - - COUNT ( * ) THEN NULL WHEN + 1 * 61 THEN NULL END AS col2, 55 * 89 * - CAST ( + + 85 AS INTEGER ) AS col2 query I rowsort @@ -12678,7 +12678,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\(\*\) AS col0" at position 1 have the 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 @@ -13142,7 +13142,7 @@ SELECT DISTINCT + - 56 + - 24 - 35 + 42 / + - 48 + - CAST ( + 99 AS INTEGER ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\*\)\)\) \* Int64\(93\) AS col0" at position 0 and "min\(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 "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(93\) AS col0" at position 0 and "min\(DISTINCT \(\- Int64\(\-31\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) * 93 AS col0, + MIN ( DISTINCT - - 31 ) col0 query I rowsort label-2489 @@ -14572,7 +14572,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\(\*\) AS col0" at position 1 have the 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 @@ -15802,7 +15802,7 @@ SELECT - + MAX ( ALL + 84 ) + + + ( NULLIF ( 24, 97 ) ) - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 7074 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \- Int64\(98\) AS col2" at position 0 and "Int64\(93\) \* Int64\(77\) \- count\(\*\) \* 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\(68\) \- Int64\(98\) AS col2" at position 0 and "Int64\(93\) \* Int64\(77\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 68 - + 98 AS col2, ( + + 93 ) * 77 - COUNT ( * ) * 87 AS col2 query I rowsort @@ -17175,7 +17175,7 @@ SELECT - MIN ( ALL - 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "CASE max\(Int64\(\-48\)\) WHEN Int64\(20\) \* Int64\(\-45\) THEN count\(\*\) WHEN Int64\(\-8\) THEN Int64\(60\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "CASE max\(Int64\(\-48\)\) WHEN Int64\(20\) \* Int64\(\-45\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-8\) THEN Int64\(60\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 * + ( - CAST ( NULL AS INTEGER ) ) AS col0, + CASE MAX ( - 48 ) WHEN 20 * - 45 THEN COUNT ( * ) WHEN - 8 THEN 60 ELSE NULL END AS col0 query I rowsort label-3262 @@ -17621,7 +17621,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\(\*\) AS col1" at position 1 have the 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 @@ -19477,7 +19477,7 @@ SELECT 34 + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 74612 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \+ coalesce\(Int64\(17\), \(\- Int64\(\-85\)\), \(\- Int64\(83\)\)\) \+ \(\- Int64\(12\)\) \* \(\- Int64\(\-90\)\) \* 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\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \+ coalesce\(Int64\(17\), \(\- Int64\(\-85\)\), \(\- Int64\(83\)\)\) \+ \(\- Int64\(12\)\) \* \(\- Int64\(\-90\)\) \* Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 + + - COUNT ( * ) AS col0, 75 + + COALESCE ( + 17, - - 85, - + 83 ) + - + 12 * - - 90 * - 69 col0 query I rowsort @@ -19605,7 +19605,7 @@ SELECT + - 28 * - 14 + 57 + - 26 + + 66 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ \(\- 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 "Int64\(15\) \+ \(\- 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 15 + - COUNT ( * ) AS col0, + 25 AS col0 query I rowsort @@ -20888,7 +20888,7 @@ SELECT ALL - 14 * 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6878 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(77\) \+ \(\- CASE Int64\(89\) WHEN count\(\*\) \+ Int64\(17\) \- Int64\(\-89\) THEN \(\- sum\(Int64\(\-39\)\)\) \* Int64\(88\) / Int64\(76\) \+ \(\- Int64\(\-13\)\) \+ Int64\(67\) \+ Int64\(5\) \* \(\- count\(\*\)\) ELSE Int64\(\-55\) \+ Int64\(56\) END\) \* Int64\(98\) \- Int64\(\-47\) \+ \(\- 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\(90\) \* Int64\(77\) \+ \(\- CASE Int64\(89\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(17\) \- Int64\(\-89\) THEN \(\- sum\(Int64\(\-39\)\)\) \* Int64\(88\) / Int64\(76\) \+ \(\- Int64\(\-13\)\) \+ Int64\(67\) \+ Int64\(5\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(\-55\) \+ Int64\(56\) END\) \* Int64\(98\) \- Int64\(\-47\) \+ \(\- 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 + 90 * 77 + + - CASE 89 WHEN + COUNT ( * ) + ( + 17 ) - + - 89 THEN - + SUM ( - 39 ) * + ( 88 ) / 76 + - - 13 + 67 + + 5 * - COUNT ( * ) ELSE - 55 + + 56 END * + 98 - + - 47 + - COUNT ( * ) AS col2, - 32 AS col2 query II rowsort label-3969 @@ -21475,7 +21475,7 @@ SELECT + 44 * + - COUNT ( * ) / - 57 * 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "nullif\(\(\- count\(\*\)\), Int64\(81\)\) \* 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\(67\) AS col0" at position 0 and "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(81\)\) \* Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 67 col0, NULLIF ( - + COUNT ( * ), 81 ) * 66 col0 query I rowsort label-4081 @@ -21598,7 +21598,7 @@ SELECT + - 56, + 61 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(7\) \- count\(\*\) \* \(\- Int64\(\-34\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(7\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-34\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 47 AS col1, ( + 7 ) - + COUNT ( * ) * - - 34 AS col1 query II rowsort label-4104 @@ -22015,7 +22015,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "CASE Int64\(8\) WHEN Int64\(40\) THEN \(\- \(\- nullif\(\(\- count\(\*\)\), Int64\(\-36\)\)\)\) 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\(61\) AS col2" at position 0 and "CASE Int64\(8\) WHEN Int64\(40\) THEN \(\- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-36\)\)\)\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 61 AS col2, CASE + 8 WHEN + 40 THEN - - NULLIF ( - COUNT ( * ), - 36 ) ELSE NULL END AS col2 query I rowsort @@ -22407,7 +22407,7 @@ SELECT ALL - 78 - ( + - 4 ) + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7287 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) / CASE Int64\(48\) WHEN Int64\(16\) THEN NULL WHEN Int64\(30\) \+ Int64\(\-59\) THEN Int64\(\-8\) \* Int64\(25\) END \* CASE coalesce\(\(\- Int64\(\-17\)\), \(\- Int64\(\-87\)\)\) WHEN Int64\(\-29\) \* \(\- Int64\(\-39\)\) \+ \(\- avg\(DISTINCT Int64\(28\)\)\) THEN Int64\(53\) \* \(\- Int64\(7\)\) \+ Int64\(2\) \+ Int64\(\-4\) \- Int64\(88\) ELSE NULL END \+ \(\- count\(\*\)\) / \(\- nullif\(Int64\(94\), Int64\(\-56\)\)\) AS col1" at position 0 and "Int64\(\-28\) \+ \(\- max\(DISTINCT Int64\(77\)\)\) \* 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\(\-56\) / CASE Int64\(48\) WHEN Int64\(16\) THEN NULL WHEN Int64\(30\) \+ Int64\(\-59\) THEN Int64\(\-8\) \* Int64\(25\) END \* CASE coalesce\(\(\- Int64\(\-17\)\), \(\- Int64\(\-87\)\)\) WHEN Int64\(\-29\) \* \(\- Int64\(\-39\)\) \+ \(\- avg\(DISTINCT Int64\(28\)\)\) THEN Int64\(53\) \* \(\- Int64\(7\)\) \+ Int64\(2\) \+ Int64\(\-4\) \- Int64\(88\) ELSE NULL END \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- nullif\(Int64\(94\), Int64\(\-56\)\)\) AS col1" at position 0 and "Int64\(\-28\) \+ \(\- max\(DISTINCT Int64\(77\)\)\) \* Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 56 / + + CASE 48 WHEN + + 16 THEN NULL WHEN 30 + - 59 THEN - 8 * + 25 END * CASE COALESCE ( - - 17, - ( - 87 ) ) WHEN + - 29 * - - 39 + - + AVG ( DISTINCT + + 28 ) THEN 53 * - + 7 + 2 + + - 4 - + 88 ELSE NULL END + - + COUNT ( * ) / ( - NULLIF ( 94, - 56 ) ) AS col1, ( + - 28 ) + + - MAX ( DISTINCT + 77 ) * - 95 col1 query I rowsort @@ -22557,7 +22557,7 @@ SELECT DISTINCT - - ( + - 90 ) - - - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 178596 # Datafusion - Expected - -817 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-17\)\) \* \(\- count\(\*\)\) \+ Int64\(97\) \+ Int64\(51\) \* Int64\(\-70\) \* Int64\(\-50\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-73\)\), count\(\*\) \+ Int64\(0\), \(\- Int64\(\-16\)\)\) \* Int64\(11\) \* \(\- count\(Int64\(35\)\)\) \+ Int64\(86\) \- Int64\(99\) \+ 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\(\-17\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(97\) \+ Int64\(51\) \* Int64\(\-70\) \* Int64\(\-50\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-73\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(0\), \(\- Int64\(\-16\)\)\) \* Int64\(11\) \* \(\- count\(Int64\(35\)\)\) \+ Int64\(86\) \- Int64\(99\) \+ Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( - 17 ) * - COUNT ( * ) + + 97 + + 51 * - 70 * - 50 AS col0, COALESCE ( - - 73, + COUNT ( * ) + 0, - - 16 ) * ( + 11 ) * + - COUNT ( 35 ) + + + 86 - ( + 99 ) + - 1 AS col0 query I rowsort label-4286 @@ -22914,7 +22914,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\(\*\) AS col1" at position 1 have 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 @@ -24361,7 +24361,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* \(\- 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 "Int64\(\-47\) \* \(\- 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 - 47 * - COUNT ( * ) AS col2, 67 AS col2 query I rowsort label-4634 @@ -26943,7 +26943,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\(\*\) AS col2" at position 1 have the 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 @@ -27114,7 +27114,7 @@ SELECT 69 + 41 * - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-55\)\)\) AS col1" at position 0 and "count\(\*\) \+ count\(DISTINCT CAST\(Int64\(\-34\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-55\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(DISTINCT CAST\(Int64\(\-34\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( DISTINCT - 55 ) AS col1, COUNT ( * ) + COUNT ( DISTINCT + CAST ( - 34 AS INTEGER ) ) AS col1 query II rowsort @@ -27183,7 +27183,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\(\*\) 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 @@ -27559,7 +27559,7 @@ SELECT ALL CASE - CAST ( CASE - COUNT ( * ) WHEN + - 60 THEN - 46 WHEN + 89 THEN # 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 "\(\- nullif\(\(\- count\(\*\)\), Int64\(1\)\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(1\)\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( - + COUNT ( * ), 1 ) AS col2, + 48 AS col2 query I rowsort label-5246 @@ -27800,7 +27800,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\(\*\) 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 @@ -28212,7 +28212,7 @@ SELECT + 47 * + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -122400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(18\), Int64\(\-55\)\) \+ Int64\(52\) / Int64\(15\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-68\) \* Int64\(90\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(18\), Int64\(\-55\)\) \+ Int64\(52\) / Int64\(15\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-68\) \* Int64\(90\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( 18, - 55 ) + + 52 / + 15 * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, - 68 * 90 * + + 20 AS col1 query I rowsort label-5369 @@ -28290,7 +28290,7 @@ SELECT DISTINCT 91 * + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3689 # Datafusion - Expected - -762 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(82\)\)\) \* \(\- \(\- nullif\(Int64\(45\), \(\- Int64\(93\)\) \- Int64\(16\)\)\)\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(\-68\) \+ Int64\(84\) \* \(\- Int64\(9\)\) \+ 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\(DISTINCT Int64\(82\)\)\) \* \(\- \(\- nullif\(Int64\(45\), \(\- Int64\(93\)\) \- Int64\(16\)\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(\-68\) \+ Int64\(84\) \* \(\- Int64\(9\)\) \+ Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( DISTINCT + + 82 ) * + ( - - NULLIF ( + 45, - + 93 - + 16 ) ) + - - COUNT ( * ) AS col0, 16 + - 68 + 84 * - + 9 + + 46 col0 query I rowsort label-5384 @@ -29571,7 +29571,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\(\*\) 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 @@ -31092,7 +31092,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\(92\)\) \- CAST\(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 @@ -31909,7 +31909,7 @@ SELECT 20 * + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6973 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-83\) \+ count\(\*\) \+ Int64\(\-2\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-83\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-2\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 84 * + - 83 + COUNT ( * ) + - 2 AS col2, 0 + + + 38 AS col2 query I rowsort @@ -33306,7 +33306,7 @@ SELECT DISTINCT + 82 - 27 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(91\) AS col0" at position 0 and "Int64\(81\) \+ \(\- \(\- Int64\(\-11\)\)\) \+ Int64\(\-40\) \+ Int64\(66\) \- Int64\(3\) \* Int64\(35\) / 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\(91\) AS col0" at position 0 and "Int64\(81\) \+ \(\- \(\- Int64\(\-11\)\)\) \+ Int64\(\-40\) \+ Int64\(66\) \- Int64\(3\) \* Int64\(35\) / Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - 91 col0, + 81 + - - ( - 11 ) + + - 40 + + 66 - 3 * 35 / 99 AS col0 # Datafusion - Types were automatically converted from: @@ -34328,7 +34328,7 @@ SELECT + COUNT ( * ) + - + 61 + + - 22 + + - 30 - + + ( COUNT ( * ) ) + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(19\) \+ Int64\(\-44\) 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\(\*\)\) / Int64\(19\) \+ Int64\(\-44\) 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 ( * ) / 19 + - 44 AS col0, + 29 AS col0 query I rowsort @@ -35625,7 +35625,7 @@ SELECT + COALESCE ( - 66, + COUNT ( 85 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(41\)\) / Int64\(23\) \+ CASE Int64\(35\) WHEN \(\- Int64\(\-79\)\) \- Int64\(5\) THEN Int64\(79\) \* Int64\(96\) \* Int64\(79\) WHEN Int64\(63\) THEN NULL END \+ Int64\(\-12\) \* Int64\(42\) \* Int64\(\-57\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-24\) \* \(\- count\(\*\)\) \* Int64\(13\) \* 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 "sum\(Int64\(41\)\) / Int64\(23\) \+ CASE Int64\(35\) WHEN \(\- Int64\(\-79\)\) \- Int64\(5\) THEN Int64\(79\) \* Int64\(96\) \* Int64\(79\) WHEN Int64\(63\) THEN NULL END \+ Int64\(\-12\) \* Int64\(42\) \* Int64\(\-57\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(13\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT SUM ( + 41 ) / 23 + CASE 35 WHEN - - 79 - 5 THEN 79 * + + 96 * 79 WHEN 63 THEN NULL END + - 12 * 42 * - 57 AS col0, + COUNT ( * ) + - 24 * - COUNT ( * ) * + ( 13 ) * + 24 col0 query II rowsort @@ -36848,7 +36848,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\(\*\) AS col1" at position 1 have the 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 @@ -37678,7 +37678,7 @@ SELECT - MIN ( ALL - 50 ) AS col0, - 56 / ( - - ( - - 81 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(61\) \+ 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\(53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(61\) \+ Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 53 * - COUNT ( * ) AS col0, + 61 + - 79 AS col0 query II rowsort label-7179 @@ -38706,7 +38706,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(58\) 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\(\*\) \+ Int64\(58\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + 58 col2, 71 col2 query II rowsort label-7374 @@ -39342,7 +39342,7 @@ SELECT ALL + 27 - + 18 + 97 / + - 35 # 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 col0" at position 0 and "Int64\(58\) \+ count\(\*\) \* Int64\(\-14\) \- 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\(80\) AS col0" at position 0 and "Int64\(58\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-14\) \- Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 AS col0, 58 + COUNT ( * ) * - 14 - 41 AS col0 query I rowsort label-7497 @@ -39422,7 +39422,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\(\*\) 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 @@ -39911,7 +39911,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\(\*\) 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 @@ -41436,7 +41436,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -41881,7 +41881,7 @@ SELECT COUNT ( * ) * - 51 * - - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(29\) \+ Int64\(5\) \- \(\- Int64\(\-22\)\) / Int64\(70\) \* Int64\(52\) / Int64\(6\) AS col2" at position 0 and "coalesce\(Int64\(65\), Int64\(10\) \+ \(\- count\(\*\)\) \* Int64\(52\)\) \- 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 "Int64\(50\) \- Int64\(29\) \+ Int64\(5\) \- \(\- Int64\(\-22\)\) / Int64\(70\) \* Int64\(52\) / Int64\(6\) AS col2" at position 0 and "coalesce\(Int64\(65\), Int64\(10\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(52\)\) \- Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 - 29 + 5 - - - 22 / 70 * 52 / 6 AS col2, COALESCE ( + 65, ( 10 ) + - COUNT ( * ) * 52 ) - - 1 AS col2 query I rowsort label-7983 @@ -42091,7 +42091,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\(\*\) 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 @@ -42898,7 +42898,7 @@ SELECT ALL COALESCE ( + - 50, + CAST ( + + NULLIF ( - COALESCE ( 95, + 63 + - CO # Datafusion - Expected - 51 # Datafusion - Expected - 1552 # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(\-79\) \* \(\- count\(\*\)\) \+ 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 "Int64\(51\) AS col0" at position 0 and "Int64\(\-79\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(69\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 51 AS col0, 97 * 16 AS col2, - 79 * - COUNT ( * ) + 69 AS col0 query I rowsort label-8177 @@ -43125,7 +43125,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\(\*\) 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 @@ -43340,7 +43340,7 @@ SELECT ALL - MIN ( DISTINCT 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -31981 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* max\(Int64\(37\)\) \* count\(\*\) / Int64\(30\) \- \(\- count\(Int64\(43\)\)\) \* Int64\(85\) \+ count\(\*\) \* \(\- count\(Int64\(\-23\)\)\) \- Int64\(\-10\) \* Int64\(89\) \* Int64\(\-4\) \* Int64\(9\) 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 "Int64\(\-21\) \* max\(Int64\(37\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(30\) \- \(\- count\(Int64\(43\)\)\) \* Int64\(85\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(\-23\)\)\) \- Int64\(\-10\) \* Int64\(89\) \* Int64\(\-4\) \* Int64\(9\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 21 * MAX ( 37 ) * COUNT ( * ) / 30 - - COUNT ( + + 43 ) * + 85 + + COUNT ( * ) * - + COUNT ( ALL - 23 ) - - 10 * + + 89 * - 4 * 9 AS col2, 22 AS col2 query I rowsort label-8259 @@ -43874,7 +43874,7 @@ SELECT 28 + ( 22 ) * 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ \(\- count\(\*\)\) \+ \(\- \(\- 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 "Int64\(\-9\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- 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 - 9 + - COUNT ( * ) + - - COUNT ( * ) AS col1, 90 col1 # Datafusion - Types were automatically converted from: @@ -44317,7 +44317,7 @@ SELECT DISTINCT - 70 + 68 * - + 46 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -436 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- nullif\(CAST\(CAST\(\(\- count\(\*\)\) AS Int32\) AS Int32\), Int64\(\-98\) \* count\(\*\)\)\) \* Int64\(\-37\) \* Int64\(13\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- nullif\(CAST\(CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS Int32\), Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-37\) \* Int64\(13\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 16 + + - NULLIF ( + CAST ( + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) AS INTEGER ), - 98 * COUNT ( * ) ) * + - 37 * 13 + + 29 AS col2, + 63 + + 41 col2 # Datafusion - Types were automatically converted from: @@ -45806,7 +45806,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\(\*\) 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 @@ -45886,7 +45886,7 @@ SELECT - SUM ( - 2 ) * - 0 + - - ( + - CAST ( 82 AS INTEGER ) ) + MAX ( + + 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(93\)\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \* \(\- 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\(93\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \* \(\- Int64\(\-21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( ALL + 93 ) * - COUNT ( * ) AS col0, + 75 * - - 21 AS col0 query II rowsort label-8739 @@ -46991,7 +46991,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\(\*\) AS col2" at position 1 have the 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 @@ -47078,7 +47078,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "nullif\(Int64\(64\), \(\- nullif\(coalesce\(Int64\(6\), Int64\(94\)\), \(\- \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\)\)\)\)\) \+ Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "nullif\(Int64\(64\), \(\- nullif\(coalesce\(Int64\(6\), Int64\(94\)\), \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\)\)\)\) \+ Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 AS col0, + NULLIF ( + 64, - NULLIF ( + COALESCE ( 6, + + 94 ), - - CAST ( - COUNT ( * ) AS INTEGER ) ) ) + - 26 AS col0 query I rowsort @@ -47945,7 +47945,7 @@ SELECT ALL COUNT ( * ) * - 61 * + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -32 -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\(\-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\(16\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 col2, COUNT ( * ) * - 32 AS col2 query I rowsort label-9130 @@ -48250,7 +48250,7 @@ SELECT ALL + 88 + - 4 * COUNT ( * ) * + + 69 AS col0 # Datafusion - Expected - 52 # Datafusion - Expected - 1 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\*\), Int64\(21\) / Int64\(\-9\)\) AS col0" at position 1 and "Int64\(39\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(21\) / Int64\(\-9\)\) AS col0" at position 1 and "Int64\(39\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 45 + + 7, COALESCE ( + COUNT ( * ), + 21 / ( - 9 ) ) AS col0, + 39 AS col0 query II rowsort label-9188 @@ -50428,7 +50428,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\(\*\) 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: @@ -51831,7 +51831,7 @@ SELECT + 26 * 73 / NULLIF ( + 49, + - COUNT ( * ) + + 82 - + + COUNT ( * ) / - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2784 # Datafusion - Expected - 281159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* \(\- Int64\(29\)\) AS col1" at position 0 and "\(\- count\(\*\)\) \+ Int64\(55\) \* coalesce\(\(\- nullif\(\(\- \(\- min\(\(\- CAST\(NULL AS Int32\)\)\)\)\), Int64\(55\)\)\), Int64\(64\) \+ Int64\(8\), nullif\(nullif\(\(\- Int64\(\-26\)\), Int64\(4\)\), Int64\(\-56\) / Int64\(54\)\) \+ Int64\(65\)\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* \(\- Int64\(29\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(55\) \* coalesce\(\(\- nullif\(\(\- \(\- min\(\(\- CAST\(NULL AS Int32\)\)\)\)\), Int64\(55\)\)\), Int64\(64\) \+ Int64\(8\), nullif\(nullif\(\(\- Int64\(\-26\)\), Int64\(4\)\), Int64\(\-56\) / Int64\(54\)\) \+ Int64\(65\)\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 96 * - + 29 col1, - COUNT ( * ) + 55 * + COALESCE ( - NULLIF ( - - MIN ( ALL - CAST ( NULL AS INTEGER ) ), 55 ), 64 + + + 8, NULLIF ( + NULLIF ( - - 26, + 4 ), + - 56 / ( 54 ) ) + 65 ) * 71 AS col1 query I rowsort label-9875 @@ -52278,7 +52278,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(\*\) \+ Int64\(87\) \* \(\- CAST\(Int64\(18\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) \* \(\- CAST\(Int64\(18\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 87 * - CAST ( + + 18 AS INTEGER ) AS col2, - 53 AS col2 query I rowsort label-9960 diff --git a/data/sqlite/random/expr/slt_good_90.slt b/data/sqlite/random/expr/slt_good_90.slt index 2461919..aaaf649 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\(\*\)\) WHEN \(\- count\(\*\)\) \* Int64\(13\) \- Int64\(63\) \* Int64\(60\) \* Int64\(20\) \+ \(\- Int64\(\-56\)\) THEN count\(\*\) WHEN CAST\(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\(\*\) \* count\(\*\) AS col0" at position 1 have the 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\(\*\) 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 @@ -1802,7 +1802,7 @@ SELECT + 97 / + + 7 - + - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(48\) / CASE Int64\(83\) WHEN Int64\(24\) THEN Int64\(8\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(48\) / CASE Int64\(83\) WHEN Int64\(24\) THEN Int64\(8\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 12 + - COUNT ( * ) col2, 48 / CASE 83 WHEN + 24 THEN + + 8 END AS col2 query I rowsort @@ -3370,7 +3370,7 @@ SELECT 95 + 16 * - + 72 AS col0, ( - 65 ) # 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 "\(\- coalesce\(count\(\*\), \(\- \(\- count\(\*\)\)\) \+ Int64\(\-42\), Int64\(90\)\)\) 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 "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-42\), Int64\(90\)\)\) 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 - COALESCE ( + COUNT ( * ), - - COUNT ( * ) + + ( - 42 ), + 90 ) col2, + 5 AS col2 query I rowsort @@ -3381,7 +3381,7 @@ SELECT 2 * - + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -21 -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\(\-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\(49\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 AS col0, - COUNT ( * ) * - - 21 AS col0 query I rowsort label-643 @@ -4129,7 +4129,7 @@ SELECT 11 + + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "CASE \(\- sum\(DISTINCT \(\- Int64\(\-91\)\)\)\) WHEN Int64\(24\) THEN \(\- min\(\(\- \(\- \(\- Int64\(\-77\)\)\)\)\)\) WHEN Int64\(27\) THEN \(\- count\(\*\)\) \+ Int64\(88\) / Int64\(20\) 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\(38\) AS col2" at position 0 and "CASE \(\- sum\(DISTINCT \(\- Int64\(\-91\)\)\)\) WHEN Int64\(24\) THEN \(\- min\(\(\- \(\- \(\- Int64\(\-77\)\)\)\)\)\) WHEN Int64\(27\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(88\) / Int64\(20\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 38 AS col2, CASE - + SUM ( DISTINCT - - 91 ) WHEN + + 24 THEN - + MIN ( - - ( - - 77 ) ) WHEN + 27 THEN ( - COUNT ( * ) ) + 88 / 20 END AS col2 query II rowsort @@ -4224,7 +4224,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\(\*\) AS col2" at position 1 have the 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 @@ -4635,7 +4635,7 @@ SELECT DISTINCT - 52 + 6 AS col1 # Datafusion - Expected - -17 # Datafusion - Expected - 1 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) / Int64\(79\) AS col0" at position 1 and "Int64\(\-82\) \* coalesce\(\(\- count\(\*\)\), Int64\(20\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) / Int64\(79\) AS col0" at position 1 and "Int64\(\-82\) \* coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(20\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 17, 92 / + 79 AS col0, - 82 * + COALESCE ( + - COUNT ( * ), + 20 ) AS col0 query I rowsort label-882 @@ -5597,7 +5597,7 @@ SELECT COUNT ( * ) + - 57 + + 71 * 19 * + 36 * + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -119428 # Datafusion - Expected - -617 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-37\)\) AS Int32\)\) \* Int64\(\-75\) \* coalesce\(Int64\(\-43\), Int64\(12\) \* \(\- coalesce\(\(\- CAST\(Int64\(\-37\) AS Int32\)\), Int64\(\-83\) \* Int64\(97\) \+ \(\- count\(\*\)\) \+ count\(\*\)\)\) \* Int64\(56\)\) \- Int64\(49\) \+ Int64\(\-54\) AS col1" at position 0 and "Int64\(73\) \* Int64\(\-10\) \+ Int64\(86\) \- \(\- \(\- \(\- nullif\(Int64\(27\), sum\(Int64\(99\)\) / CAST\(NULL AS Int32\) \- nullif\(Int64\(66\), Int64\(45\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-37\)\) AS Int32\)\) \* Int64\(\-75\) \* coalesce\(Int64\(\-43\), Int64\(12\) \* \(\- coalesce\(\(\- CAST\(Int64\(\-37\) AS Int32\)\), Int64\(\-83\) \* Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(56\)\) \- Int64\(49\) \+ Int64\(\-54\) AS col1" at position 0 and "Int64\(73\) \* Int64\(\-10\) \+ Int64\(86\) \- \(\- \(\- \(\- nullif\(Int64\(27\), sum\(Int64\(99\)\) / CAST\(NULL AS Int32\) \- nullif\(Int64\(66\), Int64\(45\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - - 37 AS INTEGER ) * - 75 * + COALESCE ( - 43, + 12 * - COALESCE ( - CAST ( + ( - 37 ) AS INTEGER ), - 83 * + 97 + - COUNT ( * ) + + + COUNT ( * ) ) * + 56 ) - 49 + - 54 AS col1, + 73 * - 10 + 86 - - - ( - ( NULLIF ( ( 27 ), SUM ( ( 99 ) ) / CAST ( NULL AS INTEGER ) - + NULLIF ( 66, 45 ) ) ) ) AS col1 query I rowsort @@ -5923,7 +5923,7 @@ SELECT DISTINCT - 47 * + + 74 * + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "\(\- CASE \(\- CAST\(Int64\(59\) AS Int32\)\) WHEN Int64\(50\) THEN NULL WHEN Int64\(\-24\) THEN Int64\(\-78\) \* nullif\(Int64\(8\), Int64\(\-24\)\) \* Int64\(\-51\) \+ Int64\(54\) / Int64\(23\) \+ Int64\(3\) ELSE NULL END\) \+ \(\- count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "\(\- CASE \(\- CAST\(Int64\(59\) AS Int32\)\) WHEN Int64\(50\) THEN NULL WHEN Int64\(\-24\) THEN Int64\(\-78\) \* nullif\(Int64\(8\), Int64\(\-24\)\) \* Int64\(\-51\) \+ Int64\(54\) / Int64\(23\) \+ Int64\(3\) ELSE NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 5 ) col0, - CASE - + CAST ( + 59 AS INTEGER ) WHEN + 50 THEN NULL WHEN - 24 THEN - 78 * + NULLIF ( + 8, - 24 ) * + - 51 + + 54 / 23 + + + 3 ELSE NULL END + - + COUNT ( * ) * 46 AS col0 query I rowsort label-1127 @@ -5961,7 +5961,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\(\*\) AS col2" at position 1 have the 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 @@ -6046,7 +6046,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\(\*\) 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 @@ -6502,7 +6502,7 @@ SELECT - CAST ( 74 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -51 -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\(35\) \+ Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\) \+ Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 48 AS col1, COUNT ( * ) + 35 + - 87 AS col1 query II rowsort label-1237 @@ -6620,7 +6620,7 @@ SELECT 99 * 95 / - CAST ( - 66 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2772 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(\-63\) AS col0" at position 0 and "Int64\(72\) \+ nullif\(\(\- count\(\*\)\), Int64\(\-50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(\-63\) AS col0" at position 0 and "Int64\(72\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 44 * - 63 AS col0, 72 + + NULLIF ( - COUNT ( * ), - 50 ) col0 query I rowsort label-1259 @@ -7433,7 +7433,7 @@ SELECT + 43 AS col2, 69 * - CAST ( 88 AS INTEGER ) * COUNT ( * ) * 90 + 80 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - -2197 # Datafusion - Expected - 5415 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-85\) \* Int64\(26\) \+ Int64\(12\) AS col0" at position 0 and "Int64\(95\) \* 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\(\*\) \+ Int64\(\-85\) \* Int64\(26\) \+ Int64\(12\) AS col0" at position 0 and "Int64\(95\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - 85 * + 26 + + + 12 AS col0, 95 * + 57 AS col0 query I rowsort label-1411 @@ -7673,7 +7673,7 @@ SELECT DISTINCT MIN ( 48 ) 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 "coalesce\(Int64\(\-8\), Int64\(\-85\)\) AS col0" at position 0 and "\(\- coalesce\(\(\- count\(\*\)\), \(\- Int64\(\-24\)\) / \(\- Int64\(\-38\)\) \+ Int64\(43\) \- Int64\(79\) \+ Int64\(\-50\) \+ 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 "coalesce\(Int64\(\-8\), Int64\(\-85\)\) AS col0" at position 0 and "\(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-24\)\) / \(\- Int64\(\-38\)\) \+ Int64\(43\) \- Int64\(79\) \+ Int64\(\-50\) \+ Int64\(28\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( - 8, - 85 ) AS col0, - COALESCE ( - COUNT ( * ), - - 24 / - - 38 + 43 - + 79 + - 50 + 28 ) col0 query I rowsort label-1455 @@ -8255,7 +8255,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\(\*\) AS col0" at position 1 have the 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 @@ -12568,7 +12568,7 @@ SELECT - 78 * + 34 * - COUNT ( DISTINCT + 1 ) * + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 2495 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "nullif\(Int64\(61\), Int64\(\-77\)\) \+ coalesce\(count\(\*\), Int64\(58\) \* count\(Int64\(\-23\)\)\) \+ \(\- Int64\(\-31\)\) \* \(\- Int64\(\-79\)\) \- coalesce\(Int64\(16\), Int64\(85\) \+ 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\(86\) AS col2" at position 0 and "nullif\(Int64\(61\), Int64\(\-77\)\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(58\) \* count\(Int64\(\-23\)\)\) \+ \(\- Int64\(\-31\)\) \* \(\- Int64\(\-79\)\) \- coalesce\(Int64\(16\), Int64\(85\) \+ Int64\(\-86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( 86 ) AS col2, NULLIF ( 61, - 77 ) + + COALESCE ( + COUNT ( * ), + 58 * COUNT ( - 23 ) ) + - - 31 * - - 79 - COALESCE ( 16, + 85 + - 86 ) AS col2 query I rowsort @@ -12866,7 +12866,7 @@ SELECT - + SUM ( 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "\(\- Int64\(\-70\)\) \* \(\- CAST\(NULL AS Float64\)\) \+ \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "\(\- Int64\(\-70\)\) \* \(\- 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 29 AS col1, + ( - - 70 ) * - CAST ( NULL AS FLOAT8 ) + - - COUNT ( * ) AS col1 query II rowsort @@ -12986,7 +12986,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\(\*\) 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 @@ -13197,7 +13197,7 @@ SELECT DISTINCT - - 23 + COUNT ( - + 64 ) / + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3628 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* \(\- Int64\(38\)\) \+ Int64\(\-2\) \- count\(\*\) \* Int64\(92\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* \(\- Int64\(38\)\) \+ Int64\(\-2\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(92\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 93 * - ( 38 ) + - 2 - + COUNT ( * ) * 92 AS col0, - 43 AS col0 query I rowsort @@ -14438,7 +14438,7 @@ SELECT ALL + COUNT ( * ) * + 16 * 5 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(60\) AS col1" at position 0 and "\(\- min\(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\(\*\) \* Int64\(60\) AS col1" at position 0 and "\(\- min\(Int64\(\-64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * 60 AS col1, - MIN ( - 64 ) AS col1 query I rowsort @@ -14987,7 +14987,7 @@ SELECT 50 - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(\-55\) \* \(\- count\(\*\)\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(\-55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 76 AS col0, - 55 * - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -15720,7 +15720,7 @@ SELECT - 96, 45 * + 43 - + ( - + ( + - 43 ) ) AS col1 # 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\(\-7\) AS col2" at position 0 and "count\(\*\) / 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\(\-7\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 7 AS col2, + COUNT ( * ) / - 42 AS col2 query I rowsort @@ -16067,7 +16067,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\(\*\) AS col2" at position 1 have the 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 @@ -16538,7 +16538,7 @@ SELECT - 61 * + + COUNT ( * ) + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77347 # Datafusion - Expected - 1604 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ count\(\*\) \- Int64\(\-60\) \* Int64\(46\) \* Int64\(28\) AS col1" at position 0 and "Int64\(25\) \- \(\- Int64\(\-66\)\) \+ CAST\(sum\(\(\- Int64\(58\)\)\) AS Int32\) \+ Int64\(\-17\) \* Int64\(53\) / Int64\(1\) \+ Int64\(93\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-60\) \* Int64\(46\) \* Int64\(28\) AS col1" at position 0 and "Int64\(25\) \- \(\- Int64\(\-66\)\) \+ CAST\(sum\(\(\- Int64\(58\)\)\) AS Int32\) \+ Int64\(\-17\) \* Int64\(53\) / Int64\(1\) \+ Int64\(93\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 66 + + COUNT ( * ) - - 60 * 46 * 28 AS col1, + 25 - - - 66 + + CAST ( SUM ( - ( 58 ) ) AS INTEGER ) + - 17 * + 53 / + ( + 1 ) + + 93 * 28 AS col1 query I rowsort label-3147 @@ -16827,7 +16827,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\(\*\) 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 @@ -18134,7 +18134,7 @@ SELECT ALL 24 + - 55 * - - ( - 68 ) + + - 79 # Datafusion - Expected - 41 # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(45\) \- \(\- count\(\*\)\) \- CAST\(NULL AS Int32\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(45\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 50 + + 91 AS col0, + 18 + + 45 - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * + 69 AS col0, 15 * + MAX ( ALL ( - 3 ) ) AS col1 query I rowsort @@ -18690,7 +18690,7 @@ SELECT 88 / + 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-99\)\) AS Int32\) \* Int64\(\-47\) \- \(\- CAST\(\(\- CASE \(\- \(\- \(\- min\(Int64\(33\)\)\)\)\) WHEN Int64\(\-14\) THEN \(\- Int64\(14\)\) END\) AS Int32\)\) \+ Int64\(\-96\) \* count\(\*\) \* \(\- Int64\(\-88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-99\)\) AS Int32\) \* Int64\(\-47\) \- \(\- CAST\(\(\- CASE \(\- \(\- \(\- min\(Int64\(33\)\)\)\)\) WHEN Int64\(\-14\) THEN \(\- Int64\(14\)\) END\) AS Int32\)\) \+ Int64\(\-96\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / - 89 AS col1, CAST ( + ( - - 99 ) AS INTEGER ) * + - 47 - - CAST ( - CASE - ( - - MIN ( ALL 33 ) ) WHEN - 14 THEN - + 14 END AS INTEGER ) + - 96 * COUNT ( * ) * - - 88 AS col1 query I rowsort label-3558 @@ -20042,7 +20042,7 @@ SELECT COUNT ( * ) + + - 31 * + - 68 * COUNT ( * ) * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(44\) \+ Int64\(18\) 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\(\*\) \* Int64\(44\) \+ Int64\(18\) 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 ( * ) * 44 + + + 18 AS col2, + 18 col2 query I rowsort @@ -20357,7 +20357,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\(\*\) 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 @@ -20655,7 +20655,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\(\*\) AS col0" at position 1 have the 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 @@ -21959,7 +21959,7 @@ SELECT 56 * - - 75 + - 81 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -8238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "\(\- Int64\(98\)\) \* Int64\(85\) \+ Int64\(\-92\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(98\)\) \* Int64\(85\) \+ Int64\(\-92\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 AS col2, - ( + + 98 ) * 85 + - 92 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -22815,7 +22815,7 @@ SELECT ALL 92 + + 60 AS col2 # Datafusion - Expected - -3808 # Datafusion - Expected - 11 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- nullif\(Int64\(56\), coalesce\(\(\- count\(\*\)\), Int64\(98\)\)\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- nullif\(Int64\(56\), coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(98\)\)\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 68 * - + NULLIF ( 56, + COALESCE ( - + COUNT ( * ), + 98 ) ) col1, 11 AS col1, + + 67 # Datafusion - Datafusion expected results: @@ -22955,7 +22955,7 @@ SELECT - 59 + + 80 # 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\(\*\)\) AS col1" at position 1 have the 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 ALL + 71 AS col1, - COUNT ( * ) AS col1 query II rowsort label-4375 @@ -23490,7 +23490,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(\-11\)\)\) / Int64\(\-78\) \* Int64\(22\) \+ Int64\(27\) \+ count\(\*\) / Int64\(\-71\) \* \(\- Int64\(2\)\) \- \(\- Int64\(25\)\) 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 "\(\- count\(DISTINCT Int64\(\-11\)\)\) / Int64\(\-78\) \* Int64\(22\) \+ Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-71\) \* \(\- Int64\(2\)\) \- \(\- Int64\(25\)\) 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 - COUNT ( DISTINCT + - 11 ) / - 78 * + 22 + 27 + + COUNT ( * ) / + - 71 * - + 2 - - + 25 AS col2, - 59 AS col2 query I rowsort @@ -23796,7 +23796,7 @@ SELECT 44 * + ( - 80 ) * - - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6483 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- \(\- CASE Int64\(\-45\) WHEN Int64\(\-25\) THEN Int64\(57\) WHEN Int64\(90\) \+ Int64\(16\) \+ Int64\(\-32\) THEN NULL ELSE Int64\(93\) \+ nullif\(Int64\(71\), \(\- Int64\(\-53\)\)\) \* Int64\(90\) \* count\(\*\) END\)\), Int64\(\-56\) \* \(\- nullif\(Int64\(63\), Int64\(23\) \+ Int64\(17\) / Int64\(\-78\) \+ Int64\(\-96\)\)\)\)\) AS col0" at position 0 and "Int64\(31\) / 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 "\(\- coalesce\(\(\- \(\- CASE Int64\(\-45\) WHEN Int64\(\-25\) THEN Int64\(57\) WHEN Int64\(90\) \+ Int64\(16\) \+ Int64\(\-32\) THEN NULL ELSE Int64\(93\) \+ nullif\(Int64\(71\), \(\- Int64\(\-53\)\)\) \* Int64\(90\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\), Int64\(\-56\) \* \(\- nullif\(Int64\(63\), Int64\(23\) \+ Int64\(17\) / Int64\(\-78\) \+ Int64\(\-96\)\)\)\)\) AS col0" at position 0 and "Int64\(31\) / Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( - - CASE - 45 WHEN - 25 THEN + 57 WHEN + 90 + + 16 + + - 32 THEN NULL ELSE + 93 + NULLIF ( 71, - ( + - 53 ) ) * + 90 * COUNT ( * ) END, - 56 * - NULLIF ( + 63, + 23 + + + 17 / - 78 + - 96 ) ) AS col0, 31 / + 32 AS col0 # Datafusion - Datafusion expected results: @@ -24191,7 +24191,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\(\*\) AS col2" at position 0 and "CAST\(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 @@ -25608,7 +25608,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1364 # Datafusion - Expected - 780113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(44\) AS col1" at position 0 and "Int64\(90\) \* Int64\(47\) \* Int64\(65\) \- \(\- Int64\(0\)\) \- Int64\(\-2\) \+ Int64\(\-86\) \* Int64\(66\) \* Int64\(\-89\) \+ Int64\(86\) \+ \(\- \(\- Int64\(89\)\)\) / \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(44\) AS col1" at position 0 and "Int64\(90\) \* Int64\(47\) \* Int64\(65\) \- \(\- Int64\(0\)\) \- Int64\(\-2\) \+ Int64\(\-86\) \* Int64\(66\) \* Int64\(\-89\) \+ Int64\(86\) \+ \(\- \(\- Int64\(89\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 31 * + 44 AS col1, 90 * 47 * + + 65 - - - 0 - - 2 + - 86 * + 66 * - 89 + + + 86 + - ( - + 89 ) / - COUNT ( * ) AS col1 query I rowsort @@ -26315,7 +26315,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -26409,7 +26409,7 @@ SELECT DISTINCT + 17 * - ( + 83 ) * + 73 * - - 64 * + 89 # Datafusion - Expected - -226135 # Datafusion - Expected - 131 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- \(\- Int64\(\-12\)\) \- count\(\*\) \+ Int64\(\-34\) \+ Int64\(65\) \+ Int64\(20\) \* \(\- Int64\(\-6\)\) AS col2" at position 1 and "coalesce\(Int64\(\-48\), Int64\(70\)\) 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\(\-7\) \- \(\- Int64\(\-12\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-34\) \+ Int64\(65\) \+ Int64\(20\) \* \(\- Int64\(\-6\)\) AS col2" at position 1 and "coalesce\(Int64\(\-48\), Int64\(70\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * - 91 * 35 AS col0, - 7 - - - 12 - + COUNT ( * ) + - 34 + + 65 + + + 20 * - - 6 AS col2, COALESCE ( - 48, 70 ) col2 query I rowsort label-5029 @@ -27039,7 +27039,7 @@ SELECT 81 + - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* \(\- count\(\*\)\) 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 "Int64\(55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 * - COUNT ( * ) col2, 36 AS col2 query I rowsort label-5148 @@ -27192,7 +27192,7 @@ SELECT ALL + 63 + - - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col0" at position 0 and "Int64\(98\) / Int64\(87\) \* CASE \(\- nullif\(Int64\(\-7\), Int64\(47\)\)\) WHEN Int64\(55\) \* count\(Int64\(70\)\) \+ Int64\(\-81\) \+ \(\- count\(\*\)\) \+ Int64\(\-99\) \* Int64\(54\) THEN max\(Int64\(\-58\)\) \+ Int64\(\-61\) 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\(\-74\) AS col0" at position 0 and "Int64\(98\) / Int64\(87\) \* CASE \(\- nullif\(Int64\(\-7\), Int64\(47\)\)\) WHEN Int64\(55\) \* count\(Int64\(70\)\) \+ Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-99\) \* Int64\(54\) THEN max\(Int64\(\-58\)\) \+ Int64\(\-61\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 74 AS col0, 98 / 87 * + CASE + - NULLIF ( - 7, + 47 ) WHEN + ( + 55 ) * + + COUNT ( 70 ) + - 81 + - COUNT ( * ) + - 99 * 54 THEN + MAX ( - 58 ) + + - 61 ELSE NULL END AS col0 query I rowsort label-5176 @@ -28613,7 +28613,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\(\*\) AS col1" at position 1 have the 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 @@ -30368,7 +30368,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\(\*\) AS col1" at position 1 have the 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 @@ -32076,7 +32076,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - -2612 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(15\) WHEN Int64\(6\) \+ Int64\(43\) \* Int64\(85\) THEN Int64\(77\) \+ Int64\(\-17\) ELSE Int64\(49\) END \+ Int64\(61\) AS col0" at position 0 and "coalesce\(Int64\(41\), \(\- Int64\(97\)\), \(\- min\(coalesce\(\(\- Int64\(52\)\), Int64\(\-12\)\)\)\)\) \* \(\- nullif\(Int64\(62\), \(\- Int64\(\-71\)\) \+ Int64\(50\) \* Int64\(56\) / Int64\(\-73\)\)\) \+ \(\- 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 "CASE Int64\(15\) WHEN Int64\(6\) \+ Int64\(43\) \* Int64\(85\) THEN Int64\(77\) \+ Int64\(\-17\) ELSE Int64\(49\) END \+ Int64\(61\) AS col0" at position 0 and "coalesce\(Int64\(41\), \(\- Int64\(97\)\), \(\- min\(coalesce\(\(\- Int64\(52\)\), Int64\(\-12\)\)\)\)\) \* \(\- nullif\(Int64\(62\), \(\- Int64\(\-71\)\) \+ Int64\(50\) \* Int64\(56\) / Int64\(\-73\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE + 15 WHEN 6 + 43 * + ( + 85 ) THEN + 77 + - 17 ELSE + 49 END + + 61 AS col0, + COALESCE ( + 41, - + 97, - + MIN ( + COALESCE ( - ( 52 ), + - 12 ) ) ) * - + NULLIF ( 62, - - 71 + 50 * 56 / - 73 ) + - COUNT ( * ) - + 69 col0 query I rowsort @@ -33916,7 +33916,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\(\*\) AS col1" at position 1 have the 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 @@ -34144,7 +34144,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / \(\- Int64\(\-23\)\) AS col1" at position 0 and "Int64\(88\) / Int64\(\-61\) \- Int64\(\-89\) \- Int64\(\-20\) \+ 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\(\*\) / \(\- Int64\(\-23\)\) AS col1" at position 0 and "Int64\(88\) / Int64\(\-61\) \- Int64\(\-89\) \- Int64\(\-20\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / - - 23 AS col1, + 88 / - 61 - + - 89 - - 20 + + + 43 AS col1 query I rowsort label-6505 @@ -35471,7 +35471,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\(\*\) WHEN Int64\(\-95\) \+ 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\(\*\) \* 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 @@ -35989,7 +35989,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\(\*\)\) AS col2" at position 0 and "Int64\(\-86\) / count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -37481,7 +37481,7 @@ NULL # Datafusion - Expected - 54 # Datafusion - Expected - -80 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-80\) AS col2" at position 1 and "Int64\(\-36\) 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\(\-80\) AS col2" at position 1 and "Int64\(\-36\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54, + ( + + COUNT ( * ) ) * + - 80 AS col2, + - 36 AS col2 query II rowsort label-7147 @@ -37530,7 +37530,7 @@ SELECT 7 - + ( - 99 ) * - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(52\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(52\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 87 AS col1, + 52 + - COUNT ( * ) AS col1 query I rowsort @@ -37762,7 +37762,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(\-99\) \+ Int64\(18\) \+ \(\- \(\- \(\- Int64\(\-18\)\)\)\) AS col2" at position 0 and "count\(\*\) \* 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\(\*\)\) / Int64\(\-99\) \+ Int64\(18\) \+ \(\- \(\- \(\- Int64\(\-18\)\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / + - 99 + + + 18 + - - ( - - 18 ) AS col2, + COUNT ( * ) * - 11 AS col2 query I rowsort label-7200 @@ -39164,7 +39164,7 @@ SELECT DISTINCT 49 * 31 / + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- count\(\*\)\) \+ \(\- \(\- Int64\(11\)\)\) 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\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(11\)\)\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 + - COUNT ( * ) + - ( - + 11 ) AS col0, - 15 AS col0 query I rowsort label-7465 @@ -40961,7 +40961,7 @@ SELECT ALL - - 8 * COALESCE ( 56, SUM ( ALL - 54 ) - - + 43 + + COUNT ( * ), + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(77\) \+ 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\(\*\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(77\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 90 col2, + 77 + - 79 col2 query I rowsort @@ -41992,7 +41992,7 @@ SELECT ALL 35 / - - 6 AS col0, - CAST ( - + 45 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2546 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- nullif\(\(\- count\(\*\)\), Int64\(91\)\)\) \* \(\- Int64\(55\)\) \- Int64\(71\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(91\)\)\) \* \(\- Int64\(55\)\) \- Int64\(71\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 45 * - NULLIF ( - COUNT ( * ), + 91 ) * ( + + ( - + 55 ) ) - + 71 AS col0, 98 AS col0 query I rowsort label-8004 @@ -42345,7 +42345,7 @@ SELECT - + COUNT ( * ) - + 7 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\(\*\)\) 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 # Datafusion - Datafusion expected results: @@ -42751,7 +42751,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\(\*\) AS col2" at position 1 have the 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: @@ -44141,7 +44141,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\(\*\) AS col0" at position 1 have the same 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 @@ -46415,7 +46415,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\(92\) \* count\(\*\) \- count\(\*\) AS col1" at position 1 have the 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 @@ -46772,7 +46772,7 @@ SELECT ALL - 63 * + SUM ( 27 ) col1, + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 132 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(59\) \+ Int64\(0\) \+ Int64\(36\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(59\) \+ Int64\(0\) \+ Int64\(36\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 + + ( + 59 ) + + 0 + 36 AS col2, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 query I rowsort label-8920 @@ -47684,7 +47684,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\(\*\) 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 @@ -48719,7 +48719,7 @@ SELECT ALL - 15 * + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(88\) 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) 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 + - COUNT ( * ) * 88 AS col0, 49 AS col0 # Datafusion - Datafusion expected results: @@ -48844,7 +48844,7 @@ SELECT ALL - MIN ( + 13 ) + - + 95 - + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- \(\- 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 "Int64\(81\) \- \(\- 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 81 - - + COUNT ( * ) AS col0, - 6 col0 query I rowsort label-9315 @@ -48887,7 +48887,7 @@ SELECT ALL + 3 * + 62 * - - ( 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-15\) \+ nullif\(Int64\(64\), Int64\(\-33\)\) \+ Int64\(\-21\) \* Int64\(88\) AS col0" at position 0 and "count\(\*\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-15\) \+ nullif\(Int64\(64\), Int64\(\-33\)\) \+ Int64\(\-21\) \* Int64\(88\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - 15 + NULLIF ( 64, + - 33 ) + - 21 * + 88 AS col0, COUNT ( * ) + + 32 AS col0 query II rowsort label-9323 @@ -49096,7 +49096,7 @@ SELECT + 73 + - + CAST ( - 92 AS INTEGER ) + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1842 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "Int64\(\-65\) \+ Int64\(\-30\) \+ Int64\(\-86\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(\-92\)\) \* 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\(3\) AS col0" at position 0 and "Int64\(\-65\) \+ Int64\(\-30\) \+ Int64\(\-86\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-92\)\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 3 col0, - 65 + - 30 + + ( - 86 ) + + - COUNT ( * ) + - - 92 * 22 AS col0 query I rowsort label-9360 @@ -49803,7 +49803,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\(\*\) AS col2" at position 1 have 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: @@ -49832,7 +49832,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 206329 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) \+ Int64\(\-64\) \* Int64\(52\) \* Int64\(\-62\) \+ \(\- 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 "\(\- Int64\(6\)\) \+ Int64\(\-64\) \* Int64\(52\) \* Int64\(\-62\) \+ \(\- 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 - + ( + + 6 ) + + ( - 64 ) * 52 * - 62 + - COUNT ( * ) AS col0, + 5 AS col0 query II rowsort label-9501 @@ -50439,7 +50439,7 @@ SELECT DISTINCT ( - 57 ) AS col0, 58 # Datafusion - Expected - 1 # Datafusion - Expected - 74 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) / Int64\(68\) AS col0" at position 0 and "count\(\*\) \+ 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\(78\) / Int64\(68\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 78 / + 68 AS col0, COUNT ( * ) + + + 73 AS col0, - - COUNT ( * ) - - 31 AS col2 query II rowsort label-9615 @@ -50522,7 +50522,7 @@ SELECT - 21 + - COUNT ( * ) + + 67 - - 46 * + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "\(\- nullif\(\(\- count\(\*\)\), Int64\(61\) / Int64\(75\)\)\) \+ \(\- Int64\(\-36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(61\) / Int64\(75\)\)\) \+ \(\- Int64\(\-36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 30 col2, - NULLIF ( + - COUNT ( * ), + + 61 / 75 ) + - - 36 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_91.slt b/data/sqlite/random/expr/slt_good_91.slt index 2302026..e86d797 100644 --- a/data/sqlite/random/expr/slt_good_91.slt +++ b/data/sqlite/random/expr/slt_good_91.slt @@ -2036,7 +2036,7 @@ SELECT COALESCE ( + - 8, + 13 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -777 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* Int64\(21\) AS col0" at position 0 and "count\(\*\) \- Int64\(35\) \* Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* Int64\(21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(35\) \* Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 37 * 21 AS col0, COUNT ( * ) - + 35 * + 1 AS col0 query I rowsort @@ -2304,7 +2304,7 @@ SELECT ALL SUM ( + + 38 ) 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\(\-76\) \+ \(\- Int64\(\-6\)\) AS col2" at position 0 and "count\(\*\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-6\)\) 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 - 76 + - ( - 6 ) AS col2, + COUNT ( * ) * - + COUNT ( * ) col2 query I rowsort @@ -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\(\*\) 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 @@ -3498,7 +3498,7 @@ SELECT 46 + + 74 col0 # Datafusion - Expected - 1247 # Datafusion - Expected - 46 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(46\), Int64\(\-94\)\) AS col0" at position 1 and "count\(\*\) / Int64\(\-24\) \* Int64\(74\) \+ Int64\(24\) \+ Int64\(3\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(46\), Int64\(\-94\)\) AS col0" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-24\) \* Int64\(74\) \+ Int64\(24\) \+ Int64\(3\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 * + + 43, + NULLIF ( + + 46, - 94 ) AS col0, + COUNT ( * ) / - 24 * 74 + 24 + 3 col0 query I rowsort label-663 @@ -4357,7 +4357,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\(\-7\) \* 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 @@ -5445,7 +5445,7 @@ SELECT DISTINCT + - 67 col1 # Datafusion - Expected - -3 # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) / \(\- Int64\(24\)\) AS col0" at position 0 and "count\(\*\) / 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\(72\) / \(\- Int64\(24\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 72 / - + 24 AS col0, COUNT ( * ) / ( 71 ) AS col0, 35 + + - CASE - 65 WHEN + - 7 THEN NULL WHEN - 32 + - 7 THEN 13 WHEN + 21 * + - 81 * - ( COUNT ( * ) ) * - - 65 THEN NULL END AS col0 query I rowsort label-1033 @@ -6039,7 +6039,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\(\*\) AS col2" at position 1 have the 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 @@ -6144,7 +6144,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\(\*\) AS col0" at position 1 have the 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 @@ -7461,7 +7461,7 @@ SELECT ALL - 74 * + + 81 / + 66 - CASE + 61 WHEN + 20 THEN - 52 * - + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -1475 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(59\) AS col0" at position 0 and "Int64\(\-29\) \* count\(\*\) \+ Int64\(\-42\) \* Int64\(51\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(59\) AS col0" at position 0 and "Int64\(\-29\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-42\) \* Int64\(51\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 25 * 59 AS col0, - 29 * + COUNT ( * ) + - 42 * + 51 + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1416 @@ -7809,7 +7809,7 @@ SELECT - 62 col0, 11 * + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "CASE Int64\(\-86\) WHEN Int64\(61\) THEN NULL WHEN Int64\(42\) \* Int64\(\-67\) \* \(\- sum\(Int64\(38\)\)\) \- Int64\(34\) \- \(\- Int64\(26\)\) \- Int64\(75\) \* \(\- count\(\*\)\) \+ Int64\(46\) \* Int64\(\-70\) \+ Int64\(66\) \+ Int64\(\-71\) \* Int64\(\-93\) THEN \(\- count\(\*\)\) / Int64\(\-16\) 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\(77\) AS col0" at position 0 and "CASE Int64\(\-86\) WHEN Int64\(61\) THEN NULL WHEN Int64\(42\) \* Int64\(\-67\) \* \(\- sum\(Int64\(38\)\)\) \- Int64\(34\) \- \(\- Int64\(26\)\) \- Int64\(75\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(46\) \* Int64\(\-70\) \+ Int64\(66\) \+ Int64\(\-71\) \* Int64\(\-93\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-16\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 col0, CASE - 86 WHEN + 61 THEN NULL WHEN + + 42 * - 67 * - + SUM ( 38 ) - + 34 - - + 26 - + 75 * - COUNT ( * ) + + 46 * - 70 + 66 + - 71 * - 93 THEN - COUNT ( * ) / - 16 ELSE NULL END AS col0 query I rowsort label-1484 @@ -8873,7 +8873,7 @@ SELECT CAST ( + 61 AS INTEGER ) * - 4 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 "Int64\(\-46\) \- coalesce\(Int64\(5\), Int64\(90\) \* count\(\*\) \* \(\- \(\- count\(\*\)\)\) \+ nullif\(Int64\(\-1\), Int64\(67\) \* \(\- count\(\*\)\)\) \+ Int64\(\-38\)\) / \(\- Int64\(\-52\)\) \+ \(\- CASE Int64\(26\) WHEN Int64\(8\) \* Int64\(\-79\) THEN Int64\(\-40\) END\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \- coalesce\(Int64\(5\), Int64\(90\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ nullif\(Int64\(\-1\), Int64\(67\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-38\)\) / \(\- Int64\(\-52\)\) \+ \(\- CASE Int64\(26\) WHEN Int64\(8\) \* Int64\(\-79\) THEN Int64\(\-40\) END\) 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 - 46 - + COALESCE ( 5, + 90 * + COUNT ( * ) * - - COUNT ( * ) + NULLIF ( - 1, + 67 * - + COUNT ( * ) ) + - 38 ) / - - 52 + + ( - CASE + 26 WHEN + 8 * + - 79 THEN - 40 END ) AS col0, + 88 AS col0 query I rowsort label-1688 @@ -8996,7 +8996,7 @@ SELECT ALL + - ( + 78 ) + - - 23 * + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2274 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-60\)\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-66\) \- \(\- count\(\(\- Int64\(81\)\)\)\) \* Int64\(0\) AS col2" at position 0 and "Int64\(\-78\) \* CASE \(\- count\(\*\)\) WHEN \(\- Int64\(\-21\)\) THEN \(\- avg\(Int64\(35\)\)\) \+ min\(Int64\(33\)\) END \+ \(\- 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\(\-60\)\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-66\) \- \(\- count\(\(\- Int64\(81\)\)\)\) \* Int64\(0\) AS col2" at position 0 and "Int64\(\-78\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(\-21\)\) THEN \(\- avg\(Int64\(35\)\)\) \+ min\(Int64\(33\)\) END \+ \(\- Int64\(\-20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 60 * - ( - 39 ) + + - 66 - + - COUNT ( ALL - + 81 ) * + + 0 AS col2, - 78 * CASE - COUNT ( * ) WHEN - - 21 THEN - AVG ( ALL + 35 ) + MIN ( 33 ) END + - - 20 AS col2 query I rowsort @@ -9012,7 +9012,7 @@ SELECT ( - + COUNT ( * ) ) * 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 617 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col2" at position 0 and "Int64\(5\) \- \(\- min\(Int64\(77\)\)\) \+ max\(Int64\(13\)\) \* Int64\(34\) \+ \(\- nullif\(Int64\(\-93\), count\(\*\)\)\) AS col2" at position 1 have the 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\(5\) \- \(\- min\(Int64\(77\)\)\) \+ max\(Int64\(13\)\) \* Int64\(34\) \+ \(\- nullif\(Int64\(\-93\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 63 ) AS col2, + 5 - - + MIN ( 77 ) + MAX ( + 13 ) * 34 + - ( + NULLIF ( + - 93, + + COUNT ( * ) ) ) AS col2 query I rowsort label-1715 @@ -9261,7 +9261,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\(\*\) \+ count\(\*\) AS col0" at position 1 have the 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 @@ -9655,7 +9655,7 @@ SELECT COUNT ( + 23 ) AS col0, - 55 # 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\(\*\)\) 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 col2 query II rowsort label-1834 @@ -11730,7 +11730,7 @@ SELECT + - 69 + - - 40 + - 33 + - + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8224 # Datafusion - Expected - 5209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) \- count\(\*\) \* Int64\(85\) \* Int64\(96\) AS col2" at position 0 and "Int64\(81\) \+ Int64\(\-94\) \+ Int64\(\-93\) \+ Int64\(3\) \+ Int64\(83\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\) \* Int64\(96\) AS col2" at position 0 and "Int64\(81\) \+ Int64\(\-94\) \+ Int64\(\-93\) \+ Int64\(3\) \+ Int64\(83\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 64 - COUNT ( * ) * 85 * 96 AS col2, + 81 + - 94 + - 93 + + 3 + 83 * 64 AS col2 # Datafusion - Datafusion expected results: @@ -12742,7 +12742,7 @@ SELECT COALESCE ( - 63, ( - - 84 ) * COALESCE ( - 1, 4 + + + 86 ) * + COUNT ( DI # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -3216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(48\) \* Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) \* Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + ( 66 ) AS col0, + COUNT ( * ) * + 48 * - 67 AS col0 query II rowsort label-2425 @@ -13526,7 +13526,7 @@ SELECT - 10 * + + COUNT ( * ) + - 87 * - 75 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -306 # Datafusion - Expected - -18792 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-1\) \* \(\- Int64\(\-9\)\) AS col0" at position 0 and "Int64\(\-88\) \+ Int64\(58\) \+ Int64\(\-42\) \+ nullif\(Int64\(78\), \(\- count\(\*\)\)\) \* Int64\(\-12\) \* Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-1\) \* \(\- Int64\(\-9\)\) AS col0" at position 0 and "Int64\(\-88\) \+ Int64\(58\) \+ Int64\(\-42\) \+ nullif\(Int64\(78\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-12\) \* Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 * - 1 * - - 9 AS col0, - 88 + 58 + - 42 + + NULLIF ( + 78, ( - COUNT ( * ) ) ) * - 12 * 20 AS col0 query I rowsort label-2573 @@ -13973,7 +13973,7 @@ SELECT + 21 col2, 62 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\(\*\)\)\) AS col1" at position 0 and "Int64\(\-46\) / 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\(\-46\) / Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) col1, - 46 / + 70 col1 query I rowsort label-2658 @@ -14716,7 +14716,7 @@ SELECT 72 col1, 44 * - 1 * NULLIF ( - 56, COALESCE ( + 78, + + 49 - + 3 / + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - -1692587 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "Int64\(29\) \+ Int64\(2\) \+ Int64\(64\) \+ Int64\(70\) \* \(\- \(\- Int64\(36\)\)\) \* Int64\(\-5\) \- Int64\(82\) \+ Int64\(25\) \* Int64\(40\) \* Int64\(42\) \* Int64\(40\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(29\) \+ Int64\(2\) \+ Int64\(64\) \+ Int64\(70\) \* \(\- \(\- Int64\(36\)\)\) \* Int64\(\-5\) \- Int64\(82\) \+ Int64\(25\) \* Int64\(40\) \* Int64\(42\) \* Int64\(40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 57 AS col2, + 29 + 2 + 64 + 70 * - - ( 36 ) * - 5 - 82 + 25 * + 40 * 42 * 40 * - COUNT ( * ) AS col2 query I rowsort @@ -14895,7 +14895,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\(\*\) 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 @@ -15109,7 +15109,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\(\*\) AS col1" at position 1 have the 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 @@ -16722,7 +16722,7 @@ SELECT ALL ( + + 58 ) * - + ( + + CASE WHEN NOT ( NULL ) NOT BETWEEN AVG ( DISTI # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-32\), 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 "\(\- coalesce\(Int64\(\-32\), 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 - COALESCE ( - 32, + COUNT ( * ) ) AS col1, - 4 AS col1 query II rowsort @@ -16849,7 +16849,7 @@ SELECT ALL - 88 * + NULLIF ( - 11, - 7 + + - 8 + - ( 88 ) ) - 12 AS col0, + 38 # Datafusion - Expected - -22946 # Datafusion - Expected - 57 # Datafusion - Expected - -579 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(57\)\)\) AS col2" at position 1 and "count\(\*\) \* Int64\(25\) \* min\(Int64\(28\)\) \+ \(\- count\(Int64\(61\)\)\) \+ \(\- Int64\(6\)\) \- Int64\(53\) \* Int64\(24\) 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\(57\)\)\) AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\) \* min\(Int64\(28\)\) \+ \(\- count\(Int64\(61\)\)\) \+ \(\- Int64\(6\)\) \- Int64\(53\) \* Int64\(24\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 52 * + - 22 * 20 + - + 66, - ( - + 57 ) AS col2, COUNT ( * ) * + 25 * + MIN ( + + 28 ) + + - COUNT ( 61 ) + - + 6 - 53 * 24 AS col2 query I rowsort @@ -18055,7 +18055,7 @@ SELECT - ( - - 59 ) * 79 - - ( + 3 ) - NULLIF ( + 66, - + 54 * 12 + - 74 + - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(93\) \- CASE \(\- count\(\*\)\) WHEN Int64\(5\) THEN Int64\(72\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(93\) \- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(5\) THEN Int64\(72\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 14 AS col0, + 93 - + + CASE - COUNT ( * ) WHEN 5 THEN 72 END AS col0 query I rowsort label-3433 @@ -21533,7 +21533,7 @@ SELECT DISTINCT + COUNT ( * ) - 67 + - 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(\-19\) \* \(\- \(\- max\(Int64\(\-74\)\)\)\) \* Int64\(42\) \* \(\- \(\- \(\- CASE \(\- CASE \(\- Int64\(19\)\) WHEN \(\- Int64\(9\)\) THEN NULL WHEN Int64\(\-18\) \+ Int64\(77\) THEN NULL WHEN \(\- nullif\(Int64\(\-39\), Int64\(65\) \* Int64\(\-98\)\)\) THEN nullif\(Int64\(17\), Int64\(\-22\)\) END\) WHEN Int64\(\-62\) \+ Int64\(22\) \* Int64\(49\) THEN Int64\(86\) WHEN Int64\(90\) \* Int64\(96\) THEN Int64\(\-43\) / Int64\(29\) ELSE CASE Int64\(\-56\) WHEN count\(\*\) \* count\(\*\) THEN Int64\(64\) \* nullif\(Int64\(34\), Int64\(26\)\) \+ \(\- min\(DISTINCT Int64\(14\)\)\) WHEN Int64\(30\) / \(\- nullif\(Int64\(17\), Int64\(\-24\) \- Int64\(63\)\)\) \+ Int64\(81\) \* Int64\(19\) THEN Int64\(96\) END \* Int64\(47\) \+ Int64\(\-46\) END\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(\-19\) \* \(\- \(\- max\(Int64\(\-74\)\)\)\) \* Int64\(42\) \* \(\- \(\- \(\- CASE \(\- CASE \(\- Int64\(19\)\) WHEN \(\- Int64\(9\)\) THEN NULL WHEN Int64\(\-18\) \+ Int64\(77\) THEN NULL WHEN \(\- nullif\(Int64\(\-39\), Int64\(65\) \* Int64\(\-98\)\)\) THEN nullif\(Int64\(17\), Int64\(\-22\)\) END\) WHEN Int64\(\-62\) \+ Int64\(22\) \* Int64\(49\) THEN Int64\(86\) WHEN Int64\(90\) \* Int64\(96\) THEN Int64\(\-43\) / Int64\(29\) ELSE CASE Int64\(\-56\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(64\) \* nullif\(Int64\(34\), Int64\(26\)\) \+ \(\- min\(DISTINCT Int64\(14\)\)\) WHEN Int64\(30\) / \(\- nullif\(Int64\(17\), Int64\(\-24\) \- Int64\(63\)\)\) \+ Int64\(81\) \* Int64\(19\) THEN Int64\(96\) END \* Int64\(47\) \+ Int64\(\-46\) END\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 84 AS col1, - 19 * - ( - MAX ( ALL - 74 ) ) * + 42 * - + ( ( - - CASE - CASE - + 19 WHEN - + 9 THEN NULL WHEN - 18 + + + 77 THEN NULL WHEN - NULLIF ( - 39, ( 65 ) * - 98 ) THEN NULLIF ( + 17, - 22 ) END WHEN - 62 + + ( 22 ) * 49 THEN + 86 WHEN 90 * 96 THEN - 43 / 29 ELSE CASE - 56 WHEN ( + COUNT ( * ) ) * + COUNT ( * ) THEN + 64 * NULLIF ( 34, + 26 ) + - MIN ( DISTINCT 14 ) WHEN 30 / - NULLIF ( + ( 17 ), ( - 24 ) - 63 ) + 81 * 19 THEN + 96 END * 47 + - 46 END ) ) AS col1 query I rowsort @@ -21956,7 +21956,7 @@ SELECT ALL 63 * - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4560 # Datafusion - Expected - -4950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* Int64\(95\) \+ Int64\(\-47\) \* Int64\(\-95\) AS col1" at position 0 and "Int64\(90\) \* \(\- 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\(1\) \* Int64\(95\) \+ Int64\(\-47\) \* Int64\(\-95\) AS col1" at position 0 and "Int64\(90\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 1 * 95 + - 47 * - 95 AS col1, 90 * + - COUNT ( * ) * - - 55 AS col1 # Datafusion - Datafusion expected results: @@ -22478,7 +22478,7 @@ SELECT ( - - 91 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(40\) \+ min\(DISTINCT Int64\(91\)\) \+ \(\- count\(Int64\(\-59\)\)\) \* CASE count\(\*\) WHEN \(\- Int64\(\-71\)\) THEN \(\- Int64\(\-43\)\) \+ Int64\(6\) END \+ 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\(37\) AS col0" at position 0 and "Int64\(40\) \+ min\(DISTINCT Int64\(91\)\) \+ \(\- count\(Int64\(\-59\)\)\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-71\)\) THEN \(\- Int64\(\-43\)\) \+ Int64\(6\) END \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 37 AS col0, 40 + MIN ( DISTINCT 91 ) + + - COUNT ( - 59 ) * CASE COUNT ( * ) WHEN - - 71 THEN - - 43 + + + 6 END + + 31 AS col0 query I rowsort @@ -22803,7 +22803,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 35 -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\(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\(\-55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 AS col0, + COUNT ( * ) * + 35 col0 query II rowsort @@ -22862,7 +22862,7 @@ SELECT 43 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(85\) AS col2" at position 0 and "\(\- CASE count\(\*\) WHEN Int64\(72\) THEN count\(Int64\(17\)\) / Int64\(15\) \- \(\- avg\(Int64\(93\)\)\) \* Int64\(52\) \+ \(\- CASE Int64\(\-22\) WHEN \(\- Int64\(32\)\) THEN Int64\(\-79\) WHEN CASE \(\- \(\- coalesce\(Int64\(13\), Int64\(85\), Int64\(26\) / Int64\(\-30\)\)\)\) WHEN \(\- count\(\*\)\) THEN NULL WHEN Int64\(11\) THEN NULL WHEN CAST\(Int64\(88\) AS Int32\) \* Int64\(\-79\) \+ Int64\(80\) THEN sum\(DISTINCT Int64\(37\)\) \+ Int64\(73\) END THEN Int64\(17\) END\) WHEN Int64\(44\) \* Int64\(\-69\) THEN NULL WHEN nullif\(Int64\(95\), Int64\(33\)\) \+ nullif\(\(\- count\(\*\)\) \+ coalesce\(Int64\(82\) \- coalesce\(count\(\*\), Int64\(17\) \+ count\(\*\)\), count\(\*\) / nullif\(Int64\(58\), Int64\(70\) \+ Int64\(51\)\)\) \* Int64\(51\), Int64\(46\) \+ Int64\(58\)\) THEN NULL ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(85\) AS col2" at position 0 and "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(72\) THEN count\(Int64\(17\)\) / Int64\(15\) \- \(\- avg\(Int64\(93\)\)\) \* Int64\(52\) \+ \(\- CASE Int64\(\-22\) WHEN \(\- Int64\(32\)\) THEN Int64\(\-79\) WHEN CASE \(\- \(\- coalesce\(Int64\(13\), Int64\(85\), Int64\(26\) / Int64\(\-30\)\)\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(11\) THEN NULL WHEN CAST\(Int64\(88\) AS Int32\) \* Int64\(\-79\) \+ Int64\(80\) THEN sum\(DISTINCT Int64\(37\)\) \+ Int64\(73\) END THEN Int64\(17\) END\) WHEN Int64\(44\) \* Int64\(\-69\) THEN NULL WHEN nullif\(Int64\(95\), Int64\(33\)\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ coalesce\(Int64\(82\) \- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\)\), count\(Int64\(1\)\) AS count\(\*\) / nullif\(Int64\(58\), Int64\(70\) \+ Int64\(51\)\)\) \* Int64\(51\), Int64\(46\) \+ Int64\(58\)\) THEN NULL ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 13 + 85 AS col2, - CASE + COUNT ( * ) WHEN + + 72 THEN COUNT ( 17 ) / 15 - + - AVG ( ALL + 93 ) * 52 + - + CASE - 22 WHEN - + 32 THEN - 79 WHEN + CASE - - COALESCE ( + 13, 85, + 26 / - 30 ) WHEN - COUNT ( * ) THEN NULL WHEN 11 THEN NULL WHEN + CAST ( + 88 AS INTEGER ) * - 79 + 80 THEN SUM ( DISTINCT 37 ) + 73 END THEN + 17 END WHEN 44 * - 69 THEN NULL WHEN NULLIF ( 95, 33 ) + + NULLIF ( ( - COUNT ( * ) ) + COALESCE ( 82 - + COALESCE ( + COUNT ( * ), 17 + COUNT ( * ) ), COUNT ( * ) / NULLIF ( 58, 70 + 51 ) ) * 51, 46 + 58 ) THEN NULL ELSE NULL END col2 query I rowsort label-4354 @@ -23304,7 +23304,7 @@ SELECT + 62 AS col0, 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ coalesce\(\(\- count\(\*\)\), Int64\(77\), \(\- Int64\(\-72\)\) \+ max\(DISTINCT Int64\(7\)\)\) 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 "Int64\(11\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(77\), \(\- Int64\(\-72\)\) \+ max\(DISTINCT Int64\(7\)\)\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 + COALESCE ( - COUNT ( * ), 77, - - 72 + + + MAX ( DISTINCT 7 ) ) AS col2, 65 col2 query I rowsort @@ -26734,7 +26734,7 @@ SELECT 64 + + + 25 + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5964 # Datafusion - Expected - -1400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* \(\- Int64\(\-84\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(35\) \* 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\(71\) \* \(\- Int64\(\-84\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(35\) \* Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * - - 84 AS col2, COUNT ( * ) * + 35 * - 40 AS col2 query I rowsort @@ -26925,7 +26925,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\(\*\)\) AS col2" at position 0 and "count\(\(\- \(\- nullif\(Int64\(11\), \(\- 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\(\(\- \(\- nullif\(Int64\(11\), \(\- Int64\(\-4\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, + COUNT ( - - NULLIF ( 11, - - 4 ) ) AS col2 query I rowsort @@ -28056,13 +28056,13 @@ SELECT DISTINCT 73 * + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \* \(\- count\(\*\)\) \+ \(\- Int64\(39\)\) 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\(\-51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(39\)\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. 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\(\*\)\) \+ 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 @@ -28549,7 +28549,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\(\*\) / count\(\*\) AS col2" at position 1 have the 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 @@ -28794,7 +28794,7 @@ SELECT DISTINCT SUM ( DISTINCT + 32 ) - - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -5073 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- Int64\(71\)\) AS col1" at position 0 and "Int64\(\-73\) \* Int64\(69\) \- count\(\*\) \- \(\- Int64\(\-35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- Int64\(71\)\) AS col1" at position 0 and "Int64\(\-73\) \* Int64\(69\) \- count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 1 * - + 71 AS col1, - 73 * 69 - + COUNT ( * ) - - - 35 col1 query I rowsort @@ -28871,7 +28871,7 @@ SELECT + CAST ( + 41 AS INTEGER ) * + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -3713 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \* \(\- count\(\*\)\) \+ Int64\(\-46\) \+ Int64\(\-80\) AS col1" at position 0 and "coalesce\(Int64\(79\), Int64\(5\) \- Int64\(\-32\) \+ Int64\(66\) \* Int64\(3\)\) \* 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\(\-51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-46\) \+ Int64\(\-80\) AS col1" at position 0 and "coalesce\(Int64\(79\), Int64\(5\) \- Int64\(\-32\) \+ Int64\(66\) \* Int64\(3\)\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 51 * - COUNT ( * ) + - 46 + - 80 AS col1, COALESCE ( + 79, + + 5 - - 32 + + + 66 * 3 ) * - 47 AS col1 query I rowsort @@ -29195,7 +29195,7 @@ SELECT DISTINCT - 1 * - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(\-65\) \* count\(\*\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(\-65\) \* 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 + 37 AS col0, - 65 * + COUNT ( * ) * + - COUNT ( * ) AS col0 query I rowsort label-5560 @@ -29249,7 +29249,7 @@ SELECT ALL + 27 + + 64 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 1728208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "Int64\(\-8\) \* Int64\(63\) \* count\(\*\) \* Int64\(78\) \* Int64\(\-44\) \- \(\- Int64\(76\)\) \* 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\(\-39\) AS col2" at position 0 and "Int64\(\-8\) \* Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) \* Int64\(\-44\) \- \(\- Int64\(76\)\) \* Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 39 AS col2, - 8 * + 63 * + ( COUNT ( * ) ) * 78 * - 44 - - ( + + 76 ) * - 20 AS col2 query II rowsort label-5570 @@ -30044,7 +30044,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\(\*\) AS Int32\) \* \(\- 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 @@ -30958,7 +30958,7 @@ SELECT DISTINCT - COUNT ( * ) - - NULLIF ( - 41, - 76 + 54 / 48 ) * + + 79 # Datafusion - Expected - -20 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 1 and "\(\- 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\(97\) 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 - + 20 AS col2, + 97 AS col1, - COUNT ( * ) AS col1 query I rowsort label-5895 @@ -31327,7 +31327,7 @@ SELECT ALL 38 * 76 + + + 7 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1407 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* Int64\(49\) \+ Int64\(56\) \* Int64\(9\) AS col0" at position 0 and "Int64\(52\) / \(\- count\(\*\)\) AS col0" at position 1 have the 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\(49\) \+ Int64\(56\) \* Int64\(9\) 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 ALL - 39 * 49 + 56 * + + 9 AS col0, 52 / - COUNT ( * ) AS col0 # Datafusion - Types were automatically converted from: @@ -31690,7 +31690,7 @@ SELECT DISTINCT COUNT ( * ) * + 81 # Datafusion - Expected - -1 # Datafusion - Expected - NULL # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(\-67\) \* CASE Int64\(\-31\) WHEN Int64\(\-2\) THEN \(\- Int64\(22\)\) \+ Int64\(\-85\) \* \(\- \(\- count\(\*\)\)\) ELSE NULL END AS col2" at position 1 and "\(\- Int64\(55\)\) 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\(66\) \+ Int64\(\-67\) \* CASE Int64\(\-31\) WHEN Int64\(\-2\) THEN \(\- Int64\(22\)\) \+ Int64\(\-85\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) ELSE NULL END AS col2" at position 1 and "\(\- Int64\(55\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, 66 + - 67 * + + CASE - 31 WHEN - 2 THEN - + 22 + - 85 * - - COUNT ( * ) ELSE NULL END AS col2, - + 55 AS col2 # Datafusion - Datafusion expected results: @@ -32083,7 +32083,7 @@ SELECT + 14 + 52 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( ( + + COUNT ( * ) ) ), + COUNT ( * ) query I rowsort label-6107 @@ -32094,7 +32094,7 @@ SELECT + - ( - 26 ) * + + MAX ( 45 ) * 72 * 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -4361 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(89\) \* count\(\*\) \* 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\(78\) AS col2" at position 0 and "Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 AS col2, 89 * COUNT ( * ) * - 49 col2 query I rowsort label-6109 @@ -33177,7 +33177,7 @@ SELECT + 58 * - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ Int64\(\-80\) \- Int64\(47\) AS col0" at position 0 and "count\(\*\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ Int64\(\-80\) \- Int64\(47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 64 + - 80 - 47 AS col0, COUNT ( * ) * + + 64 AS col0 query I rowsort label-6314 @@ -33327,7 +33327,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\(\*\) 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 @@ -33521,7 +33521,7 @@ SELECT ALL 12 + 63 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -606 # Datafusion - Expected - 6545273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* count\(\*\) \* Int64\(39\) \- Int64\(\-19\) \* Int64\(81\) AS col1" at position 0 and "Int64\(46\) \* Int64\(\-51\) \* Int64\(\-3\) \* \(\- \(\- Int64\(62\)\)\) \* coalesce\(Int64\(15\), Int64\(36\)\) \+ CAST\(Int64\(\-8\) AS Int32\) / Int64\(17\) \- nullif\(Int64\(67\), Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(39\) \- Int64\(\-19\) \* Int64\(81\) AS col1" at position 0 and "Int64\(46\) \* Int64\(\-51\) \* Int64\(\-3\) \* \(\- \(\- Int64\(62\)\)\) \* coalesce\(Int64\(15\), Int64\(36\)\) \+ CAST\(Int64\(\-8\) AS Int32\) / Int64\(17\) \- nullif\(Int64\(67\), Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 * + COUNT ( * ) * 39 - - 19 * + + 81 AS col1, 46 * - 51 * - 3 * - - ( 62 ) * + COALESCE ( + ( + + 15 ), + + 36 ) + + + CAST ( - 8 AS INTEGER ) / + 17 - + NULLIF ( + 67, 65 ) AS col1 query I rowsort label-6381 @@ -34346,7 +34346,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\(\*\) 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 @@ -34954,7 +34954,7 @@ SELECT + SUM ( ALL NULLIF ( - 43, - 5 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ count\(\*\) \- Int64\(16\) \* Int64\(63\) / \(\- Int64\(\-98\)\) 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\(76\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(16\) \* Int64\(63\) / \(\- Int64\(\-98\)\) 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 76 + COUNT ( * ) - + 16 * 63 / - - 98 AS col1, 17 AS col1 query I rowsort label-6653 @@ -35547,7 +35547,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\(\*\) 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 @@ -35771,7 +35771,7 @@ SELECT + COUNT ( DISTINCT + - 25 ) * 58 - 80 - ( + + 85 ) * 10 - ( - 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 8190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(16\) / \(\- count\(\*\)\) \* CAST\(NULL AS Int32\), Int64\(\-38\)\) AS col1" at position 0 and "Int64\(91\) \* Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(16\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\), Int64\(\-38\)\) AS col1" at position 0 and "Int64\(91\) \* Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + 82, 16 / - COUNT ( * ) * CAST ( NULL AS INTEGER ), - 38 ) AS col1, + 91 * 90 AS col1 query I rowsort @@ -37748,7 +37748,7 @@ SELECT + 28 * + - 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 98 -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\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 25 AS col0, + COUNT ( * ) * - - 98 col0 query I rowsort label-7189 @@ -38122,7 +38122,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\(\*\) AS col2" at position 1 have the 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 @@ -38393,7 +38393,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\(\*\) 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 @@ -38888,7 +38888,7 @@ SELECT + 58 * - 26 * 24 + + + 6 + - 3 / + 51 + - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(\*\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 95 AS col1, + 2 AS col1 query II rowsort label-7403 @@ -39108,7 +39108,7 @@ SELECT + 22 * - + 49 / - + COUNT ( * ) # 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 "\(\- count\(\*\)\) \* Int64\(\-92\) 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\(\*\)\) \* Int64\(\-92\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - 92 AS col1, 3 AS col1 query I rowsort @@ -39282,7 +39282,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(\-46\) \+ Int64\(15\) AS col0" at position 0 and "min\(Int64\(\-62\)\) / Int64\(93\) / CAST\(Int64\(\-82\) AS Int32\) \+ Int64\(52\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(\*\) \* \(\- \(\- count\(Int64\(43\)\)\)\) \+ Int64\(53\) \* Int64\(97\) / CAST\(Int64\(14\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(\-46\) \+ Int64\(15\) AS col0" at position 0 and "min\(Int64\(\-62\)\) / Int64\(93\) / CAST\(Int64\(\-82\) AS Int32\) \+ Int64\(52\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(43\)\)\)\) \+ Int64\(53\) \* Int64\(97\) / CAST\(Int64\(14\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 + + - 46 + 15 AS col0, + MIN ( ALL - 62 ) / + 93 / CAST ( - 82 AS INTEGER ) + 52 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - - COUNT ( + 43 ) + 53 * 97 / CAST ( 14 AS INTEGER ) col0 query I rowsort label-7478 @@ -40057,7 +40057,7 @@ SELECT - ( + NULLIF ( - 84, COUNT ( - 73 ) - 89 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 736 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(33\) \+ Int64\(\-8\) \+ Int64\(\-22\) \+ \(\- count\(\*\)\) \+ Int64\(\-58\) AS col0" at position 0 and "Int64\(24\) \+ 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\(25\) \* Int64\(33\) \+ Int64\(\-8\) \+ Int64\(\-22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-58\) AS col0" at position 0 and "Int64\(24\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 * + 33 + ( + - 8 ) + + ( - 22 ) + + - COUNT ( * ) + + - 58 AS col0, 24 + - 29 AS col0 query I rowsort label-7626 @@ -40453,7 +40453,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\(\*\) AS col1" at position 1 have the 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: @@ -41082,7 +41082,7 @@ SELECT ALL - 51 + + 50 # 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 "coalesce\(Int64\(19\), \(\- Int64\(90\)\) \* count\(\*\) \* \(\- count\(\*\)\) \+ Int64\(16\), count\(\*\)\) AS col0" at position 1 have the 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 "coalesce\(Int64\(19\), \(\- Int64\(90\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(16\), count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 AS col0, + COALESCE ( 19, - + 90 * COUNT ( * ) * - COUNT ( * ) + + 16, + COUNT ( * ) ) AS col0 query I rowsort label-7821 @@ -41108,7 +41108,7 @@ SELECT DISTINCT - 70 + - ( + + 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "coalesce\(Int64\(16\), \(\- Int64\(11\)\) \* Int64\(\-93\) \+ Int64\(\-79\)\) / \(\- Int64\(\-63\)\) \* \(\- 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\(5\) AS col1" at position 0 and "coalesce\(Int64\(16\), \(\- Int64\(11\)\) \* Int64\(\-93\) \+ Int64\(\-79\)\) / \(\- Int64\(\-63\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 5 AS col1, ( + + COALESCE ( + 16, - + 11 * - 93 + - 79 ) ) / - - 63 * - COUNT ( * ) + 5 AS col1 query I rowsort @@ -43350,7 +43350,7 @@ SELECT ALL + MIN ( ALL 21 ) + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(49\) / count\(\*\) / Int64\(\-56\) \* \(\- Int64\(\-52\)\) \* \(\- 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 "Int64\(20\) \+ Int64\(49\) / count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-56\) \* \(\- Int64\(\-52\)\) \* \(\- 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 ALL 20 + + 49 / COUNT ( * ) / + - 56 * - - 52 * - COUNT ( * ) AS col0, 76 AS col0 query II rowsort @@ -46801,7 +46801,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\(\*\) AS col0" at position 1 have the 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 @@ -47867,7 +47867,7 @@ SELECT + COUNT ( * ) + + 1 + + MIN ( ALL + 70 ) + + 82 + 76 * 94 # 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\(\*\)\) 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 ALL - COUNT ( * ) col1, - 57 AS col1 query I rowsort label-9117 @@ -50117,7 +50117,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\(\*\) AS col0" at position 1 have the 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 @@ -51971,14 +51971,14 @@ SELECT ( + 78 ) + - - 40 * + - 15 * - COUNT ( * ) AS col1, COUNT ( * ) * + - SUM # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1263 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- count\(Int64\(\-51\)\)\) \+ Int64\(28\) AS col2" at position 0 and "CAST\(Int64\(27\) AS Int32\) \* Int64\(47\) \+ Int64\(75\) \- Int64\(42\) \+ Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(\-51\)\)\) \+ Int64\(28\) AS col2" at position 0 and "CAST\(Int64\(27\) AS Int32\) \* Int64\(47\) \+ Int64\(75\) \- Int64\(42\) \+ Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + ( - COUNT ( - 51 ) ) + + 28 AS col2, CAST ( + 27 AS INTEGER ) * + ( 47 ) + 75 - + 42 + + - 39 AS col2 # Datafusion - Datafusion expected results: # 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\(\*\) 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 @@ -52170,7 +52170,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\(\*\) AS col0" at position 1 have the 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 53463a5..f14d70a 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\(\*\) AS col2" at position 1 have the 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 @@ -1067,7 +1067,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\(\*\) AS col2" at position 0 and "CASE 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 @@ -2118,7 +2118,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \- Int64\(51\) \+ max\(Int64\(\-71\)\) AS col2" at position 0 and "count\(\*\) \* 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\(76\) \- Int64\(51\) \+ max\(Int64\(\-71\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 - 51 + + MAX ( + - 71 ) AS col2, COUNT ( * ) * 8 AS col2 query I rowsort @@ -2372,7 +2372,7 @@ SELECT 29 - 27 + + + 84 AS col2, 49 AS col2 # 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 "\(\- coalesce\(Int64\(13\), Int64\(49\)\)\) AS col2" at position 0 and "Int64\(\-28\) \+ nullif\(\(\- \(\- count\(\*\)\)\), 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 "\(\- coalesce\(Int64\(13\), Int64\(49\)\)\) AS col2" at position 0 and "Int64\(\-28\) \+ nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( 13, + + 49 ) AS col2, - 28 + + NULLIF ( - - COUNT ( * ), + 69 ) AS col2 query I rowsort label-450 @@ -3132,7 +3132,7 @@ SELECT ( + 14 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* count\(\*\) \+ Int64\(\-41\) AS col2" at position 0 and "max\(DISTINCT \(\- Int64\(\-9\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-41\) AS col2" at position 0 and "max\(DISTINCT \(\- Int64\(\-9\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 30 * + COUNT ( * ) + - 41 AS col2, MAX ( DISTINCT - - 9 ) AS col2 query I rowsort label-594 @@ -4107,7 +4107,7 @@ SELECT - 23 AS col2, 92 * 69 AS col1 # 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\(\*\)\) AS col0" at position 0 and "count\(Int64\(80\)\) \* Int64\(51\) \+ \(\- min\(Int64\(19\)\)\) / Int64\(29\) \+ 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 "count\(Int64\(80\)\) \* Int64\(51\) \+ \(\- min\(Int64\(19\)\)\) / Int64\(29\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, + COUNT ( + 80 ) * + 51 + + ( - MIN ( 19 ) ) / + 29 + - 71 AS col0 query I rowsort label-781 @@ -4312,7 +4312,7 @@ SELECT DISTINCT 6 + - COUNT ( * ) + + 68 * 43 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(85\) AS col2" at position 0 and "sum\(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\(\*\) \* Int64\(85\) AS col2" at position 0 and "sum\(Int64\(8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * 85 AS col2, + SUM ( 8 ) AS col2 query I rowsort label-819 @@ -4912,7 +4912,7 @@ SELECT - + ( + + 88 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- Int64\(26\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "min\(Int64\(71\)\) \- \(\- \(\- count\(\*\)\)\) \+ \(\- CAST\(Int64\(8\) AS Int32\)\) \+ Int64\(26\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- Int64\(26\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "min\(Int64\(71\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(8\) AS Int32\)\) \+ Int64\(26\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 37 + - + 26 + - + CAST ( NULL AS INTEGER ) col0, + MIN ( 71 ) - - - COUNT ( * ) + - CAST ( 8 AS INTEGER ) + + 26 * - ( - COUNT ( * ) ) * - 38 AS col0 query I rowsort @@ -5465,7 +5465,7 @@ SELECT 33 - - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(20\) \* \(\- Int64\(6\)\) \+ \(\- \(\- Int64\(28\)\)\) AS col0" at position 0 and "Int64\(\-91\) \* \(\- Int64\(\-35\)\) / CASE \(\- Int64\(\-73\)\) WHEN CAST\(CAST\(Int64\(\-4\) AS Int32\) AS Int32\) \* \(\- Int64\(92\)\) THEN Int64\(75\) \* Int64\(0\) \+ Int64\(33\) \+ Int64\(77\) WHEN \(\- \(\- count\(\*\)\)\) \+ CAST\(Int64\(26\) AS Int32\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(20\) \* \(\- Int64\(6\)\) \+ \(\- \(\- Int64\(28\)\)\) AS col0" at position 0 and "Int64\(\-91\) \* \(\- Int64\(\-35\)\) / CASE \(\- Int64\(\-73\)\) WHEN CAST\(CAST\(Int64\(\-4\) AS Int32\) AS Int32\) \* \(\- Int64\(92\)\) THEN Int64\(75\) \* Int64\(0\) \+ Int64\(33\) \+ Int64\(77\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(Int64\(26\) AS Int32\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 7 + + + 20 * - + 6 + + ( - - ( + 28 ) ) AS col0, - 91 * - - 35 / + CASE - - 73 WHEN + CAST ( + ( + CAST ( - 4 AS INTEGER ) ) AS INTEGER ) * - + 92 THEN 75 * + 0 + + 33 + 77 WHEN - - COUNT ( * ) + + CAST ( 26 AS INTEGER ) THEN NULL END AS col0 query I rowsort label-1037 @@ -5816,7 +5816,7 @@ SELECT + 40 * + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(90\) \- count\(\*\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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\(90\) \- 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 75 col2, 90 - + + COUNT ( * ) + - COUNT ( * ) AS col2 query I rowsort label-1104 @@ -6951,7 +6951,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\(\-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\(\*\) 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 @@ -9101,7 +9101,7 @@ SELECT + 16 * - 25 + + 72 * - - 21 - + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "count\(\*\) \* Int64\(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\(36\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 col0, COUNT ( * ) * + 95 AS col0 query I rowsort @@ -10475,7 +10475,7 @@ SELECT ALL - COALESCE ( - 4, + ( - 42 ) ) * CAST ( - 90 AS INTEGER ) * 26 AS col # Datafusion - Expected - 43 # Datafusion - Expected - 49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-7\)\) \+ Int64\(50\) AS col2" at position 0 and "CASE \(\- Int64\(82\)\) WHEN Int64\(36\) \* \(\- Int64\(76\)\) \* Int64\(32\) \* Int64\(\-84\) THEN \(\- Int64\(5\)\) \+ Int64\(93\) ELSE NULL END \* \(Int64\(\-19\) \+ 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\(\-7\)\) \+ Int64\(50\) AS col2" at position 0 and "CASE \(\- Int64\(82\)\) WHEN Int64\(36\) \* \(\- Int64\(76\)\) \* Int64\(32\) \* Int64\(\-84\) THEN \(\- Int64\(5\)\) \+ Int64\(93\) ELSE NULL END \* \(Int64\(\-19\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MAX ( ALL - 7 ) + + + 50 AS col2, 49, + CASE - + 82 WHEN 36 * - + 76 * ( 32 * - 84 ) THEN - ( 5 ) + 93 ELSE NULL END * ( - 19 + COUNT ( * ) ) col2 query I rowsort @@ -11764,7 +11764,7 @@ SELECT + MAX ( + - 46 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- sum\(Int64\(\-60\)\)\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-20\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- sum\(Int64\(\-60\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-20\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 70 AS col2, CAST ( NULL AS INTEGER ) * - SUM ( ALL - 60 ) * - ( + - COUNT ( * ) ) * - 20 + - 88 AS col2 query I rowsort @@ -13126,7 +13126,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\(\*\) 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 @@ -13305,7 +13305,7 @@ SELECT + SUM ( - + 57 ) # Datafusion - Expected - -2894093 # Datafusion - Expected - -36 # Datafusion - Expected - 1975 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(76\) \* Int64\(\-70\) \* Int64\(17\) \+ \(\- Int64\(13\)\) AS col1" at position 0 and "\(\- Int64\(\-22\)\) \* \(\- count\(\*\)\) \* Int64\(\-91\) \+ Int64\(\-1\) \- Int64\(26\) 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\(32\) \* Int64\(76\) \* Int64\(\-70\) \* Int64\(17\) \+ \(\- Int64\(13\)\) AS col1" at position 0 and "\(\- Int64\(\-22\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-91\) \+ Int64\(\-1\) \- Int64\(26\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 * 76 * - 70 * 17 + - + 13 AS col1, 13 / 62 - - - 36 col2, - - 22 * - + COUNT ( * ) * - 91 + - 1 - + 26 col1 query I rowsort label-2535 @@ -13495,7 +13495,7 @@ SELECT ALL + 98 + + - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ Int64\(5\) \+ count\(Int64\(23\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(43\), count\(\*\)\)\) AS col1" at position 1 have the 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\(5\) \+ count\(Int64\(23\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(43\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 34 + 5 + COUNT ( 23 ) AS col1, - NULLIF ( + 43, + COUNT ( * ) ) AS col1 # Datafusion - Types were automatically converted from: @@ -14417,7 +14417,7 @@ SELECT COALESCE ( 66, + 91 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 325500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(70\) \* \(\- nullif\(Int64\(50\), \(\- count\(\*\)\)\)\) AS col0" at position 1 have the 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\(\-93\) \* Int64\(70\) \* \(\- nullif\(Int64\(50\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 AS col0, - 93 * 70 * - NULLIF ( 50, + - COUNT ( * ) ) AS col0 query I rowsort label-2746 @@ -15183,7 +15183,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\(\*\) 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: @@ -16094,7 +16094,7 @@ SELECT ALL - + 35 AS col0, + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -3980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-87\) \* Int64\(45\) \- 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\(\-87\) \* Int64\(45\) \- Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, - 87 * + + 45 - + + 65 AS col2 query I rowsort @@ -16202,7 +16202,7 @@ SELECT 92 * + NULLIF ( + 32, COUNT ( * ) ) # Datafusion - Expected - 29 # Datafusion - Expected - 5 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \- Int64\(4\) AS col0" at position 0 and "\(\- 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\(33\) \- Int64\(4\) 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 33 - 4 AS col0, - 43 + - COUNT ( * ) + + NULLIF ( - - 49, + 46 ) / - - COUNT ( * ) AS col1, - COUNT ( * ) AS col0 query I rowsort @@ -16366,7 +16366,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\(\*\) AS col0" at position 1 have the 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 @@ -16519,7 +16519,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\(\*\) 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 @@ -17057,7 +17057,7 @@ SELECT ALL - COUNT ( * ) * - 67 * - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3216 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-93\) \+ Int64\(\-86\) \* Int64\(\-39\) \+ Int64\(\-45\) 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\(\*\) \* Int64\(\-93\) \+ Int64\(\-86\) \* Int64\(\-39\) \+ Int64\(\-45\) 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 ( * ) * - 93 + - 86 * - 39 + + - 45 AS col2, 5 AS col2 query I rowsort @@ -17319,7 +17319,7 @@ SELECT 41 - - ( 69 ) * + - MIN ( ALL - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(39\) \* Int64\(\-65\) \* CASE Int64\(23\) WHEN Int64\(\-6\) THEN NULL WHEN count\(\*\) THEN count\(Int64\(\-4\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(39\) \* Int64\(\-65\) \* CASE Int64\(23\) WHEN Int64\(\-6\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(\-4\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 10 AS col1, 39 * - 65 * + CASE 23 WHEN - 6 THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( ALL + - 4 ) END AS col1 # Datafusion - Datafusion expected results: @@ -19314,7 +19314,7 @@ SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "CASE Int64\(20\) WHEN \(\- count\(\*\)\) THEN Int64\(\-18\) WHEN Int64\(63\) \* Int64\(78\) THEN NULL END / \(\- \(\- Int64\(\-14\)\)\) \+ Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "CASE Int64\(20\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-18\) WHEN Int64\(63\) \* Int64\(78\) THEN NULL END / \(\- \(\- Int64\(\-14\)\)\) \+ Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 72 AS col1, CASE + 20 WHEN - + ( COUNT ( * ) ) THEN + - 18 WHEN 63 * + 78 THEN NULL END / - ( - - 14 ) + 37 AS col1 query I rowsort @@ -19929,7 +19929,7 @@ SELECT + - 65 * 87 - + + 57 + - + 12 * - 53 + - - 7 col1 # 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\(9\) \- Int64\(\-49\) \+ \(\- Int64\(43\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-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 + 9 - - 49 + - + 43 AS col1, - COUNT ( * ) AS col1 query II rowsort @@ -20702,7 +20702,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\(\*\) 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 @@ -20807,7 +20807,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\(\*\) 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 @@ -22062,7 +22062,7 @@ SELECT + + 19 AS col0, 30 + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* \(\- 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 "Int64\(\-90\) \* \(\- 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 ALL + - 90 * - COUNT ( * ) AS col2, 86 AS col2 query I rowsort @@ -22435,7 +22435,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 5219 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) AS col0" at position 0 and "Int64\(58\) \* Int64\(90\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) AS col0" at position 0 and "Int64\(58\) \* Int64\(90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 59 AS col0, 58 * + 90 + - COUNT ( * ) AS col0 query I rowsort @@ -22840,7 +22840,7 @@ SELECT + 46 AS col1, 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3855 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-57\) \- Int64\(\-30\) \* \(\- Int64\(81\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-57\) \- Int64\(\-30\) \* \(\- 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 25 * - 57 - - 30 * - + 81 AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -23821,7 +23821,7 @@ SELECT ALL + 63 / + - CAST ( 64 AS INTEGER ) # 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\(\*\)\) 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 + - COUNT ( * ) AS col0, 12 AS col0 query I rowsort @@ -24196,7 +24196,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -24329,7 +24329,7 @@ SELECT DISTINCT - 57 * - 7 * - 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1071 # Datafusion - Expected - -384 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(63\) AS col2" at position 0 and "\(\- CASE Int64\(99\) WHEN Int64\(19\) \+ \(\- count\(\*\)\) \- Int64\(\-74\) THEN coalesce\(Int64\(91\), Int64\(9\), Int64\(63\) \+ Int64\(8\)\) \* \(\- count\(\*\)\) ELSE sum\(Int64\(8\)\) \* Int64\(48\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(63\) AS col2" at position 0 and "\(\- CASE Int64\(99\) WHEN Int64\(19\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-74\) THEN coalesce\(Int64\(91\), Int64\(9\), Int64\(63\) \+ Int64\(8\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE sum\(Int64\(8\)\) \* Int64\(48\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 17 * + 63 AS col2, - CASE 99 WHEN + 19 + - COUNT ( * ) - - 74 THEN + COALESCE ( + + 91, + + 9, + 63 + + 8 ) * - COUNT ( * ) ELSE SUM ( ALL 8 ) * + ( 48 ) END col2 query I rowsort label-4642 @@ -25311,7 +25311,7 @@ SELECT ALL + + 40 * + 95 + + 98 + + + 26 * - - ( - 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "nullif\(Int64\(\-96\), Int64\(9\) \- Int64\(92\) \+ Int64\(53\)\) \- Int64\(62\) \+ count\(\*\) \* coalesce\(\(\- Int64\(\-48\)\), CAST\(Int64\(41\) AS Int32\) \* sum\(DISTINCT Int64\(71\)\)\) / Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "nullif\(Int64\(\-96\), Int64\(9\) \- Int64\(92\) \+ Int64\(53\)\) \- Int64\(62\) \+ count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- Int64\(\-48\)\), CAST\(Int64\(41\) AS Int32\) \* sum\(DISTINCT Int64\(71\)\)\) / Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 60 ) AS col0, + NULLIF ( - 96, 9 - 92 + + 53 ) - + 62 + + + COUNT ( * ) * COALESCE ( - - 48, + CAST ( + 41 AS INTEGER ) * SUM ( DISTINCT 71 ) ) / 54 AS col0 query I rowsort label-4828 @@ -26242,7 +26242,7 @@ SELECT DISTINCT 55 * - ( 62 ) # 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\(\*\)\) AS col2" at position 0 and "Int64\(\-96\) \* \(\- Int64\(22\)\) / Int64\(49\) / \(\- Int64\(68\)\) \+ max\(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\(\-96\) \* \(\- Int64\(22\)\) / Int64\(49\) / \(\- Int64\(68\)\) \+ max\(Int64\(20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( ( COUNT ( * ) ) ) AS col2, - 96 * - + 22 / 49 / ( - + 68 ) + MAX ( ALL + ( + 20 ) ) col2 query II rowsort @@ -28776,7 +28776,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\(\*\) 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 @@ -29843,7 +29843,7 @@ SELECT ALL - 93 col1, COUNT ( + + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- \(\- min\(Int64\(\-65\)\)\) 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\(\*\) \- \(\- min\(Int64\(\-65\)\)\) 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 ( * ) - - + MIN ( - 65 ) AS col1, - 51 AS col1 query II rowsort label-5693 @@ -30122,7 +30122,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\(\*\) 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 @@ -31268,7 +31268,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\(\*\) 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 @@ -31745,7 +31745,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\(\*\) 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 @@ -31938,7 +31938,7 @@ SELECT ALL + 46 - - 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "nullif\(nullif\(Int64\(76\), count\(\*\)\), Int64\(9\) \* \(\- Int64\(\-58\)\) \* Int64\(72\) \+ Int64\(31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "nullif\(nullif\(Int64\(76\), count\(Int64\(1\)\) AS count\(\*\)\), Int64\(9\) \* \(\- Int64\(\-58\)\) \* Int64\(72\) \+ Int64\(31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 77 AS col1, NULLIF ( + NULLIF ( + 76, COUNT ( * ) ), + 9 * - ( - 58 ) * + 72 + + 31 ) AS col1 query II rowsort label-6087 @@ -32766,7 +32766,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -33863,7 +33863,7 @@ SELECT ALL - COUNT ( * ) * - ( - - 42 ) * + 42 + ( - 82 ) AS col2 # 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 col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 89 ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-6454 @@ -34362,7 +34362,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - -261135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-79\) AS col2" at position 0 and "Int64\(78\) \* Int64\(62\) \* Int64\(\-54\) \+ count\(\*\) \+ 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\(\*\) \* Int64\(\-79\) AS col2" at position 0 and "Int64\(78\) \* Int64\(62\) \* Int64\(\-54\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - 79 AS col2, + 78 * + 62 * - 54 + COUNT ( * ) + + + 8 col2 query I rowsort label-6550 @@ -34496,7 +34496,7 @@ SELECT 82 * + ( COALESCE ( + - ( + 1 ), - - COUNT ( * ) ) ) AS col0, + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 1836 -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\(36\)\) \* 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\(\-26\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(36\)\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 26 AS col1, - COUNT ( * ) * - + 36 * 51 AS col1 query I rowsort label-6574 @@ -34792,7 +34792,7 @@ SELECT - SUM ( ALL 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ nullif\(count\(Int64\(11\)\), Int64\(\-33\)\) \+ \(\- \(\- 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 "Int64\(17\) \+ nullif\(count\(Int64\(11\)\), Int64\(\-33\)\) \+ \(\- \(\- 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 + 17 + + NULLIF ( COUNT ( ALL + 11 ), - 33 ) + - - COUNT ( * ) AS col2, 93 AS col2 query I rowsort label-6632 @@ -35342,7 +35342,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(\-35\) \* CASE Int64\(15\) WHEN count\(\*\) THEN NULL WHEN Int64\(80\) THEN Int64\(54\) \* \(\- count\(\*\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(\-35\) \* CASE Int64\(15\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(80\) THEN Int64\(54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 AS col1, - 35 * CASE + 15 WHEN + ( COUNT ( * ) ) THEN NULL WHEN + 80 THEN 54 * - COUNT ( * ) END col1 query I rowsort label-6741 @@ -36081,7 +36081,7 @@ SELECT ALL + 60 * + ( + 99 ) AS col0 # Datafusion - Expected - 95 # Datafusion - Expected - -6 # Datafusion - Expected - -540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-30\) \+ \(\- \(\- CASE Int64\(74\) WHEN \(\- Int64\(\-69\)\) THEN NULL ELSE Int64\(67\) \+ Int64\(\-77\) \* count\(\*\) END\)\) \* Int64\(51\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-30\) \+ \(\- \(\- CASE Int64\(74\) WHEN \(\- Int64\(\-69\)\) THEN NULL ELSE Int64\(67\) \+ Int64\(\-77\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\) \* Int64\(51\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 col2, - 6 AS col1, - 30 + - - CASE 74 WHEN - - 69 THEN NULL ELSE 67 + - 77 * COUNT ( * ) END * + 51 AS col2 query II rowsort @@ -38050,7 +38050,7 @@ SELECT 92 * ( - - 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(\-53\) AS col1" at position 0 and "CASE Int64\(73\) WHEN Int64\(\-61\) \+ CASE Int64\(\-67\) WHEN Int64\(\-25\) THEN Int64\(51\) \* \(\- Int64\(3\)\) END THEN \(\- \(\- nullif\(Int64\(78\), Int64\(71\)\)\)\) \+ Int64\(15\) WHEN Int64\(\-35\) \+ nullif\(\(\- CAST\(Int64\(11\) AS Int32\)\), \(\- CASE Int64\(72\) WHEN Int64\(72\) THEN Int64\(\-80\) \* Int64\(90\) ELSE NULL END\)\) \+ Int64\(83\) THEN NULL ELSE \(\- count\(\*\)\) END \* \(\- CASE Int64\(\-59\) \+ nullif\(Int64\(73\), Int64\(\-23\)\) WHEN count\(\*\) THEN NULL WHEN \(\- count\(\*\)\) THEN Int64\(\-77\) / Int64\(27\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(\-53\) AS col1" at position 0 and "CASE Int64\(73\) WHEN Int64\(\-61\) \+ CASE Int64\(\-67\) WHEN Int64\(\-25\) THEN Int64\(51\) \* \(\- Int64\(3\)\) END THEN \(\- \(\- nullif\(Int64\(78\), Int64\(71\)\)\)\) \+ Int64\(15\) WHEN Int64\(\-35\) \+ nullif\(\(\- CAST\(Int64\(11\) AS Int32\)\), \(\- CASE Int64\(72\) WHEN Int64\(72\) THEN Int64\(\-80\) \* Int64\(90\) ELSE NULL END\)\) \+ Int64\(83\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* \(\- CASE Int64\(\-59\) \+ nullif\(Int64\(73\), Int64\(\-23\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-77\) / Int64\(27\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 85 + - 53 AS col1, CASE 73 WHEN - 61 + + CASE - 67 WHEN + - 25 THEN + + 51 * - + 3 END THEN - - ( + NULLIF ( 78, 71 ) ) + 15 WHEN - 35 + NULLIF ( - CAST ( 11 AS INTEGER ), - CASE 72 WHEN + 72 THEN - 80 * 90 ELSE NULL END ) + + 83 THEN NULL ELSE - COUNT ( * ) END * - CASE - 59 + + NULLIF ( 73, - 23 ) WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - 77 / + 27 ELSE NULL END AS col1 query II rowsort @@ -38756,7 +38756,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\(\*\) 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 @@ -39333,7 +39333,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\(\*\) AS col1" at position 1 have the 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 - Datafusion expected results: @@ -39406,7 +39406,7 @@ SELECT - 31 col1, 7 # Datafusion - Expected - -40 # Datafusion - Expected - 243 # Datafusion - Expected - 6847 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- \(\- Int64\(\-41\)\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(7\) \* Int64\(42\) \- Int64\(45\) \+ \(\- 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\(\*\) \+ \(\- \(\- Int64\(\-41\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(7\) \* Int64\(42\) \- Int64\(45\) \+ \(\- Int64\(6\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - - ( - 41 ) col2, COUNT ( * ) * 7 * + + 42 - + + 45 + - + 6 AS col2, 83 * + 82 - - 41 query I rowsort label-7516 @@ -39988,7 +39988,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\(\*\) 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 @@ -40025,7 +40025,7 @@ SELECT ALL CAST ( + 40 AS INTEGER ) # 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\(\*\)\) 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 DISTINCT - COUNT ( * ) col2, ( - 60 ) col2 query I rowsort @@ -40047,7 +40047,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\(\*\) 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 @@ -40155,7 +40155,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\(\*\) AS col1" at position 1 have the 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 @@ -42007,7 +42007,7 @@ SELECT - COALESCE ( 64, - 85 - - 10 * COUNT ( + 36 ) * + ( 52 ) ) AS col0, + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -739 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \+ Int64\(\-8\) \* Int64\(96\) \+ count\(\*\) \+ \(\- \(\- Int64\(58\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(58\), Int64\(33\)\)\) / \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \+ Int64\(\-8\) \* Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(58\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(58\), Int64\(33\)\)\) / \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 30 + + - 8 * + 96 + + COUNT ( * ) + - - ( + 58 ) col1, ( - NULLIF ( + 58, + 33 ) ) / + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 query I rowsort @@ -42530,7 +42530,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\(\*\) 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 @@ -43005,7 +43005,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\(\*\) AS col0" at position 1 have 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 @@ -43083,7 +43083,7 @@ SELECT ALL - 98 + ( + 67 ) + - 17 / COUNT ( * ) AS col0 # Datafusion - Expected - 23 # Datafusion - Expected - 85 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(23\) 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\(\*\) \* Int64\(23\) 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 ( * ) * 23 col0, 85 AS col0, 74 AS col0 query I rowsort label-8215 @@ -43185,7 +43185,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\(\*\)\) THEN Int64\(58\) / Int64\(33\) \* Int64\(22\) END\)\)\)\) \* count\(\*\) AS col1" at position 0 and "\(\- coalesce\(Int64\(76\), \(\- count\(\*\)\)\)\) AS col1" at position 1 have the 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 @@ -45207,7 +45207,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\(\*\) 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 @@ -45660,7 +45660,7 @@ SELECT + 9 AS col1, 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(86\) \+ \(\- Int64\(4\)\) \+ \(\- count\(\*\)\) \* 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\(11\) AS col2" at position 0 and "Int64\(86\) \+ \(\- Int64\(4\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 AS col2, 86 + - + 4 + - + COUNT ( * ) * 69 AS col2 query I rowsort label-8711 @@ -45681,7 +45681,7 @@ SELECT ALL + ( 22 ) - - 78 + 35 + - + 63 * - 30 + + 56 + - - 81 + - 7 + - SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-52\), CAST\(Int64\(\-79\) AS Int32\) \* Int64\(59\)\) \* CAST\(NULL AS Float64\) \* Int64\(83\) AS col2" at position 0 and "count\(\*\) / Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-52\), CAST\(Int64\(\-79\) AS Int32\) \* Int64\(59\)\) \* CAST\(NULL AS Float64\) \* Int64\(83\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - 52, CAST ( - 79 AS INTEGER ) * + 59 ) * + CAST ( NULL AS FLOAT8 ) * 83 AS col2, COUNT ( * ) / - 34 AS col2 query I rowsort label-8715 @@ -46271,7 +46271,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(85\) \* count\(\*\) \* nullif\(count\(\*\), Int64\(\-8\) \+ \(\- Int64\(99\)\) \+ Int64\(58\)\) AS col2" at position 0 and "Int64\(88\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(85\) \* count\(Int64\(1\)\) AS count\(\*\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-8\) \+ \(\- Int64\(99\)\) \+ Int64\(58\)\) AS col2" at position 0 and "Int64\(88\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 + 85 * + COUNT ( * ) * NULLIF ( + COUNT ( * ), - 8 + - + 99 + + 58 ) AS col2, 88 + + - 95 AS col2 query I rowsort @@ -46421,7 +46421,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\(\*\) 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 @@ -46432,7 +46432,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\(\*\) AS col1" at position 1 have the 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 @@ -47192,7 +47192,7 @@ SELECT - + 18 * - 89 - - ( - 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 166 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-97\)\) \+ Int64\(64\) \+ Int64\(5\) \+ Int64\(\-1\) / Int64\(\-22\) AS col1" at position 0 and "\(\- CASE Int64\(\-20\) WHEN Int64\(\-19\) \* count\(\*\) THEN NULL WHEN \(\- \(\- nullif\(Int64\(66\), count\(\*\)\)\)\) THEN NULL ELSE \(\- Int64\(\-35\)\) END\) \* count\(\*\) \+ Int64\(78\) / \(\- 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\(\-97\)\) \+ Int64\(64\) \+ Int64\(5\) \+ Int64\(\-1\) / Int64\(\-22\) AS col1" at position 0 and "\(\- CASE Int64\(\-20\) WHEN Int64\(\-19\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN \(\- \(\- nullif\(Int64\(66\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) THEN NULL ELSE \(\- Int64\(\-35\)\) END\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(78\) / \(\- Int64\(97\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 97 + + 64 + + 5 + + - 1 / - 22 AS col1, - CASE - 20 WHEN - 19 * + COUNT ( * ) THEN NULL WHEN - - NULLIF ( + 66, COUNT ( * ) ) THEN NULL ELSE + - ( - 35 ) END * + COUNT ( * ) + + 78 / - + 97 AS col1 query II rowsort label-9002 @@ -48562,7 +48562,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 811 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(18\) \+ count\(\*\) \- Int64\(12\) \* 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\(\-91\) AS col0" at position 0 and "Int64\(18\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(12\) \* Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - 91 ) col0, + 18 + COUNT ( * ) - 12 * - 66 AS col0 query I rowsort @@ -48589,7 +48589,7 @@ SELECT - 72 + + 59 + + - 67 - + COALESCE ( 95, - + 11 + 60 ) / 62 / 52 AS col0 # Datafusion - Expected - 957 # Datafusion - Expected - 366 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(6\) AS col2" at position 1 and "Int64\(\-8\) \- \(\- count\(\*\)\) \+ Int64\(58\) \+ Int64\(5\) \+ Int64\(\-7\) \* Int64\(\-13\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(6\) AS col2" at position 1 and "Int64\(\-8\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(58\) \+ Int64\(5\) \+ Int64\(\-7\) \* Int64\(\-13\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( + - CAST ( - + CAST ( - - 87 AS INTEGER ) AS INTEGER ), + + 80 ) * - COUNT ( * ) + 78 - MIN ( - 23 ) * - - 42 AS col0, 61 * + 6 AS col2, + - 8 - - COUNT ( * ) + 58 + + 5 + - 7 * - 13 AS col2 query I rowsort @@ -48822,7 +48822,7 @@ SELECT - 21 + + ( - NULLIF ( 76, - ( NULLIF ( 70, - 99 ) ) + + + CASE 85 WHEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(53\) \+ Int64\(\-77\) AS col0" at position 0 and "nullif\(Int64\(\-44\), Int64\(59\) \* count\(\*\) \+ Int64\(24\) \+ \(\- max\(Int64\(6\)\)\) \- Int64\(93\) \* Int64\(\-74\) \+ \(\- Int64\(\-61\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(53\) \+ Int64\(\-77\) AS col0" at position 0 and "nullif\(Int64\(\-44\), Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(24\) \+ \(\- max\(Int64\(6\)\)\) \- Int64\(93\) \* Int64\(\-74\) \+ \(\- Int64\(\-61\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 + 53 + - 77 AS col0, + NULLIF ( - 44, + + ( 59 ) * COUNT ( * ) + + + 24 + - MAX ( + 6 ) - 93 * + - 74 + - - 61 ) AS col0 query I rowsort @@ -49488,7 +49488,7 @@ SELECT ALL - 94 + + 33 * + 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\(\-82\)\)\) \* Int64\(64\) \* Int64\(\-45\) \* \(\- CASE Int64\(55\) WHEN Int64\(27\) \- Int64\(\-17\) THEN count\(\*\) / count\(\*\) WHEN Int64\(49\) THEN NULL WHEN Int64\(75\) THEN NULL ELSE NULL END\) \* Int64\(48\) \+ Int64\(\-63\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(14\) \+ Int64\(71\) \* Int64\(3\) AS col2" at position 0 and "\(\- CAST\(NULL AS Float64\)\) / 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\(\-82\)\)\) \* Int64\(64\) \* Int64\(\-45\) \* \(\- CASE Int64\(55\) WHEN Int64\(27\) \- Int64\(\-17\) THEN count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(49\) THEN NULL WHEN Int64\(75\) THEN NULL ELSE NULL END\) \* Int64\(48\) \+ Int64\(\-63\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(14\) \+ Int64\(71\) \* Int64\(3\) AS col2" at position 0 and "\(\- CAST\(NULL AS Float64\)\) / Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - 82 ) * + + 64 * - 45 * - CASE + 55 WHEN + 27 - - 17 THEN COUNT ( * ) / + COUNT ( * ) WHEN + 49 THEN NULL WHEN 75 THEN NULL ELSE NULL END * 48 + - 63 * - ( - + COUNT ( * ) ) + + 14 + + + 71 * 3 AS col2, - CAST ( NULL AS FLOAT8 ) / + + 73 AS col2 query II rowsort label-9438 @@ -49699,7 +49699,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\(\*\) AS col0" at position 1 have the 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 @@ -49716,7 +49716,7 @@ SELECT ALL 19 * + 10 - - - 26 + + 51 col2, 1 # 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\(\*\)\) 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 - COUNT ( * ) AS col1, ( + + 12 ) AS col1 query I rowsort label-9481 @@ -50401,7 +50401,7 @@ SELECT ALL 18 * + ( 32 ), 63 + - COUNT ( * ) * - + 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(\(\- Int64\(\-86\)\), \(\- CASE min\(\(\- Int64\(65\)\)\) WHEN count\(\*\) \* nullif\(Int64\(\-17\), count\(\*\) \- \(\- Int64\(44\)\) \+ \(\- nullif\(Int64\(76\), \(\- Int64\(73\)\) \* \(\- Int64\(\-47\)\) \+ Int64\(82\) \* CAST\(\(\- count\(\*\)\) AS Int32\)\)\) \* Int64\(\-73\)\) THEN CASE Int64\(\-76\) WHEN Int64\(\-99\) / Int64\(18\) \- CAST\(NULL AS Float64\) THEN NULL WHEN \(\- nullif\(Int64\(\-53\), Int64\(4\) / Int64\(71\)\)\) / Int64\(86\) \+ \(\- Int64\(\-47\)\) THEN \(\- \(\- count\(\*\)\)\) \* Int64\(81\) \* Int64\(\-34\) END ELSE NULL END\) \+ Int64\(\-20\)\)\)\) AS col1" at position 0 and "count\(\*\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(\(\- Int64\(\-86\)\), \(\- CASE min\(\(\- Int64\(65\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(\-17\), count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(44\)\) \+ \(\- nullif\(Int64\(76\), \(\- Int64\(73\)\) \* \(\- Int64\(\-47\)\) \+ Int64\(82\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \* Int64\(\-73\)\) THEN CASE Int64\(\-76\) WHEN Int64\(\-99\) / Int64\(18\) \- CAST\(NULL AS Float64\) THEN NULL WHEN \(\- nullif\(Int64\(\-53\), Int64\(4\) / Int64\(71\)\)\) / Int64\(86\) \+ \(\- Int64\(\-47\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(81\) \* Int64\(\-34\) END ELSE NULL END\) \+ Int64\(\-20\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - COALESCE ( - - 86, + - CASE + + MIN ( - + 65 ) WHEN + COUNT ( * ) * NULLIF ( - 17, + COUNT ( * ) - - + 44 + + - NULLIF ( + 76, - + 73 * - - 47 + 82 * + + CAST ( - COUNT ( * ) AS INTEGER ) ) * - 73 ) THEN CASE - 76 WHEN - 99 / + 18 - + CAST ( NULL AS FLOAT8 ) THEN NULL WHEN - ( + NULLIF ( + + ( + - 53 ), 4 / ( + 71 ) ) ) / 86 + - ( + - 47 ) THEN - - COUNT ( * ) * + 81 * - 34 END ELSE NULL END + - 20 ) ) AS col1, COUNT ( * ) + + 28 AS col1 query I rowsort label-9611 @@ -50909,7 +50909,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\(\*\) 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: @@ -51463,7 +51463,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\(\*\) AS col0" at position 1 have the 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 @@ -51768,7 +51768,7 @@ SELECT - 91 AS col1, - 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -2106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-68\)\) AS Int32\) / \(\- Int64\(61\)\) \+ Int64\(37\) \+ Int64\(7\) \+ Int64\(27\) \* Int64\(\-76\) \+ Int64\(\-96\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-68\)\) AS Int32\) / \(\- Int64\(61\)\) \+ Int64\(37\) \+ Int64\(7\) \+ Int64\(27\) \* Int64\(\-76\) \+ Int64\(\-96\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 58 col0, CAST ( - - 68 AS INTEGER ) / - + 61 + + 37 + + + 7 + 27 * + - 76 + + - 96 + - COUNT ( * ) AS col0 query II rowsort @@ -51826,7 +51826,7 @@ SELECT DISTINCT - + 73 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -50 -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\(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\(16\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 16 AS col2, - COUNT ( * ) - 49 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_93.slt b/data/sqlite/random/expr/slt_good_93.slt index 0045c1f..e2fc7e7 100644 --- a/data/sqlite/random/expr/slt_good_93.slt +++ b/data/sqlite/random/expr/slt_good_93.slt @@ -2128,7 +2128,7 @@ SELECT DISTINCT SUM ( 66 ) * 53 + - + COUNT ( * ) + - - 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-84\) AS col2" at position 0 and "Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-84\) AS col2" at position 0 and "Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + - 84 col2, - 7 AS col2 query I rowsort label-402 @@ -2414,7 +2414,7 @@ SELECT ALL CAST ( + COUNT ( ALL - ( - - 1 ) ) AS INTEGER ) AS col0, - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- Int64\(77\) AS col0" at position 0 and "count\(\*\) \- \(\- Int64\(64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- Int64\(77\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 83 - + 77 AS col0, COUNT ( * ) - - + 64 AS col0 query I rowsort label-457 @@ -2744,7 +2744,7 @@ SELECT - 46 - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1871 # Datafusion - Expected - -4065 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(31\) \+ Int64\(33\) \* \(\- sum\(Int64\(\-54\)\)\) \+ \(\- count\(\*\)\) \* \(\- Int64\(48\)\) AS col1" at position 0 and "Int64\(72\) \* Int64\(14\) \+ Int64\(\-57\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(31\) \+ Int64\(33\) \* \(\- sum\(Int64\(\-54\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(48\)\) AS col1" at position 0 and "Int64\(72\) \* Int64\(14\) \+ Int64\(\-57\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 10 + 31 + ( + 33 ) * - SUM ( - 54 ) + + - COUNT ( * ) * - + 48 col1, 72 * 14 + + - 57 * + 89 AS col1 query I rowsort label-520 @@ -3154,7 +3154,7 @@ SELECT - 40 + - COUNT ( * ) - - 40 + - - NULLIF ( + 60, + NULLIF ( CAST ( NULL A # Datafusion - Datafusion expected results: # Datafusion - Expected - 4224 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(96\), count\(\*\) \+ Int64\(\-2\) \+ Int64\(\-83\) \+ Int64\(66\) \* Int64\(\-15\) \+ \(\- Int64\(1\)\) \+ Int64\(1\)\) \* \(\- count\(\*\)\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-44\) AS col0" at position 0 and "\(\- sum\(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 "nullif\(Int64\(96\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-2\) \+ Int64\(\-83\) \+ Int64\(66\) \* Int64\(\-15\) \+ \(\- Int64\(1\)\) \+ Int64\(1\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-44\) AS col0" at position 0 and "\(\- sum\(Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + 96, COUNT ( * ) + - 2 + + - 83 + + 66 * ( - 15 ) + - + ( 1 ) + 1 ) * - + COUNT ( * ) * - ( - + COUNT ( * ) ) * + - 44 AS col0, - SUM ( 29 ) AS col0 query I rowsort @@ -3549,7 +3549,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\(\*\) AS col2" at position 1 have the 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 @@ -3658,7 +3658,7 @@ SELECT ALL COUNT ( ALL + 87 ) / 97 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(17\) / Int64\(67\) \+ Int64\(\-21\) AS col1" at position 0 and "count\(Int64\(\-2\)\) \+ \(\- sum\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) / Int64\(67\) \+ Int64\(\-21\) AS col1" at position 0 and "count\(Int64\(\-2\)\) \+ \(\- sum\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + 17 / + 67 + - 21 AS col1, COUNT ( + - 2 ) + ( - + SUM ( 89 ) ) AS col1 query I rowsort @@ -3957,7 +3957,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\(\*\) AS Int32\) AS col0" at position 1 have the 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 @@ -5894,7 +5894,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\(\*\) AS col0" at position 0 and "\(\- 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 @@ -7087,7 +7087,7 @@ SELECT - 67, - 47 + 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -269808 -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\(42\) \* Int64\(73\) \* nullif\(\(\- Int64\(88\)\), Int64\(37\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(42\) \* Int64\(73\) \* nullif\(\(\- Int64\(88\)\), Int64\(37\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 60 AS col1, + COUNT ( * ) * 42 * + 73 * + NULLIF ( - + 88, + 37 ) AS col1 query I rowsort label-1342 @@ -7666,7 +7666,7 @@ SELECT ALL + CAST ( + CAST ( 69 AS INTEGER ) AS INTEGER ) / 41 * - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -15144960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- count\(\*\) / Int64\(30\) AS col2" at position 0 and "Int64\(29\) \* Int64\(\-96\) \* Int64\(80\) \* 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\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(30\) AS col2" at position 0 and "Int64\(29\) \* Int64\(\-96\) \* Int64\(80\) \* Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) - + + COUNT ( * ) / + 30 AS col2, + 29 * - 96 * + 80 * + 68 AS col2 query I rowsort @@ -10703,7 +10703,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 "coalesce\(count\(\*\), sum\(DISTINCT \(\- Int64\(\-44\)\)\) \* Int64\(49\) \+ count\(\*\), Int64\(5\)\) AS col2" at position 0 and "Int64\(44\) \+ \(\- 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 "coalesce\(count\(Int64\(1\)\) AS count\(\*\), sum\(DISTINCT \(\- Int64\(\-44\)\)\) \* Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(5\)\) AS col2" at position 0 and "Int64\(44\) \+ \(\- Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + COUNT ( * ), + + SUM ( DISTINCT - - 44 ) * 49 + COUNT ( * ), + + 5 ) AS col2, + 44 + - + 83 col2 query I rowsort label-2038 @@ -10985,7 +10985,7 @@ SELECT ALL + 13 * - + 3 + + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(\-31\) \+ \(\- Int64\(\-93\)\) \+ CASE coalesce\(\(\- Int64\(\-41\)\), count\(\*\)\) WHEN Int64\(29\) THEN \(\- \(\- CAST\(NULL AS Int32\)\)\) WHEN \(\- Int64\(\-84\)\) \+ Int64\(\-97\) THEN NULL ELSE Int64\(83\) \- \(\- CAST\(NULL AS Int32\)\) END \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(\-31\) \+ \(\- Int64\(\-93\)\) \+ CASE coalesce\(\(\- Int64\(\-41\)\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(29\) THEN \(\- \(\- CAST\(NULL AS Int32\)\)\) WHEN \(\- Int64\(\-84\)\) \+ Int64\(\-97\) THEN NULL ELSE Int64\(83\) \- \(\- CAST\(NULL AS Int32\)\) END \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 63 AS col1, - 31 + - - 93 + CASE COALESCE ( - - 41, + COUNT ( * ) ) WHEN 29 THEN - - CAST ( NULL AS INTEGER ) WHEN - - 84 + - 97 THEN NULL ELSE + 83 - - CAST ( NULL AS INTEGER ) END * + + 84 col1 query I rowsort @@ -11931,7 +11931,7 @@ SELECT DISTINCT 67 + + - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(94\) \* Int64\(2\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(94\) \* Int64\(2\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 AS col0, + 94 * + 2 + - - COUNT ( * ) AS col0 query I rowsort label-2273 @@ -11987,7 +11987,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\(\*\) 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 @@ -12779,7 +12779,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\(\*\) AS col0" at position 1 have the 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 @@ -13205,7 +13205,7 @@ SELECT ALL - 23 * + COUNT ( * ) + 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 2624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* count\(\*\) \+ \(\- Int64\(\-51\)\) AS col0" at position 0 and "sum\(Int64\(32\)\) \* 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\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-51\)\) AS col0" at position 0 and "sum\(Int64\(32\)\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - - 51 AS col0, SUM ( + 32 ) * + 82 AS col0 query I rowsort label-2515 @@ -13838,7 +13838,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(56\) \+ Int64\(\-77\) \+ count\(\*\) \- Int64\(\-59\) \+ count\(\*\) \* Int64\(\-50\) \- \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(56\) \+ Int64\(\-77\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-59\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-50\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 8 AS col2, 56 + - 77 + + ( COUNT ( * ) ) - - 59 + COUNT ( * ) * - 50 - - COUNT ( * ) AS col2 query I rowsort label-2635 @@ -14137,7 +14137,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\(\*\) 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 @@ -14828,7 +14828,7 @@ SELECT 82 / - 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(\-27\) \+ CASE Int64\(\-99\) WHEN \(\- \(\- Int64\(60\)\)\) \+ Int64\(25\) \+ \(\- CAST\(Int64\(\-24\) AS Int32\)\) THEN NULL WHEN Int64\(89\) THEN Int64\(\-91\) ELSE Int64\(94\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-27\) \+ CASE Int64\(\-99\) WHEN \(\- \(\- Int64\(60\)\)\) \+ Int64\(25\) \+ \(\- CAST\(Int64\(\-24\) AS Int32\)\) THEN NULL WHEN Int64\(89\) THEN Int64\(\-91\) ELSE Int64\(94\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, - 27 + + CASE - 99 WHEN - - ( 60 ) + + 25 + - CAST ( - 24 AS INTEGER ) THEN NULL WHEN + 89 THEN - 91 ELSE 94 END AS col0 query II rowsort label-2822 @@ -15869,7 +15869,7 @@ SELECT ALL COUNT ( * ) * + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(38\) \+ Int64\(\-77\) \* \(\- Int64\(\-17\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-51\) \* Int64\(0\) AS col0" at position 0 and "\(\- count\(Int64\(12\)\)\) / Int64\(33\) \+ count\(\*\) \* Int64\(75\) / Int64\(\-47\) \+ \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(38\) \+ Int64\(\-77\) \* \(\- Int64\(\-17\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-51\) \* Int64\(0\) AS col0" at position 0 and "\(\- count\(Int64\(12\)\)\) / Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) / Int64\(\-47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 51 * + 38 + - 77 * - - 17 + - CAST ( NULL AS INTEGER ) + - 51 * + 0 AS col0, - COUNT ( 12 ) / ( + + 33 ) + COUNT ( * ) * + 75 / + - 47 + - + COUNT ( * ) AS col0 query I rowsort label-3018 @@ -16270,7 +16270,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\(\*\) 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 @@ -16617,7 +16617,7 @@ SELECT DISTINCT ( + COUNT ( * ) ) - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 816 -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\(24\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(24\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 96 AS col0, COUNT ( * ) * + 24 * + + 34 AS col0 query II rowsort label-3159 @@ -16892,7 +16892,7 @@ SELECT + 3 + + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "Int64\(14\) \* \(\- count\(\*\)\) \+ Int64\(\-13\) \* \(\- 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\(49\) AS col0" at position 0 and "Int64\(14\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-13\) \* \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 49 AS col0, 14 * - + COUNT ( * ) + + - 13 * - CAST ( NULL AS FLOAT8 ) AS col0 query II rowsort @@ -18220,7 +18220,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -34 -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\(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\(24\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 24 ) AS col0, COUNT ( * ) + - + 35 AS col0 # Datafusion - Types were automatically converted from: @@ -18891,7 +18891,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -1464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(24\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(24\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 AS col2, - COUNT ( * ) * 24 * 61 AS col2 query I rowsort label-3598 @@ -19215,7 +19215,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\(\*\) AS col1" at position 1 have the 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 @@ -20268,7 +20268,7 @@ SELECT + MAX ( 72 ) AS col2, COUNT ( ALL - - 14 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 36 -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\(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\(\-40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 40 ) AS col0, COUNT ( * ) + 35 col0 query I rowsort @@ -20435,7 +20435,7 @@ SELECT - 30 * + 95 - + 71 * + 30 * - - 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "Int64\(22\) \* count\(\*\) / \(\- coalesce\(\(\- min\(Int64\(87\)\)\), \(\- Int64\(87\)\) \- Int64\(1\) \+ max\(Int64\(83\)\)\)\) \* 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\) AS col0" at position 0 and "Int64\(22\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- coalesce\(\(\- min\(Int64\(87\)\)\), \(\- Int64\(87\)\) \- Int64\(1\) \+ max\(Int64\(83\)\)\)\) \* Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 12 AS col0, 22 * + COUNT ( * ) / - COALESCE ( - MIN ( + 87 ), - + 87 - + 1 + + + MAX ( + 83 ) ) * - 92 AS col0 query I rowsort @@ -20689,7 +20689,7 @@ SELECT ALL COALESCE ( - + 0, + 15 * - CAST ( - CASE WHEN 80 IS NOT NULL THEN - C # Datafusion - Datafusion expected results: # Datafusion - Expected - -1970 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(\-28\) \+ Int64\(\-16\) \+ count\(Int64\(71\)\) \- Int64\(\-54\) \* count\(\*\) \* \(\- Int64\(29\)\) \- Int64\(23\) / Int64\(\-6\) \+ Int64\(\-84\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \+ \(\- sum\(Int64\(95\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(\-28\) \+ Int64\(\-16\) \+ count\(Int64\(71\)\) \- Int64\(\-54\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(29\)\) \- Int64\(23\) / Int64\(\-6\) \+ Int64\(\-84\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \+ \(\- sum\(Int64\(95\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 * - 28 + + - 16 + + COUNT ( + 71 ) - - 54 * COUNT ( * ) * - + 29 - + 23 / - 6 + - 84 col2, CAST ( NULL AS FLOAT8 ) + - SUM ( ALL + 95 ) col2 query I rowsort label-3939 @@ -22847,7 +22847,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\(\*\) AS col1" at position 1 have the 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 @@ -24270,7 +24270,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\(\*\) 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 @@ -24707,7 +24707,7 @@ SELECT DISTINCT 95 - + 14 * 24 AS col0 # Datafusion - Expected - 14 # Datafusion - Expected - 94 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- \(\- nullif\(Int64\(\-63\), \(\- Int64\(\-73\)\) \+ avg\(Int64\(24\)\) / Int64\(37\) \* Int64\(\-27\) \* Int64\(79\)\)\)\) / Int64\(90\) \+ Int64\(94\) AS col2" at position 1 and "\(\- Int64\(\-46\)\) 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\(\*\)\) \* \(\- \(\- nullif\(Int64\(\-63\), \(\- Int64\(\-73\)\) \+ avg\(Int64\(24\)\) / Int64\(37\) \* Int64\(\-27\) \* Int64\(79\)\)\)\) / Int64\(90\) \+ Int64\(94\) AS col2" at position 1 and "\(\- Int64\(\-46\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 14, - COUNT ( * ) * + + ( - - NULLIF ( - 63, - - 73 + AVG ( + 24 ) / + 37 * - 27 * 79 ) ) / + 90 + 94 AS col2, - - 46 AS col2 query I rowsort @@ -25285,7 +25285,7 @@ SELECT DISTINCT + 82 AS col2, - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7776 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(\*\) WHEN Int64\(26\) THEN NULL WHEN Int64\(\-60\) \* Int64\(31\) THEN NULL ELSE Int64\(81\) \* \(\- count\(\*\)\) \* Int64\(96\) END AS col2" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int32\) \+ Int64\(76\) \* \(\- CASE \(\- \(\- Int64\(93\)\)\) WHEN Int64\(8\) THEN max\(\(\- Int64\(46\)\)\) \- Int64\(40\) / nullif\(\(\- count\(\*\)\), CASE Int64\(\-87\) WHEN Int64\(\-78\) / Int64\(71\) \* Int64\(5\) \* Int64\(7\) \+ \(\- Int64\(76\)\) THEN NULL WHEN Int64\(\-92\) \* count\(\*\) \+ Int64\(\-4\) \+ CASE Int64\(47\) WHEN \(\- Int64\(31\)\) \* min\(DISTINCT \(\- Int64\(\-83\)\)\) THEN Int64\(71\) \+ Int64\(16\) END THEN Int64\(\-58\) WHEN \(\- Int64\(\-43\)\) / coalesce\(\(\- count\(\*\)\), Int64\(14\) \* Int64\(59\) \* coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-70\) \+ Int64\(\-94\), Int64\(6\) \* \(\- count\(\*\)\)\) \* Int64\(2\), Int64\(47\)\) THEN Int64\(\-54\) \* Int64\(31\) END\) \* count\(\*\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(26\) THEN NULL WHEN Int64\(\-60\) \* Int64\(31\) THEN NULL ELSE Int64\(81\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) END AS col2" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int32\) \+ Int64\(76\) \* \(\- CASE \(\- \(\- Int64\(93\)\)\) WHEN Int64\(8\) THEN max\(\(\- Int64\(46\)\)\) \- Int64\(40\) / nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), CASE Int64\(\-87\) WHEN Int64\(\-78\) / Int64\(71\) \* Int64\(5\) \* Int64\(7\) \+ \(\- Int64\(76\)\) THEN NULL WHEN Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-4\) \+ CASE Int64\(47\) WHEN \(\- Int64\(31\)\) \* min\(DISTINCT \(\- Int64\(\-83\)\)\) THEN Int64\(71\) \+ Int64\(16\) END THEN Int64\(\-58\) WHEN \(\- Int64\(\-43\)\) / coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(14\) \* Int64\(59\) \* coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-70\) \+ Int64\(\-94\), Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(2\), Int64\(47\)\) THEN Int64\(\-54\) \* Int64\(31\) END\) \* count\(Int64\(1\)\) AS count\(\*\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE + COUNT ( * ) WHEN + 26 THEN NULL WHEN - 60 * + 31 THEN NULL ELSE + + 81 * + - COUNT ( * ) * + 96 END AS col2, 29 - CAST ( NULL AS INTEGER ) + + 76 * - + CASE - - ( + + 93 ) WHEN 8 THEN + ( MAX ( ALL - + 46 ) ) - + 40 / NULLIF ( - COUNT ( * ), + CASE + - 87 WHEN + - 78 / + + 71 * 5 * 7 + - + ( + 76 ) THEN NULL WHEN - 92 * + + COUNT ( * ) + - 4 + + + CASE + 47 WHEN - + 31 * + MIN ( DISTINCT - - 83 ) THEN + + 71 + 16 END THEN - 58 WHEN - - 43 / + COALESCE ( - + COUNT ( * ), 14 * 59 * + COALESCE ( - + CAST ( NULL AS INTEGER ), - 70 + - 94, + 6 * - COUNT ( * ) ) * + 2, 47 ) THEN - 54 * + 31 END ) * + COUNT ( * ) END AS col2 query II rowsort label-4812 @@ -27125,7 +27125,7 @@ SELECT MIN ( ALL - 47 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(95\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(95\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / + 95 AS col0, 38 AS col0 query I rowsort label-5171 @@ -27906,7 +27906,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\(\*\) 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 @@ -28733,7 +28733,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\(\*\) AS col0" at position 1 have the 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 @@ -29915,7 +29915,7 @@ SELECT - MAX ( + COALESCE ( 78, 66 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* count\(\*\) \+ \(\- sum\(DISTINCT Int64\(\-62\)\)\) \- max\(Int64\(84\)\) / Int64\(63\) \+ Int64\(24\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- sum\(DISTINCT Int64\(\-62\)\)\) \- max\(Int64\(84\)\) / Int64\(63\) \+ Int64\(24\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 85 * COUNT ( * ) + - SUM ( DISTINCT - 62 ) - MAX ( + + 84 ) / + + 63 + 24 AS col0, + 8 AS col0 query I rowsort label-5703 @@ -30482,7 +30482,7 @@ SELECT DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), NULLIF ( MIN ( 85 ), AVG ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -7722 # Datafusion - Expected - -54068 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* \(\- \(\- count\(\*\)\)\) \* \(\- count\(\*\)\) \* Int64\(78\) AS col2" at position 0 and "Int64\(10\) \* \(\- Int64\(57\)\) \* Int64\(95\) \+ 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\(99\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) AS col2" at position 0 and "Int64\(10\) \* \(\- Int64\(57\)\) \* Int64\(95\) \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 99 * - - COUNT ( * ) * - COUNT ( * ) * + + 78 col2, + 10 * - ( + 57 ) * + 95 + + 82 AS col2 query I rowsort @@ -30876,7 +30876,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -31043,7 +31043,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 339 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- Int64\(26\) \* Int64\(\-13\) 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\(26\) \* Int64\(\-13\) 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 ( * ) - 26 * - 13 AS col0, 72 AS col0 query II rowsort label-5917 @@ -31591,7 +31591,7 @@ SELECT ALL 35 + 84 # 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\(\*\)\) 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 - COUNT ( * ) AS col0, 32 AS col0 query I rowsort @@ -31780,7 +31780,7 @@ SELECT DISTINCT + ( - 13 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \+ Int64\(51\) \+ Int64\(73\) AS col2" at position 0 and "count\(\*\) \- Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \+ Int64\(51\) \+ Int64\(73\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 64 + + 51 + + 73 AS col2, COUNT ( * ) - + 83 AS col2 query I rowsort label-6058 @@ -33999,7 +33999,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\(\*\) 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 @@ -36532,7 +36532,7 @@ SELECT DISTINCT - + MIN ( ALL 80 ) * 40 / COALESCE ( 79, 81 + 12 + NULLIF ( - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ Int64\(28\) AS col1" at position 0 and "count\(\*\) \* 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\(\-73\) \+ Int64\(28\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 73 + 28 AS col1, + ( COUNT ( * ) ) * + 97 AS col1 query I rowsort label-6968 @@ -38080,7 +38080,7 @@ SELECT ALL + 33 * - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(30\) \* 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\(\*\)\) AS col2" at position 0 and "Int64\(30\) \* Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, + 30 * - 5 col2 query I rowsort label-7264 @@ -38600,7 +38600,7 @@ SELECT + 15 / - 89 AS col2, 92 * 53 / 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-44\), \(\- count\(\*\)\) \- count\(\*\) \+ Int64\(\-13\) \+ Int64\(8\) \* \(\- Int64\(\-28\)\) \* CAST\(NULL AS Int32\) \* \(\- \(\- count\(\*\)\)\) \+ Int64\(16\)\)\) AS col2" at position 0 and "\(\- Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-44\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-13\) \+ Int64\(8\) \* \(\- Int64\(\-28\)\) \* CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(16\)\)\) AS col2" at position 0 and "\(\- Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - 44, - COUNT ( * ) - + COUNT ( * ) + - 13 + 8 * - - 28 * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + 16 ) col2, - ( + 65 ) AS col2 query I rowsort label-7363 @@ -38829,7 +38829,7 @@ SELECT 58 + - 17 + ( - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-11\), Int64\(\-69\)\) \+ Int64\(27\) AS col2" at position 0 and "CASE \(\- CAST\(Int64\(91\) AS Int32\)\) WHEN Int64\(16\) THEN \(\- Int64\(97\)\) / \(\- count\(Int64\(\-77\)\)\) WHEN \(\- \(\- min\(Int64\(42\)\)\)\) \* Int64\(83\) THEN \(\- Int64\(\-15\)\) \* Int64\(98\) / Int64\(\-2\) \* Int64\(\-96\) \+ Int64\(39\) \+ \(\- Int64\(55\)\) \* Int64\(\-39\) END \+ coalesce\(coalesce\(Int64\(\-5\), count\(\*\) \* \(\- Int64\(11\)\) / Int64\(97\) \- Int64\(36\) \+ Int64\(47\)\), Int64\(\-4\) \- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-11\), Int64\(\-69\)\) \+ Int64\(27\) AS col2" at position 0 and "CASE \(\- CAST\(Int64\(91\) AS Int32\)\) WHEN Int64\(16\) THEN \(\- Int64\(97\)\) / \(\- count\(Int64\(\-77\)\)\) WHEN \(\- \(\- min\(Int64\(42\)\)\)\) \* Int64\(83\) THEN \(\- Int64\(\-15\)\) \* Int64\(98\) / Int64\(\-2\) \* Int64\(\-96\) \+ Int64\(39\) \+ \(\- Int64\(55\)\) \* Int64\(\-39\) END \+ coalesce\(coalesce\(Int64\(\-5\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(11\)\) / Int64\(97\) \- Int64\(36\) \+ Int64\(47\)\), Int64\(\-4\) \- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( - 11, - 69 ) + 27 AS col2, + CASE - CAST ( 91 AS INTEGER ) WHEN ( + 16 ) THEN - + 97 / - COUNT ( - 77 ) WHEN - - ( + MIN ( ALL + + 42 ) ) * 83 THEN - - 15 * + 98 / - 2 * - 96 + + 39 + - + 55 * - 39 END + + COALESCE ( COALESCE ( - 5, COUNT ( * ) * - + 11 / 97 - + 36 + ( + 47 ) ), - 4 - + 81 ) AS col2 query I rowsort label-7405 @@ -38860,7 +38860,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\(\*\) AS col2" at position 1 have the 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 @@ -39045,7 +39045,7 @@ SELECT DISTINCT SUM ( DISTINCT 1 ) * + 55 + 23 + - 21 AS col1 # 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\(75\) \+ Int64\(\-77\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the 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\(\-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 + 75 + - 77 col0, - COUNT ( * ) col0 query I rowsort label-7444 @@ -39448,7 +39448,7 @@ SELECT ALL + COUNT ( * ), + 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "count\(\*\) \+ \(\- CASE Int64\(21\) WHEN Int64\(32\) \* count\(\*\) THEN Int64\(\-55\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(21\) WHEN Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-55\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 93 AS col1, COUNT ( * ) + - CASE 21 WHEN + 32 * COUNT ( * ) THEN - 55 END AS col1 query I rowsort @@ -39572,13 +39572,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(11\) AS col2" at position 0 and "\(\- count\(\*\)\) \* \(\- count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(75\) \+ avg\(Int64\(57\)\) / \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(75\) \+ avg\(Int64\(57\)\) / \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + 11 col2, - COUNT ( * ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * ( 75 ) + AVG ( ALL + + 57 ) / - - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(\*\) 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 @@ -40054,7 +40054,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(14\) \* coalesce\(Int64\(\-92\), \(\- Int64\(1\)\) \* count\(\*\) \+ Int64\(17\) \+ Int64\(\-17\) \* \(\- coalesce\(Int64\(\-3\), Int64\(49\)\)\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-43\) \+ Int64\(66\) \* Int64\(5\) AS col1" at position 0 and "count\(\*\) \+ Int64\(96\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(14\) \* coalesce\(Int64\(\-92\), \(\- Int64\(1\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(17\) \+ Int64\(\-17\) \* \(\- coalesce\(Int64\(\-3\), Int64\(49\)\)\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-43\) \+ Int64\(66\) \* Int64\(5\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 77 + + + 14 * + COALESCE ( - 92, - + 1 * COUNT ( * ) + + 17 + - 17 * - COALESCE ( - 3, + 49 ) ) * + - CAST ( NULL AS INTEGER ) + - 43 + 66 * 5 AS col1, + COUNT ( * ) + + 96 + 39 AS col1 query I rowsort label-7635 @@ -40301,7 +40301,7 @@ SELECT 42 + - ( + 46 ) # 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\(\*\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + + COUNT ( * ) ) col2, + 88 col2 query I rowsort @@ -41991,7 +41991,7 @@ SELECT + 48 AS col1, 11 AS col1 # Datafusion - Expected - -59 # Datafusion - Expected - 50097 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* coalesce\(Int64\(56\), Int64\(69\) \+ \(\- Int64\(29\)\), \(\- CASE Int64\(\-61\) WHEN Int64\(41\) THEN \(\- \(\- max\(DISTINCT Int64\(\-36\)\)\)\) \* Int64\(\-89\) \+ Int64\(\-34\) \* \(\- Int64\(98\)\) \- count\(\*\) ELSE NULL END\)\) \+ \(\- \(\- count\(\*\)\)\) \- Int64\(\-19\) \* Int64\(\-43\) \* Int64\(\-57\) \+ Int64\(85\) \+ Int64\(82\) AS col1" at position 1 and "Int64\(43\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* coalesce\(Int64\(56\), Int64\(69\) \+ \(\- Int64\(29\)\), \(\- CASE Int64\(\-61\) WHEN Int64\(41\) THEN \(\- \(\- max\(DISTINCT Int64\(\-36\)\)\)\) \* Int64\(\-89\) \+ Int64\(\-34\) \* \(\- Int64\(98\)\) \- count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-19\) \* Int64\(\-43\) \* Int64\(\-57\) \+ Int64\(85\) \+ Int64\(82\) AS col1" at position 1 and "Int64\(43\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 59, + 60 * + COALESCE ( 56, 69 + - + 29, - CASE - 61 WHEN + ( 41 ) THEN - - MAX ( DISTINCT - 36 ) * + - 89 + + - 34 * - + 98 - + + COUNT ( * ) ELSE NULL END ) + - - COUNT ( * ) - - 19 * - 43 * - 57 + + 85 + 82 AS col1, + + ( + + 43 ) AS col1 query I rowsort label-8004 @@ -42034,7 +42034,7 @@ SELECT ( - 95 ) * + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ CASE Int64\(38\) WHEN \(\- Int64\(11\)\) THEN NULL ELSE count\(\*\) \+ Int64\(36\) END 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\(63\) \+ CASE Int64\(38\) WHEN \(\- Int64\(11\)\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) END AS col0" at position 0 and "Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 + + CASE + + 38 WHEN - + 11 THEN NULL ELSE COUNT ( * ) + + 36 END AS col0, - 11 AS col0 query I rowsort label-8012 @@ -42066,7 +42066,7 @@ SELECT ALL + COUNT ( * ) + + - CAST ( NULLIF ( - 0, - COUNT ( * ) + - - AVG ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(Int64\(\-91\) AS Int32\), Int64\(\-15\) \* Int64\(29\) \- \(\- Int64\(28\)\)\)\) AS col0" at position 0 and "count\(\*\) \* CAST\(Int64\(98\) AS Int32\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(Int64\(\-91\) AS Int32\), Int64\(\-15\) \* Int64\(29\) \- \(\- Int64\(28\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(98\) AS Int32\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + CAST ( - 91 AS INTEGER ), - 15 * 29 - - + 28 ) AS col0, COUNT ( * ) * CAST ( 98 AS INTEGER ) + 86 col0 query I rowsort label-8018 @@ -42129,7 +42129,7 @@ SELECT DISTINCT 95 * - ( - 19 ) * 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5440 # Datafusion - Expected - -43901 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(\-85\) AS col2" at position 0 and "count\(\*\) \+ Int64\(\-42\) \+ Int64\(34\) \* nullif\(Int64\(\-15\), Int64\(37\)\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(\-85\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-42\) \+ Int64\(34\) \* nullif\(Int64\(\-15\), Int64\(37\)\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 * + - 85 AS col2, + COUNT ( * ) + - 42 + + 34 * + NULLIF ( - 15, 37 ) * 86 AS col2 query I rowsort label-8030 @@ -44416,7 +44416,7 @@ SELECT - 74 AS col1, 5 * - 93 - - - 3 + - + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 534 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- \(\- CASE Int64\(57\) WHEN Int64\(1\) THEN NULL ELSE Int64\(3\) / count\(\*\) END\) / Int64\(11\) AS col2" at position 0 and "Int64\(89\) \* \(\- 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\(18\) \- \(\- CASE Int64\(57\) WHEN Int64\(1\) THEN NULL ELSE Int64\(3\) / count\(Int64\(1\)\) AS count\(\*\) END\) / Int64\(11\) AS col2" at position 0 and "Int64\(89\) \* \(\- Int64\(\-6\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 18 - - CASE 57 WHEN + 1 THEN NULL ELSE 3 / + COUNT ( * ) END / + ( 11 ) AS col2, 89 * - - 6 col2 query I rowsort @@ -44738,7 +44738,7 @@ SELECT 50 * 45 + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) / \(\- Int64\(\-60\)\) AS col1" at position 0 and "count\(\*\) \* \(\- Int64\(7\)\) \+ Int64\(6\) \+ Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) / \(\- Int64\(\-60\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(7\)\) \+ Int64\(6\) \+ Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 51 / - - 60 AS col1, + COUNT ( * ) * - + 7 + 6 + - 14 AS col1 query I rowsort label-8533 @@ -45156,7 +45156,7 @@ SELECT ALL + COUNT ( * ) * - 78 + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \+ Int64\(26\) AS col2" at position 0 and "Int64\(\-36\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(26\) 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 + 19 + 26 col2, - 36 * - COUNT ( * ) AS col2 query I rowsort @@ -45188,7 +45188,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \- Int64\(24\) AS col1" at position 0 and "Int64\(90\) / Int64\(53\) \- Int64\(93\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(24\) AS col1" at position 0 and "Int64\(90\) / Int64\(53\) \- Int64\(93\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 86 - + + 24 AS col1, + 90 / + 53 - 93 + - COUNT ( * ) AS col1 query I rowsort label-8619 @@ -46250,7 +46250,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\(\*\) 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 @@ -47140,7 +47140,7 @@ SELECT - - ( + - 45 ), - 50 + 30 * - 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col1" at position 0 and "Int64\(\-55\) \* \(\- 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\(68\)\) AS col1" at position 0 and "Int64\(\-55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-49\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 68 col1, - 55 * - COUNT ( * ) + - - 49 AS col1 query I rowsort @@ -47810,7 +47810,7 @@ SELECT DISTINCT 32 - + + 87 * 48 * + - 55 + - 9 - - COUNT ( DISTINCT + 63 ) - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(67\), count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-17\) \* Int64\(84\) \+ Int64\(71\) \* \(\- CAST\(NULL AS Int32\)\) \- nullif\(Int64\(17\), \(\- \(\- count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(67\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-17\) \* Int64\(84\) \+ Int64\(71\) \* \(\- CAST\(NULL AS Int32\)\) \- nullif\(Int64\(17\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - NULLIF ( + 67, COUNT ( * ) ) AS col0, 60 * - 17 * + 84 + 71 * - CAST ( NULL AS INTEGER ) - + NULLIF ( + 17, - - COUNT ( * ) ) AS col0 query I rowsort @@ -48260,7 +48260,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\(\*\) 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 @@ -48507,7 +48507,7 @@ SELECT 0 * + + 61 * 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -165911200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(\-78\) AS col0" at position 0 and "Int64\(\-65\) \* Int64\(\-86\) \* Int64\(14\) \* Int64\(\-40\) \* 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\(\*\)\) \* Int64\(\-78\) AS col0" at position 0 and "Int64\(\-65\) \* Int64\(\-86\) \* Int64\(14\) \* Int64\(\-40\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - 78 AS col0, - 65 * - 86 * 14 * - 40 * 53 col0 query I rowsort label-9249 @@ -48789,7 +48789,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\(\*\) AS col0" at position 0 and "Int64\(90\) \* \(\- 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 @@ -49514,7 +49514,7 @@ SELECT CAST ( - NULLIF ( - COUNT ( * ), 73 * - + 8 / 22 * + CAST ( NULL AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - 18647725 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- count\(\*\)\) \* Int64\(\-89\) \* Int64\(\-85\) \* \(\- min\(Int64\(85\)\)\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-89\) \* Int64\(\-85\) \* \(\- min\(Int64\(85\)\)\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 29 * - COUNT ( * ) * - 89 * + - 85 * + - MIN ( + 85 ) AS col2, 56 AS col2 query I rowsort @@ -50091,7 +50091,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\(\*\) AS col2" at position 1 have 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 7792c81..3e8a38f 100644 --- a/data/sqlite/random/expr/slt_good_94.slt +++ b/data/sqlite/random/expr/slt_good_94.slt @@ -565,7 +565,7 @@ SELECT COUNT ( * ) + CAST ( - 94 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-24\) AS col1" at position 0 and "Int64\(24\) / \(\- avg\(DISTINCT \(\- Int64\(34\)\)\)\) \* Int64\(20\) \* CASE Int64\(27\) WHEN Int64\(24\) THEN NULL WHEN Int64\(51\) \* \(\- count\(\*\)\) THEN NULL WHEN \(\- CAST\(Int64\(69\) AS Int32\)\) THEN nullif\(Int64\(87\), CAST\(NULL AS Int32\)\) ELSE NULL END \+ Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-24\) AS col1" at position 0 and "Int64\(24\) / \(\- avg\(DISTINCT \(\- Int64\(34\)\)\)\) \* Int64\(20\) \* CASE Int64\(27\) WHEN Int64\(24\) THEN NULL WHEN Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- CAST\(Int64\(69\) AS Int32\)\) THEN nullif\(Int64\(87\), CAST\(NULL AS Int32\)\) ELSE NULL END \+ Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 + - 24 AS col1, 24 / - AVG ( DISTINCT - + 34 ) * 20 * + CASE + 27 WHEN 24 THEN NULL WHEN + 51 * - COUNT ( * ) THEN NULL WHEN - CAST ( 69 AS INTEGER ) THEN NULLIF ( + 87, CAST ( NULL AS INTEGER ) ) ELSE NULL END + 45 AS col1 query II rowsort label-101 @@ -836,7 +836,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2817 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \* \(\- min\(Int64\(64\)\)\) \+ count\(\*\) \+ \(\- \(\- count\(\*\)\)\) / \(\- Int64\(81\)\) 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\(\-44\) \* \(\- min\(Int64\(64\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / \(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 44 * - MIN ( ALL 64 ) + + COUNT ( * ) + - - COUNT ( * ) / - + 81 AS col0, 9 AS col0 query I rowsort label-153 @@ -1942,7 +1942,7 @@ SELECT 38 + - 6 * + 85 - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1232 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(28\) AS col1" at position 0 and "Int64\(\-7\) / Int64\(95\) \* Int64\(12\) / count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(28\) AS col1" at position 0 and "Int64\(\-7\) / Int64\(95\) \* Int64\(12\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 * 28 AS col1, - 7 / + + 95 * 12 / COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-363 @@ -2394,7 +2394,7 @@ SELECT - + COUNT ( * ) + + NULLIF ( 44, - 21 * CASE - COUNT ( * ) WHEN 57 + - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 146 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ \(\- count\(\*\)\) \* Int64\(\-16\) \+ Int64\(33\) \+ \(\- coalesce\(\(\- Int64\(73\)\), Int64\(\-59\) \* Int64\(42\)\)\) \+ Int64\(98\) 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\(\-74\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-16\) \+ Int64\(33\) \+ \(\- coalesce\(\(\- Int64\(73\)\), Int64\(\-59\) \* Int64\(42\)\)\) \+ Int64\(98\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 74 + - COUNT ( * ) * - 16 + + 33 + - COALESCE ( - + 73, - 59 * + 42 ) + + 98 AS col2, 30 AS col2 query I rowsort @@ -3125,7 +3125,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\(\*\) 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 @@ -3666,7 +3666,7 @@ SELECT DISTINCT - 63 - + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-68\), count\(\*\) \+ CAST\(NULL AS Int32\) \+ \(\- count\(\*\)\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-68\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - 68, COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) ) AS col2, + 41 col2 query I rowsort label-688 @@ -3856,7 +3856,7 @@ SELECT DISTINCT COUNT ( DISTINCT + 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(66\), count\(\*\)\) AS col1" at position 0 and "avg\(DISTINCT Int64\(\-52\)\) \+ Int64\(33\) \- count\(\*\) \* Int64\(\-91\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(66\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "avg\(DISTINCT Int64\(\-52\)\) \+ Int64\(33\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( 66, + COUNT ( * ) ) AS col1, AVG ( DISTINCT - 52 ) + 33 - + COUNT ( * ) * + - 91 + - - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS FLOAT8 ) AS col1 query I rowsort label-723 @@ -4773,7 +4773,7 @@ SELECT DISTINCT + NULLIF ( + + 18, - - 89 + 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -2100 -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\(42\)\) \* \(\- count\(\*\)\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(42\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 9 AS col2, COUNT ( * ) * - + 42 * - COUNT ( * ) * - 50 AS col2 query I rowsort @@ -4822,7 +4822,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2576552 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* count\(\*\) \* Int64\(19\) \* \(\- \(\- Int64\(\-44\)\)\) \* Int64\(\-67\) AS col1" at position 0 and "Int64\(\-2\) \* 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\(46\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) \* \(\- \(\- Int64\(\-44\)\)\) \* Int64\(\-67\) AS col1" at position 0 and "Int64\(\-2\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 46 * COUNT ( * ) * 19 * + ( - ( - - 44 ) ) * - 67 AS col1, - 2 * 20 AS col1 query II rowsort label-908 @@ -4985,7 +4985,7 @@ SELECT ALL CAST ( + 48 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4744 # Datafusion - Expected - 168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(92\) \+ Int64\(\-40\) AS col0" at position 0 and "Int64\(77\) \+ \(\- 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 "Int64\(52\) \* Int64\(92\) \+ Int64\(\-40\) AS col0" at position 0 and "Int64\(77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 52 * 92 + - 40 AS col0, 77 + + - COUNT ( * ) + + 92 col0 query I rowsort @@ -5269,7 +5269,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\(\*\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -5327,7 +5327,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\(\*\)\) WHEN Int64\(\-54\) \* Int64\(\-92\) \+ Int64\(12\) \+ \(\- Int64\(58\)\) / Int64\(31\) THEN Int64\(33\) END \* Int64\(\-98\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have 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 @@ -5540,7 +5540,7 @@ SELECT + 68 - - - 76 # Datafusion - Expected - -1332 # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(26\) WHEN CAST\(Int64\(5\) AS Int32\) \* Int64\(59\) \+ Int64\(\-56\) \+ Int64\(\-63\) \- Int64\(\-74\) \* Int64\(2\) \* Int64\(14\) \+ Int64\(38\) THEN Int64\(\-34\) ELSE NULL END\) \* \(\- count\(\*\)\) AS col0" at position 1 and "Int64\(17\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(26\) WHEN CAST\(Int64\(5\) AS Int32\) \* Int64\(59\) \+ Int64\(\-56\) \+ Int64\(\-63\) \- Int64\(\-74\) \* Int64\(2\) \* Int64\(14\) \+ Int64\(38\) THEN Int64\(\-34\) ELSE NULL END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 and "Int64\(17\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 * - + CAST ( 18 AS INTEGER ) AS col1, - CASE + + 26 WHEN + CAST ( 5 AS INTEGER ) * + 59 + - 56 + - 63 - + - 74 * + 2 * + 14 + 38 THEN + - 34 ELSE NULL END * - COUNT ( * ) AS col0, 17 AS col0 query I rowsort @@ -6084,7 +6084,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\(\*\) 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: @@ -6757,7 +6757,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -8565,7 +8565,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\(\*\) 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 @@ -9310,7 +9310,7 @@ SELECT ALL - 10 col0, 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 54 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + - 75 AS col1 query I rowsort @@ -10475,7 +10475,7 @@ SELECT ALL - 73 * + - 29 + 11 AS col1, 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -51 -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\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 0 AS col0, + COUNT ( * ) + - 52 col0 query I rowsort label-1988 @@ -11021,7 +11021,7 @@ SELECT 97 * - 18 * - + CAST ( + - 37 AS INTEGER ) AS col0, 58 + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-97\) \* Int64\(33\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-36\) \* Int64\(33\) \* \(\- nullif\(Int64\(8\), Int64\(\-38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) \* Int64\(33\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-36\) \* Int64\(33\) \* \(\- nullif\(Int64\(8\), Int64\(\-38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - 97 * 33 + + CAST ( NULL AS INTEGER ) AS col0, - 36 * + 33 * - + NULLIF ( + + 8, + - 38 ) col0 query I rowsort @@ -11267,7 +11267,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\(\*\) AS col2" at position 1 have the 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 @@ -11440,7 +11440,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(\-29\) \+ \(\- 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 "Int64\(81\) AS col0" at position 0 and "Int64\(\-29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 col0, - 29 + - COUNT ( * ) * + + 9 AS col0 query I rowsort @@ -12810,7 +12810,7 @@ SELECT + 30 + 28 * 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* \(\- count\(\*\)\) AS col2" at position 0 and "count\(\*\) \+ \(\- 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\(\-8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 8 * - COUNT ( * ) col2, + COUNT ( * ) + - + 14 AS col2 query I rowsort label-2431 @@ -12854,7 +12854,7 @@ SELECT + 7 + - + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- count\(\*\)\) / Int64\(92\) \* Int64\(32\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(92\) \* Int64\(32\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 76 * - COUNT ( * ) / + + 92 * + 32 AS col1, 36 AS col1 query I rowsort label-2439 @@ -13428,7 +13428,7 @@ SELECT - 8 * 52 * - 46 + COUNT ( * ) * 42 * 47 # Datafusion - Expected - NULL # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(87\) WHEN Int64\(17\) \- \(\- \(\- nullif\(count\(\*\), Int64\(10\) \+ Int64\(31\)\)\)\) THEN Int64\(20\) ELSE NULL END \- Int64\(\-76\) AS col0" at position 0 and "Int64\(26\) \- Int64\(69\) \- \(\- nullif\(\(\- Int64\(\-95\)\), \(\- Int64\(39\)\)\)\) / CAST\(NULL AS Float64\) 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\(87\) WHEN Int64\(17\) \- \(\- \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(10\) \+ Int64\(31\)\)\)\) THEN Int64\(20\) ELSE NULL END \- Int64\(\-76\) AS col0" at position 0 and "Int64\(26\) \- Int64\(69\) \- \(\- nullif\(\(\- Int64\(\-95\)\), \(\- Int64\(39\)\)\)\) / CAST\(NULL AS Float64\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE 87 WHEN 17 - - - NULLIF ( + COUNT ( * ), 10 + 31 ) THEN + 20 ELSE NULL END - - 76 AS col0, 19 + - + 8, + + 26 - + 69 - - NULLIF ( - - 95, - + 39 ) / CAST ( NULL AS FLOAT8 ) AS col0 query II rowsort label-2549 @@ -13559,7 +13559,7 @@ SELECT ALL - 34 * + COUNT ( - - 75 ) / ( + - 82 ) # 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\(25\) / Int64\(78\) \* Int64\(\-3\) \* Int64\(\-22\) AS col1" at position 0 and "nullif\(\(\- CASE Int64\(71\) WHEN Int64\(\-71\) THEN Int64\(80\) ELSE Int64\(51\) / Int64\(97\) \* \(\- count\(\*\)\) END\), Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / Int64\(78\) \* Int64\(\-3\) \* Int64\(\-22\) AS col1" at position 0 and "nullif\(\(\- CASE Int64\(71\) WHEN Int64\(\-71\) THEN Int64\(80\) ELSE Int64\(51\) / Int64\(97\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\), Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 / + 78 * - 3 * + - 22 AS col1, NULLIF ( - + CASE + 71 WHEN + - 71 THEN 80 ELSE 51 / + 97 * - COUNT ( * ) END, - 75 ) AS col1 query I rowsort label-2574 @@ -14665,7 +14665,7 @@ SELECT + + 74 * + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "count\(\*\) \+ Int64\(11\) / Int64\(\-2\) \+ Int64\(83\) \+ Int64\(63\) \- min\(DISTINCT Int64\(\-92\)\) \* \(\- CASE Int64\(70\) WHEN Int64\(56\) \- \(\- Int64\(\-7\)\) \+ Int64\(\-39\) \* \(\- count\(Int64\(29\)\)\) THEN Int64\(\-45\) \* Int64\(3\) \* Int64\(98\) WHEN Int64\(25\) THEN Int64\(6\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(11\) / Int64\(\-2\) \+ Int64\(83\) \+ Int64\(63\) \- min\(DISTINCT Int64\(\-92\)\) \* \(\- CASE Int64\(70\) WHEN Int64\(56\) \- \(\- Int64\(\-7\)\) \+ Int64\(\-39\) \* \(\- count\(Int64\(29\)\)\) THEN Int64\(\-45\) \* Int64\(3\) \* Int64\(98\) WHEN Int64\(25\) THEN Int64\(6\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 84 AS col1, + COUNT ( * ) + 11 / + ( - 2 ) + 83 + + 63 - + MIN ( DISTINCT - 92 ) * - CASE 70 WHEN + 56 - - - 7 + + - 39 * + - COUNT ( ALL 29 ) THEN - 45 * + 3 * + 98 WHEN 25 THEN + 6 ELSE NULL END AS col1 query II rowsort @@ -17425,7 +17425,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\(\*\) 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 @@ -17925,7 +17925,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 215 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(62\) \+ \(\- Int64\(\-72\)\) AS col0" at position 0 and "CASE CAST\(\(\- Int64\(14\)\) AS Int32\) WHEN CAST\(NULL AS Float64\) THEN count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(62\) \+ \(\- Int64\(\-72\)\) AS col0" at position 0 and "CASE CAST\(\(\- Int64\(14\)\) AS Int32\) WHEN CAST\(NULL AS Float64\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 81 + + 62 + - - 72 AS col0, + CASE + CAST ( - ( + 14 ) AS INTEGER ) WHEN + + CAST ( NULL AS FLOAT8 ) THEN COUNT ( * ) END AS col0 query I rowsort label-3411 @@ -18020,7 +18020,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\(\*\) 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 @@ -18088,7 +18088,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\(\*\) AS col0" at position 1 have the 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 @@ -19161,7 +19161,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 col1" at position 0 and "Int64\(4\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(4\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( 40 ) col1, 4 + - COUNT ( * ) AS col1 query I rowsort label-3645 @@ -19969,7 +19969,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\(\*\) 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 @@ -20639,7 +20639,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\(\*\) AS col0" at position 1 have 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 @@ -20913,7 +20913,7 @@ SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), + 95 * + 36 * + 99 * - - 95, + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 6204 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(66\) \* 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\(66\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - COUNT ( * ) ) AS col1, 66 * + + 94 AS col1 query I rowsort label-3980 @@ -21124,7 +21124,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\(\*\) AS col1" at position 1 have the 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: @@ -21362,7 +21362,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- sum\(Int64\(\-62\)\)\), \(\- count\(\*\)\) \* \(\- Int64\(61\)\) \+ \(\- Int64\(75\)\)\) \- \(\- nullif\(Int64\(29\), \(\- 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 "nullif\(\(\- sum\(Int64\(\-62\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(61\)\) \+ \(\- Int64\(75\)\)\) \- \(\- nullif\(Int64\(29\), \(\- 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 + + NULLIF ( - SUM ( + - 62 ), - COUNT ( * ) * - + 61 + - + 75 ) - - ( + NULLIF ( 29, - COUNT ( * ) ) ) AS col1, 64 AS col1 query II rowsort label-4066 @@ -24170,7 +24170,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\(\*\) THEN Int64\(59\) \* Int64\(66\) / Int64\(\-80\) WHEN Int64\(78\) / Int64\(39\) \* Int64\(67\) THEN NULL WHEN count\(\*\) / Int64\(71\) THEN Int64\(8\) END\) \* Int64\(\-39\) \+ Int64\(21\) \- Int64\(\-1\) \* Int64\(64\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have 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 @@ -24232,7 +24232,7 @@ SELECT DISTINCT + 67 * + COUNT ( * ) AS col0 # 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\(8\) \+ \(\- \(\- 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\(8\) \+ \(\- \(\- 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 ALL + 8 + - - COUNT ( * ) col0, ( - + 0 ) col0 query I rowsort label-4611 @@ -24495,7 +24495,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\(\*\) AS col1" at position 1 have the 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 @@ -26970,7 +26970,7 @@ SELECT DISTINCT 58 + 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(84\)\) 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\(\*\) \+ \(\- Int64\(84\)\) 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 ( * ) + - + 84 col0, - 4 AS col0 query I rowsort @@ -27248,7 +27248,7 @@ SELECT DISTINCT 15 * 9 AS col1, COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(nullif\(Int64\(89\), Int64\(\-46\)\)\) AS col1" at position 0 and "Int64\(32\) \+ \(\- count\(\*\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(nullif\(Int64\(89\), Int64\(\-46\)\)\) AS col1" at position 0 and "Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( + NULLIF ( + + 89, + - 46 ) ) AS col1, + 32 + - COUNT ( * ) * + - 27 col1 query I rowsort label-5187 @@ -28178,7 +28178,7 @@ SELECT ALL - 5 * + - 75 + + 8 + - ( 47 ) - - - 88 + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(19\) WHEN Int64\(\-96\) THEN Int64\(\-74\) \* Int64\(62\) WHEN Int64\(85\) THEN NULL WHEN Int64\(\-94\) THEN Int64\(\-53\) ELSE count\(\*\) END \* \(\- Int64\(\-91\)\) AS col0" at position 0 and "count\(\*\) \* \(\- max\(Int64\(39\)\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(19\) WHEN Int64\(\-96\) THEN Int64\(\-74\) \* Int64\(62\) WHEN Int64\(85\) THEN NULL WHEN Int64\(\-94\) THEN Int64\(\-53\) ELSE count\(Int64\(1\)\) AS count\(\*\) END \* \(\- Int64\(\-91\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(Int64\(39\)\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE + 19 WHEN - 96 THEN - 74 * + + 62 WHEN 85 THEN NULL WHEN - 94 THEN - 53 ELSE COUNT ( * ) END * - - 91 AS col0, + COUNT ( * ) * - MAX ( ALL + 39 ) * - CAST ( NULL AS INTEGER ) + - 82 AS col0 query I rowsort label-5364 @@ -28204,7 +28204,7 @@ SELECT ALL + 28 * - 28 * + 5 - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(24\) \* count\(\*\) / Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 24 * COUNT ( * ) / - 81 AS col0 query I rowsort @@ -28426,7 +28426,7 @@ SELECT - ( 54 ) * - 87 + - ( + + 78 ) # Datafusion - Expected - 4214 # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(98\) AS col1" at position 0 and "count\(\*\) \* Int64\(84\) \* Int64\(99\) \+ Int64\(\-15\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(84\) \* Int64\(99\) \+ Int64\(\-15\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 43 * 98 AS col1, MAX ( DISTINCT + 15 ), COUNT ( * ) * 84 * 99 + - 15 + - - CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -30338,7 +30338,7 @@ SELECT + 16 * + 16 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\(\*\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col1, + 10 AS col1 query I rowsort @@ -30554,7 +30554,7 @@ SELECT - 88 * + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1702 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(\-37\) AS col0" at position 0 and "Int64\(98\) \+ \(\- count\(\*\)\) \- \(\- 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\(\-46\) \* Int64\(\-37\) AS col0" at position 0 and "Int64\(98\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 46 * - 37 AS col0, + 98 + - COUNT ( * ) - + ( - + 40 ) AS col0 query I rowsort label-5819 @@ -30946,7 +30946,7 @@ SELECT DISTINCT - 24 / + 11 - + + 36 + ( - - 12 ) AS col1 # Datafusion - Expected - 31 # Datafusion - Expected - 39 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 1 and "Int64\(42\) \* \(\- 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\(39\) AS col0" at position 1 and "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 31, + 39 AS col0, + 42 * - COUNT ( * ) AS col0 query I rowsort @@ -32321,7 +32321,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\(\*\) \* 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 @@ -32965,7 +32965,7 @@ SELECT ALL 83 AS col0, 36 * 89 + - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -117547 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- max\(Int64\(\-90\)\)\) \* \(\- Int64\(\-96\)\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-94\) / count\(\*\) \* \(\- coalesce\(\(\- \(\- CAST\(Int64\(6\) AS Float64\)\)\), Int64\(39\) \+ Int64\(50\)\)\) AS col2" at position 0 and "\(\- Int64\(90\)\) \* \(\- nullif\(Int64\(15\), Int64\(9\)\)\) \* Int64\(\-87\) \+ Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- max\(Int64\(\-90\)\)\) \* \(\- Int64\(\-96\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-94\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(\(\- \(\- CAST\(Int64\(6\) AS Float64\)\)\), Int64\(39\) \+ Int64\(50\)\)\) AS col2" at position 0 and "\(\- Int64\(90\)\) \* \(\- nullif\(Int64\(15\), Int64\(9\)\)\) \* Int64\(\-87\) \+ Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - MAX ( ( - 90 ) ) * - - 96 * - - COUNT ( * ) * - 94 / + COUNT ( * ) * - COALESCE ( - ( - CAST ( + 6 AS FLOAT8 ) ), + 39 + 50 ) AS col2, - ( 90 ) * ( + - NULLIF ( 15, 9 ) ) * + - 87 + - 97 AS col2 # Datafusion - Types were automatically converted from: @@ -36316,7 +36316,7 @@ SELECT ALL 73 + + 84 + ( + 11 ) / + + 71 * - 89 + - 51 / - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \+ Int64\(\-19\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \+ Int64\(\-19\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 77 AS INTEGER ) + - 19 AS col0, ( - COUNT ( * ) ) AS col0 query I rowsort @@ -37043,7 +37043,7 @@ SELECT DISTINCT + 47 * 94 AS col2, ( + NULLIF ( + 63, - NULLIF ( + 70, + + 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "count\(\*\) \- \(\- count\(\*\)\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 24 col1, COUNT ( * ) - - + COUNT ( * ) * - 73 AS col1 query I rowsort label-7056 @@ -37344,7 +37344,7 @@ SELECT - NULLIF ( - 30, 52 ) * COUNT ( * ) AS col1 # Datafusion - Expected - 12 # Datafusion - Expected - -1459 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(4\) \+ Int64\(71\) \* count\(\*\) \* Int64\(\-21\) AS col2" at position 1 and "Int64\(\-86\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(4\) \+ Int64\(71\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\) AS col2" at position 1 and "Int64\(\-86\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 12 AS col1, 28 + + 4 + + 71 * COUNT ( * ) * - 21 AS col2, + - 86 AS col2 query I rowsort @@ -38145,7 +38145,7 @@ SELECT DISTINCT 41 - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42309 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-25\) \+ Int64\(\-51\) \+ Int64\(\-87\) \+ count\(\*\) \* \(\- count\(\*\)\) \* Int64\(13\) \* Int64\(99\) \* Int64\(\-33\) AS col1" at position 0 and "Int64\(\-92\) \* \(\- CAST\(NULL AS Int32\)\) / \(\- min\(Int64\(52\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-25\) \+ Int64\(\-51\) \+ Int64\(\-87\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(13\) \* Int64\(99\) \* Int64\(\-33\) AS col1" at position 0 and "Int64\(\-92\) \* \(\- CAST\(NULL AS Int32\)\) / \(\- min\(Int64\(52\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - 25 + - 51 + - 87 + COUNT ( * ) * - COUNT ( * ) * 13 * + 99 * - 33 AS col1, - 92 * - CAST ( NULL AS INTEGER ) / - MIN ( 52 ) AS col1 query I rowsort @@ -38816,7 +38816,7 @@ SELECT ALL + 60 * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5092 # Datafusion - Expected - 2358 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(\-67\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-21\) \- \(\- Int64\(82\)\) \* 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\(76\) \* Int64\(\-67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-21\) \- \(\- Int64\(82\)\) \* Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 * - 67 AS col0, + COUNT ( * ) + - 21 - - + 82 * + 29 AS col0 query II rowsort label-7391 @@ -39170,7 +39170,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) / Int64\(\-23\) AS col2" at position 0 and "Int64\(0\) \- Int64\(26\) \* \(\- count\(\*\)\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) / Int64\(\-23\) AS col2" at position 0 and "Int64\(0\) \- Int64\(26\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 / - 23 AS col2, 0 - 26 * - + COUNT ( * ) + - 88 AS col2 query I rowsort label-7458 @@ -40950,7 +40950,7 @@ SELECT - + ( + 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(84\) AS col0" at position 0 and "Int64\(71\) / Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(84\) AS col0" at position 0 and "Int64\(71\) / Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 86 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 84 AS col0, 71 / + 63 AS col0 query I rowsort @@ -41808,7 +41808,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\(\*\) AS col2" at position 1 have 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 @@ -42887,7 +42887,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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: @@ -44786,7 +44786,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\(\*\) AS col2" at position 1 have the 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 @@ -45501,7 +45501,7 @@ SELECT + CASE + - ( - 74 ) WHEN - + CAST ( NULL AS FLOAT8 ) THEN + + 10 ELSE - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - -3128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(57\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-92\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(57\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-92\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 + + 57 AS col1, + COUNT ( * ) * - 92 * + 34 AS col1 query I rowsort @@ -45914,7 +45914,7 @@ SELECT 59 + - 70 * - + COUNT ( * ) + - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "coalesce\(\(\- min\(\(\- Int64\(41\)\)\)\), Int64\(0\) / Int64\(\-56\) / Int64\(39\) / Int64\(\-23\) \* count\(\*\)\) AS col0" at position 1 have the 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 "coalesce\(\(\- min\(\(\- Int64\(41\)\)\)\), Int64\(0\) / Int64\(\-56\) / Int64\(39\) / Int64\(\-23\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 38 col0, COALESCE ( - MIN ( - ( 41 ) ), + 0 / - 56 / 39 / - 23 * + COUNT ( * ) ) AS col0 query I rowsort label-8747 @@ -46219,7 +46219,7 @@ SELECT - ( + SUM ( DISTINCT - 90 ) ) * COUNT ( - 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(30\) \+ Int64\(\-6\) AS col1" at position 0 and "Int64\(\-3\) \- Int64\(43\) \+ \(\- max\(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\(\*\) \* Int64\(30\) \+ Int64\(\-6\) AS col1" at position 0 and "Int64\(\-3\) \- Int64\(43\) \+ \(\- max\(Int64\(\-96\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 30 + - 6 AS col1, - 3 - 43 + - + MAX ( ALL - 96 ) AS col1 query II rowsort label-8805 @@ -46548,7 +46548,7 @@ SELECT DISTINCT - ( + 40 ) AS col2, + 82 - + 39 AS col1 # 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\(40\) \+ Int64\(12\) AS col0" at position 0 and "\(\- coalesce\(\(\- Int64\(\-3\)\), Int64\(\-29\) \* count\(\*\) \- Int64\(87\) \+ Int64\(79\) \+ Int64\(\-91\), 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\(40\) \+ Int64\(12\) AS col0" at position 0 and "\(\- coalesce\(\(\- Int64\(\-3\)\), Int64\(\-29\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(87\) \+ Int64\(79\) \+ Int64\(\-91\), Int64\(\-87\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 40 + + 12 AS col0, - COALESCE ( - - 3, - 29 * + COUNT ( * ) - 87 + 79 + - 91, - 87 ) AS col0 query I rowsort @@ -46916,7 +46916,7 @@ SELECT - SUM ( ALL + - 65 ) * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5438 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) / \(\- max\(Int64\(29\)\)\) \- Int64\(\-68\) \* Int64\(16\) \* \(\- count\(\*\)\) \* Int64\(5\) AS col0" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) / \(\- max\(Int64\(29\)\)\) \- Int64\(\-68\) \* Int64\(16\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(5\) AS col0" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 68 / - + MAX ( + + 29 ) - - 68 * + 16 * - COUNT ( * ) * + + 5 AS col0, + CAST ( - 3 AS INTEGER ) AS col0 query I rowsort label-8939 @@ -48223,7 +48223,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\(\*\) AS col1" at position 1 have the 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 @@ -48750,7 +48750,7 @@ SELECT DISTINCT - 54 * + 58 + + 82 + 40 / - ( + 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / Int64\(72\) 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\(\*\)\) / Int64\(72\) 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 ( * ) / + + 72 AS col0, 11 AS col0 query I rowsort label-9287 @@ -50362,7 +50362,7 @@ SELECT DISTINCT 16 + 9 + - 61 * + 6 * 82 * 42 + + 13 + + 54 * + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "count\(\*\) \* nullif\(Int64\(\-56\), 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\(88\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(\-56\), Int64\(95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 AS col0, ( COUNT ( * ) ) * NULLIF ( - 56, 95 ) AS col0 query I rowsort @@ -52464,7 +52464,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\(\*\) 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 4ce5be6..57ddb9b 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\(\*\) AS col1" at position 1 have the 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 @@ -1665,7 +1665,7 @@ SELECT ALL 16 * 36 * + + COALESCE ( ( - 68 ), + - 56 * + + 73 + 15 ) AS col1, CO # 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\(\*\)\) 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 - COUNT ( * ) AS col0, 29 AS col0 # Datafusion - Types were automatically converted from: @@ -2404,7 +2404,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\(3\) AS col2" at position 0 and "Int64\(30\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -3925,7 +3925,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\(\*\) AS col0" at position 1 have the 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 @@ -3978,7 +3978,7 @@ SELECT COUNT ( * ) * - 68 * - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(\*\)\), \(\- Int64\(60\)\) \+ \(\- Int64\(\-18\)\) \+ Int64\(86\) \+ \(\- Int64\(\-11\)\) \* Int64\(\-14\)\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN sum\(nullif\(Int64\(92\), \(\- Int64\(\-38\)\)\)\) THEN Int64\(\-33\) ELSE NULL END AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(60\)\) \+ \(\- Int64\(\-18\)\) \+ Int64\(86\) \+ \(\- Int64\(\-11\)\) \* Int64\(\-14\)\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN sum\(nullif\(Int64\(92\), \(\- Int64\(\-38\)\)\)\) THEN Int64\(\-33\) ELSE NULL END AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( - + COUNT ( * ), - + 60 + - - 18 + 86 + - - 11 * ( - 14 ) ) + + ( + CASE - CAST ( NULL AS INTEGER ) WHEN + SUM ( + + NULLIF ( + 92, - - 38 ) ) THEN - 33 ELSE NULL END ) AS col2, 84 AS col2 query I rowsort @@ -4516,7 +4516,7 @@ SELECT COUNT ( * ) * - - NULLIF ( - 44, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(\-76\)\) \+ Int64\(44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(63\)\) AS Int32\)\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-76\)\) \+ Int64\(44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(63\)\) AS Int32\)\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + - - 76 + + 44 AS col1, - CAST ( - + 63 AS INTEGER ) + 7 AS col1 query I rowsort @@ -4803,7 +4803,7 @@ SELECT + 61 * 70 AS col1 # 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\(3\) 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\(\*\) \* Int64\(3\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + 3 AS col0, 18 col0 query I rowsort @@ -5036,7 +5036,7 @@ SELECT DISTINCT 49 * - 23 # Datafusion - Expected - 837 # Datafusion - Expected - -4400 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(69\) \* Int64\(12\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(69\) \* Int64\(12\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + + 69 * + 12 + + 8 col2, + NULLIF ( - + 55, - 61 + - - CAST ( NULL AS FLOAT8 ) ) * 80 AS col0, 10 AS col2 query I rowsort @@ -5464,7 +5464,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\(\*\) AS col0" at position 1 have the 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 @@ -8280,7 +8280,7 @@ SELECT + COALESCE ( - COUNT ( * ), + + 83 * - + 44 + + 21 + - 91 + - 38 * - ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 2116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(99\) \+ count\(\*\) \+ min\(DISTINCT Int64\(\-84\)\) \* \(\- Int64\(24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ min\(DISTINCT Int64\(\-84\)\) \* \(\- Int64\(24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 52 AS col2, ( 99 ) + + COUNT ( * ) + MIN ( DISTINCT - 84 ) * - + 24 AS col2 query I rowsort label-1583 @@ -10237,7 +10237,7 @@ SELECT ALL - 31 + - 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -2432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) AS col2" at position 0 and "Int64\(\-39\) \+ \(\- Int64\(26\)\) \* Int64\(92\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the 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 "Int64\(\-39\) \+ \(\- Int64\(26\)\) \* Int64\(92\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 58 col2, - 39 + - + 26 * + 92 + + - COUNT ( * ) AS col2 query I rowsort @@ -11355,7 +11355,7 @@ SELECT - + 53 + + NULLIF ( - - 98, + 17 + - ( - 84 ) + 49 + COUNT ( DISTINCT - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1221 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) / \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(35\) \+ \(\- Int64\(47\)\) \- nullif\(nullif\(Int64\(14\), Int64\(50\)\), Int64\(86\)\) \* Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(35\) \+ \(\- Int64\(47\)\) \- nullif\(nullif\(Int64\(14\), Int64\(50\)\), Int64\(86\)\) \* Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 84 / - COUNT ( * ) AS col2, 43 + + 35 + - + 47 - NULLIF ( + NULLIF ( + 14, + 50 ), 86 ) * - 85 col2 query I rowsort label-2167 @@ -12222,7 +12222,7 @@ SELECT - - ( - + 25 ) AS col2, MIN ( + 8 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3952 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* CASE \(\- count\(\*\)\) WHEN Int64\(\-27\) \* min\(Int64\(\-92\)\) \+ max\(Int64\(\-9\)\) THEN count\(\*\) WHEN CASE Int64\(4\) WHEN Int64\(85\) THEN Int64\(\-26\) END \+ Int64\(19\) \+ \(\- Int64\(88\)\) THEN NULL ELSE Int64\(59\) \+ \(\- Int64\(79\)\) END AS col0" at position 0 and "Int64\(52\) \* min\(Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-27\) \* min\(Int64\(\-92\)\) \+ max\(Int64\(\-9\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN CASE Int64\(4\) WHEN Int64\(85\) THEN Int64\(\-26\) END \+ Int64\(19\) \+ \(\- Int64\(88\)\) THEN NULL ELSE Int64\(59\) \+ \(\- Int64\(79\)\) END AS col0" at position 0 and "Int64\(52\) \* min\(Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) * + CASE - COUNT ( * ) WHEN - 27 * + MIN ( + - 92 ) + + MAX ( - 9 ) THEN + COUNT ( * ) WHEN + + CASE 4 WHEN 85 THEN - 26 END + + 19 + - + 88 THEN NULL ELSE 59 + - ( 79 ) END AS col0, 52 * + MIN ( 76 ) AS col0 query I rowsort label-2330 @@ -12995,7 +12995,7 @@ SELECT - - ( - COUNT ( - 34 ) ) + 13 + COUNT ( ( - ( - + 12 ) ) ) # 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\(\*\)\)\) 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 - - COUNT ( * ) AS col0, - 24 AS col0 query I rowsort label-2479 @@ -13082,7 +13082,7 @@ SELECT + 39 + + - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -248201 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(64\) \* Int64\(97\) \* Int64\(\-40\) \+ Int64\(33\) \+ Int64\(86\) AS col2" at position 0 and "count\(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\(\*\) \* Int64\(64\) \* Int64\(97\) \* Int64\(\-40\) \+ Int64\(33\) \+ Int64\(86\) AS col2" at position 0 and "count\(Int64\(\-87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 64 * 97 * - 40 + + 33 + + 86 col2, COUNT ( - 87 ) AS col2 query I rowsort label-2496 @@ -13300,7 +13300,7 @@ SELECT 13 * + - 99 # 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 "\(\- CASE \(\- Int64\(0\)\) WHEN \(\- Int64\(71\)\) THEN NULL WHEN \(\- coalesce\(Int64\(55\), Int64\(61\) \* Int64\(39\) / Int64\(6\) \* Int64\(\-60\), min\(Int64\(47\)\) \* Int64\(14\) \+ count\(\*\)\)\) \+ Int64\(\-91\) / \(\- \(\- sum\(Int64\(65\)\)\)\) THEN \(\- count\(\*\)\) ELSE NULL END\) 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 "\(\- CASE \(\- Int64\(0\)\) WHEN \(\- Int64\(71\)\) THEN NULL WHEN \(\- coalesce\(Int64\(55\), Int64\(61\) \* Int64\(39\) / Int64\(6\) \* Int64\(\-60\), min\(Int64\(47\)\) \* Int64\(14\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-91\) / \(\- \(\- sum\(Int64\(65\)\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE - + 0 WHEN - + 71 THEN NULL WHEN + - COALESCE ( 55, + 61 * + 39 / 6 * - 60, MIN ( ALL + 47 ) * + 14 + + COUNT ( * ) ) + + - 91 / - - SUM ( + 65 ) THEN - COUNT ( * ) ELSE NULL END AS col0, 17 AS col0 query I rowsort label-2538 @@ -13691,7 +13691,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\(\*\) 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 @@ -14110,7 +14110,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\(\*\) 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 @@ -14245,7 +14245,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\(\*\) AS col1" at position 1 have the 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 @@ -14482,7 +14482,7 @@ SELECT 56 + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- \(\- Int64\(\-58\)\) \+ \(\- \(\- count\(\*\)\)\) \- Int64\(\-90\) AS col0" at position 0 and "Int64\(20\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- \(\- Int64\(\-58\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-90\) AS col0" at position 0 and "Int64\(20\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 22 - - - 58 + - - COUNT ( * ) - - 90 AS col0, 20 * 32 AS col0 query I rowsort label-2765 @@ -15230,7 +15230,7 @@ SELECT ALL - 89 / + 51 # 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\(\*\)\) AS col2" at position 1 have the 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 ( * ) AS col2 query I rowsort label-2912 @@ -15855,7 +15855,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\(\*\) AS col1" at position 1 have the 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 @@ -16768,7 +16768,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\(\*\) 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 @@ -17862,7 +17862,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\(\*\) AS col2" at position 1 have the 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 @@ -18463,7 +18463,7 @@ SELECT ALL 87 * + ( 72 ) * + 69 AS col0 # Datafusion - Expected - 61 # Datafusion - Expected - 101 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ count\(\*\) \+ Int64\(92\) AS col0" at position 1 and "Int64\(53\) 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\(8\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(92\) AS col0" at position 1 and "Int64\(53\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 61, 8 + COUNT ( * ) + + 92 col0, 53 AS col0 query I rowsort @@ -19362,7 +19362,7 @@ SELECT - 87 AS col1, 13 * + 67 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2307 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(30\) \* \(\- min\(DISTINCT \(\- Int64\(76\)\)\)\) \+ 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\(30\) \* \(\- min\(DISTINCT \(\- Int64\(76\)\)\)\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + 30 * - MIN ( DISTINCT - + 76 ) + + 27 AS col1 query I rowsort @@ -19635,7 +19635,7 @@ SELECT DISTINCT + - SUM ( 88 ) # 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\(\*\)\) 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 II rowsort @@ -20736,7 +20736,7 @@ SELECT NULLIF ( + 17, + + 15 ) # 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\(\*\) \* \(\- 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\(\*\) \* \(\- 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 ( * ) * - COUNT ( * ) AS col2, - 29 AS col2 query II rowsort label-3960 @@ -21345,7 +21345,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1942 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ Int64\(24\) \* Int64\(80\) AS col0" at position 0 and "\(\- CASE count\(\*\) WHEN count\(\*\) THEN count\(\*\) \- Int64\(82\) \+ Int64\(\-7\) WHEN \(\- sum\(Int64\(5\)\)\) \+ Int64\(90\) \+ Int64\(99\) 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\(22\) \+ Int64\(24\) \* Int64\(80\) AS col0" at position 0 and "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(1\)\) AS count\(\*\) \- Int64\(82\) \+ Int64\(\-7\) WHEN \(\- sum\(Int64\(5\)\)\) \+ Int64\(90\) \+ Int64\(99\) THEN NULL ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 22 + + 24 * + + 80 AS col0, - CASE COUNT ( * ) WHEN + COUNT ( * ) THEN + COUNT ( * ) - + 82 + - 7 WHEN - SUM ( 5 ) + 90 + + 99 THEN NULL ELSE NULL END AS col0 query I rowsort label-4076 @@ -22030,7 +22030,7 @@ SELECT ALL COUNT ( + + 10 ) * 89 + 62 + + ( + 0 ) # 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\(\*\)\) 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 - ( + COUNT ( * ) ) AS col0, 38 AS col0 query I rowsort @@ -22843,7 +22843,7 @@ SELECT - 64 AS col2, - 95 # Datafusion - Expected - NULL # Datafusion - Expected - -11 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(99\)\)\) \+ Int64\(29\) \* \(\- \(\- sum\(Int64\(\-29\)\)\)\) \* \(\- Int64\(\-86\)\) \+ coalesce\(Int64\(\-46\), avg\(Int64\(\-85\)\) / CAST\(Int64\(\-31\) AS Int32\), Int64\(46\)\) \+ Int64\(92\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(\*\) \+ Int64\(10\) \- Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(99\)\)\) \+ Int64\(29\) \* \(\- \(\- sum\(Int64\(\-29\)\)\)\) \* \(\- Int64\(\-86\)\) \+ coalesce\(Int64\(\-46\), avg\(Int64\(\-85\)\) / CAST\(Int64\(\-31\) AS Int32\), Int64\(46\)\) \+ Int64\(92\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(10\) \- Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + SUM ( DISTINCT 99 ) + 29 * - - SUM ( ALL - 29 ) * - - 86 + + + COALESCE ( - 46, + AVG ( ALL - 85 ) / + + CAST ( - 31 AS INTEGER ), + 46 ) + + + 92 * + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + + 10 - 22 AS col0, 89 + - 1 + COUNT ( * ) query I rowsort label-4361 @@ -24510,7 +24510,7 @@ SELECT COALESCE ( 6, NULLIF ( 1, 19 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(\-75\) \* CAST\(NULL AS Int32\) \- Int64\(14\) \- Int64\(29\) \+ coalesce\(Int64\(72\), Int64\(9\) \* coalesce\(Int64\(51\), avg\(DISTINCT coalesce\(Int64\(93\), Int64\(45\)\)\) \- max\(DISTINCT Int64\(48\)\)\), \(\- count\(\*\)\) \* count\(DISTINCT Int64\(31\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(\-75\) \* CAST\(NULL AS Int32\) \- Int64\(14\) \- Int64\(29\) \+ coalesce\(Int64\(72\), Int64\(9\) \* coalesce\(Int64\(51\), avg\(DISTINCT coalesce\(Int64\(93\), Int64\(45\)\)\) \- max\(DISTINCT Int64\(48\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(DISTINCT Int64\(31\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 32 AS col2, - 12 + - 75 * + CAST ( NULL AS INTEGER ) - + 14 - + 29 + COALESCE ( + 72, 9 * COALESCE ( ( 51 ), + AVG ( DISTINCT COALESCE ( 93, 45 ) ) - MAX ( DISTINCT 48 ) ), - COUNT ( * ) * COUNT ( DISTINCT 31 ) ) AS col2 query I rowsort @@ -25794,7 +25794,7 @@ SELECT ALL - 64 / 97 AS col1 # 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 "coalesce\(count\(\*\), 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\(\-80\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 AS col0, COALESCE ( COUNT ( * ), + 28 ) AS col0 query I rowsort label-4930 @@ -26443,7 +26443,7 @@ SELECT DISTINCT - 93 + + - 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57960 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* min\(DISTINCT Int64\(14\)\) \* \(\- count\(\*\)\) \* Int64\(69\) AS col1" at position 0 and "Int64\(66\) \+ \(\- Int64\(\-28\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* min\(DISTINCT Int64\(14\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(69\) AS col1" at position 0 and "Int64\(66\) \+ \(\- Int64\(\-28\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 60 * MIN ( DISTINCT + + 14 ) * + - ( COUNT ( * ) ) * 69 AS col1, 66 + - - 28 AS col1 query I rowsort @@ -27332,7 +27332,7 @@ SELECT ALL + COUNT ( * ) * - - 59 + - + 2 - - + COUNT ( * ) + + 10 * 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(46\) \+ \(\- nullif\(\(\- Int64\(97\)\), Int64\(45\) \* \(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\)\)\) \+ Int64\(\-94\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(46\) \+ \(\- nullif\(\(\- Int64\(97\)\), Int64\(45\) \* \(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\)\)\) \+ Int64\(\-94\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 93 AS col1, + CAST ( NULL AS INTEGER ) + + 46 + + - NULLIF ( - + 97, + 45 * - - MIN ( ALL - - 57 ) ) + - 94 + - COUNT ( * ) AS col1 query I rowsort @@ -28008,7 +28008,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\(\*\) 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 @@ -28096,7 +28096,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\(\*\) AS col0" at position 0 and "Int64\(81\) / Int64\(\-53\) \+ \(\- \(\- 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 @@ -28381,7 +28381,7 @@ SELECT 3 * COUNT ( * ) * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- CAST\(\(\- Int64\(\-61\)\) AS Int32\)\) / \(\- Int64\(96\)\) \+ \(\- Int64\(40\)\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(68\)\) WHEN \(\- count\(\*\)\) THEN NULL WHEN coalesce\(Int64\(71\), Int64\(\-20\) \* \(\- max\(Int64\(\-36\)\)\)\) \+ \(\- Int64\(2\)\) THEN NULL WHEN Int64\(8\) THEN NULL WHEN Int64\(51\) \+ Int64\(8\) \- Int64\(13\) \* \(\- count\(\*\)\) \+ count\(\*\) \* Int64\(29\) \+ \(\- count\(\*\)\) THEN Int64\(51\) \* Int64\(56\) ELSE \(\- coalesce\(Int64\(92\), Int64\(72\) \* Int64\(14\)\)\) END\) / Int64\(53\) \+ Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(\(\- Int64\(\-61\)\) AS Int32\)\) / \(\- Int64\(96\)\) \+ \(\- Int64\(40\)\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(68\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN coalesce\(Int64\(71\), Int64\(\-20\) \* \(\- max\(Int64\(\-36\)\)\)\) \+ \(\- Int64\(2\)\) THEN NULL WHEN Int64\(8\) THEN NULL WHEN Int64\(51\) \+ Int64\(8\) \- Int64\(13\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(51\) \* Int64\(56\) ELSE \(\- coalesce\(Int64\(92\), Int64\(72\) \* Int64\(14\)\)\) END\) / Int64\(53\) \+ Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + - ( + CAST ( - - 61 AS INTEGER ) ) / - + 96 + - + 40 AS col0, - CASE - + 68 WHEN - COUNT ( * ) THEN NULL WHEN + + COALESCE ( + 71, - 20 * - ( MAX ( + - 36 ) ) ) + - ( 2 ) THEN NULL WHEN 8 THEN NULL WHEN + + 51 + + 8 - + 13 * - COUNT ( * ) + + COUNT ( * ) * 29 + - + COUNT ( * ) THEN 51 * 56 ELSE - COALESCE ( 92, 72 * 14 ) END / + 53 + - 66 AS col0 query I rowsort @@ -28424,7 +28424,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\(\*\) 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 @@ -28440,7 +28440,7 @@ SELECT - 36 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 445900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(\-97\)\)\)\) \* \(\- Int64\(76\)\) \+ CAST\(NULL AS Int32\) / Int64\(67\) AS col1" at position 0 and "CASE Int64\(86\) WHEN \(\- count\(\*\)\) \+ Int64\(80\) \* count\(\*\) \+ Int64\(\-43\) / \(\- Int64\(51\)\) THEN NULL ELSE Int64\(\-60\) \* Int64\(78\) \+ Int64\(91\) \+ \(\- \(\- Int64\(39\)\)\) END \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(\-97\)\)\)\) \* \(\- Int64\(76\)\) \+ CAST\(NULL AS Int32\) / Int64\(67\) AS col1" at position 0 and "CASE Int64\(86\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-43\) / \(\- Int64\(51\)\) THEN NULL ELSE Int64\(\-60\) \* Int64\(78\) \+ Int64\(91\) \+ \(\- \(\- Int64\(39\)\)\) END \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + ( - MAX ( - 97 ) ) * - + 76 + + CAST ( NULL AS INTEGER ) / 67 AS col1, CASE + 86 WHEN - COUNT ( * ) + + 80 * COUNT ( * ) + - 43 / - + 51 THEN NULL ELSE - 60 * + 78 + 91 + - - ( + 39 ) END * - 98 AS col1 query I rowsort @@ -28757,7 +28757,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\(\*\) 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 @@ -29240,7 +29240,7 @@ SELECT DISTINCT COALESCE ( - 50, - 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 56 -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\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 0 AS col0, + COUNT ( * ) * 56 AS col0 query I rowsort label-5588 @@ -29273,7 +29273,7 @@ SELECT + 34, 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -5148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(78\) \* \(\- \(\- coalesce\(\(\- Int64\(66\)\), Int64\(40\) \* count\(\*\) / Int64\(15\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(78\) \* \(\- \(\- coalesce\(\(\- Int64\(66\)\), Int64\(40\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(15\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 45 AS col1, 78 * - - COALESCE ( - + 66, 40 * + COUNT ( * ) / + + 15 ) AS col1 query I rowsort label-5594 @@ -29675,7 +29675,7 @@ SELECT + 98 + - 83 + - 73 - - ( - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 51 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-5672 @@ -29853,7 +29853,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\(\*\) 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 @@ -30116,7 +30116,7 @@ SELECT DISTINCT - 74 AS col0, + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-63\)\) AS col0" at position 0 and "Int64\(58\) \* \(\- count\(\*\)\) AS col0" at position 1 have the 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\(58\) \* \(\- 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, 58 * - COUNT ( * ) AS col0 query I rowsort @@ -30532,7 +30532,7 @@ SELECT - 47 * + + 10 - - ( + + 36 ) + + COUNT ( * ) / 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -1850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(\-25\) \* CAST\(coalesce\(\(\- coalesce\(avg\(Int64\(74\)\), \(\- Int64\(30\)\)\)\), Int64\(\-94\) \* \(\- CASE \(\- Int64\(\-53\)\) WHEN Int64\(\-21\) \+ Int64\(26\) THEN \(\- nullif\(Int64\(5\), Int64\(12\)\)\) \* \(\- Int64\(\-89\)\) \* Int64\(62\) ELSE NULL END\)\) AS Int32\) \* count\(Int64\(\-66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-25\) \* CAST\(coalesce\(\(\- coalesce\(avg\(Int64\(74\)\), \(\- Int64\(30\)\)\)\), Int64\(\-94\) \* \(\- CASE \(\- Int64\(\-53\)\) WHEN Int64\(\-21\) \+ Int64\(26\) THEN \(\- nullif\(Int64\(5\), Int64\(12\)\)\) \* \(\- Int64\(\-89\)\) \* Int64\(62\) ELSE NULL END\)\) AS Int32\) \* count\(Int64\(\-66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 AS col2, - COUNT ( * ) * - 25 * CAST ( + + COALESCE ( - COALESCE ( + AVG ( ALL + 74 ), - + 30 ), ( - 94 ) * - CASE - - 53 WHEN - 21 + 26 THEN - NULLIF ( 5, 12 ) * - - 89 * + 62 ELSE NULL END ) AS INTEGER ) * + COUNT ( - 66 ) AS col2 query I rowsort label-5835 @@ -30663,7 +30663,7 @@ SELECT ( + 69 ) + + + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 133778 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* CASE Int64\(\-23\) WHEN Int64\(60\) THEN NULL WHEN Int64\(64\) THEN NULL WHEN \(\- Int64\(\-34\)\) THEN CASE CASE Int64\(\-41\) WHEN Int64\(49\) THEN NULL WHEN Int64\(73\) THEN NULL ELSE Int64\(82\) END WHEN \(\- count\(\*\)\) \* Int64\(\-93\) THEN Int64\(16\) ELSE \(\- sum\(\(\- Int64\(\-46\)\)\)\) \+ Int64\(\-73\) END \* Int64\(36\) END \* Int64\(80\) \+ \(\- Int64\(72\)\) AS col0" at position 0 and "Int64\(91\) \* Int64\(98\) \* \(\- nullif\(max\(DISTINCT Int64\(\-15\)\), Int64\(38\)\)\) \+ Int64\(77\) / 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\(46\) \* CASE Int64\(\-23\) WHEN Int64\(60\) THEN NULL WHEN Int64\(64\) THEN NULL WHEN \(\- Int64\(\-34\)\) THEN CASE CASE Int64\(\-41\) WHEN Int64\(49\) THEN NULL WHEN Int64\(73\) THEN NULL ELSE Int64\(82\) END WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-93\) THEN Int64\(16\) ELSE \(\- sum\(\(\- Int64\(\-46\)\)\)\) \+ Int64\(\-73\) END \* Int64\(36\) END \* Int64\(80\) \+ \(\- Int64\(72\)\) AS col0" at position 0 and "Int64\(91\) \* Int64\(98\) \* \(\- nullif\(max\(DISTINCT Int64\(\-15\)\), Int64\(38\)\)\) \+ Int64\(77\) / Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 46 * CASE + - 23 WHEN 60 THEN NULL WHEN + 64 THEN NULL WHEN - - 34 THEN + CASE CASE - 41 WHEN + 49 THEN NULL WHEN 73 THEN NULL ELSE + + 82 END WHEN + - COUNT ( * ) * - 93 THEN 16 ELSE - + SUM ( - - 46 ) + - 73 END * + + 36 END * + 80 + - + 72 AS col0, + 91 * 98 * - + NULLIF ( + MAX ( DISTINCT + - 15 ), + 38 ) + + 77 / + 9 AS col0 query I rowsort label-5859 @@ -30755,7 +30755,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(58\) WHEN Int64\(55\) \+ Int64\(\-40\) THEN \(\- Int64\(58\)\) END \- count\(\(\- Int64\(37\)\)\) AS col0" at position 0 and "nullif\(Int64\(\-65\), Int64\(\-12\) \* \(\- count\(\*\)\)\) AS col0" at position 1 have 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\(58\) WHEN Int64\(55\) \+ Int64\(\-40\) THEN \(\- Int64\(58\)\) END \- count\(\(\- Int64\(37\)\)\) AS col0" at position 0 and "nullif\(Int64\(\-65\), Int64\(\-12\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE 58 WHEN 55 + - 40 THEN - + 58 END - COUNT ( ALL - + 37 ) col0, NULLIF ( - 65, - 12 * - + COUNT ( * ) ) AS col0 query I rowsort label-5877 @@ -30856,7 +30856,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6642 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-81\)\) \* Int64\(82\) AS col1" at position 0 and "CASE \(\- Int64\(\-62\)\) WHEN count\(\*\) THEN Int64\(16\) \- Int64\(76\) 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 "sum\(Int64\(\-81\)\) \* Int64\(82\) AS col1" at position 0 and "CASE \(\- Int64\(\-62\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(16\) \- Int64\(76\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT SUM ( - 81 ) * 82 AS col1, + CASE - - 62 WHEN + + COUNT ( * ) THEN 16 - + + 76 END col1 query I rowsort label-5896 @@ -30888,7 +30888,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\(\*\) AS col1" at position 1 have 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 @@ -31555,7 +31555,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\(\*\) 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 @@ -32171,7 +32171,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\(\*\) 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 @@ -32884,7 +32884,7 @@ SELECT ALL 94 * 67 # 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\) \* \(\- count\(\*\)\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 * - COUNT ( * ) AS col2, 94 + + - 95 AS col2 query I rowsort label-6284 @@ -34003,7 +34003,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\(\*\) AS col1" at position 1 have the 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 @@ -34083,7 +34083,7 @@ SELECT - 74 * + 36 - + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "\(\- sum\(Int64\(94\)\)\) \+ Int64\(\-32\) \+ CASE Int64\(\-44\) WHEN nullif\(Int64\(\-63\), coalesce\(\(\- Int64\(66\)\), count\(\*\), Int64\(42\) \+ \(\- nullif\(CAST\(Int64\(39\) AS Int32\), Int64\(20\)\)\)\)\) \+ Int64\(74\) THEN NULL WHEN Int64\(98\) / Int64\(52\) THEN Int64\(\-59\) \* Int64\(17\) END \+ count\(\*\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "\(\- sum\(Int64\(94\)\)\) \+ Int64\(\-32\) \+ CASE Int64\(\-44\) WHEN nullif\(Int64\(\-63\), coalesce\(\(\- Int64\(66\)\), count\(Int64\(1\)\) AS count\(\*\), Int64\(42\) \+ \(\- nullif\(CAST\(Int64\(39\) AS Int32\), Int64\(20\)\)\)\)\) \+ Int64\(74\) THEN NULL WHEN Int64\(98\) / Int64\(52\) THEN Int64\(\-59\) \* Int64\(17\) END \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 39 AS col0, - SUM ( + 94 ) + - 32 + + CASE - 44 WHEN + NULLIF ( - 63, COALESCE ( - + 66, COUNT ( * ), 42 + - NULLIF ( + CAST ( 39 AS INTEGER ), 20 ) ) ) + 74 THEN NULL WHEN 98 / 52 THEN - 59 * 17 END + COUNT ( * ) * - 60 AS col0 query I rowsort label-6514 @@ -34640,7 +34640,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\(\*\) 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 @@ -36494,7 +36494,7 @@ SELECT ALL + 68 + + + 39 + + 77 col0 # 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 "coalesce\(\(\- \(\- nullif\(Int64\(3\), Int64\(\-38\)\)\)\), Int64\(77\), \(\- \(\- count\(\*\)\)\)\) AS col1" at position 1 have the 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 "coalesce\(\(\- \(\- nullif\(Int64\(3\), Int64\(\-38\)\)\)\), Int64\(77\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 91 col1, ( + COALESCE ( - ( - NULLIF ( + 3, - 38 ) ), + ( 77 ), - - COUNT ( * ) ) ) AS col1 query I rowsort label-6974 @@ -36637,7 +36637,7 @@ SELECT DISTINCT + + 41 AS col2, 30 * - - 22 * + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4612 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \* Int64\(\-71\) \+ \(\- count\(\*\)\) \* CASE Int64\(88\) WHEN count\(\*\) THEN NULL WHEN Int64\(30\) THEN Int64\(67\) ELSE Int64\(\-64\) END \+ Int64\(75\) AS col2" at position 0 and "Int64\(35\) / Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \* Int64\(\-71\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(88\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(30\) THEN Int64\(67\) ELSE Int64\(\-64\) END \+ Int64\(75\) AS col2" at position 0 and "Int64\(35\) / Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 63 * - 71 + ( - COUNT ( * ) ) * CASE + 88 WHEN + COUNT ( * ) THEN NULL WHEN + 30 THEN + 67 ELSE + - 64 END + + + 75 col2, + 35 / + + 62 AS col2 query I rowsort label-7000 @@ -36781,7 +36781,7 @@ SELECT DISTINCT + 84 + ( + - 81 ) + 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(35\) AS col2" at position 0 and "Int64\(91\) \+ 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\(\*\)\) \* Int64\(35\) AS col2" at position 0 and "Int64\(91\) \+ Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) * + 35 col2, + 91 + 11 AS col2 query I rowsort label-7028 @@ -36855,7 +36855,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\(\*\) 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 @@ -37207,7 +37207,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\(\*\) 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 @@ -39042,7 +39042,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "count\(\*\) \* \(\- Int64\(66\)\) \* \(\- CASE \(\- Int64\(\-93\)\) WHEN nullif\(count\(\*\), Int64\(\-17\)\) THEN Int64\(\-79\) \* \(\- CAST\(NULL AS Float64\)\) / \(\- Int64\(\-49\)\) \* Int64\(\-53\) \+ Int64\(\-97\) END\) \+ Int64\(53\) \+ Int64\(\-61\) \* 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\(33\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(66\)\) \* \(\- CASE \(\- Int64\(\-93\)\) WHEN nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-17\)\) THEN Int64\(\-79\) \* \(\- CAST\(NULL AS Float64\)\) / \(\- Int64\(\-49\)\) \* Int64\(\-53\) \+ Int64\(\-97\) END\) \+ Int64\(53\) \+ Int64\(\-61\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 33 AS col2, COUNT ( * ) * - + 66 * - + CASE - - 93 WHEN + + NULLIF ( COUNT ( * ), - 17 ) THEN - 79 * - + CAST ( NULL AS FLOAT8 ) / - - 49 * - 53 + + - 97 END + 53 + - 61 * + 39 AS col2 query III rowsort label-7460 @@ -39284,7 +39284,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\(\*\) AS col1" at position 1 have the 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 @@ -39778,7 +39778,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\(\*\)\) \+ 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\(\*\) / \(\- min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(56\) \* Int64\(98\) \+ Int64\(32\) \* count\(\*\) AS col0" at position 1 have 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 @@ -40189,7 +40189,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -40335,7 +40335,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\(\*\) 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 @@ -43657,7 +43657,7 @@ SELECT DISTINCT 62 * + 73 + + - MAX ( + + 7 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4349 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-77\)\) AS col1" at position 0 and "Int64\(\-75\) \* Int64\(\-1\) \* Int64\(58\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the same 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 col1" at position 0 and "Int64\(\-75\) \* Int64\(\-1\) \* Int64\(58\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( - 77 ) AS col1, - 75 * - 1 * + 58 + - + ( + COUNT ( * ) ) AS col1 query I rowsort @@ -44120,7 +44120,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\(\*\) AS col0" at position 0 and "\(\- Int64\(46\)\) / \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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 @@ -44217,7 +44217,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\(\*\) 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 @@ -44488,7 +44488,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\(\-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\(\*\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -46354,7 +46354,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\(\*\) AS col0" at position 1 have the 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 @@ -46792,7 +46792,7 @@ SELECT + CAST ( + + 71 AS INTEGER ) + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 4017 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(71\) AS col2" at position 0 and "Int64\(49\) \+ \(\- Int64\(\-63\)\) \* Int64\(63\) \+ \(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("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 "Int64\(49\) \+ \(\- Int64\(\-63\)\) \* Int64\(63\) \+ \(\- 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, + 49 + - - 63 * + + 63 + + - COUNT ( * ) AS col2 query I rowsort @@ -47287,7 +47287,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\(\*\) 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 @@ -48097,7 +48097,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\(\*\) AS col2" at position 1 have the 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 @@ -48129,7 +48129,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -48746,7 +48746,7 @@ SELECT NULLIF ( + - 94, 79 * + - 90 * + - 21 ) - - - 12 AS col1, + 29 + 69 # 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\(\*\)\) 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 ALL - COUNT ( * ) AS col0, 60 AS col0 query I rowsort @@ -50410,7 +50410,7 @@ SELECT + + ( + NULLIF ( + 93, - 28 * + 3 + - COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2155 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* CAST\(\(\- Int64\(\-27\)\) AS Int32\) \- \(\- Int64\(\-86\)\) AS col1" at position 0 and "Int64\(20\) / \(\- coalesce\(\(\- count\(\*\)\), Int64\(12\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* CAST\(\(\- Int64\(\-27\)\) AS Int32\) \- \(\- Int64\(\-86\)\) AS col1" at position 0 and "Int64\(20\) / \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(12\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 83 * + CAST ( - + ( + - 27 ) AS INTEGER ) - - ( - 86 ) AS col1, 20 / - COALESCE ( - COUNT ( * ), + 12 ) AS col1 query I rowsort @@ -50442,7 +50442,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\(\*\) AS col2" at position 1 have the 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 @@ -51320,7 +51320,7 @@ SELECT ( - 47 ) col2 # 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 Float64\) \* CASE \(\- Int64\(\-40\)\) WHEN Int64\(6\) / count\(\*\) \* count\(DISTINCT Int64\(\-49\)\) \* Int64\(\-74\) \+ Int64\(91\) THEN NULL WHEN Int64\(\-30\) THEN Int64\(\-17\) END AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* CASE \(\- Int64\(\-40\)\) WHEN Int64\(6\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(DISTINCT Int64\(\-49\)\) \* Int64\(\-74\) \+ Int64\(91\) THEN NULL WHEN Int64\(\-30\) THEN Int64\(\-17\) END AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS FLOAT8 ) * CASE - - 40 WHEN + 6 / COUNT ( * ) * + COUNT ( DISTINCT - 49 ) * - 74 + 91 THEN NULL WHEN - 30 THEN - 17 END AS col0, 23 AS col0 query II rowsort label-9805 @@ -51572,7 +51572,7 @@ SELECT DISTINCT 52 * 43 * COALESCE ( - + 21, + CAST ( + ( + 41 ) AS INTEGER ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(7\), \(\- count\(\*\)\), \(\- Int64\(\-42\)\) \+ \(\- count\(\*\)\) \* Int64\(35\) \* Int64\(59\) \* Int64\(\-59\)\)\) 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 "\(\- coalesce\(Int64\(7\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-42\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(35\) \* Int64\(59\) \* Int64\(\-59\)\)\) 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 - COALESCE ( 7, - COUNT ( * ), - - 42 + - COUNT ( * ) * 35 * + 59 * - 59 ) AS col2, - 61 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_96.slt b/data/sqlite/random/expr/slt_good_96.slt index 2d86544..54feb17 100644 --- a/data/sqlite/random/expr/slt_good_96.slt +++ b/data/sqlite/random/expr/slt_good_96.slt @@ -336,7 +336,7 @@ SELECT COUNT ( DISTINCT + - 57 ) - - 53 + - 76 / - COUNT ( * ) - 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(60\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 have the 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 "Int64\(60\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 AS col1, + 60 * - - COUNT ( * ) AS col1 query I rowsort label-59 @@ -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\(\*\) 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 @@ -2554,7 +2554,7 @@ NULL # Datafusion - Expected - 33230 # Datafusion - Expected - 2673 # Datafusion - Expected - 2615 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(99\) AS col1" at position 1 and "Int64\(\-93\) \* Int64\(\-28\) \+ Int64\(12\) \+ \(\- count\(Int64\(4\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(99\) AS col1" at position 1 and "Int64\(\-93\) \* Int64\(\-28\) \+ Int64\(12\) \+ \(\- count\(Int64\(4\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 35 * 68 * - - 14 + - + 91 + COUNT ( * ), 27 * - - COUNT ( * ) * 99 AS col1, + - 93 * - 28 + + 12 + + - COUNT ( 4 ) AS col1 query I rowsort label-482 @@ -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\(\*\) AS col1" at position 1 have 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 @@ -3158,7 +3158,7 @@ SELECT + COUNT ( * ), 94 * + 43 + 96 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "count\(\*\) / CASE Int64\(\-59\) WHEN Int64\(91\) \* Int64\(52\) \* \(\- \(\- coalesce\(Int64\(29\), \(\- count\(DISTINCT \(\- Int64\(\-33\)\)\)\) \+ Int64\(\-86\) \* Int64\(90\), Int64\(\-5\) \- Int64\(84\)\)\)\) THEN Int64\(24\) END \* Int64\(23\) \+ Int64\(\-46\) \* 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\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CASE Int64\(\-59\) WHEN Int64\(91\) \* Int64\(52\) \* \(\- \(\- coalesce\(Int64\(29\), \(\- count\(DISTINCT \(\- Int64\(\-33\)\)\)\) \+ Int64\(\-86\) \* Int64\(90\), Int64\(\-5\) \- Int64\(84\)\)\)\) THEN Int64\(24\) END \* Int64\(23\) \+ Int64\(\-46\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 78 col0, ( COUNT ( * ) ) / + + CASE + - 59 WHEN + 91 * + + 52 * - - COALESCE ( 29, - COUNT ( DISTINCT - - 33 ) + - 86 * 90, - 5 - 84 ) THEN 24 END * 23 + - 46 * 14 AS col0 query I rowsort @@ -4057,7 +4057,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\(\*\)\) AS col1" at position 0 and "Int64\(25\) \+ 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\(25\) \+ Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, + 25 + 66 AS col1 query I rowsort label-768 @@ -4703,7 +4703,7 @@ SELECT ALL NULLIF ( 26, + 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5616 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* Int64\(72\) AS col0" at position 0 and "count\(\*\) \+ Int64\(\-41\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* Int64\(72\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-41\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 * + 72 AS col0, COUNT ( * ) + - 41 + - 56 AS col0 query I rowsort @@ -4924,7 +4924,7 @@ SELECT ALL CAST ( - ( ( - 62 ) ) AS INTEGER ) * + ( COUNT ( * ) ) # Datafusion - Expected - 94 # Datafusion - Expected - 79 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- \(\- count\(\*\)\)\) AS col1" at position 1 and "Int64\(55\) \* \(\- \(\- 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\(79\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 and "Int64\(55\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 + + 47 + - 51 AS col2, + 79 * + ( - - COUNT ( * ) ) AS col1, + 55 * - - COUNT ( * ) AS col1 query I rowsort @@ -6276,7 +6276,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\(\*\) AS col1" at position 1 have the 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 @@ -6415,7 +6415,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\(\*\) 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 @@ -8090,7 +8090,7 @@ SELECT ALL + SUM ( 92 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(9\) WHEN Int64\(58\) THEN \(\- count\(\*\)\) ELSE Int64\(\-58\) END 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 "CASE Int64\(9\) WHEN Int64\(58\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(\-58\) END AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE 9 WHEN + 58 THEN ( - COUNT ( * ) ) ELSE - 58 END col0, 7 AS col0 query II rowsort label-1540 @@ -8118,7 +8118,7 @@ SELECT DISTINCT - 49, - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CASE count\(\*\) WHEN CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) \* count\(\*\) THEN NULL ELSE \(\- Int64\(10\)\) \* \(\- Int64\(9\)\) \* Int64\(80\) \* \(\- \(\- count\(\*\)\)\) \* Int64\(\-19\) \+ CAST\(NULL AS Int32\) \* CASE nullif\(Int64\(90\), Int64\(22\) / Int64\(9\) \+ Int64\(89\)\) WHEN Int64\(17\) / CASE CAST\(\(\- count\(\*\)\) AS Int32\) WHEN \(\- count\(\*\)\) THEN Int64\(32\) ELSE Int64\(6\) END THEN Int64\(87\) WHEN Int64\(72\) \* Int64\(90\) \+ CASE Int64\(39\) WHEN count\(\*\) \- Int64\(40\) THEN NULL ELSE Int64\(34\) END \* max\(Int64\(\-43\) \+ Int64\(89\) \* Int64\(83\)\) THEN Int64\(\-4\) \* CASE Int64\(13\) \* \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(22\) THEN Int64\(65\) END \+ count\(\*\) WHEN Int64\(19\) / Int64\(35\) \+ Int64\(98\) THEN NULL END \- Int64\(77\) \* Int64\(65\) END \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE \(\- Int64\(10\)\) \* \(\- Int64\(9\)\) \* Int64\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-19\) \+ CAST\(NULL AS Int32\) \* CASE nullif\(Int64\(90\), Int64\(22\) / Int64\(9\) \+ Int64\(89\)\) WHEN Int64\(17\) / CASE CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(32\) ELSE Int64\(6\) END THEN Int64\(87\) WHEN Int64\(72\) \* Int64\(90\) \+ CASE Int64\(39\) WHEN count\(Int64\(1\)\) AS count\(\*\) \- Int64\(40\) THEN NULL ELSE Int64\(34\) END \* max\(Int64\(\-43\) \+ Int64\(89\) \* Int64\(83\)\) THEN Int64\(\-4\) \* CASE Int64\(13\) \* \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(22\) THEN Int64\(65\) END \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(19\) / Int64\(35\) \+ Int64\(98\) THEN NULL END \- Int64\(77\) \* Int64\(65\) END \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 AS col1, + CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE + - ( 10 ) * - ( 9 ) * 80 * - + ( - COUNT ( * ) ) * - 19 + + + CAST ( NULL AS INTEGER ) * + + CASE ( + NULLIF ( + 90, 22 / 9 + 89 ) ) WHEN 17 / + CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN - COUNT ( * ) THEN 32 ELSE ( 6 ) END THEN 87 WHEN 72 * 90 + CASE 39 WHEN COUNT ( * ) - 40 THEN NULL ELSE 34 END * + MAX ( ALL - 43 + ( + 89 ) * 83 ) THEN - 4 * CASE 13 * - CAST ( NULL AS INTEGER ) WHEN 22 THEN + 65 END + COUNT ( * ) WHEN + ( + 19 ) / 35 + 98 THEN NULL END - 77 * 65 END + 14 AS col1 query I rowsort @@ -8200,7 +8200,7 @@ SELECT ALL COALESCE ( + - 93, 6 ) AS col1 # Datafusion - Expected - 50 # Datafusion - Expected - 29 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-50\)\)\) AS col0" at position 0 and "\(\- 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 "\(\- max\(Int64\(\-50\)\)\) 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 - MAX ( + - 50 ) AS col0, 29, - COUNT ( * ) AS col0 query I rowsort @@ -8252,7 +8252,7 @@ SELECT + - 41 + - 4 AS col2 # 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\(10\) \* Int64\(\-1\) 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\(\*\) \+ Int64\(10\) \* Int64\(\-1\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + 10 * - 1 col2, 37 AS col2 query I rowsort label-1571 @@ -8757,7 +8757,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -1840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(23\) \* \(\- count\(\*\)\) \* Int64\(80\) \* \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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 "Int64\(23\) \* \(\- 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 ALL 85 AS col0, 23 * - COUNT ( * ) * 80 * - - COUNT ( * ) AS col0 query I rowsort @@ -9231,7 +9231,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\(\*\) AS col0" at position 1 have the 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 @@ -9274,7 +9274,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\(\*\) 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 @@ -9678,7 +9678,7 @@ SELECT 81 + + 65 + - 13 + + ( 31 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(44\) AS col0" at position 0 and "Int64\(49\) / 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\(\*\) \+ Int64\(44\) AS col0" at position 0 and "Int64\(49\) / Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + 44 AS col0, 49 / + 21 AS col0 query I rowsort label-1842 @@ -10276,7 +10276,7 @@ SELECT ALL ( + 9 ) * 9 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 581 # Datafusion - Expected - -1872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* \(\- CASE Int64\(67\) WHEN \(\- Int64\(75\)\) THEN count\(\*\) \* Int64\(82\) ELSE \(\- coalesce\(Int64\(\-7\), Int64\(60\) \* min\(Int64\(88\)\)\)\) END\) AS col1" at position 0 and "Int64\(78\) \* 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\(\-83\) \* \(\- CASE Int64\(67\) WHEN \(\- Int64\(75\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(82\) ELSE \(\- coalesce\(Int64\(\-7\), Int64\(60\) \* min\(Int64\(88\)\)\)\) END\) AS col1" at position 0 and "Int64\(78\) \* Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 83 * - CASE 67 WHEN - + 75 THEN COUNT ( * ) * 82 ELSE - COALESCE ( - 7, + 60 * + MIN ( 88 ) ) END AS col1, 78 * - 24 AS col1 query II rowsort label-1955 @@ -10765,7 +10765,7 @@ SELECT + 16 * - - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- Int64\(39\)\) AS col2" at position 0 and "count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- Int64\(39\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 4 + - + 39 AS col2, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) col2 query II rowsort @@ -11428,7 +11428,7 @@ SELECT - 73 AS col2, + ( + 55 ) / + 20 - + + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(\(\- Int64\(30\)\), \(\- nullif\(Int64\(\-81\), Int64\(\-53\) \+ CAST\(\(\- count\(\*\)\) AS Int32\)\)\) \+ Int64\(\-96\)\)\) AS Int32\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(\(\- Int64\(30\)\), \(\- nullif\(Int64\(\-81\), Int64\(\-53\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \+ Int64\(\-96\)\)\) AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + - NULLIF ( - + 30, - NULLIF ( - 81, - 53 + CAST ( - COUNT ( * ) AS INTEGER ) ) + - 96 ) AS INTEGER ) AS col2, - COUNT ( * ) AS col2 query I rowsort label-2173 @@ -12393,7 +12393,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\(\*\) 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 @@ -12689,7 +12689,7 @@ SELECT ALL + NULLIF ( + ( - COUNT ( * ) ), COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(57\) AS col0" at position 0 and "Int64\(\-36\) \* \(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("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\) 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 - + COUNT ( * ) - + + 57 AS col0, - 36 * - + COUNT ( * ) AS col0 query I rowsort @@ -13324,7 +13324,7 @@ SELECT 89 / - - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* \(\- count\(Int64\(\-17\)\)\) 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 "Int64\(33\) \* \(\- count\(Int64\(\-17\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 33 * - COUNT ( - 17 ) AS col1, + COUNT ( * ) + + - 92 AS col1 query I rowsort label-2533 @@ -19802,7 +19802,7 @@ SELECT MAX ( ALL - - 23 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "CASE \(\- CASE Int64\(\-30\) WHEN Int64\(61\) \* Int64\(8\) \+ \(\- Int64\(\-45\)\) THEN Int64\(88\) END\) WHEN sum\(Int64\(80\)\) THEN count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "CASE \(\- CASE Int64\(\-30\) WHEN Int64\(61\) \* Int64\(8\) \+ \(\- Int64\(\-45\)\) THEN Int64\(88\) END\) WHEN sum\(Int64\(80\)\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 AS col2, CASE - CASE - 30 WHEN 61 * 8 + - - 45 THEN + 88 END WHEN + SUM ( 80 ) THEN COUNT ( * ) END AS col2 query I rowsort label-3772 @@ -20886,7 +20886,7 @@ SELECT DISTINCT + 78, - 79 * + 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "coalesce\(Int64\(44\), coalesce\(Int64\(0\), Int64\(93\) \* \(\- count\(\*\)\), \(\- Int64\(68\)\)\) \* Int64\(84\)\) \- \(\- 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\(20\) AS col0" at position 0 and "coalesce\(Int64\(44\), coalesce\(Int64\(0\), Int64\(93\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(68\)\)\) \* Int64\(84\)\) \- \(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 20 AS col0, + COALESCE ( + + 44, COALESCE ( + 0, + 93 * - COUNT ( * ), - + 68 ) * 84 ) - - + 88 AS col0 query I rowsort label-3980 @@ -21509,7 +21509,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\(\*\) AS col1" at position 1 have the 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 @@ -23289,7 +23289,7 @@ SELECT - CAST ( + 53 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(\-75\) 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\(\*\)\) \+ Int64\(\-75\) 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 ( * ) + - 75 col2, 34 AS col2 query I rowsort @@ -23869,7 +23869,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\(\*\) AS col2" at position 0 and "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 @@ -24935,7 +24935,7 @@ SELECT 40 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 955 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ min\(DISTINCT Int64\(\-93\)\) \+ Int64\(\-17\) AS col2" at position 0 and "\(\- Int64\(\-5\)\) / \(\- count\(\*\)\) \+ Int64\(\-64\) \* Int64\(\-15\) \* nullif\(count\(\*\), \(\- Int64\(87\)\) \* Int64\(\-13\) \* Int64\(\-83\) \* Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ min\(DISTINCT Int64\(\-93\)\) \+ Int64\(\-17\) AS col2" at position 0 and "\(\- Int64\(\-5\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-64\) \* Int64\(\-15\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(87\)\) \* Int64\(\-13\) \* Int64\(\-83\) \* Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 33 + MIN ( DISTINCT - 93 ) + - 17 AS col2, ( - - 5 ) / - + COUNT ( * ) + + - 64 * + - 15 * + NULLIF ( COUNT ( * ), - + ( 87 ) * - 13 * - 83 * + ( 57 ) ) AS col2 query I rowsort label-4758 @@ -25504,7 +25504,7 @@ SELECT 46 / 33 * - ( - - 69 ) * - - COUNT ( * ) + + + ( + COALESCE ( + 73, COALE # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -5669 -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\(90\) \* 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\(44\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(90\) \* Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 AS col0, COUNT ( * ) + + 90 * - 63 AS col0 query I rowsort label-4869 @@ -26198,7 +26198,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\(\*\) 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 @@ -26701,7 +26701,7 @@ SELECT + COUNT ( * ) * ( + 9 ) # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - 469 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 1 and "Int64\(17\) \* Int64\(\-40\) \* \(\- count\(\*\)\) \+ Int64\(59\) \- nullif\(Int64\(14\), \(\- sum\(Int64\(32\)\)\) / \(\- \(\- CAST\(NULL AS Float64\)\)\) \- Int64\(\-12\) \* Int64\(85\)\) \+ Int64\(7\) \+ Int64\(12\) \* Int64\(\-25\) \+ Int64\(36\) \+ nullif\(count\(\*\), Int64\(\-13\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 1 and "Int64\(17\) \* Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(59\) \- nullif\(Int64\(14\), \(\- sum\(Int64\(32\)\)\) / \(\- \(\- CAST\(NULL AS Float64\)\)\) \- Int64\(\-12\) \* Int64\(85\)\) \+ Int64\(7\) \+ Int64\(12\) \* Int64\(\-25\) \+ Int64\(36\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-13\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 19, CAST ( NULL AS INTEGER ) AS col0, 17 * - 40 * - COUNT ( * ) + + 59 - + NULLIF ( 14, - + SUM ( 32 ) / - - CAST ( NULL AS FLOAT8 ) - - 12 * 85 ) + 7 + + 12 * + - 25 + + + ( + 36 ) + + NULLIF ( + ( + COUNT ( * ) ), - 13 ) AS col0 query I rowsort label-5092 @@ -26791,7 +26791,7 @@ SELECT ALL + + 35 * COALESCE ( - 50, - 58 * 31 * 67 + + + NULLIF ( + 56, 89 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) / count\(\*\) \* CASE \(\- count\(\*\)\) WHEN \(\- avg\(DISTINCT Int64\(10\)\)\) THEN CASE Int64\(59\) WHEN sum\(Int64\(49\)\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-3\) ELSE NULL END END \* Int64\(85\) \* \(\- Int64\(\-83\)\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- avg\(DISTINCT Int64\(10\)\)\) THEN CASE Int64\(59\) WHEN sum\(Int64\(49\)\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-3\) ELSE NULL END END \* Int64\(85\) \* \(\- Int64\(\-83\)\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( 0 AS INTEGER ) / + COUNT ( * ) * CASE - COUNT ( * ) WHEN - AVG ( DISTINCT + 10 ) THEN CASE + 59 WHEN SUM ( + 49 ) THEN NULL WHEN + ( + 0 ) THEN - 3 ELSE NULL END END * + 85 * - - 83 AS col1, - 32 AS col1 query I rowsort @@ -26813,7 +26813,7 @@ SELECT DISTINCT - + 58 + ( - COALESCE ( - + COALESCE ( - 69, + 2 / COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -187 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "Int64\(\-16\) \+ \(\- Int64\(93\)\) \- Int64\(44\) \+ nullif\(count\(\*\), Int64\(\-5\) \* \(\- count\(\*\)\) \* Int64\(43\)\) \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "Int64\(\-16\) \+ \(\- Int64\(93\)\) \- Int64\(44\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-5\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\)\) \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 74 AS col1, - 16 + - + 93 - 44 + + NULLIF ( COUNT ( * ), - 5 * - COUNT ( * ) * 43 ) * - 34 AS col1 query I rowsort @@ -26847,7 +26847,7 @@ SELECT ALL COUNT ( * ), - 63 / - - NULLIF ( 97, + 35 ) + + COUNT ( * ) + 34 AS c # 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\(\*\)\) 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 "\(\- 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 - COUNT ( * ) AS col2, + 40 AS col2 query I rowsort label-5118 @@ -27266,7 +27266,7 @@ SELECT - - 97 + - + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(53\), nullif\(nullif\(Int64\(\-65\), nullif\(Int64\(\-43\), Int64\(73\) \* count\(\*\)\) \+ \(\- \(\- count\(\*\)\)\)\), Int64\(\-95\) \* Int64\(29\)\) \- \(\- count\(\*\)\), Int64\(\-83\)\) 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 "coalesce\(Int64\(53\), nullif\(nullif\(Int64\(\-65\), nullif\(Int64\(\-43\), Int64\(73\) \* count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\), Int64\(\-95\) \* Int64\(29\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-83\)\) AS col0" at position 0 and "Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( + 53, NULLIF ( + NULLIF ( - 65, NULLIF ( + - 43, + 73 * COUNT ( * ) ) + - - COUNT ( * ) ), - 95 * 29 ) - - COUNT ( * ), - 83 ) AS col0, - 75 AS col0 query I rowsort @@ -27510,7 +27510,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\(\*\) AS col0" at position 1 have the 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 @@ -27814,7 +27814,7 @@ SELECT ALL + 27 + + COUNT ( * ) * - 81 / - NULLIF ( + ( - 53 ), - + 49 * - 26 ) # Datafusion - Expected - 90 # Datafusion - Expected - -432 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- Int64\(\-68\) AS col2" at position 0 and "\(\- count\(\*\)\) \* Int64\(\-72\) \* 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\(22\) \- Int64\(\-68\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-72\) \* Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 22 - + - 68 AS col2, - COUNT ( * ) * + - 72 * + - 6 AS col2, + 48 query I rowsort label-5301 @@ -28521,7 +28521,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4247 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-13\)\) \* \(\- Int64\(\-10\)\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int32\)\)\) \* CAST\(coalesce\(Int64\(\-43\), Int64\(61\), Int64\(83\) \* Int64\(52\) \* Int64\(\-39\) \+ count\(DISTINCT \(\- Int64\(\-73\)\)\) \+ count\(\*\)\) AS Int32\) AS col1" at position 0 and "\(\- coalesce\(count\(\*\), \(\- coalesce\(Int64\(\-68\), Int64\(\-8\)\)\) \+ Int64\(\-20\)\)\) \* Int64\(55\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-13\)\) \* \(\- Int64\(\-10\)\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int32\)\)\) \* CAST\(coalesce\(Int64\(\-43\), Int64\(61\), Int64\(83\) \* Int64\(52\) \* Int64\(\-39\) \+ count\(DISTINCT \(\- Int64\(\-73\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- coalesce\(Int64\(\-68\), Int64\(\-8\)\)\) \+ Int64\(\-20\)\)\) \* Int64\(55\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( DISTINCT - 13 ) * - - 10 + - - CAST ( + 99 AS INTEGER ) * + CAST ( + COALESCE ( - 43, + 61, 83 * + 52 * - 39 + COUNT ( DISTINCT - - 73 ) + COUNT ( * ) ) AS INTEGER ) AS col1, - COALESCE ( + COUNT ( * ), - COALESCE ( - 68, - 8 ) + + - 20 ) * 55 + 95 col1 query I rowsort label-5437 @@ -28641,7 +28641,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\(\*\) AS col1" at position 1 have the 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 @@ -29127,7 +29127,7 @@ SELECT + - SUM ( ALL 56 ) + NULLIF ( 53, + - 77 * - 82 ) - - 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -4 -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\(\-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\(92\) 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 + 92 AS col1, COUNT ( * ) * - 4 col1 query II rowsort label-5554 @@ -29480,7 +29480,7 @@ SELECT + 55 * 31 - 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* \(\- \(\- 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\(5\) \* \(\- \(\- 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 + 5 * - - COUNT ( * ) AS col0, 81 AS col0 query I rowsort @@ -29976,7 +29976,7 @@ SELECT ALL + + 9 * 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4157 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(\-63\)\) \* Int64\(\-66\) 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\(\*\) \+ \(\- Int64\(\-63\)\) \* Int64\(\-66\) 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 ( * ) + - - 63 * - 66 AS col0, 47 AS col0 query I rowsort label-5715 @@ -30557,7 +30557,7 @@ SELECT ALL - ( - COUNT ( ALL - 83 ) ) * + 39 + - + 59 * - 83 + - - AVG ( DISTINC # 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\(\*\)\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, - 56 AS col0 query I rowsort @@ -31793,7 +31793,7 @@ SELECT ALL - 31 + - 55 + + + 67 + ( 84 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(48\)\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the 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 query I rowsort label-6065 @@ -31998,7 +31998,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\(\*\) AS col1" at position 1 have the 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: @@ -37216,7 +37216,7 @@ SELECT DISTINCT 62 col0, - 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(\*\)\) AS Int32\)\) / Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) / Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) / + 30 AS col2 query I rowsort label-7093 @@ -37545,7 +37545,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\(\*\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -38937,7 +38937,7 @@ SELECT ALL COUNT ( * ) AS col1, 85 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-33\)\) \+ Int64\(\-64\) AS col2" at position 0 and "Int64\(5\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-64\) AS col2" at position 0 and "Int64\(5\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 33 + - 64 col2, 5 * - COUNT ( * ) AS col2 query I rowsort label-7419 @@ -39011,7 +39011,7 @@ SELECT + 31 / + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "CASE Int64\(61\) WHEN Int64\(\-70\) \+ Int64\(39\) \+ count\(\*\) THEN Int64\(36\) \+ Int64\(76\) \* Int64\(57\) ELSE Int64\(16\) 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\(95\) AS col1" at position 0 and "CASE Int64\(61\) WHEN Int64\(\-70\) \+ Int64\(39\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(36\) \+ Int64\(76\) \* Int64\(57\) ELSE Int64\(16\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 AS col1, CASE + + 61 WHEN - 70 + 39 + + COUNT ( * ) THEN 36 + 76 * + 57 ELSE + 16 END AS col1 query I rowsort @@ -40743,7 +40743,7 @@ SELECT ALL + - 29 * - 76 * 74 * 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / coalesce\(Int64\(38\), Int64\(58\)\) AS col0" at position 0 and "count\(\*\) \* Int64\(31\) \* \(\- count\(Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / coalesce\(Int64\(38\), Int64\(58\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \* \(\- count\(Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) / + COALESCE ( 38, 58 ) AS col0, COUNT ( * ) * + + 31 * - COUNT ( ALL 50 ) AS col0 query I rowsort label-7770 @@ -41803,7 +41803,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4567 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-39\), Int64\(64\)\) \- count\(\*\) \* Int64\(94\) \* Int64\(\-49\) 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 "coalesce\(Int64\(\-39\), Int64\(64\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(94\) \* Int64\(\-49\) 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 COALESCE ( + - 39, + 64 ) - + COUNT ( * ) * + + ( 94 ) * + - 49 AS col0, - ( 4 ) AS col0 query I rowsort @@ -42044,7 +42044,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\(58\) \+ Int64\(26\) \* coalesce\(\(\- Int64\(93\)\), Int64\(30\) \- Int64\(16\) \* Int64\(11\)\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("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 @@ -43106,7 +43106,7 @@ SELECT + 27 * 38 * - - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(98\) 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\(\*\) \* Int64\(98\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + + 98 AS col0, - 66 col0 query I rowsort label-8214 @@ -43910,7 +43910,7 @@ SELECT ALL MAX ( ALL + 95 ) + - 42 + + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "\(\- coalesce\(\(\- Int64\(27\)\), Int64\(48\) \* \(\- count\(\*\)\)\)\) AS col2" at position 1 have the 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 "\(\- coalesce\(\(\- Int64\(27\)\), Int64\(48\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 21 AS col2, - COALESCE ( - + 27, + 48 * - COUNT ( * ) ) AS col2 query I rowsort label-8367 @@ -44161,7 +44161,7 @@ SELECT 9 * - 13 * + - 53 + 93 # 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 col1" at position 0 and "nullif\(count\(\*\), Int64\(\-56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 AS col1, NULLIF ( + + COUNT ( * ), - 56 ) col1 query I rowsort @@ -44515,7 +44515,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\(\*\) 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 @@ -45032,14 +45032,14 @@ SELECT ALL 88 / + - COUNT ( * ) - 29 # 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\(\*\) \* \(\- count\(Int64\(\-35\)\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(\-35\)\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - COUNT ( ALL - 35 ) AS col0, 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(\-21\) \+ \(\- \(\- count\(\*\)\)\) AS col0" at position 1 have the 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\(\-21\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 97 AS col0, - 21 + - - COUNT ( * ) AS col0, + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 90 AS col0 query II rowsort @@ -46498,7 +46498,7 @@ SELECT 27 - - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -79960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) / Int64\(\-48\) \* \(\- Int64\(14\)\) AS col0" at position 0 and "Int64\(80\) \+ Int64\(\-23\) \* Int64\(58\) \* 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\(\*\) / Int64\(\-48\) \* \(\- Int64\(14\)\) AS col0" at position 0 and "Int64\(80\) \+ Int64\(\-23\) \* Int64\(58\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / - 48 * - + 14 col0, + 80 + + - 23 * + + 58 * 60 AS col0 query I rowsort label-8859 @@ -46711,7 +46711,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\(\*\) AS col1" at position 1 have 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 @@ -46825,7 +46825,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\(\*\) 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 @@ -47220,7 +47220,7 @@ SELECT ALL + 31 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(\-66\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(\-66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 AS col2, - 66 * - COUNT ( * ) AS col2 query II rowsort label-8997 @@ -47845,7 +47845,7 @@ SELECT DISTINCT - 69 / 18 # Datafusion - Expected - -38 # Datafusion - Expected - 2989 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(38\)\), Int64\(\-17\) \* count\(\*\) \* CAST\(NULL AS Float64\) \* Int64\(\-81\) \- \(\- count\(\*\)\) \+ Int64\(84\) \* Int64\(\-6\) \- Int64\(\-63\)\) AS col1" at position 0 and "Int64\(32\) \* Int64\(51\) \+ Int64\(59\) \* 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 "nullif\(\(\- Int64\(38\)\), Int64\(\-17\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Float64\) \* Int64\(\-81\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(84\) \* Int64\(\-6\) \- Int64\(\-63\)\) AS col1" at position 0 and "Int64\(32\) \* Int64\(51\) \+ Int64\(59\) \* Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( - + 38, - 17 * + COUNT ( * ) * CAST ( NULL AS FLOAT8 ) * - 81 - + - COUNT ( * ) + 84 * - 6 - - 63 ) AS col1, 32 * ( + 51 ) + 59 * + 23 AS col1, + 84 + 41 / - COUNT ( * ) query I rowsort label-9117 @@ -48181,7 +48181,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\(\*\) \* \(\- CASE Int64\(\-29\) WHEN Int64\(13\) \+ \(\- Int64\(\-48\)\) THEN Int64\(72\) END\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -50796,7 +50796,7 @@ SELECT - COUNT ( * ) AS col0, - 87 * - 6 - + + ( - 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(32\)\) \+ \(\- nullif\(Int64\(\-98\), \(\- count\(\*\)\) \+ \(\- Int64\(71\)\)\)\) \- max\(Int64\(88\)\) \- \(\- Int64\(37\)\) AS col1" at position 0 and "Int64\(80\) \* 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\(32\)\) \+ \(\- nullif\(Int64\(\-98\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(71\)\)\)\) \- max\(Int64\(88\)\) \- \(\- Int64\(37\)\) AS col1" at position 0 and "Int64\(80\) \* Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 32 + - + NULLIF ( - 98, - ( + + COUNT ( * ) ) + - + 71 ) - MAX ( + 88 ) - - + 37 AS col1, 80 * + 33 AS col1 query I rowsort @@ -52006,7 +52006,7 @@ SELECT - 36 * + + ( + - 34 ) * + - 70 # 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\(\*\)\)\) 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 II rowsort label-9914 @@ -52314,7 +52314,7 @@ SELECT DISTINCT COUNT ( * ) + + 58 + + 20 AS col2 # Datafusion - Expected - 114 # Datafusion - Expected - 115 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(31\) \- \(\- Int64\(84\)\) AS col2" at position 1 and "Int64\(34\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \- \(\- Int64\(84\)\) AS col2" at position 1 and "Int64\(34\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 * 19, + COUNT ( * ) * + + 31 - - + 84 AS col2, 34 AS col2 query I rowsort label-9972 diff --git a/data/sqlite/random/expr/slt_good_97.slt b/data/sqlite/random/expr/slt_good_97.slt index 41ad2bb..1a1cbbe 100644 --- a/data/sqlite/random/expr/slt_good_97.slt +++ b/data/sqlite/random/expr/slt_good_97.slt @@ -257,7 +257,7 @@ SELECT DISTINCT 18 + + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2214 # Datafusion - Expected - 2929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-27\), Int64\(87\)\)\) \* \(\- Int64\(82\)\) AS col0" at position 0 and "\(\- CASE max\(Int64\(37\)\) WHEN count\(\*\) \+ Int64\(\-37\) THEN NULL WHEN Int64\(5\) THEN NULL ELSE Int64\(58\) END\) \* CAST\(\(\- nullif\(Int64\(37\), Int64\(82\)\)\) AS Int32\) \+ Int64\(57\) \+ Int64\(11\) \* \(\- Int64\(66\)\) \* \(\- count\(DISTINCT \(\- Int64\(\-65\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-27\), Int64\(87\)\)\) \* \(\- Int64\(82\)\) AS col0" at position 0 and "\(\- CASE max\(Int64\(37\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) THEN NULL WHEN Int64\(5\) THEN NULL ELSE Int64\(58\) END\) \* CAST\(\(\- nullif\(Int64\(37\), Int64\(82\)\)\) AS Int32\) \+ Int64\(57\) \+ Int64\(11\) \* \(\- Int64\(66\)\) \* \(\- count\(DISTINCT \(\- Int64\(\-65\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( - 27, 87 ) * - + 82 AS col0, - CASE MAX ( ALL 37 ) WHEN COUNT ( * ) + - 37 THEN NULL WHEN 5 THEN NULL ELSE + 58 END * + CAST ( - NULLIF ( + 37, + + 82 ) AS INTEGER ) + 57 + + 11 * - + 66 * - COUNT ( DISTINCT - - 65 ) AS col0 query II rowsort @@ -472,7 +472,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\(\*\) 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 @@ -723,7 +723,7 @@ SELECT - - 8 + - MIN ( - 78 ) * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2065 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(54\), Int64\(60\), Int64\(\-71\)\) \* count\(\*\) \- Int64\(44\) \+ Int64\(\-21\) \* Int64\(\-88\) \+ Int64\(3\) \* Int64\(69\) 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 "coalesce\(Int64\(54\), Int64\(60\), Int64\(\-71\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(44\) \+ Int64\(\-21\) \* Int64\(\-88\) \+ Int64\(3\) \* Int64\(69\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( 54, + 60, - 71 ) * + COUNT ( * ) - 44 + - 21 * + - 88 + 3 * 69 AS col2, + 40 AS col2 query I rowsort @@ -1497,7 +1497,7 @@ SELECT 2 * - 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7553 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* Int64\(83\) AS col0" at position 0 and "count\(\*\) \+ max\(DISTINCT \(\- Int64\(76\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* Int64\(83\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ max\(DISTINCT \(\- Int64\(76\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 91 * + 83 AS col0, COUNT ( * ) + + + MAX ( DISTINCT - + 76 ) AS col0 query I rowsort label-277 @@ -1665,7 +1665,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\(\*\) AS col2" at position 1 have the 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 @@ -1750,7 +1750,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\(\*\) 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 @@ -3499,7 +3499,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\(\*\)\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -3837,7 +3837,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\(\*\) AS col0" at position 1 have the 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 @@ -4365,7 +4365,7 @@ SELECT ALL - 63 * + 30, - 9 / + - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ CASE WHEN NOT Int64\(\-74\) NOT IN \(\[Int64\(\-68\), nullif\(Int64\(46\), Int64\(\-99\) \+ Int64\(24\) \+ coalesce\(Int64\(\-10\), Int64\(\-74\)\) \+ Int64\(89\) \+ \(\- Int64\(\-39\)\) \* Int64\(57\) \* max\(DISTINCT \(\- Int64\(\-32\)\)\)\)\]\) THEN Int64\(30\) ELSE NULL END AS col1" at position 0 and "Int64\(24\) \* 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\(\*\) \+ CASE WHEN NOT Int64\(\-74\) NOT IN \(\[Int64\(\-68\), nullif\(Int64\(46\), Int64\(\-99\) \+ Int64\(24\) \+ coalesce\(Int64\(\-10\), Int64\(\-74\)\) \+ Int64\(89\) \+ \(\- Int64\(\-39\)\) \* Int64\(57\) \* max\(DISTINCT \(\- Int64\(\-32\)\)\)\)\]\) THEN Int64\(30\) ELSE NULL END AS col1" at position 0 and "Int64\(24\) \* Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + CASE WHEN NOT - 74 NOT IN ( - 68, NULLIF ( + 46, - 99 + + 24 + + + COALESCE ( - 10, + ( - 74 ) ) + + 89 + - - 39 * + 57 * MAX ( DISTINCT - - 32 ) ) ) THEN 30 ELSE NULL END AS col1, 24 * - 20 AS col1 query I rowsort @@ -4423,7 +4423,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\(\*\) AS col2" at position 1 have the 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 @@ -5204,7 +5204,7 @@ SELECT + NULLIF ( - 17, - - 18 * 26 + - 73 ) * + 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "Int64\(41\) \+ count\(\*\) \+ 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\(5\) AS col0" at position 0 and "Int64\(41\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 5 ) AS col0, + 41 + + COUNT ( * ) + - 0 AS col0 query I rowsort label-986 @@ -5603,7 +5603,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\(\*\) 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 @@ -5620,7 +5620,7 @@ SELECT ALL + 43 / + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(\-15\) \+ \(\- CASE Int64\(\-20\) WHEN Int64\(\-85\) THEN NULL WHEN \(\- Int64\(\-42\)\) \+ Int64\(\-67\) THEN Int64\(\-81\) \+ Int64\(69\) WHEN \(\- count\(\*\)\) THEN coalesce\(Int64\(86\), Int64\(\-68\)\) END\) \+ 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\(37\) AS col2" at position 0 and "Int64\(\-15\) \+ \(\- CASE Int64\(\-20\) WHEN Int64\(\-85\) THEN NULL WHEN \(\- Int64\(\-42\)\) \+ Int64\(\-67\) THEN Int64\(\-81\) \+ Int64\(69\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN coalesce\(Int64\(86\), Int64\(\-68\)\) END\) \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 AS col2, - 15 + - CASE - 20 WHEN - 85 THEN NULL WHEN - - 42 + - 67 THEN - 81 + + 69 WHEN + ( - COUNT ( * ) ) THEN COALESCE ( 86, - 68 ) END + 40 AS col2 query I rowsort label-1064 @@ -6193,7 +6193,7 @@ SELECT MAX ( 59 ) * + 33 * - ( - + 20 ) + + ( + COUNT ( * ) ) AS col2 # 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\(\*\) \+ \(\- count\(\*\)\) / Int64\(40\) / Int64\(\-59\) AS col0" at position 0 and "nullif\(\(\- Int64\(\-11\)\), \(\- 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 "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(40\) / Int64\(\-59\) AS col0" at position 0 and "nullif\(\(\- Int64\(\-11\)\), \(\- max\(DISTINCT Int64\(\-45\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - COUNT ( * ) / 40 / + - 59 AS col0, NULLIF ( - - 11, + - MAX ( DISTINCT - 45 ) ) col0 query I rowsort label-1174 @@ -8887,7 +8887,7 @@ SELECT - 61 + + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -1635 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(54\) AS Int32\)\) AS col2" at position 0 and "CASE \(\- Int64\(73\)\) WHEN Int64\(53\) \* \(\- count\(\*\)\) \+ \(\- \(\- Int64\(49\)\)\) \* Int64\(77\) \+ Int64\(49\) \+ Int64\(34\) \+ Int64\(\-61\) THEN NULL WHEN Int64\(81\) THEN NULL ELSE \(\- \(\- \(\- min\(Int64\(\-14\)\)\)\)\) \+ Int64\(98\) \+ \(\- Int64\(37\)\) END \* Int64\(\-23\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(54\) AS Int32\)\) AS col2" at position 0 and "CASE \(\- Int64\(73\)\) WHEN Int64\(53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(49\)\)\) \* Int64\(77\) \+ Int64\(49\) \+ Int64\(34\) \+ Int64\(\-61\) THEN NULL WHEN Int64\(81\) THEN NULL ELSE \(\- \(\- \(\- min\(Int64\(\-14\)\)\)\)\) \+ Int64\(98\) \+ \(\- Int64\(37\)\) END \* Int64\(\-23\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + + 54 AS INTEGER ) AS col2, CASE + - ( + 73 ) WHEN + 53 * - + COUNT ( * ) + - - ( + 49 ) * 77 + + 49 + + 34 + + - 61 THEN NULL WHEN 81 THEN NULL ELSE - ( - - MIN ( - 14 ) ) + 98 + - + 37 END * - 23 + + + 90 col2 # Datafusion - Types were automatically converted from: @@ -9219,7 +9219,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\(\*\) AS col2" at position 1 have the 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 @@ -10085,7 +10085,7 @@ SELECT - + 3 / - 38 + - 52 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\(\-64\) \* CASE Int64\(\-89\) WHEN Int64\(66\) / count\(\*\) THEN count\(\*\) END AS col2" at position 0 and "CASE \(\- Int64\(44\)\) WHEN Int64\(22\) THEN Int64\(\-9\) END \* Int64\(23\) \* \(\- 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\(\-64\) \* CASE Int64\(\-89\) WHEN Int64\(66\) / count\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col2" at position 0 and "CASE \(\- Int64\(44\)\) WHEN Int64\(22\) THEN Int64\(\-9\) END \* Int64\(23\) \* \(\- Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 64 * CASE + - 89 WHEN 66 / COUNT ( * ) THEN + + COUNT ( * ) END col2, CASE - + 44 WHEN + 22 THEN - 9 END * 23 * - - 34 AS col2 query I rowsort label-1912 @@ -10597,7 +10597,7 @@ SELECT + 54 - + + ( - - MIN ( - 36 ) ) AS col0, + 85 * + + 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \+ Int64\(52\) 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\(\*\)\) \+ Int64\(52\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) + + 52 AS col1, + 76 AS col1 query I rowsort @@ -11037,7 +11037,7 @@ SELECT ALL 25 * 64 + ( + COALESCE ( + + 41, 75 + + - 4 + - ( - 79 ) ) ) AS col0 # Datafusion - Expected - -2 # Datafusion - Expected - 35638 # Datafusion - Expected - -671 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-2\) AS Int32\) AS col1" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(\*\)\)\) AS Int32\)\) AS Int32\) \- \(\- Int64\(85\)\) \* nullif\(\(\- Int64\(\-30\)\), \(\- \(\- sum\(Int64\(52\)\)\)\)\) \* Int64\(14\) \+ Int64\(19\) \+ Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-2\) AS Int32\) AS col1" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS Int32\) \- \(\- Int64\(85\)\) \* nullif\(\(\- Int64\(\-30\)\), \(\- \(\- sum\(Int64\(52\)\)\)\)\) \* Int64\(14\) \+ Int64\(19\) \+ Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 2 AS INTEGER ) AS col1, CAST ( + - CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) AS INTEGER ) - + - ( 85 ) * + NULLIF ( - - 30, - - SUM ( + + 52 ) ) * + 14 + + 19 + - 80 AS col1, + - MIN ( 61 ) * 11 AS col1 query I rowsort @@ -11757,7 +11757,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\(\*\) 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 @@ -12048,7 +12048,7 @@ SELECT + - 21 / + 65 + - + 90 + - 53 + + 69 - CASE COUNT ( DISTINCT + ( + + 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2921 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(\-92\) \* Int64\(32\) AS col0" at position 0 and "\(\- count\(\*\)\) \* Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(\-92\) \* Int64\(32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 23 + - 92 * 32 col0, - COUNT ( * ) * 72 AS col0 query I rowsort label-2284 @@ -13075,7 +13075,7 @@ SELECT DISTINCT - 99 + - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -1642 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "\(\- nullif\(Int64\(31\), \(\- \(\- Int64\(55\)\)\) / \(\- Int64\(\-52\)\) \+ Int64\(36\) \+ nullif\(Int64\(86\), Int64\(17\)\) / Int64\(20\) \+ \(\- \(\- sum\(DISTINCT Int64\(87\)\)\)\) \* Int64\(27\) \+ Int64\(45\)\)\) \* Int64\(53\) \- \(\- count\(\*\)\) AS col1" at position 1 have the 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 "\(\- nullif\(Int64\(31\), \(\- \(\- Int64\(55\)\)\) / \(\- Int64\(\-52\)\) \+ Int64\(36\) \+ nullif\(Int64\(86\), Int64\(17\)\) / Int64\(20\) \+ \(\- \(\- sum\(DISTINCT Int64\(87\)\)\)\) \* Int64\(27\) \+ Int64\(45\)\)\) \* Int64\(53\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 46 AS col1, - NULLIF ( 31, - - ( 55 ) / - - 52 + + 36 + NULLIF ( + 86, + + 17 ) / + + 20 + - - SUM ( DISTINCT + 87 ) * 27 + + 45 ) * 53 - - COUNT ( * ) AS col1 query I rowsort label-2481 @@ -14083,7 +14083,7 @@ SELECT ALL - 88 * 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \- Int64\(43\) \* \(\- 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\(\*\)\) \- Int64\(43\) \* \(\- 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 ( * ) - + 43 * - COUNT ( * ) col2, 50 AS col2 query II rowsort @@ -14672,7 +14672,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\(\*\) 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 @@ -14924,7 +14924,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\(\*\) AS col1" at position 0 and "Int64\(\-5\) \* 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 @@ -14966,7 +14966,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -33 -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\(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\(97\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 97 AS col2, COUNT ( * ) + - + 34 AS col2 query I rowsort label-2846 @@ -15204,7 +15204,7 @@ SELECT DISTINCT + 61 * 99 * - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 252 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(77\) \+ Int64\(88\) \- \(\- Int64\(\-2\)\) \* \(\- Int64\(16\)\) \* count\(\*\) \+ \(\- \(\- \(\- count\(\*\)\)\)\) \* Int64\(24\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(77\) \+ Int64\(88\) \- \(\- Int64\(\-2\)\) \* \(\- Int64\(16\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(24\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 + + 77 + 88 - - - 2 * - + 16 * COUNT ( * ) + - ( - - COUNT ( * ) ) * + 24 AS col0, - 43 AS col0 query I rowsort label-2889 @@ -16340,7 +16340,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\(31\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the 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 @@ -17003,7 +17003,7 @@ SELECT - 27 + - - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(\*\)\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1, + ( + 82 ) + + 59 AS col1 query II rowsort label-3232 @@ -18272,7 +18272,7 @@ SELECT COUNT ( * ) + + 74 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-75\) 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\(\*\) \* Int64\(\-75\) 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 ( * ) * - 75 AS col2, ( + 86 ) AS col2 query I rowsort label-3472 @@ -20290,7 +20290,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\(\*\) 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 @@ -20337,7 +20337,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\(\*\) 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 @@ -21171,7 +21171,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\(\*\)\) 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 query I rowsort label-4029 @@ -23313,7 +23313,7 @@ SELECT + NULLIF ( MIN ( DISTINCT + - ( - 36 ) ), 88 ) + - CASE - + 63 WHEN - 80 # 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\(\*\) 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 @@ -24811,7 +24811,7 @@ SELECT - 69 + + + 56, 39 AS col0 # Datafusion - Expected - 46 # Datafusion - Expected - -82 # Datafusion - Expected - -105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "\(\- CASE \(\- \(\- count\(\*\)\)\) WHEN Int64\(\-5\) \* Int64\(86\) \+ Int64\(\-32\) THEN NULL WHEN Int64\(\-21\) \* Int64\(37\) THEN NULL ELSE Int64\(81\) \+ Int64\(\-1\) \+ Int64\(26\) END\) \+ \(\- \(\- 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\(46\) AS col0" at position 0 and "\(\- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-5\) \* Int64\(86\) \+ Int64\(\-32\) THEN NULL WHEN Int64\(\-21\) \* Int64\(37\) THEN NULL ELSE Int64\(81\) \+ Int64\(\-1\) \+ Int64\(26\) END\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 46 ) AS col0, - 66 + - 16, - CASE - - COUNT ( * ) WHEN - 5 * + + 86 + + - 32 THEN NULL WHEN - 21 * + 37 THEN NULL ELSE + 81 + - 1 + + 26 END + - - COUNT ( * ) AS col0 query I rowsort label-4724 @@ -26505,7 +26505,7 @@ SELECT + 20, 79 * + 70 + - - 8 + - 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(51\) \+ Int64\(4\) / count\(\*\) \* \(\- sum\(Int64\(\-16\)\)\) \* count\(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\(11\) AS col0" at position 0 and "Int64\(51\) \+ Int64\(4\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(\-16\)\)\) \* count\(Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 AS col0, 51 + 4 / COUNT ( * ) * - + SUM ( - 16 ) * + COUNT ( + 88 ) AS col0 query II rowsort @@ -26709,7 +26709,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\(\*\) AS col2" at position 1 have the same 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 @@ -27237,7 +27237,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\(37\) \+ Int64\(27\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("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 @@ -27828,7 +27828,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2233 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(29\) AS col1" at position 0 and "nullif\(count\(\*\), Int64\(22\) \+ Int64\(\-31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(29\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(22\) \+ Int64\(\-31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 77 * 29 col1, NULLIF ( COUNT ( * ), 22 + - 31 ) AS col1 query I rowsort @@ -28581,7 +28581,7 @@ SELECT ALL - CAST ( 75 AS INTEGER ) + - 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-67\) WHEN Int64\(23\) THEN NULL WHEN count\(\*\) \- count\(\*\) / \(\- Int64\(\-34\)\) THEN Int64\(71\) END 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 "CASE Int64\(\-67\) WHEN Int64\(23\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-34\)\) THEN Int64\(71\) END AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - 67 WHEN + 23 THEN NULL WHEN COUNT ( * ) - COUNT ( * ) / - - 34 THEN + 71 END AS col0, - 78 AS col0 query II rowsort label-5438 @@ -28691,7 +28691,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\(\*\) \* CASE Int64\(41\) WHEN Int64\(\-77\) \+ Int64\(\-13\) \- Int64\(48\) THEN Int64\(36\) WHEN Int64\(97\) THEN NULL END \+ \(\- Int64\(23\)\) \+ Int64\(\-30\) \+ count\(\*\) AS col2" at position 1 have the 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 @@ -28967,7 +28967,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\(\*\) 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 @@ -29223,7 +29223,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\(\*\)\) AS col0" at position 0 and "count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -30272,7 +30272,7 @@ SELECT ALL + - 58, - 34 + - - COUNT ( * ) + + COUNT ( * ) * - 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "Int64\(20\) \+ Int64\(\-39\) \- CASE \(\- count\(\*\)\) WHEN Int64\(74\) \+ CASE \(\- Int64\(10\)\) WHEN sum\(\(\- Int64\(\-58\)\)\) \+ Int64\(23\) THEN NULL ELSE Int64\(42\) END THEN NULL ELSE 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 "Int64\(\-60\) AS col2" at position 0 and "Int64\(20\) \+ Int64\(\-39\) \- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(74\) \+ CASE \(\- Int64\(10\)\) WHEN sum\(\(\- Int64\(\-58\)\)\) \+ Int64\(23\) THEN NULL ELSE Int64\(42\) END THEN NULL ELSE Int64\(14\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 60 AS col2, + 20 + ( - 39 ) - + + CASE - COUNT ( * ) WHEN + 74 + + CASE - + 10 WHEN + SUM ( ALL - - 58 ) + + 23 THEN NULL ELSE 42 END THEN NULL ELSE 14 END col2 query I rowsort label-5759 @@ -31758,7 +31758,7 @@ SELECT 34 * + 50 * - 86 AS col1, + COUNT ( * ) * + 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 203 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(97\) \- \(\- coalesce\(Int64\(94\), \(\- Int64\(1\)\)\)\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(97\) \- \(\- coalesce\(Int64\(94\), \(\- 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 12 + + 97 - + - COALESCE ( + + 94, - + 1 ) AS col0, - COUNT ( * ) AS col0 query I rowsort label-6048 @@ -33154,7 +33154,7 @@ SELECT DISTINCT 82 + + 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ \(\- max\(Int64\(\-9\)\)\) AS col0" at position 0 and "Int64\(64\) / Int64\(37\) \+ \(\- count\(\*\)\) \+ \(\- Int64\(\-71\)\) / sum\(Int64\(88\)\) \+ Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ \(\- max\(Int64\(\-9\)\)\) AS col0" at position 0 and "Int64\(64\) / Int64\(37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-71\)\) / sum\(Int64\(88\)\) \+ Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 75 + - MAX ( + - 9 ) AS col0, + 64 / 37 + - COUNT ( * ) + - - 71 / + + SUM ( 88 ) + - 94 AS col0 query I rowsort @@ -33320,7 +33320,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\(\*\) 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 @@ -33426,7 +33426,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\(\-50\) \+ count\(\*\) AS col0" at position 1 have the same 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 @@ -34514,7 +34514,7 @@ SELECT ALL + ( 29 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-18\) \+ Int64\(84\) AS col0" at position 0 and "Int64\(\-49\) \+ 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\(\*\) \+ Int64\(\-18\) \+ Int64\(84\) AS col0" at position 0 and "Int64\(\-49\) \+ Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) + - 18 + 84 col0, - 49 + 39 AS col0 query I rowsort label-6571 @@ -34712,7 +34712,7 @@ SELECT ALL ( - + 87 ) / + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(43\) \- 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\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(43\) \- Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 46 * - ( + COUNT ( * ) ) AS col0, 43 - 8 AS col0 query II rowsort label-6610 @@ -35199,7 +35199,7 @@ SELECT ALL 1 - 21 AS col1, - 86 AS col0, - - COUNT ( * ) * - - 57 # 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 "\(\- CASE Int64\(29\) WHEN Int64\(\-46\) \+ count\(\*\) THEN NULL WHEN \(\- Int64\(65\)\) THEN NULL WHEN nullif\(Int64\(\-4\), count\(\*\) \- Int64\(\-57\)\) THEN count\(\*\) / Int64\(35\) ELSE NULL END\) AS col2" at position 0 and "Int64\(38\) / 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 "\(\- CASE Int64\(29\) WHEN Int64\(\-46\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN \(\- Int64\(65\)\) THEN NULL WHEN nullif\(Int64\(\-4\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-57\)\) THEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(35\) ELSE NULL END\) AS col2" at position 0 and "Int64\(38\) / Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE + 29 WHEN - 46 + COUNT ( * ) THEN NULL WHEN - ( + 65 ) THEN NULL WHEN NULLIF ( - 4, + COUNT ( * ) - - 57 ) THEN COUNT ( * ) / + 35 ELSE NULL END AS col2, 38 / 11 AS col2 query I rowsort @@ -36633,7 +36633,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1898 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(95\) \+ \(\- count\(\*\)\) \+ Int64\(22\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(22\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 83 AS col2, + 95 + - COUNT ( * ) + + 22 * 82 col2 query II rowsort @@ -37036,7 +37036,7 @@ SELECT ALL 0 + + 98 AS col2 # 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 col0" at position 0 and "\(\- coalesce\(count\(\*\), min\(DISTINCT Int64\(72\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), min\(DISTINCT Int64\(72\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 AS col0, - COALESCE ( + COUNT ( * ), + MIN ( DISTINCT + 72 ) ) AS col0 query I rowsort @@ -37476,7 +37476,7 @@ SELECT DISTINCT - COUNT ( * ) + + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(77\) WHEN \(\- Int64\(20\)\) \* Int64\(\-29\) / Int64\(16\) \* coalesce\(Int64\(68\), count\(\*\)\) \* \(\- count\(\*\)\) THEN Int64\(79\) \* Int64\(74\) ELSE coalesce\(Int64\(\-83\), Int64\(\-76\) \* sum\(Int64\(99\)\) \+ Int64\(45\) \+ Int64\(66\) \* Int64\(38\)\) END\) AS col1" at position 0 and "\(\- CASE \(\- count\(\*\)\) WHEN \(\- Int64\(\-82\)\) THEN Int64\(79\) \- Int64\(57\) WHEN Int64\(\-69\) THEN NULL ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(77\) WHEN \(\- Int64\(20\)\) \* Int64\(\-29\) / Int64\(16\) \* coalesce\(Int64\(68\), count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(79\) \* Int64\(74\) ELSE coalesce\(Int64\(\-83\), Int64\(\-76\) \* sum\(Int64\(99\)\) \+ Int64\(45\) \+ Int64\(66\) \* Int64\(38\)\) END\) AS col1" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(\-82\)\) THEN Int64\(79\) \- Int64\(57\) WHEN Int64\(\-69\) THEN NULL ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CASE + 77 WHEN - + 20 * - 29 / 16 * + COALESCE ( 68, + COUNT ( * ) ) * - COUNT ( * ) THEN + 79 * + 74 ELSE + COALESCE ( - 83, + - 76 * SUM ( + 99 ) + + 45 + 66 * + + 38 ) END AS col1, - ( + CASE - COUNT ( * ) WHEN - - 82 THEN + 79 - 57 WHEN - 69 THEN NULL ELSE NULL END ) col1 query I rowsort label-7131 @@ -37650,7 +37650,7 @@ SELECT + 20 * + 86 * + 58, - ( - + 19 ) + - - 60 AS col0 # 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 col1" at position 1 and "\(\- 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\(78\) 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 ( COUNT ( * ) ), + 78 col1, - COUNT ( * ) AS col1 query I rowsort label-7163 @@ -37952,7 +37952,7 @@ SELECT + 67 - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 2728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) AS col1" at position 0 and "Int64\(85\) \+ Int64\(98\) \- \(\- Int64\(\-15\)\) \+ \(\- count\(\*\)\) \* \(\- Int64\(\-64\)\) \* 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\(12\)\) AS col1" at position 0 and "Int64\(85\) \+ Int64\(98\) \- \(\- Int64\(\-15\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-64\)\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( + 12 ) AS col1, 85 + 98 - - - 15 + - COUNT ( * ) * - - 64 * - 40 AS col1 query I rowsort label-7220 @@ -40009,19 +40009,19 @@ SELECT COUNT ( ALL - 40 ) / 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(17\)\) AS col2" at position 0 and "count\(\*\) \* Int64\(37\) \- 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 "sum\(Int64\(17\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) \- Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( ALL 17 ) col2, COUNT ( * ) * 37 - + 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1704 # Datafusion - Expected - -1869 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-24\) AS col0" at position 0 and "count\(\*\) \+ Int64\(55\) \* \(\- Int64\(34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-24\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(55\) \* \(\- Int64\(34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * + - 24 AS col0, COUNT ( * ) + ( + 55 ) * - + ( + 34 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 1332 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "Int64\(64\) \* \(\- count\(\*\)\) \* \(\- Int64\(22\)\) \- Int64\(98\) \+ Int64\(21\) \+ Int64\(43\) / Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "Int64\(64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(22\)\) \- Int64\(98\) \+ Int64\(21\) \+ Int64\(43\) / Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 6 AS col1, 64 * + - COUNT ( * ) * - + 22 - 98 + + 21 + 43 / + 28 AS col1 query I rowsort @@ -42282,7 +42282,7 @@ SELECT ALL 65 + 13 * 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 610 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-10\) AS col2" at position 0 and "\(\- count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-10\) AS col2" at 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 * - 10 AS col2, - COUNT ( * ) AS col2 query I rowsort label-8042 @@ -44100,7 +44100,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\(\*\) AS col0" at position 1 have the 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 @@ -44741,7 +44741,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\(\*\) AS col1" at position 1 have the 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 @@ -44770,7 +44770,7 @@ SELECT ALL 91 / - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ \(\- Int64\(\-54\)\) 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\(\*\) \+ \(\- Int64\(\-54\)\) 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 ( * ) + - - 54 AS col2, - 22 AS col2 query I rowsort label-8515 @@ -44801,7 +44801,7 @@ SELECT - 25 + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 1232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(87\) AS Int32\)\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(32\) \+ count\(\*\) \- Int64\(\-34\) \* max\(DISTINCT Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(87\) AS Int32\)\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-34\) \* max\(DISTINCT Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 87 AS INTEGER ) AS col2, + 43 + 32 + + COUNT ( * ) - - 34 * MAX ( DISTINCT + 34 ) col2 query I rowsort label-8521 @@ -48908,7 +48908,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\(\*\) 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 @@ -49190,7 +49190,7 @@ NULL # 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 "count\(\*\) / Int64\(44\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(44\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / + 44 AS col0, 65 AS col0 query I rowsort @@ -50260,7 +50260,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\(\*\) AS col2" at position 1 have the 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 @@ -51041,7 +51041,7 @@ SELECT - + ( + 86 ) 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ), - COUNT ( * ) query I rowsort @@ -52064,7 +52064,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\(\*\) AS col0" at position 1 have the 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 5860148..92e2867 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\(\*\) 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 @@ -791,7 +791,7 @@ SELECT - 39 * - + 91 # 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\(\*\)\) AS col1" at position 0 and "count\(\*\) \* 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 "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + COUNT ( * ) ) AS col1, + COUNT ( * ) * 89 AS col1 query I rowsort label-147 @@ -4373,7 +4373,7 @@ NULL # 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\(\*\)\) 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 II rowsort label-844 @@ -4496,7 +4496,7 @@ SELECT ALL - - 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 59 -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\(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\(44\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + ( + 44 ) col0, + COUNT ( * ) * + 59 col0 query I rowsort @@ -9721,7 +9721,7 @@ SELECT ALL - 98 * 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(47\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col1, 47 + + - COUNT ( * ) AS col1 query I rowsort @@ -11405,7 +11405,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\(\*\) AS col0" at position 1 have 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 @@ -13727,7 +13727,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\(\*\) AS col1" at position 0 and "count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: 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 @@ -16137,7 +16137,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\(\*\) 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 @@ -17762,7 +17762,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\(\*\) 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 @@ -19428,7 +19428,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\(\*\) 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 @@ -21981,7 +21981,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\(\*\) AS col1" at position 0 and "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 @@ -24259,7 +24259,7 @@ SELECT DISTINCT - + ( - + 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* \(\- \(\- 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 "Int64\(74\) \* \(\- \(\- 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 74 * - - COUNT ( * ) AS col0, 44 AS col0 query II rowsort label-4691 @@ -24761,7 +24761,7 @@ SELECT DISTINCT + COUNT ( 73 ) + - - 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1562 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) / Int64\(40\) AS col2" at position 0 and "Int64\(22\) \* Int64\(\-71\) \* \(\- count\(\*\)\) AS col2" at position 1 have the 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\(40\) AS col2" at position 0 and "Int64\(22\) \* Int64\(\-71\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 / + + 40 col2, 22 * - 71 * - COUNT ( * ) col2 query I rowsort @@ -24952,7 +24952,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\(\*\) 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 @@ -28811,7 +28811,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\(\*\) \* count\(\*\) AS col1" at position 1 have the 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 @@ -28872,7 +28872,7 @@ SELECT DISTINCT 8 / + + 62 # Datafusion - Expected - -25 # Datafusion - Expected - 60 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- count\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-38\), Int64\(53\) \* min\(Int64\(72\)\)\)\) \+ Int64\(\-23\) 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\(25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-38\), Int64\(53\) \* min\(Int64\(72\)\)\)\) \+ Int64\(\-23\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 * - COUNT ( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN ( ALL 72 ) ) + - 23 AS col1 query I rowsort label-5589 @@ -29337,7 +29337,7 @@ SELECT ALL COUNT ( * ) * 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( DISTINCT + 16 ) col2, CAST ( - COUNT ( * ) AS INTEGER ) col2 query I rowsort @@ -31016,7 +31016,7 @@ SELECT - COUNT ( * ) + - MIN ( + - 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / count\(\*\) / \(\- 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 "Int64\(44\) / count\(Int64\(1\)\) AS count\(\*\) / \(\- 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 + 44 / + COUNT ( * ) / - COUNT ( * ) AS col0, - 34 col0 query I rowsort @@ -31052,7 +31052,7 @@ SELECT + 88 * - 78 # 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\(\*\)\) 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 @@ -31078,7 +31078,7 @@ SELECT 54 + 92 AS col2 # 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\(\-79\) \+ \(\- count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(6\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(6\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 + - COUNT ( * ) AS col0, - COUNT ( 6 ) AS col0 query I rowsort @@ -31427,7 +31427,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\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: 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 @@ -31604,7 +31604,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\(\*\) AS col1" at position 1 have 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 @@ -33560,7 +33560,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\(\*\) AS col1" at position 1 have the 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 @@ -34568,7 +34568,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\(\*\) 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 @@ -37180,7 +37180,7 @@ SELECT - 82 * + 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\(\*\)\)" at position 0 and "\(\- 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 "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - COUNT ( * ) query I rowsort @@ -37727,7 +37727,7 @@ SELECT ALL + 37 + + + COUNT ( * ) * + 74 col2 # 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\(\*\)\) AS col1" at position 1 have the 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 41 col1, - COUNT ( * ) AS col1 query I rowsort @@ -40035,7 +40035,7 @@ SELECT + 76 col2, 33 # 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\(\*\)\) 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 ( * ) col2, + 37 AS col2 query I rowsort label-7756 @@ -40807,7 +40807,7 @@ SELECT 77 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-36\)\) \* \(\- count\(\*\)\) \+ Int64\(90\) 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\(\-36\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(90\) 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 ( - 36 ) * - + ( + COUNT ( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2 query I rowsort label-7906 @@ -40853,7 +40853,7 @@ SELECT 30 - + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(10\) 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\(\*\)\) \* Int64\(10\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * + 10 AS col1, - 0 AS col1 query I rowsort label-7915 @@ -41082,7 +41082,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\(\*\) AS col2" at position 1 have the 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 @@ -41225,7 +41225,7 @@ SELECT + CAST ( - ( - 92 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(86\) 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\(\*\) \* Int64\(86\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * 86 AS col2, + 72 AS col2 query I rowsort label-7987 @@ -42918,7 +42918,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\(\*\) AS col1" at position 0 and "coalesce\(min\(CAST\(NULL AS Int32\)\), \(\- count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -44685,7 +44685,7 @@ SELECT + COUNT ( * ) * 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-74\) 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\(\*\) \* Int64\(\-74\) 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 ( * ) * - 74 AS col0, 25 AS col0 query I rowsort label-8658 @@ -44696,7 +44696,7 @@ SELECT - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the 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 ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-8660 @@ -46833,7 +46833,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\(\*\) AS col1" at position 1 have the 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 @@ -48596,7 +48596,7 @@ SELECT - MAX ( ALL - - 37 ) + + 15 / + 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -2722 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "min\(DISTINCT \(\- \(\- Int64\(16\)\)\)\) \* Int64\(\-10\) \- \(\- Int64\(6\)\) \* Int64\(\-33\) \* Int64\(\-1\) \+ Int64\(16\) \- count\(\*\) \- Int64\(75\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "min\(DISTINCT \(\- \(\- Int64\(16\)\)\)\) \* Int64\(\-10\) \- \(\- Int64\(6\)\) \* Int64\(\-33\) \* Int64\(\-1\) \+ Int64\(16\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(75\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 56 AS col1, MIN ( DISTINCT - - ( + + 16 ) ) * - 10 - - + 6 * + - 33 * - 1 + ( 16 ) - COUNT ( * ) - + 75 * + 37 AS col1 query I rowsort @@ -48628,7 +48628,7 @@ SELECT DISTINCT COUNT ( ALL - ( - 55 ) ) AS col2, + 64 * + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \+ Int64\(\-74\) AS col1" at position 0 and "Int64\(16\) \* \(\- count\(\*\)\) AS col1" at position 1 have the 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\(\-74\) 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 ALL - 22 + - 74 AS col1, 16 * - COUNT ( * ) AS col1 query I rowsort @@ -48746,7 +48746,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\(\*\) AS col1" at position 1 have the 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 @@ -49400,7 +49400,7 @@ SELECT DISTINCT + 3 * + - 34 * - 89 * - + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -71 -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\(\-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\(\-85\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 85 AS col2, COUNT ( * ) + - 72 AS col2 query II rowsort label-9571 diff --git a/data/sqlite/random/expr/slt_good_99.slt b/data/sqlite/random/expr/slt_good_99.slt index 852f181..3b0e967 100644 --- a/data/sqlite/random/expr/slt_good_99.slt +++ b/data/sqlite/random/expr/slt_good_99.slt @@ -1319,7 +1319,7 @@ SELECT - COUNT ( * ) / - + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ CAST\(NULL AS Int32\) \+ Int64\(12\) AS col1" at position 0 and "count\(\*\) \- \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ CAST\(NULL AS Int32\) \+ Int64\(12\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 56 + + CAST ( NULL AS INTEGER ) + + + 12 AS col1, + COUNT ( * ) - - + 98 AS col1 query I rowsort label-243 @@ -1822,7 +1822,7 @@ SELECT 94 + + ( + COALESCE ( + COUNT ( * ), 82, + ( 36 ) * - 85 + - + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(\-80\) \* count\(DISTINCT Int64\(\-50\)\) 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 "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-80\) \* count\(DISTINCT Int64\(\-50\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + - 80 * COUNT ( DISTINCT - 50 ) AS col0, + 7 AS col0 query II rowsort @@ -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\(\*\) AS col0" at position 1 have the 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\(\*\) 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\(\*\) AS col0" at position 1 have the 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\(\*\) 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 @@ -4829,7 +4829,7 @@ SELECT ALL + COUNT ( + 13 ) + ( + + 32 ) + + COUNT ( * ) + + - 78 * + - 46 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / Int64\(\-25\) AS col1" at position 0 and "count\(\*\) \* Int64\(24\) \- Int64\(10\) \* 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\(18\) / Int64\(\-25\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(24\) \- Int64\(10\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 18 / - 25 AS col1, + COUNT ( * ) * 24 - + 10 * + 40 col1 query I rowsort label-919 @@ -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\(\*\) 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 @@ -5832,7 +5832,7 @@ SELECT + 3 * + - 77 * - 86 AS col1 # Datafusion - Expected - -420 # Datafusion - Expected - -1211 # Datafusion - Expected - -2700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ Int64\(14\) \* Int64\(90\) \* \(\- count\(\*\)\) AS col0" at position 1 and "Int64\(36\) \* Int64\(\-75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ Int64\(14\) \* Int64\(90\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 and "Int64\(36\) \* Int64\(\-75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 42 * + - 10, 49 + + 14 * ( 90 ) * + - COUNT ( * ) AS col0, + 36 * - 75 AS col0 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\(\*\)\) \* \(\- nullif\(Int64\(\-92\), Int64\(\-97\)\)\) AS col2" at position 0 and "Int64\(1\) \+ Int64\(28\) \- Int64\(79\) / Int64\(74\) \* count\(\*\) AS col2" at position 1 have the 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 @@ -6293,7 +6293,7 @@ SELECT ALL - ( - 87 ) + - COALESCE ( NULLIF ( 72, - 7 / - - 23 * + 62 + - 41 - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \+ nullif\(Int64\(\-88\), \(\- count\(\*\)\) \* \(\- Int64\(\-73\)\)\) 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\(36\) \+ nullif\(Int64\(\-88\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-73\)\)\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 + NULLIF ( + - 88, - + COUNT ( * ) * - - 73 ) AS col2, 59 col2 query I rowsort @@ -6614,7 +6614,7 @@ SELECT + 12 / - + 82 * + - 2 * + NULLIF ( + CASE + + 38 WHEN + - 32 + + + 2 THEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(\-51\) \- Int64\(\-87\) \* Int64\(99\) \* \(\- \(\- avg\(Int64\(\-2\)\)\)\) \* Int64\(\-75\) / Int64\(\-86\) \* CASE \(\- Int64\(13\)\) WHEN \(\- Int64\(\-81\)\) THEN \(\- count\(\*\)\) WHEN Int64\(\-51\) \* Int64\(\-13\) 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\(94\) AS col1" at position 0 and "Int64\(\-51\) \- Int64\(\-87\) \* Int64\(99\) \* \(\- \(\- avg\(Int64\(\-2\)\)\)\) \* Int64\(\-75\) / Int64\(\-86\) \* CASE \(\- Int64\(13\)\) WHEN \(\- Int64\(\-81\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-51\) \* Int64\(\-13\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 94 AS col1, ( - 51 ) - - 87 * + 99 * - - AVG ( - 2 ) * + - 75 / - 86 * + + CASE - + 13 WHEN - ( - 81 ) THEN + - COUNT ( * ) WHEN - 51 * - 13 THEN NULL END AS col1 # Datafusion - Types were automatically converted from: @@ -6885,7 +6885,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\(\*\) 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 @@ -7048,7 +7048,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\(36\) / CAST\(NULL AS Int32\) \+ Int64\(20\) \+ CASE \(\- count\(\*\)\) WHEN \(\- count\(Int64\(80\)\)\) THEN NULL ELSE \(\- Int64\(51\)\) END \+ Int64\(80\) \* count\(\*\), Int64\(\-65\) \* Int64\(\-57\) \+ Int64\(44\)\) \+ count\(\*\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have 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 @@ -7132,7 +7132,7 @@ SELECT - 27, + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -273360 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* \(\- Int64\(\-67\)\) \* Int64\(\-68\) \* \(\- Int64\(\-60\)\) 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\(\*\) \* \(\- Int64\(\-67\)\) \* Int64\(\-68\) \* \(\- Int64\(\-60\)\) 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 ( * ) * - - 67 * - 68 * - - 60 AS col2, 10 AS col2 query II rowsort @@ -7909,7 +7909,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\(\*\) AS col1" at position 1 have the 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 @@ -8041,13 +8041,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(\*\)\), Int64\(\-12\) \+ Int64\(\-94\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(Int64\(\-38\) AS Int32\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-12\) \+ Int64\(\-94\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(Int64\(\-38\) AS Int32\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + - COUNT ( * ), - 12 + - 94 ) * + - CAST ( NULL AS INTEGER ) + + - CAST ( + - 38 AS INTEGER ) AS col1, 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ count\(\*\) 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 @@ -8101,7 +8101,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\(\*\) 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 @@ -8390,7 +8390,7 @@ SELECT ALL + 52 + + - CAST ( + 32 AS INTEGER ) * + + SUM ( DISTINCT + 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* Int64\(55\) AS col0" at position 0 and "Int64\(\-24\) \+ Int64\(14\) \+ \(\- nullif\(Int64\(69\), Int64\(89\) \* Int64\(10\)\)\) \+ 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\(\*\)\) \* Int64\(55\) AS col0" at position 0 and "Int64\(\-24\) \+ Int64\(14\) \+ \(\- nullif\(Int64\(69\), Int64\(89\) \* Int64\(10\)\)\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 55 col0, - 24 + + 14 + - NULLIF ( + 69, 89 * + 10 ) + + - 34 AS col0 query I rowsort label-1594 @@ -9810,7 +9810,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 963 # Datafusion - Expected - 216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(10\) \- \(\- count\(\*\)\) / Int64\(2\) \+ Int64\(33\) AS col1" at position 0 and "coalesce\(Int64\(36\), \(\- Int64\(47\)\)\) \* 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\(93\) \* Int64\(10\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(2\) \+ Int64\(33\) AS col1" at position 0 and "coalesce\(Int64\(36\), \(\- Int64\(47\)\)\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 93 * + 10 - - COUNT ( * ) / 2 + + 33 AS col1, COALESCE ( + 36, - + ( + 47 ) ) * + 6 AS col1 query I rowsort label-1865 @@ -10017,7 +10017,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\(\*\) 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 @@ -10028,7 +10028,7 @@ SELECT ( - COALESCE ( - + 86, - - COUNT ( DISTINCT - 20 ) * ( ( CASE + + ( 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(13\) AS col0" at position 0 and "Int64\(\-79\) \+ \(\- coalesce\(\(\- \(\- sum\(\(\- Int64\(\-64\)\)\)\)\), Int64\(83\), 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\(\*\) \* Int64\(13\) AS col0" at position 0 and "Int64\(\-79\) \+ \(\- coalesce\(\(\- \(\- sum\(\(\- Int64\(\-64\)\)\)\)\), Int64\(83\), Int64\(\-86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * 13 AS col0, ( - 79 ) + ( - COALESCE ( - - SUM ( - - 64 ), 83, - 86 ) ) AS col0 # Datafusion - Datafusion expected results: @@ -10895,7 +10895,7 @@ SELECT DISTINCT + 28 - - 15 * - - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4992 # Datafusion - Expected - -311 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(64\) AS col1" at position 0 and "\(\- Int64\(62\)\) \* Int64\(5\) \+ \(\- count\(\*\)\) AS col1" at position 1 have the 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\(64\) AS col1" at position 0 and "\(\- Int64\(62\)\) \* Int64\(5\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 78 * + 64 AS col1, - ( + 62 ) * + 5 + + + ( - COUNT ( * ) ) col1 query II rowsort label-2073 @@ -11161,7 +11161,7 @@ SELECT ALL 68 * 38 / 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col2" at position 0 and "Int64\(\-70\) \* Int64\(\-20\) \+ \(\- Int64\(35\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-25\) \* coalesce\(Int64\(53\), Int64\(\-53\), \(\- Int64\(37\)\) \+ Int64\(\-94\) \- Int64\(36\) \* Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-70\) \* Int64\(\-20\) \+ \(\- Int64\(35\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-25\) \* coalesce\(Int64\(53\), Int64\(\-53\), \(\- Int64\(37\)\) \+ Int64\(\-94\) \- Int64\(36\) \* Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, ( + - 70 ) * - 20 + - + 35 + CAST ( NULL AS INTEGER ) * - 25 * COALESCE ( 53, ( - 53 ), - + 37 + - 94 - + 36 * + 56 ) AS col2 query II rowsort label-2122 @@ -11834,7 +11834,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\(\*\) 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 @@ -13303,7 +13303,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - -54 -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\(\-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\(\-76\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 76 AS col0, - COUNT ( * ) * - - 54 AS col0 query I rowsort @@ -14779,7 +14779,7 @@ SELECT ALL 28 * - + NULLIF ( + CASE WHEN NULL NOT IN ( + COUNT ( * ), ( - ( 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\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), + ( + COUNT ( * ) ) query I rowsort label-2815 @@ -15061,7 +15061,7 @@ SELECT 4 + + - 57 - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1692 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "Int64\(47\) \* Int64\(\-36\) \* \(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion 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\(\-36\) \* \(\- 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, 47 * - 36 * - + COUNT ( * ) AS col1 query I rowsort @@ -15404,7 +15404,7 @@ SELECT ALL - 10 * + 6 - - + 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(39\), Int64\(9\)\)\) \* count\(\*\) \+ 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\(\-66\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(39\), Int64\(9\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( - + ( - 66 ) ) AS col2, - COALESCE ( 39, 9 ) * + COUNT ( * ) + + 6 AS col2 query I rowsort label-2934 @@ -15880,7 +15880,7 @@ SELECT + - 85 * + 21 # 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\(\*\)\) AS col2" at position 0 and "Int64\(58\) \+ 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 "Int64\(58\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, 58 + 41 AS col2 query I rowsort label-3025 @@ -16764,13 +16764,13 @@ 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\(\*\) 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: # Datafusion - Expected - 75564 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(2\) / Int64\(65\) \+ Int64\(\-21\) \* \(\- count\(\*\)\) \* Int64\(\-59\) \* \(\- coalesce\(Int64\(61\), count\(\*\)\)\) \+ \(\- count\(Int64\(27\)\)\) \+ \(\- coalesce\(count\(\*\), Int64\(\-64\)\)\) \* Int64\(14\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(48\) \+ 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\(\*\) \* Int64\(2\) / Int64\(65\) \+ Int64\(\-21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-59\) \* \(\- coalesce\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- count\(Int64\(27\)\)\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-64\)\)\) \* Int64\(14\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(48\) \+ Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + 2 / + 65 + + - 21 * - COUNT ( * ) * - 59 * + - COALESCE ( 61, + COUNT ( * ) ) + + ( - COUNT ( 27 ) ) + - COALESCE ( + COUNT ( * ), - 64 ) * + 14 AS col2, + 86 + 48 + - 91 AS col2 query I rowsort @@ -17195,7 +17195,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\(\*\) 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 @@ -18007,7 +18007,7 @@ SELECT ALL 56 * + SUM ( - 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / Int64\(40\) \- Int64\(93\) \+ \(\- \(\- 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\(58\) / Int64\(40\) \- Int64\(93\) \+ \(\- \(\- 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 ALL + 58 / + 40 - 93 + - ( - ( + COUNT ( * ) ) ) AS col1, - 62 AS col1 query I rowsort label-3428 @@ -18241,7 +18241,7 @@ SELECT + 48 * 67 + 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- count\(\*\)\) AS col0" at position 0 and "Int64\(6\) \+ 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\(25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(6\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 25 * - COUNT ( * ) AS col0, + ( + 6 ) + + 0 AS col0 query I rowsort @@ -18349,7 +18349,7 @@ SELECT ALL - 88 + + 45 AS col1 # 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\(\*\)\) 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 query II rowsort label-3493 @@ -18886,7 +18886,7 @@ SELECT DISTINCT - 62 AS col2, 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- \(\- \(\- \(\- \(\- count\(\*\)\)\)\)\)\) \* \(\- \(\- count\(DISTINCT Int64\(47\)\)\)\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\) \* \(\- \(\- count\(DISTINCT Int64\(47\)\)\)\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 * - ( - - ( ( - - COUNT ( * ) ) ) ) * - ( + - COUNT ( DISTINCT + 47 ) ) + 20 AS col1, 86 AS col1 query II rowsort @@ -19170,7 +19170,7 @@ SELECT - 83 - - - 6 - 27 * + + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -179 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ coalesce\(count\(\*\), Int64\(12\) \* Int64\(56\) \+ Int64\(46\) \* Int64\(68\)\) \* Int64\(\-24\) \+ nullif\(Int64\(\-83\), Int64\(\-24\) \- Int64\(78\)\) \+ Int64\(\-68\) 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 "Int64\(\-4\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(12\) \* Int64\(56\) \+ Int64\(46\) \* Int64\(68\)\) \* Int64\(\-24\) \+ nullif\(Int64\(\-83\), Int64\(\-24\) \- Int64\(78\)\) \+ Int64\(\-68\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 4 + COALESCE ( + + COUNT ( * ), 12 * 56 + 46 * 68 ) * - 24 + + NULLIF ( + - 83, + - 24 - + 78 ) + + - 68 col1, 73 AS col1 query I rowsort label-3648 @@ -19659,7 +19659,7 @@ SELECT - - 56, + 22 * + CAST ( + - 66 AS INTEGER ) 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\(\*\)\) 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 query I rowsort @@ -21929,7 +21929,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\(\-18\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(\*\) AS col2" at position 0 and "Int64\(17\) \+ 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: @@ -22226,7 +22226,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\(\*\) AS col0" at position 1 have the 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 @@ -22725,7 +22725,7 @@ SELECT + - 55 + + 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \* Int64\(\-35\) \+ \(\- Int64\(\-75\)\) / Int64\(27\) 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\(\*\) \* Int64\(\-35\) \+ \(\- Int64\(\-75\)\) / Int64\(27\) AS col1" at position 0 and "Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 35 + - ( - 75 ) / 27 AS col1, - 55 AS col1 query I rowsort label-4329 @@ -23384,7 +23384,7 @@ SELECT + - 20 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col0" at position 0 and "Int64\(58\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(58\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, 58 * - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-4456 @@ -26436,7 +26436,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\(\*\) 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 @@ -29286,7 +29286,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\(7\) / count\(\*\) AS col0" at position 1 have the 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 @@ -30075,7 +30075,7 @@ SELECT 49 * + 70 AS col0 # 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\(\-43\) / 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\(64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\) / Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 col2, COUNT ( * ) * - 43 / 34 AS col2 query I rowsort @@ -30323,7 +30323,7 @@ SELECT ALL + 20 * - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- \(\- \(\- count\(\*\)\)\) \* Int64\(7\) AS col2" at position 0 and "nullif\(\(\- nullif\(\(\- count\(\*\)\), Int64\(\-37\) \* Int64\(61\)\)\), \(\- count\(\*\)\)\) \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(7\) AS col2" at position 0 and "nullif\(\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-37\) \* Int64\(61\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) - + ( - - COUNT ( * ) ) * 7 AS col2, + NULLIF ( - ( ( NULLIF ( + ( - COUNT ( * ) ), - 37 * 61 ) ) ), - COUNT ( * ) ) * - 27 AS col2 query I rowsort label-5785 @@ -30334,7 +30334,7 @@ SELECT + 85 / + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) \* \(\- Int64\(99\)\) 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\(\*\)\) \* \(\- Int64\(99\)\) 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 ( * ) * - + 99 AS col0, - 15 AS col0 query I rowsort label-5787 @@ -30393,7 +30393,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\(\*\) \* 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 @@ -33705,7 +33705,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ \(\- 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 "Int64\(26\) \+ \(\- 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 26 + - COUNT ( * ) AS col0, 47 AS col0 query I rowsort @@ -34535,7 +34535,7 @@ SELECT + 47 + + + 44 AS col1, COUNT ( * ) # 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 "CASE count\(\*\) WHEN Int64\(62\) \- \(\- count\(\*\)\) \+ \(\- Int64\(\-25\)\) THEN NULL WHEN Int64\(55\) \* Int64\(39\) THEN Int64\(15\) ELSE NULL END \+ Int64\(\-1\) 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 "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(62\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-25\)\) THEN NULL WHEN Int64\(55\) \* Int64\(39\) THEN Int64\(15\) ELSE NULL END \+ Int64\(\-1\) AS col1" at position 0 and "Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + COUNT ( * ) WHEN 62 - - COUNT ( * ) + - - 25 THEN NULL WHEN 55 * + 39 THEN + 15 ELSE NULL END + - 1 AS col1, - 38 AS col1 query I rowsort label-6580 @@ -34772,7 +34772,7 @@ SELECT ALL + COALESCE ( - - COUNT ( * ), - 66 + 23, 59 * + 96 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "\(\- count\(\*\)\) \+ min\(CAST\(Int64\(\-15\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ min\(CAST\(Int64\(\-15\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 28 AS col2, - COUNT ( * ) + MIN ( + CAST ( - 15 AS INTEGER ) ) col2 query I rowsort label-6625 @@ -40187,7 +40187,7 @@ SELECT MIN ( - 33 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 935 # Datafusion - Expected - 5698 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(17\), nullif\(Int64\(96\), CAST\(Int64\(50\) AS Int32\)\), Int64\(28\) \* Int64\(9\) \+ Int64\(60\)\) \* Int64\(55\) AS col1" at position 0 and "count\(\*\) \* Int64\(\-2\) \* Int64\(\-37\) \* Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(17\), nullif\(Int64\(96\), CAST\(Int64\(50\) AS Int32\)\), Int64\(28\) \* Int64\(9\) \+ Int64\(60\)\) \* Int64\(55\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-2\) \* Int64\(\-37\) \* Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( 17, NULLIF ( 96, + CAST ( + 50 AS INTEGER ) ), + + 28 * 9 + 60 ) * 55 AS col1, COUNT ( * ) * - 2 * - 37 * + 77 AS col1 query II rowsort label-7658 @@ -40603,7 +40603,7 @@ SELECT DISTINCT - + 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7040 # Datafusion - Expected - 1798 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* \(\- Int64\(\-88\)\) AS col2" at position 0 and "nullif\(Int64\(22\), Int64\(36\) \+ Int64\(\-85\)\) \+ Int64\(74\) \* count\(\*\) \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* \(\- Int64\(\-88\)\) AS col2" at position 0 and "nullif\(Int64\(22\), Int64\(36\) \+ Int64\(\-85\)\) \+ Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 80 * - - 88 AS col2, NULLIF ( + 22, + ( + 36 ) + + - 85 ) + 74 * + ( COUNT ( * ) ) * + 24 AS col2 query II rowsort label-7738 @@ -40979,7 +40979,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\(\*\) 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: @@ -41059,7 +41059,7 @@ SELECT - COUNT ( * ) + + 47 AS col1, 29 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\(\*\)\) AS col1" at position 0 and "count\(\*\) \- Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - COUNT ( * ) ) AS col1, + COUNT ( * ) - - 80 AS col1 query I rowsort @@ -42602,7 +42602,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\(\*\)\) THEN \(\- avg\(Int64\(79\)\)\) END\)\) \* 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 @@ -42650,7 +42650,7 @@ SELECT ALL COUNT ( * ) + + ( + + 53 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -4693 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(0\) \+ \(\- count\(\*\)\) \- Int64\(92\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(0\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(92\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 37 AS col2, + 0 + - COUNT ( * ) - 92 * 51 AS col2 query II rowsort label-8127 @@ -43059,7 +43059,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\(\*\) 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 @@ -43978,7 +43978,7 @@ SELECT ALL - 31 + + 3 - + 90 - - 82 + - 9 + - 1 * + - 41 - + + ( 15 ) * - 69 # 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\(\*\)\) \* min\(Int64\(33\)\) \+ Int64\(\-87\) 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\(\*\)\) \* min\(Int64\(33\)\) \+ Int64\(\-87\) 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 ( * ) * MIN ( ALL + ( + 33 ) ) + - 87 AS col0, - 3 AS col0 query I rowsort @@ -44364,7 +44364,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\(\*\) AS col2" at position 1 have the 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 @@ -44520,7 +44520,7 @@ SELECT ALL + - 63 + + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ Int64\(85\) AS col0" at position 0 and "Int64\(69\) \+ 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\(\*\) \+ Int64\(85\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + 85 AS col0, 69 + + - 94 col0 query II rowsort label-8476 @@ -44684,7 +44684,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\(\*\) AS col0" at position 0 and "\(\- count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error 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 @@ -45218,7 +45218,7 @@ SELECT DISTINCT 31 * ( + ( + 65 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-38\) AS col2" at position 0 and "CAST\(nullif\(Int64\(43\), \(\- CAST\(NULL AS Float64\)\) \* count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-38\) AS col2" at position 0 and "CAST\(nullif\(Int64\(43\), \(\- CAST\(NULL AS Float64\)\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 + - 38 AS col2, + CAST ( + + NULLIF ( + 43, - CAST ( NULL AS FLOAT8 ) * + COUNT ( * ) ) AS INTEGER ) AS col2 query I rowsort @@ -46970,7 +46970,7 @@ SELECT DISTINCT + - ( + + 15 ) * 72 - + - 59 # Datafusion - Expected - -1 # Datafusion - Expected - -49 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 - + COUNT ( * ) AS col0, + CAST ( - ( - - 49 ) AS INTEGER ), 7 AS col0 query I rowsort label-8944 @@ -47764,7 +47764,7 @@ SELECT DISTINCT 89 + - - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(5\) \+ \(\- \(\- \(\- 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\(61\) \+ Int64\(5\) \+ \(\- \(\- \(\- 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 + 61 + + 5 + - + ( - - COUNT ( * ) ) col0, + 66 col0 query I rowsort label-9094 @@ -48176,7 +48176,7 @@ SELECT - 35 * + - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 84 -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\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 20 AS col0, COUNT ( * ) * - - 84 AS col0 query I rowsort @@ -50705,7 +50705,7 @@ SELECT ALL - - 26 + + 8 + + 16 + 26 - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 2747 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \+ \(\- Int64\(\-4\)\) AS col2" at position 0 and "\(\- CASE \(\- \(\- CASE \(\- Int64\(45\)\) WHEN Int64\(20\) THEN Int64\(\-35\) ELSE NULL END\)\) WHEN \(\- Int64\(\-55\)\) \* \(\- count\(\*\)\) \+ \(\- max\(\(\- Int64\(\-32\)\)\)\) \+ Int64\(3\) / Int64\(30\) \+ Int64\(\-78\) THEN NULL WHEN Int64\(72\) / \(\- count\(DISTINCT Int64\(76\)\)\) \+ Int64\(\-78\) THEN Int64\(19\) ELSE Int64\(\-95\) \+ Int64\(\-35\) \* Int64\(76\) \+ Int64\(93\) END\) \+ Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \+ \(\- Int64\(\-4\)\) AS col2" at position 0 and "\(\- CASE \(\- \(\- CASE \(\- Int64\(45\)\) WHEN Int64\(20\) THEN Int64\(\-35\) ELSE NULL END\)\) WHEN \(\- Int64\(\-55\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(\(\- Int64\(\-32\)\)\)\) \+ Int64\(3\) / Int64\(30\) \+ Int64\(\-78\) THEN NULL WHEN Int64\(72\) / \(\- count\(DISTINCT Int64\(76\)\)\) \+ Int64\(\-78\) THEN Int64\(19\) ELSE Int64\(\-95\) \+ Int64\(\-35\) \* Int64\(76\) \+ Int64\(93\) END\) \+ Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 25 + - - 4 AS col2, - CASE - - CASE - + 45 WHEN 20 THEN - 35 ELSE NULL END WHEN - - 55 * - ( + COUNT ( * ) ) + - + MAX ( ALL - - 32 ) + + 3 / + + 30 + - 78 THEN NULL WHEN ( + 72 ) / - COUNT ( DISTINCT 76 ) + - 78 THEN + 19 ELSE - 95 + - 35 * + 76 + + 93 END + + 85 AS col2 query I rowsort label-9656 @@ -50743,7 +50743,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\(\*\) AS col1" at position 1 have the 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 @@ -51507,7 +51507,7 @@ SELECT DISTINCT 46 + + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "count\(\*\) \* CASE Int64\(\-45\) WHEN \(\- Int64\(81\)\) THEN NULL ELSE Int64\(\-92\) 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\(5\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(\-45\) WHEN \(\- Int64\(81\)\) THEN NULL ELSE Int64\(\-92\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 5 AS col2, COUNT ( * ) * + CASE - 45 WHEN - + 81 THEN NULL ELSE + - 92 END col2 query II rowsort @@ -51820,7 +51820,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\(8\) \+ Int64\(\-13\) \+ Int64\(69\) \* Int64\(\-51\)\)\), count\(\*\)\)\)\) \+ 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 fb630df..1cee96e 100644 --- a/data/sqlite/random/groupby/slt_good_12.slt +++ b/data/sqlite/random/groupby/slt_good_12.slt @@ -28663,7 +28663,7 @@ SELECT ALL col1 * col1 + col1 * 21 FROM tab0 GROUP BY col1 HAVING NOT col1 IS NO # Postgresql - Postgres error: db error: ERROR: column "cor0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col1, cor0\.col2, sum\(Int64\(\-46\)\), avg\(Int64\(57\)\), count\(\*\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col1, cor0\.col2, sum\(Int64\(\-46\)\), avg\(Int64\(57\)\), count\(Int64\(1\)\) SELECT - ( + - 6 ) + - col2 * + SUM ( ALL - 46 ) / - - ( 48 ), CASE WHEN NOT col2 IS NULL THEN NULL WHEN 71 IS NULL THEN - ( col1 ) * - col0 * + - 64 / - AVG ( 57 ) END FROM tab2 AS cor0 GROUP BY col1, col2 HAVING ( + COUNT ( * ) > NULL ) query I rowsort label-4683 @@ -29725,7 +29725,7 @@ SELECT ALL + col0 + COALESCE ( - COUNT ( * ), COUNT ( * ) * - 4 ) FROM tab0 AS c # Datafusion - Expected - 0 # Datafusion - Expected - 79 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "tab0\.col2 \* tab0\.col1 / \(\- count\(\*\)\) AS col1" at position 1 have the 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 "tab0\.col2 \* tab0\.col1 / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 AS col1, col2 * + col1 / + - COUNT ( * ) AS col1 FROM tab0 GROUP BY col2, col1 query I rowsort @@ -30672,7 +30672,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col1 could not be resolved from available columns: tab0\.col0, count\(\*\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col1 could not be resolved from available columns: tab0\.col0, count\(Int64\(1\)\) SELECT - CASE + - CAST ( NULL AS INTEGER ) WHEN - col0 * - + 67 + + 17 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - CAST ( 37 AS INTEGER ) * - - col1 - + COUNT ( * ) + + + COUNT ( * ) END + - + ( CAST ( + 88 AS FLOAT8 ) ) FROM tab0 GROUP BY col0 query II rowsort @@ -30695,7 +30695,7 @@ SELECT DISTINCT + + 7 + + - col2 + - 57 + - + col2 + 44 FROM tab1 AS cor0 GROUP # Datafusion - Expected - 1 # Datafusion - Expected - -50 skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab2\.col0 could not be resolved from available columns: tab2\.col1, tab2\.col1, tab2\.col1, count\(\*\), count\(Int64\(34\)\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab2\.col0 could not be resolved from available columns: tab2\.col1, tab2\.col1, tab2\.col1, count\(Int64\(1\)\), count\(Int64\(34\)\) SELECT DISTINCT + COUNT ( * ) col0, + COALESCE ( - 50, - col1, + COUNT ( ALL 34 ) * - col0 ) FROM tab2 GROUP BY col1, col1, col1 query I rowsort @@ -31354,7 +31354,7 @@ SELECT DISTINCT 75 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL # Datafusion - Expected - -2 # Datafusion - Expected - 81 # Datafusion - Expected - -6643 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- count\(\*\)\) \- \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - col1 AS col0, - col1 + - COUNT ( * ) - + - col1 * + - col1 AS col0 FROM tab0 AS cor0 GROUP BY col1 query II rowsort label-5134 @@ -31443,7 +31443,7 @@ SELECT + 42 FROM tab2 GROUP BY col2, col2 HAVING NOT + 8 > - SUM ( ALL col1 ) # Postgresql - Postgres error: db error: ERROR: column "tab0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, tab0\.col2, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, tab0\.col2, count\(Int64\(1\)\) SELECT 37 * + COUNT ( * ) AS col0 FROM tab0 GROUP BY col1, col2 HAVING NULL BETWEEN ( NULLIF ( col1, col1 / col0 + col1 + - col1 ) * + COUNT ( * ) ) AND ( NULL ) query I rowsort @@ -32338,7 +32338,7 @@ SELECT DISTINCT COUNT ( * ) FROM tab1 GROUP BY col0 # Postgresql - Postgres error: db error: ERROR: column "cor0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col1, cor0\.col1, count\(\*\), avg\(\(\- \(\- cor0\.col0\)\)\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col1, cor0\.col1, count\(Int64\(1\)\), avg\(\(\- \(\- cor0\.col0\)\)\) SELECT ALL col1 * - col1 + col1 + col1 + - 7 * - CASE + 93 WHEN 33 THEN - col0 / COUNT ( * ) * - col1 + + 1 WHEN - CAST ( NULL AS INTEGER ) + + 86 THEN + AVG ( - - col0 ) END * 47 FROM tab2 AS cor0 WHERE NOT NULL > - 75 GROUP BY col1, col1 query II rowsort @@ -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\(63\) \+ \(\- \(\- cor0\.col2\)\) / \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) \* count\(\*\) AS col0" at position 1 have the 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 @@ -33917,7 +33917,7 @@ SELECT 71 FROM tab1 GROUP BY col0 # Datafusion - Expected - -5421840 # Datafusion - Expected - -58 skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab1\.col2 could not be resolved from available columns: tab1\.col0, min\(DISTINCT Int64\(29\)\), count\(\*\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab1\.col2 could not be resolved from available columns: tab1\.col0, min\(DISTINCT Int64\(29\)\), count\(Int64\(1\)\) SELECT MIN ( DISTINCT + 29 ) * + COUNT ( * ) * - - 95 * - ( - col0 ) * + ( - 24 ), - COALESCE ( ( + + 58 ), + - col0 + col2 * + 40 + - 27, + 25 ) AS col1 FROM tab1 GROUP BY col0 query I rowsort @@ -34063,7 +34063,7 @@ SELECT + + 24 FROM tab1 AS cor0 GROUP BY col0, col0 # Postgresql - Postgres error: db error: ERROR: column "cor0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col0, cor0\.col1, min\(DISTINCT Int64\(49\)\), count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col0, cor0\.col1, min\(DISTINCT Int64\(49\)\), count\(Int64\(1\)\) SELECT ALL + COALESCE ( + + MIN ( DISTINCT 49 ), + - COUNT ( * ), + COUNT ( * ) * + 97 ) * 8 AS col2 FROM tab2 AS cor0 GROUP BY col0, col1 HAVING NULL >= + col2 / + - 43 * - ( - col2 ) query I rowsort label-5582 @@ -34621,7 +34621,7 @@ SELECT DISTINCT - + col2 + - 48 FROM tab2 AS cor0 GROUP BY col2 # Postgresql - Postgres error: db error: ERROR: column "cor0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col2, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col2, count\(Int64\(1\)\) SELECT DISTINCT - col2, + COUNT ( * ) + + + col2 AS col0 FROM tab1 cor0 GROUP BY col2 HAVING NOT - col0 <> NULL query II rowsort @@ -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\(\*\) 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 @@ -34765,7 +34765,7 @@ SELECT ALL SUM ( DISTINCT - - col0 ) col2 FROM tab0 GROUP BY col0 # Postgresql - Postgres error: db error: ERROR: column "tab2.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab2\.col1 could not be resolved from available columns: tab2\.col2, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab2\.col1 could not be resolved from available columns: tab2\.col2, count\(Int64\(1\)\) SELECT - col2 col1 FROM tab2 GROUP BY col2 HAVING NULL IN ( ( - 45 ), - COUNT ( * ) * + + col1, + - col1 * - CAST ( NULL AS INTEGER ) ) query I rowsort label-5702 @@ -35109,7 +35109,7 @@ SELECT ALL 79 AS col2 FROM tab0 GROUP BY col1 # Postgresql - Postgres error: db error: ERROR: column "tab1.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab1\.col1 could not be resolved from available columns: tab1\.col2, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab1\.col1 could not be resolved from available columns: tab1\.col2, count\(Int64\(1\)\) SELECT col2 * - + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 WHERE NOT ( NOT NULL < + col0 + + col0 ) GROUP BY col2 HAVING NOT NULL = + 70 + - + col1 AND 60 - + COUNT ( * ) + col2 + - col1 <> NULL query I rowsort @@ -35850,7 +35850,7 @@ SELECT DISTINCT - + col0 AS col0 FROM tab0 AS cor0 GROUP BY col0 HAVING ( 26 ) N # Postgresql - Postgres error: db error: ERROR: column "cor0.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col0, min\(DISTINCT NULL\), count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col0, min\(DISTINCT NULL\), count\(Int64\(1\)\) SELECT - - ( + 90 ) AS col1 FROM tab0 AS cor0 GROUP BY col0 HAVING NOT NULL <= - + 21 * ( + 30 / 82 + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + ( col1 - COUNT ( * ) / 80 ) * + 28 query I rowsort @@ -36080,7 +36080,7 @@ SELECT 9 - - col1 FROM tab2 GROUP BY col1 HAVING - CAST ( NULL AS INTEGER ) IN ( # Datafusion - Expected - -81 # Datafusion - Expected - 0 skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, count\(\*\), sum\(tab0\.col2\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, count\(Int64\(1\)\), sum\(tab0\.col2\) SELECT DISTINCT col1 * - CASE WHEN NULL NOT IN ( 52, - col0, + col0 + ( + + COUNT ( * ) ), - CAST ( NULL AS INTEGER ) ) THEN + - NULLIF ( - 84, + - SUM ( + col2 ) - 35 ) ELSE COUNT ( * ) END FROM tab0 GROUP BY col1 query I rowsort label-5925 @@ -36127,7 +36127,7 @@ SELECT ALL - col2 col1 FROM tab2 GROUP BY col2 HAVING NULL IS NOT NULL # Postgresql - Postgres error: db error: ERROR: column "tab2.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab2\.col1 could not be resolved from available columns: tab2\.col0, tab2\.col2, count\(\*\), count\(Int64\(\-40\)\), avg\(DISTINCT tab2\.col2\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab2\.col1 could not be resolved from available columns: tab2\.col0, tab2\.col2, count\(Int64\(1\)\), count\(Int64\(\-40\)\), avg\(DISTINCT tab2\.col2\) SELECT ALL col2 + col2 - - 43 * + - COUNT ( * ) / CASE + CAST ( NULL AS INTEGER ) WHEN - - COALESCE ( - + 59, col1 / col1 * + COUNT ( ALL + - 40 ) * - 52, - - CASE WHEN col1 NOT BETWEEN NULL AND NULL THEN NULL ELSE 33 + + col0 / 65 END * col2 ) * - col2 + col0 THEN - COUNT ( * ) WHEN col0 THEN NULL END FROM tab2 GROUP BY col0, col2 HAVING ( col0 ) BETWEEN ( CAST ( NULL AS INTEGER ) ) AND NULLIF ( - CAST ( NULL AS INTEGER ), 92 + + ( - AVG ( DISTINCT col2 ) ) / 76 ) query I rowsort label-5933 @@ -36498,7 +36498,7 @@ SELECT - - col1 * - + COUNT ( DISTINCT CAST ( NULL AS FLOAT8 ) ) FROM tab1 AS co # Postgresql - Postgres error: db error: ERROR: column "tab1.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab1\.col2 could not be resolved from available columns: tab1\.col1, count\(\*\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab1\.col2 could not be resolved from available columns: tab1\.col1, count\(Int64\(1\)\) SELECT DISTINCT - ( - COALESCE ( 45, + col2, + col1, CAST ( + COUNT ( * ) AS INTEGER ) ) ) FROM tab1 WHERE NULL IS NOT NULL GROUP BY col1 query I rowsort @@ -37034,7 +37034,7 @@ SELECT - col0 + - col0 * col0 FROM tab1 AS cor0 GROUP BY col0 # Postgresql - Postgres error: db error: ERROR: column "cor0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col2, max\(Int64\(69\)\), sum\(Int64\(\-37\)\), count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col2, max\(Int64\(69\)\), sum\(Int64\(\-37\)\), count\(Int64\(1\)\) SELECT + - col2 AS col1, col2 * - col2 col0 FROM tab2 AS cor0 GROUP BY col2 HAVING NOT ( NULL ) <= - MAX ( ALL + 69 ) * COALESCE ( - SUM ( ALL + - 37 ), - col2 * - + ( - 19 ) / ( col0 ) * + + COUNT ( * ) + + COUNT ( * ) - + col0 * + col2, + COUNT ( * ) + - 46 * col0 ) * + - col2 * + col1 + col2 + + 58 + - col0 + + - col2 * - + col1 * + 17 * - + 74 + - + col0 * - 5 query I rowsort label-6079 @@ -37523,7 +37523,7 @@ SELECT ALL 92, COUNT ( * ) FROM tab0 GROUP BY col0 HAVING + 14 IS NULL # Datafusion - Expected - 4104 # Datafusion - Expected - 55 # Datafusion - Expected - 432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \+ avg\(Int64\(54\)\) AS col2" at position 0 and "Int64\(72\) \* 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\(\*\) \+ avg\(Int64\(54\)\) AS col2" at position 0 and "Int64\(72\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + + AVG ( ALL 54 ) AS col2, + 72 * + col1 AS col2 FROM tab1 GROUP BY col0, col1 query I rowsort label-6163 @@ -37594,7 +37594,7 @@ SELECT col0 * + col0 * col0 col1 FROM tab1 AS cor0 GROUP BY col0 # Postgresql - Postgres error: db error: ERROR: column "cor0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col1, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col1, count\(Int64\(1\)\) SELECT ALL + - COUNT ( * ) * + col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 HAVING - 19 + col2 > NULL query I rowsort @@ -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\(\*\) 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 @@ -38611,7 +38611,7 @@ SELECT ALL - col0 + + - col0 FROM tab0 cor0 GROUP BY col0 # Postgresql - Postgres error: db error: ERROR: column "tab0.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col1 could not be resolved from available columns: tab0\.col2, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col1 could not be resolved from available columns: tab0\.col2, count\(Int64\(1\)\) SELECT - 37 - + col2 * + col2 AS col0, 65 AS col1 FROM tab0 GROUP BY col2 HAVING NULL NOT BETWEEN col1 + + COUNT ( * ) AND - 7 # Datafusion - Datafusion expected results: @@ -38821,7 +38821,7 @@ SELECT + 29 AS col1 FROM tab1 GROUP BY col1 HAVING + ( 12 ) - 2 * + 97 BETWEEN C # Postgresql - Postgres error: db error: ERROR: column "cor0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col2, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col2, count\(Int64\(1\)\) SELECT DISTINCT + ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - 1 * col2 ) <> ( 37 ) GROUP BY col2 HAVING ( col2 ) IN ( COALESCE ( + ( + COALESCE ( - 64, COUNT ( * ) + ( col0 ) * 12 ) ), + COUNT ( * ), COUNT ( * ) / 97 ) ) # Postgresql - Postgres error: db error: ERROR: column "cor0.col1" must appear in the GROUP BY clause or be used in an aggregate function @@ -39185,7 +39185,7 @@ SELECT ALL + col2, + col2 FROM tab2 AS cor0 GROUP BY col1, col2 # Postgresql - Postgres error: db error: ERROR: column "cor0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col0, count\(\*\), min\(cor0\.col2\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col0, count\(Int64\(1\)\), min\(cor0\.col2\) SELECT DISTINCT - COUNT ( * ) + - col0 + + col0 AS col2 FROM tab2 AS cor0 GROUP BY col0 HAVING NULL NOT BETWEEN + col2 * + NULLIF ( - - COUNT ( * ), + col0 ) AND + CASE - col0 WHEN - col2 THEN + MIN ( ALL + col2 ) WHEN COUNT ( * ) * col0 THEN NULL END # Datafusion - Datafusion expected results: @@ -39626,7 +39626,7 @@ SELECT MIN ( DISTINCT - + col2 ) AS col0 FROM tab0 GROUP BY col2, col2 HAVING co -79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) AS col1" at position 0 and "tab2\.col0 \- Int64\(4\) \- Int64\(70\) \* \(\- CAST\(\(\- \(\- tab2\.col0\)\) AS Float64\)\) \- \(\- min\(tab2\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "tab2\.col0 \- Int64\(4\) \- Int64\(70\) \* \(\- CAST\(\(\- \(\- tab2\.col0\)\) AS Float64\)\) \- \(\- min\(tab2\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, col0 - + 4 - + 70 * + - CAST ( - - col0 AS FLOAT8 ) - - MIN ( ( col0 ) ) AS col1 FROM tab2 GROUP BY col0, col0 HAVING NOT ( NULL ) < NULL # Datafusion - Datafusion expected results: @@ -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\(\*\) AS col2" at position 1 have 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 @@ -40267,7 +40267,7 @@ SELECT + 23 / + col1 AS col2 FROM tab2 GROUP BY col1 HAVING NOT NULLIF ( + ( CAS # Postgresql - Postgres error: db error: ERROR: column "tab0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, tab0\.col1, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, tab0\.col1, count\(Int64\(1\)\) SELECT DISTINCT col1 AS col0 FROM tab0 GROUP BY col1, col1 HAVING NOT ( NULL ) <> ( - COUNT ( * ) + col0 ) query I rowsort label-6620 @@ -40521,7 +40521,7 @@ SELECT 72 + - col0 * - + col0 / COUNT ( * ) AS col1 FROM tab0 GROUP BY col0 # Postgresql - Postgres error: db error: ERROR: column "cor0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col1, cor0\.col1, avg\(\(\- cor0\.col1\)\), count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col1, cor0\.col1, avg\(\(\- cor0\.col1\)\), count\(Int64\(1\)\) SELECT - 97 + AVG ( ( - + col1 ) ) + 33 + CAST ( + 89 AS INTEGER ) / - col1 * - + col1 AS col2 FROM tab0 AS cor0 GROUP BY col1, col1 HAVING NOT - COUNT ( * ) - ( + 5 ) * + col2 = NULL query I rowsort @@ -40550,7 +40550,7 @@ SELECT DISTINCT + - col2 FROM tab1 AS cor0 GROUP BY col0, col2 HAVING NULL <> NU # Postgresql - Postgres error: db error: ERROR: column "cor0.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col2, cor0\.col0, cor0\.col0, min\(\(\- cor0\.col0\)\), count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col2, cor0\.col0, cor0\.col0, min\(\(\- cor0\.col0\)\), count\(Int64\(1\)\) SELECT DISTINCT MIN ( + - col0 ) + + 29 + - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 57 BETWEEN NULL AND - - col2 GROUP BY col2, col0, col0 HAVING NULL BETWEEN - col1 AND COUNT ( * ) query I rowsort @@ -40851,7 +40851,7 @@ SELECT ALL - - col1 * + col1 + + - SUM ( DISTINCT - col1 ) AS col0 FROM tab1 AS # Datafusion - Expected - 3081 # Datafusion - Expected - 936 skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col2, count\(\*\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col2, count\(Int64\(1\)\) SELECT ALL ( - - CASE + + 50 WHEN + col2 THEN NULL WHEN ( - 84 ) THEN col2 * + col0 ELSE COUNT ( * ) * 39 END ) * + + col2 FROM tab0 GROUP BY col2 query I rowsort label-6717 @@ -40885,7 +40885,7 @@ SELECT + 36 AS col1 FROM tab0 GROUP BY col0 36 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\) / cor0\.col2 / Int64\(\-55\) \- count\(\*\) \* min\(Int64\(45\)\) \* \(\- cor0\.col0\) \+ cor0\.col2 \+ cor0\.col0 AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / cor0\.col2 / Int64\(\-55\) \- count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(45\)\) \* \(\- cor0\.col0\) \+ cor0\.col2 \+ cor0\.col0 AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) / + col2 / + ( - 55 ) - COUNT ( * ) * + MIN ( 45 ) * - col0 + + col2 + col0 AS col1, + col0 + - col2 AS col1 FROM tab2 AS cor0 GROUP BY col2, col0 HAVING NULL IS NOT NULL query I rowsort @@ -41354,7 +41354,7 @@ SELECT ALL + col2 * - col0 FROM tab0 GROUP BY col2, col0, col2 # Datafusion - Expected - 1 # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\)" at position 0 and "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 "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 GROUP BY col0, col0 query I rowsort @@ -42392,13 +42392,13 @@ SELECT 22, col2 + col2 + + + 67 * col2 * col2 AS col2 FROM tab2 GROUP BY col2, c # Datafusion - Expected - 0 # Datafusion - Expected - 79 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(\-77\)\)\)\) \* tab0\.col2 AS col1" at position 0 and "count\(\*\) / tab0\.col2 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(\-77\)\)\)\) \* tab0\.col2 AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / tab0\.col2 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - - COUNT ( - 77 ) ) * + col2 AS col1, + COUNT ( * ) / col2 * + col2 AS col1 FROM tab0 GROUP BY col2 # Postgresql - Postgres error: db error: ERROR: column "cor0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col0, cor0\.col1, count\(\*\), sum\(DISTINCT \(\- NULL\)\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col0, cor0\.col1, count\(Int64\(1\)\), sum\(DISTINCT \(\- NULL\)\) SELECT - COALESCE ( ( 53 ), COUNT ( * ), - NULLIF ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ), CASE - col0 WHEN COUNT ( * ) / - ( - col1 ) THEN - col2 - col0 ELSE - COALESCE ( col0, + 78 + + ( col2 ) * ( col0 ) ) * - col2 END ) ) FROM tab2 AS cor0 WHERE NOT - ( + ( col1 ) ) - + - col2 + col2 + - col2 + + - col2 * 74 + - col0 IS NOT NULL GROUP BY col0, col1 query I rowsort @@ -45458,13 +45458,13 @@ SELECT + 85, ( - col2 ), - ( + - COUNT ( ALL - - COALESCE ( - col0, - + col2 ) ) ---- # Datafusion - Datafusion expected results: -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\(\-91\) \+ 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\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 AS col2, COUNT ( * ) * - 91 + + 87 AS col2 FROM tab2 GROUP BY col2 HAVING NOT + 16 IS NOT NULL # Postgresql - Postgres error: db error: ERROR: column "tab0.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col1 could not be resolved from available columns: tab0\.col2, tab0\.col2, max\(\(\- tab0\.col0\)\), min\(DISTINCT tab0\.col2\), count\(\*\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col1 could not be resolved from available columns: tab0\.col2, tab0\.col2, max\(\(\- tab0\.col0\)\), min\(DISTINCT tab0\.col2\), count\(Int64\(1\)\) SELECT ALL col2 - col2 * COALESCE ( + 54, - col1 * CAST ( - - 33 AS INTEGER ) * - col0 * - col2 + - - 55 - - 27 + MAX ( - col0 ) + + - CAST ( NULL AS INTEGER ) / - + COALESCE ( col1, col0 + - col2, + NULLIF ( col1, + NULLIF ( 19, 46 / 46 ) ) * ( 63 ) ) + col2, + 51 ) + MIN ( DISTINCT col2 ) AS col1 FROM tab0 GROUP BY col2, col2 HAVING NOT NULL NOT BETWEEN ( col1 + COUNT ( * ) ) AND NULL query I rowsort label-7478 @@ -45748,7 +45748,7 @@ SELECT + 85, + 29 FROM tab2 AS cor0 GROUP BY col0 HAVING ( NULL ) IS NOT NULL # Postgresql - Postgres error: db error: ERROR: column "cor0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col2, avg\(\(\- cor0\.col0\)\), count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col0 could not be resolved from available columns: cor0\.col2, avg\(\(\- cor0\.col0\)\), count\(Int64\(1\)\) SELECT ALL - 82 col0 FROM tab0 AS cor0 GROUP BY col2 HAVING ( NULL ) IN ( 35, AVG ( ALL - col0 ), CASE - 83 WHEN - 49 + COUNT ( * ) THEN + COUNT ( * ) WHEN + COUNT ( * ) + col2 * - + col0 / CAST ( + 2 AS FLOAT8 ) THEN NULL END * + 64 * + - COUNT ( * ), - col0 ) query I rowsort @@ -47233,7 +47233,7 @@ SELECT ALL 78 / col1 FROM tab2 GROUP BY col2, col1, col1 HAVING NOT ( NULL IS NU # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col2, count\(\*\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col2, count\(Int64\(1\)\) SELECT DISTINCT + 26 / + + COUNT ( * ) * - ( - + CAST ( NULL AS INTEGER ) ) * + col2 + + CAST ( NULL AS INTEGER ) * COALESCE ( + 19, - col2 + + col0 ) + - col2 FROM tab0 GROUP BY col2 query II rowsort label-7774 @@ -48124,7 +48124,7 @@ SELECT ALL - 16 FROM tab0 GROUP BY col1 HAVING NOT NULL IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 15 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \+ count\(\*\) \+ Int64\(13\) AS col2" at position 0 and "tab0\.col1 \+ 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 "\(\- tab0\.col1\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(13\) AS col2" at position 0 and "tab0\.col1 \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - col1 ) + + COUNT ( * ) + + 13 AS col2, + col1 + - 13 AS col2 FROM tab0 GROUP BY col1 query I rowsort label-7909 @@ -48559,7 +48559,7 @@ SELECT DISTINCT 49, + 39 AS col0 FROM tab2 AS cor0 GROUP BY col2 # Datafusion - Expected - -20 # Datafusion - Expected - -20 skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col2, tab0\.col1, count\(\*\), min\(NULL \+ CASE tab0\.col2 WHEN Int64\(81\) \+ tab0\.col1 THEN tab0\.col1 END\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col2, tab0\.col1, count\(Int64\(1\)\), min\(NULL \+ CASE tab0\.col2 WHEN Int64\(81\) \+ tab0\.col1 THEN tab0\.col1 END\) SELECT COALESCE ( - + 20, COUNT ( * ) + - CASE + col0 WHEN col2 * + NULLIF ( NULLIF ( COALESCE ( - col1, 62 * - 42 ), 41 * col2 ), + CAST ( - col1 AS INTEGER ) * MIN ( CAST ( NULL AS INTEGER ) + CASE col2 WHEN 81 + col1 THEN + col1 END ) ) * - col0 + COUNT ( * ) THEN NULL WHEN + CAST ( - ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS INTEGER ) * - 99 THEN 66 ELSE NULL END + + col1 ) FROM tab0 GROUP BY col2, col1 query I rowsort label-7985 @@ -48938,7 +48938,7 @@ SELECT DISTINCT ( col1 ) + col1 + + - 62 FROM tab0 GROUP BY col1 # Postgresql - Postgres error: db error: ERROR: column "tab0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col2, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col2, count\(Int64\(1\)\) SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 GROUP BY col2 HAVING NULL = + + col0 + + 57 query I rowsort @@ -49140,7 +49140,7 @@ SELECT - col0 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NULL # Datafusion - Expected - -1 # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) \- tab2\.col2 \+ tab2\.col2 AS col1" at position 0 and "\(\- count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- tab2\.col2 \+ 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 ALL COUNT ( * ) - col2 + + col2 AS col1, - COUNT ( * ) AS col1 FROM tab2 GROUP BY col2 query I rowsort @@ -49280,7 +49280,7 @@ SELECT ALL 98 + - 45 AS col0 FROM tab0 AS cor0 GROUP BY col2, col2 # Postgresql - Postgres error: db error: ERROR: column "tab0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, tab0\.col2, max\(Int64\(25\)\), count\(\*\), count\(DISTINCT tab0\.col1\), avg\(\(\- tab0\.col0\)\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, tab0\.col2, max\(Int64\(25\)\), count\(Int64\(1\)\), count\(DISTINCT tab0\.col1\), avg\(\(\- tab0\.col0\)\) SELECT DISTINCT - 33 + + col2 * MAX ( 25 ), - col1 + + col1 AS col0 FROM tab0 GROUP BY col1, col2 HAVING + col1 - CASE + col0 WHEN - col0 * + 10 THEN CASE + CASE WHEN col1 > col1 * + col2 + 78 * + 17 + - + col2 THEN NULL ELSE + COUNT ( * ) END WHEN + - col1 * - col0 THEN - COUNT ( DISTINCT + col1 ) * - COALESCE ( - 43, + COUNT ( * ), + + col1 ) / - + AVG ( + - col0 ) ELSE + - 74 + col2 / - CAST ( NULL AS INTEGER ) END * col2 + + col2 ELSE - 58 * + 40 + col2 END >= ( NULL ) query I rowsort label-8107 @@ -49837,7 +49837,7 @@ SELECT ALL 51 + col0 FROM tab0 AS cor0 WHERE col1 * + 31 < ( - col2 ) GROUP BY c # Postgresql - Postgres error: db error: ERROR: column "cor0.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col2, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col2, count\(Int64\(1\)\) SELECT DISTINCT + COUNT ( * ) * + col2 / col2 col1 FROM tab1 AS cor0 GROUP BY col2 HAVING ( - 79 / - col1 + 25 ) >= ( NULL ) query I rowsort @@ -50089,7 +50089,7 @@ SELECT - 64 FROM tab1 AS cor0 GROUP BY col1 # Postgresql - Postgres error: db error: ERROR: column "tab0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, count\(\*\), min\(tab0\.col1\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, count\(Int64\(1\)\), min\(tab0\.col1\) SELECT + NULLIF ( - - ( - CAST ( NULL AS INTEGER ) ), + col1 + col0 * - 14 * + CAST ( + COUNT ( * ) AS INTEGER ) ) + + - MIN ( + col1 ) + + col1 FROM tab0 GROUP BY col1 HAVING NOT + 0 IS NOT NULL query I rowsort @@ -50316,7 +50316,7 @@ SELECT ALL 30 FROM tab0 AS cor0 GROUP BY col0, col0, col2 # Postgresql - Postgres error: db error: ERROR: column "cor0.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col0, cor0\.col0, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col0, cor0\.col0, count\(Int64\(1\)\) SELECT ALL col0 - - col0 AS col2, col0 + ( + col0 ) col1 FROM tab2 AS cor0 GROUP BY col0, col0 HAVING NULL NOT BETWEEN + COUNT ( * ) * col1 AND + ( + - col0 ) query I rowsort label-8289 @@ -50491,7 +50491,7 @@ SELECT DISTINCT - 60 + - ( col0 ) AS col2 FROM tab0 GROUP BY col0, col2 # Postgresql - Postgres error: db error: ERROR: column "tab2.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab2\.col2 could not be resolved from available columns: tab2\.col1, tab2\.col0, sum\(\(\- tab2\.col0\)\), count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab2\.col2 could not be resolved from available columns: tab2\.col1, tab2\.col0, sum\(\(\- tab2\.col0\)\), count\(Int64\(1\)\) SELECT ALL CASE - col0 WHEN 57 * SUM ( - + col0 ) THEN NULL WHEN - - 91 THEN - col1 ELSE NULL END AS col2 FROM tab2 GROUP BY col1, col0 HAVING NOT + 6 * + - col0 + CAST ( + COUNT ( * ) AS FLOAT8 ) * - col2 >= - - CAST ( NULL AS INTEGER ) query I rowsort @@ -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\(\*\) 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 @@ -50900,7 +50900,7 @@ SELECT + col1 FROM tab1 GROUP BY col1, col2 HAVING NULL IS NULL # Postgresql - Postgres error: db error: ERROR: column "tab1.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab1\.col0 could not be resolved from available columns: tab1\.col2, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab1\.col0 could not be resolved from available columns: tab1\.col2, count\(Int64\(1\)\) SELECT ALL + 37 col0 FROM tab1 GROUP BY col2 HAVING NULL NOT BETWEEN COUNT ( * ) + - ( - col0 ) + col0 * col0 * + col2 * - - 37 AND NULL query I rowsort @@ -51177,7 +51177,7 @@ SELECT DISTINCT + - MIN ( DISTINCT - col0 ) FROM tab0 AS cor0 GROUP BY col0 # Postgresql - Postgres error: db error: ERROR: column "tab0.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, count\(\*\), count\(DISTINCT tab0\.col1\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab0\.col0 could not be resolved from available columns: tab0\.col1, count\(Int64\(1\)\), count\(DISTINCT tab0\.col1\) SELECT + COALESCE ( + - 66, col0 + 1 + - - col1 ) + + CAST ( + COUNT ( * ) AS INTEGER ) + - 64 + + + 20 * - col1 + - - COUNT ( DISTINCT + col1 ) * - col1 / COUNT ( * ) * - col1 / 8 FROM tab0 WHERE NOT - - col0 IS NOT NULL GROUP BY col1 HAVING NULL <> NULL query I rowsort @@ -51262,7 +51262,7 @@ SELECT - col1 + + col1 AS col0 FROM tab0 GROUP BY col1 # Postgresql - Postgres error: db error: ERROR: column "tab1.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab1\.col0 could not be resolved from available columns: tab1\.col2, tab1\.col1, min\(NULL\), count\(\*\) +query error DataFusion error: Error during planning: Projection references non\-aggregate values: Expression tab1\.col0 could not be resolved from available columns: tab1\.col2, tab1\.col1, min\(NULL\), count\(Int64\(1\)\) SELECT col2 * CAST ( NULLIF ( CAST ( NULL AS INTEGER ), + col0 / - 65 ) / + 24 AS INTEGER ) + - 59 * col1 col1 FROM tab1 GROUP BY col2, col1 HAVING + col1 / - MIN ( CAST ( NULL AS FLOAT8 ) ) > ( + 24 * + COUNT ( * ) ) query I rowsort @@ -51614,7 +51614,7 @@ SELECT - col2 * 95 AS col1 FROM tab1 AS cor0 GROUP BY col2 # Postgresql - Postgres error: db error: ERROR: column "cor0.col1" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col2, count\(\*\), avg\(\(\- Int64\(1\)\)\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col1 could not be resolved from available columns: cor0\.col2, count\(Int64\(1\)\), avg\(\(\- Int64\(1\)\)\) SELECT DISTINCT - + 1 * COALESCE ( - 46, - + COUNT ( * ) ) / 79 + col2 - - col2 / AVG ( ALL - + 1 ) AS col1 FROM tab0 AS cor0 GROUP BY col2 HAVING COUNT ( * ) * - col1 = NULL query I rowsort label-8504 @@ -52466,7 +52466,7 @@ SELECT ALL - - col1 FROM tab2 AS cor0 GROUP BY col0, col1, col1 HAVING NOT - col # Postgresql - Postgres error: db error: ERROR: column "cor0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col0, count\(\*\), min\(DISTINCT cor0\.col2\), min\(Int64\(\-52\)\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression cor0\.col2 could not be resolved from available columns: cor0\.col0, count\(Int64\(1\)\), min\(DISTINCT cor0\.col2\), min\(Int64\(\-52\)\) SELECT ALL + 59 col2 FROM tab1 AS cor0 GROUP BY col0 HAVING NOT NULL IN ( col2, col2 + - ( - + CASE + 57 WHEN + COUNT ( * ) THEN - MIN ( DISTINCT col2 ) WHEN - col2 * - - 27 THEN NULL ELSE - COUNT ( * ) + + col0 END ), MIN ( - 52 ) ) query I rowsort label-8638 @@ -52602,7 +52602,7 @@ SELECT DISTINCT - ( + 11 ) AS col2 FROM tab2 AS cor0 GROUP BY col2 # Postgresql - Postgres error: db error: ERROR: column "tab0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col2 could not be resolved from available columns: tab0\.col0, count\(\*\) +query error DataFusion error: Error during planning: HAVING clause references non\-aggregate values: Expression tab0\.col2 could not be resolved from available columns: tab0\.col0, count\(Int64\(1\)\) SELECT DISTINCT - 54 AS col2 FROM tab0 GROUP BY col0 HAVING NULL BETWEEN ( ( - col2 ) ) * - - COUNT ( * ) AND - - 79 query I rowsort label-8661